[comp.lang.c] select

A.J.Rasiah@massey.ac.nz (Ajit Rasiah ) (01/23/91)

Hello C experts!

Can someone tell me if I can use the select() system call in UNIX to check if
the connection to the peer machine has been broken. If not, then how can I? I
am using sockets in the context of client-server interaction where the server
program must know if the client program has died rather than signalling its
intention to close down properly.

Code examples will be very welcome.

Please reply to A.J.Rasiah@massey.ac.nz

Thanks in advance.