SOC_Listen

C Specification

#include <nitroWiFi/soc.h>
int SOC_Listen ( int s, int backlog );

Arguments

s Socket descriptor.
backlog Specifies the maximum number of unprocessed connections in the socket's listen backlog queue.

Return Values

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.

Description

This function was included for compatibility, but sockets in connection mode do not actually receive connections.

See Also

SOC_Socket, SOC_Bind, SOC_Connect, SOC_Accept

Revision History

12/12/2005 Modified Description and Return Values.
9/13/2005 Initial version.