Syntax: int listen (int s, int backlog);
Header: NetLib - sys/socket.h
Sockets - socklib.h
UnixLib - sys/socket.h
Returns: 0 for success, EOF if failed
This call causes a socket of type SOCK_STREAM to begin listening for incoming connection attempts. The backlog parameter specifies the maximum length that the queue of pending connections may grow to before connection attempts will be refused.
C definition SWI definition
|
|
|