sockets.c File Reference


Data Structures

struct  lwip_socket
struct  lwip_select_cb
struct  lwip_setgetsockopt_data

Functions

void lwip_socket_init (void)
int lwip_listen (int s, int backlog)
int lwip_select (int maxfdp1, fd_set *readset, fd_set *writeset, fd_set *exceptset, struct timeval *timeout)
int lwip_shutdown (int s, int how)

Detailed Description

Sockets BSD-Like API module

Function Documentation

int lwip_listen ( int  s,
int  backlog 
)

Set a socket into listen mode. The socket may not have been used for another connection previously.

Parameters:
s the socket to set to listening mode
backlog (ATTENTION: need TCP_LISTEN_BACKLOG=1)
Returns:
0 on success, non-zero on failure

int lwip_select ( int  maxfdp1,
fd_set *  readset,
fd_set *  writeset,
fd_set *  exceptset,
struct timeval *  timeout 
)

Processing exceptset is not yet implemented.

int lwip_shutdown ( int  s,
int  how 
)

Unimplemented: Close one end of a full-duplex connection. Currently, the full connection is closed.

void lwip_socket_init ( void   ) 

Initialize this module. This function has to be called before any other functions in this module!


Generated on Sun Mar 23 19:22:46 2008 for lwIP 1.3.0 by  doxygen 1.5.4