Socket programming example
In chapters 20.26 and 20.27 Comer presents a programming example of the use of the socket interface
Chapter 20.26 describes the client part of the whois applications written for the BSD Unix operating system
Chapter 20.27 describes the corresponding server program
This is a simple example of a simple service that can be based on UDP or TCP (port 43)
Because whois is a simple service, no forking (spawning new processes) is needed
In any case, the example is an illustrative one and worth spending some time on