Created
October 7, 2019 22:28
-
-
Save Ben-PH/109ae77b0cc57d8457676c5d1d860d61 to your computer and use it in GitHub Desktop.
The meat and bones of setting up a listen queueueueueue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int wait_size = 5; // maximum number of waiting clients | |
if (listen(listen_sock, wait_size) < 0) { | |
printf("could not open socket for listening\n"); | |
return 1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment