O'Reilly logo

The Sockets Networking API: UNIX® Network Programming Volume 1, Third Edition by Andrew M. Rudoff, Bill Fenner, W. Richard Stevens

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 30. Client/Server Design Alternatives

Introduction

We have several choices for the type of process control to use when writing a Unix server:

  • Our first server, Figure 1.9, was an iterative server, but there are a limited number of scenarios where this is recommended because the server cannot process a pending client until it has completely serviced the current client.

  • Figure 5.2 was our first concurrent server and it called fork to spawn a child process for every client. Traditionally, most Unix servers fall into this category.

  • In Section 6.8, we developed a different version of our TCP server consisting of a single process using select to handle any number of clients.

  • In Figure 26.3, we modified our concurrent server to create one thread per ...

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