#include <nitroWiFi/soc.h>
int SOC_Listen ( int s, int backlog );
s |
Socket descriptor. |
backlog |
Specifies the maximum number of unprocessed connections in the socket's listen backlog queue. |
0 | Successful. |
SOC_EINVAL |
Invalid processing. (Starting the connection process, Not a TCP socket, etc.) |
SOC_ENETRESET |
Socket library is not initialized. |
SOC_EWOULDBLOCK |
Cannot execute until the requested operation is blocked. |
Note: Additional errors may be generated and returned in future library releases. Please treat all negative return values as general errors.
This function was included for compatibility, but sockets in connection mode do not actually receive connections.
SOC_Socket
, SOC_Bind
, SOC_Connect
, SOC_Accept
12/12/2005 Modified Description and Return Values.
9/13/2005 Initial version.