This chapter discusses the fundamentals of designing iterative and concurrent servers and describes inetd, a special daemon designed to facilitate the creation of Internet servers.
Two common designs for network servers using sockets are the following:
Iterative: The server handles one client at a time, processing that client’s request(s) completely, before proceeding to the next client.
Concurrent: The server is designed to handle multiple clients simultaneously.
We have already seen an example of an iterative server using FIFOs in A Client-Server Application Using FIFOs and an example of a concurrent server using System V message queues in Section 46.8.
Iterative servers are usually ...