return to UNIX

Server programme accepts clients and connects them in pairs. Each pair must be handed by separate process. Messages of exactly 10 characters are send between two clients handled by the same process. Order of sending messages in pair is not fixed, select function must be used. If one of clients (in pair) disconnects, other must be disconnected and subprocess must terminate.

Server program can be interrupted by C-c (SIGINT) at any time

Server takes port number as its sole argument.

Telnet will be used as client program e.g.: telnet localhost 2000

This task will be graded by Marcin Borkowski, please submit your solutions to /home2/samba/borkowskim/unix/ folder.

Additional Remarks:

return to UNIX