









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
An introduction to sockets, their role in inter-process communication, and various operations on sockets. It also covers the difference between blocking and non-blocking sockets, the client-server model, and well-known ports. based on a university lecture given by Vishal Shrivastav at Cornell University during CS 4450 in Spring 2018.
Typology: Study notes
1 / 15
This page cannot be seen from the preview
Don't miss anything!










What is a Socket?
2 P1 P Socket-1 Socket- P Socket- P Socket- Network
Where does Socket fit in the Network Stack? Application Transport Network Data Link Physical Send buffer Receive buffer
write() read() SOCKET open() (^) close()
Blocking and Non-blocking Sockets
Client-Server Model SERVER CLIENT 1^ CLIENT 2 CLIENT 3^ CLIENT 4 23.45.67.12 46.41.57. 93.35.17.14 53.35.17. 123.20.20. 1 2 1 2 1 2 1 2 1 2 3004 3005 3010 3004 3005 3204 3004 3028 80 22 Well known ports that clients connect to Port numbers assigned by OS
D: 123.20.20.10: S: 93.35.17.14: D: 93.35.17.14: S: 123.20.20.10:
Two traditional modes of communication
Handshake Data exchange
Client-Server Model - APIs
Stream vs Datagram