Skip to content

Instantly share code, notes, and snippets.

@martinomburajr
Last active May 18, 2019 05:16
Show Gist options
  • Select an option

  • Save martinomburajr/ee4b9bf4efc9d898e35ba7605fe596e9 to your computer and use it in GitHub Desktop.

Select an option

Save martinomburajr/ee4b9bf4efc9d898e35ba7605fe596e9 to your computer and use it in GitHub Desktop.
Socket API Bind methods in both UNIX and Windows Systems
// Unix implementation of bind() system call
int bind(int sockfd, const struct sockaddr *addr, socklen_t addrlen);
// 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