Ancient slides on client/server computing
Networking programming Examples
The client calls
Here are the Python socket calls that are similar to the BSD system calls.
Take a look at the constants.
Here are a few useful Python calls a bit above the system call level.
Here are a few, now largely unused, Python calls that were once heavily used Berkely C routines.
This is a silly way to list sixteen squares.
The server calls
Remember: You can blame RFC 793 for most of this.
Here is a series of servers, that echo JSON expressions, that grow up to do the job.
- One connection only
- One connection at a time
- Concurrent connections
— Introducing the
fork - Concurrent connections without zombies
- One connection at a time using
socketserver— handles termination ungracefully - Connurent connections using
socketserverwiththreading— tries to terminate early