



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




establishment phase
Address port result
INADDR_ANY 0 system selects addr and port
INADDR_ANY !=0 system selects addr, user selects
port
Local IP address 0 user selects addr, system selects
port
Local IP address !=0 user selects both addr and port
#include <sys/socket.h> int accept (int sockfd, struct sockaddr *cliaddr, socklen_t *addrlen);