How to recognize that the server is currently unavailable?
I wrote 2 simple codes between a client and a server (run as daemon), the TCP connection is established seen from netstat. However, when the server is rebooted, the client is still pending in the "recv" function (it should return a value<=0, right?). While it is OK to kill the server with "killall". Is there any flags or options? Thanks.
Last edited by compext; 12-13-2006 at 07:45 PM.
|