int listen(int sockfd, int backlog)- Allows the socket to start listening for connections
- Creates queue in kernel where a max of
backlogconnections wait to be accepted Returns 0 on success, -1 on error
int listen(int sockfd, int backlog)backlog connections wait to be accepted
Returns 0 on success, -1 on error