This chapter includes the following example programs:
- tcp_client.c: Establishes a TCP connection and sends/receives data from the console.
- tcp_serve_toupper.c: A TCP server servicing multiple connections using select(). Echoes received data back to the client all in uppercase.
- tcp_serve_toupper_fork.c: The same as the preceding code but uses fork() instead of select(). (Linux and macOS only.)
- tcp_serve_chat.c: A TCP server that relays received data to every other connected client.