You are here : cpp0listen

listen() - 0

listen - listen for socket connections and limit the queue of incoming connections.
The listen() function marks a connection-mode socket, specified by the socket argument, as accepting connections, and limits the number of outstanding connections in the socket's listen queue to the value specified by the backlog argument.


Syntax

int listen(int socket, int backlog);


Example


Output / Return Value


Limitations


Alternatives / See Also


Reference

http://pubs.opengroup.org/onlinepubs/7908799/xns/listen.html