Servers
#
Scope
#
Basic content
#
- Client-server model.
- Concurrent and iterative server types. Communication type vs server type.
- Stateful services. Stateful and stateless servers.
- Peer to peer (P2P) models. Pros and coms of P2P as compared to the client-server model.
- Service quality criteria.
- Handling multiple communication channels
- blocking I/O + threads or sub-processes.
- Synchronous I/O multiplexing -
select(), pselect()
Auxiliary content
#
- Non-blocking I/O.
- SIGIO and I/O
- Running servers
Reference
#
- Lecture Slides
- Code samples
- Old slides: Inet_3en.pdf
- The GNU C library documentation:
13.8: Waiting for Input or Output,
16.11: The inet daemon,
18.1 Overview of Syslog,
24.2.4: Asynchronous I/O Signals