Computer Science › Section E · Networking and the internet › Topic E.5
A simple client-server program
Every web browser, chat app and online game rests on the same small set of operations: a server waits on a port, a client connects, and the two exchange bytes. In this topic you build that pair yourself in a few lines of Python 3 and see how each line maps onto the layers you have just studied.
In this topic
- What we are building
- Sockets
- Localhost and choosing a port
- The server's steps
- The client's steps
- Worked example: an upper-case server
- Worked example: the client and a test run
- Bytes, not text
- Worked example: the same idea over UDP
- From demo to real server
- Common mistakes to avoid
- Key takeaways
This topic is part of Wuanberri Pro. Checking your access…
