



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Some concept of Advanced Unix Programming are Address Structure, Basic Thread Functions, Client-Server Design, Network Programming, Signals and Thread, Thread-Specific Data, Unix File System, Reliable Communication. Main points of this lecture are: Address Structure, Socket Address Structure, Byte Ordering, Manipulation Functions, Concurrent Server, Client-Server Design, Socket Address Structure, Ordering and Manipulation, Functions, Accept
Typology: Slides
1 / 7
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);