The tiny-tcpd program is a small, simple inetd-like TCP server. It listens for incoming TCP connections and for each connection request it receives, it runs a program. The standard input of the program is receiving data from network and data written by the program to standart output is sent to the network. The standard error is not redirect, so it can be used by the program to print its status and error messages.
tiny-tcpd is as small and simple as possible to be usefull and heavily commented for educational purpose.