11 Dec
2002
11 Dec
'02
15:25
Hi folks, i have a server process which collects socket connects from clients. Those connects are stored in a chain. On a special event on the server, the process has to deliver some data to the clients. So far so good, but.. how do i recognize when i client disconnects, or how can i check the state of the socket ? my process crash when it tries to send/write data on the old-socket handle. it all written in C, so there is no way to use stuff like try() catch() and i dont beleave, i should write an own signal handler for this write/send statement. there must be a clean way to check/monitor the state of the socket, but how ?