View Full Version : Signal notice in server when client disconnected

18th April 2006, 10:26 AM
How do I get the signal notice in server end when the socket connection was disconnected or closed in client end ? What parameters do I set in the signal action function ?

18th April 2006, 03:12 PM
You can use kill() (man 2 kill) to send your own signal if you get an error from recv() or send(). I don't know of any signal that is automatically send to a process when a client socket is disconnected.