O'Reilly logo

The Linux Programming Interface by Michael Kerrisk

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 60. Sockets: Server Design

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.

Iterative and Concurrent 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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required