









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!










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