Smallchat
A minimal programming example for a chat server
...It uses the simplest assumptions (for example: clients connect via telnet or netcat, line-based I/O) and keeps the message logic straightforward: each received line from one client is broadcast to all others (fan-out). The focus is not on robustness, feature richness or production readiness, but on learning how to write a non-trivial C program, handling sockets, multiplexed input (select/poll), client state, and basic formatting.