Files | |
file | socket_parse.c |
Command-line argument parsing functions related to networking. | |
file | socket_parse.h |
Command-line argument parsing functions related to networking. | |
Functions | |
int | socket_parse_address_family (const char *name, int *af) |
Translate the character string to the address family number. | |
int | socket_parse_protocol_family (const char *name, int *pf) |
Translate the character string to the protocol family number. | |
int | socket_parse_socket_type (const char *name, int *sockt) |
Translate the character string to the socket type number. |
int socket_parse_address_family | ( | const char * | name, | |
int * | af | |||
) |
Translate the character string to the address family number.
[in] | name | The address family name. |
[out] | af | The corresponding address family number or EAFNOSUPPORTED. |
ENOTSUP on unsupported address family.
Definition at line 53 of file socket_parse.c.
int socket_parse_protocol_family | ( | const char * | name, | |
int * | pf | |||
) |
Translate the character string to the protocol family number.
[in] | name | The protocol family name. |
[out] | pf | The corresponding protocol family number or EPFNOSUPPORTED. |
ENOTSUP on unsupported protocol family.
Definition at line 79 of file socket_parse.c.
int socket_parse_socket_type | ( | const char * | name, | |
int * | sockt | |||
) |
Translate the character string to the socket type number.
[in] | name | The socket type name. |
[out] | sockt | The corresponding socket type number or ESOCKTNOSUPPORT. |
ENOTSUP on unsupported socket type.
Definition at line 105 of file socket_parse.c.