Sockets
[Application library]


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.

Function Documentation

int socket_parse_address_family ( const char *  name,
int *  af 
)

Translate the character string to the address family number.

Parameters:
[in] name The address family name.
[out] af The corresponding address family number or EAFNOSUPPORTED.
Returns:
EOK on success.

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.

Parameters:
[in] name The protocol family name.
[out] pf The corresponding protocol family number or EPFNOSUPPORTED.
Returns:
EOK on success.

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.

Parameters:
[in] name The socket type name.
[out] sockt The corresponding socket type number or ESOCKTNOSUPPORT.
Returns:
EOK on success.

ENOTSUP on unsupported socket type.

Definition at line 105 of file socket_parse.c.


Generated on Thu Jun 2 07:45:55 2011 for HelenOS/USB by  doxygen 1.4.7