Possible Duplicate:
Java: Detecting client disconnects from server side
What is the best way to check if a client is still connected to the server? Tell me exactly how the method you're suggesting works.
Possible Duplicate:
Java: Detecting client disconnects from server side
What is the best way to check if a client is still connected to the server? Tell me exactly how the method you're suggesting works.
Get the client to send a heartbeat message. When no message has been received for a given length, the client can be disconnected.