The UNIX Operating System

TOP

UP


Ray Seyfarth

ORCA


Computer Science

COST

USM




Multiservice, Multiprotocol Servers


  • Master uses select to wait for connections over a set of passive TCP sockets

  • In addition the fd_set includes a set of UDP sockets awaiting client messages

  • If a UDP message arrives, the master calls a handler function which formulates and issues a reply

  • If a TCP connection is needed the master calls accept

  • For simpler TCP connections, the master can handle read and write requests iteratively

  • The master can also use select

  • Lastly the master can use fork and let the child handle the connection


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