milter-connection 3 milter managerライブラリ
milter-connection

## Functions

#define | MILTER_CONNECTION_ERROR
GQuark | milter_connection_error_quark ()
gboolean | milter_connection_parse_spec ()
GIOChannel * | milter_connection_listen ()
gchar * | milter_connection_address_to_spec ()

## Types and Values

#define | MILTER_CONNECTION_DEFAULT_BACKLOG
struct | MilterGenericSocketAddress
enum | MilterConnectionError

## 説明

## Functions

### MILTER_CONNECTION_ERROR

    #define MILTER_CONNECTION_ERROR           (milter_connection_error_quark())

MILTER_CONNECTION_ERROR

### milter_connection_error_quark ()

    GQuark
    milter_connection_error_quark (void);

#### Returns

milter_connection_error_quark

### milter_connection_parse_spec ()

    gboolean
    milter_connection_parse_spec (const gchar *spec,
                                  gint *domain,
                                  struct sockaddr **address,
                                  socklen_t *address_size,
                                  GError **error);

#### Returns

milter_connection_parse_spec

### milter_connection_listen ()

    GIOChannel *
    milter_connection_listen (const gchar *spec,
                              gint backlog,
                              struct sockaddr **address,
                              socklen_t *address_size,
                              gboolean remove_unix_socket,
                              GError **error);

#### Returns

milter_connection_listen

### milter_connection_address_to_spec ()

    gchar *
    milter_connection_address_to_spec (const struct sockaddr *address);

#### Returns

milter_connection_address_to_spec

## Types and Values

### MILTER_CONNECTION_DEFAULT_BACKLOG

    #  define MILTER_CONNECTION_DEFAULT_BACKLOG SOMAXCONN

MILTER_CONNECTION_DEFAULT_BACKLOG

### struct MilterGenericSocketAddress

    struct MilterGenericSocketAddress {
        union {
            struct sockaddr base;
            struct sockaddr_un un;
            struct sockaddr_in inet;
            struct sockaddr_in6 inet6;
        } address;
    };

MilterGenericSocketAddress

### enum MilterConnectionError

#### Members

MILTER_CONNECTION_ERROR_INVALID_FORMAT |  |
MILTER_CONNECTION_ERROR_SOCKET_FAILURE |  |
MILTER_CONNECTION_ERROR_SET_SOCKET_OPTION_FAILURE |  |
MILTER_CONNECTION_ERROR_ACCEPT_FAILURE |  |
MILTER_CONNECTION_ERROR_BIND_FAILURE |  |
MILTER_CONNECTION_ERROR_LISTEN_FAILURE |  |
MILTER_CONNECTION_ERROR_UNIX_SOCKET |  |

MilterConnectionError