The UNIX Operating System

TOP

UP


Ray Seyfarth

ORCA


Computer Science

COST

USM




Iterative Connection-Oriented Server Design


  • Server opens multiple passive TCP sockets each bound to a different port

  • Server keeps an array of function pointers to associate each socket with a service functions

  • Server uses select to determine which socket (port) to service next

  • When a connection is ready, server calls accept to start handling a connection

  • Server calls the proper service function


University of Southern Mississippi
Ray.Seyfarth@usm.edu
Updated 20:05 Jun 5, 2000