int listen(int s, int backlog);
The backlog parameter of this function is typically used by servers that could have more than one connection request at a time: if a connection request arrives with the queue full, the client receives an error with an indication of ECONNREFUSED.
An application may call
backlog is limited (silently) to a reasonable value as determined by the underlying service provider. Illegal values are replaced by the nearest legal value.
Is a descriptor identifying a bound, unconnected socket.
Is the maximum length that the queue of pending connections may grow to. If this value is SOMAXCONN, then the underlying service provider responsible for socket s sets the backlog to a maximum "reasonable" value.
s is not a valid descriptor
s is already connected.
s has not been bound to a local address.
No more socket descriptors are available.
Network subsystem has failed.
No buffer space is available.
s is not a socket
s is not a socket that supports
UNIX 98, with exceptions.
The NuTCRACKER Platform supports all the address families that WinSock 2.0 supports.
Applications may not call
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
PTC MKS Toolkit 10.3 Documentation Build 39.