Computer Networking › Section B · The application layer › Topic B.9
Socket programming
Every protocol in this section is, in the end, a pair of programs exchanging bytes through sockets. Writing a tiny client and server yourself, first over UDP and then over TCP, shows exactly what each transport protocol does and does not do for an application.
In this topic
- What a socket program does
- Socket types in Python
- A UDP server
- A UDP client
- Worked example: tracing the UDP exchange
- A TCP server
- A TCP client
- Worked example: tracing the TCP exchange
- Byte streams and many clients
- Common mistakes to avoid
- Key takeaways
This topic is part of Wuanberri Pro. Checking your access…
