Last active
May 18, 2019 05:16
-
-
Save martinomburajr/ee4b9bf4efc9d898e35ba7605fe596e9 to your computer and use it in GitHub Desktop.
Socket API Bind methods in both UNIX and Windows Systems
This file contains hidden or 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
| // Unix implementation of bind() system call | |
| int bind(int sockfd, const struct sockaddr *addr, socklen_t addrlen); |
This file contains hidden or 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
| // Windows implementation of bind() system call | |
| int WSAAPI bind( | |
| SOCKET s, | |
| const sockaddr *name, | |
| int namelen | |
| ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment