listen TCP
Set a socket to accept incoming connections. See function NetSock_Listen() for more information.
Files
net_bsd.h/net_bsd.c
Prototype
int listen (int sock_id, int sock_q_size);
Arguments
sock_id
Socket descriptor/handle identifier of socket to listen.
sock_q_size
Number of connection requests to queue on listen socket.
Returned Value
0, if no error.
-1, otherwise.