The source text for a complete small sample application, where a client and a server communicate over TCP, is included in Appendix G. A much more detailed description of network programming in UNIX operating systems, including many examples, is found in, for example, [Stev90].