|Subject:||Client disconnection detection|
|Posted by:||Simon A. (saberu…@tecnar-automation.com)|
|Date:||Tue, 24 Aug 2004|
I have a indy tcpserver. I have clients that connect on it. The server
send messages to it clients at regular interval (example, each 20 seconds),
but never read anything from them. When the server is not writing or
reading from it clients, it doesn't detect the clients deconnection. And
I've found that it take 2 writings from the server to detect that there is a
error with the client's connection.
Is there a way to detect if a client is still there and that the
ondisconnect event is called whenever a client disconnect from the server
even if the server is not reading or writing anythig to it client?