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