Assigning an address to a socket
The bind() system call is used to assign an address to an existing socket.
int bind( int sockfd,
const struct sockaddr *myaddr, int addrlen);
bind returns 0 if successful or -1 on error.
const!
Previous slide
Next slide
Back to first slide
View graphic version