|
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
|