Places a socket in a state in which it is listening for an incoming connection.
- Parameters
-
socket | Descriptor identifying a bound, unconnected socket. |
backlog | Maximum length of the queue of pending connections. If set to SOMAXCONN, the underlying service provider responsible for socket will set the backlog to a maximum reasonable value. |
- Returns
- If no error occurs, 0 is returnd.