Possible Duplicate:
Java: How do detect a remote side socket close?
I'm writing a small program using java with Socket and ServerSocket. I have a Server and some Clients, When User(Client) close the Window, the connection between Client and Server will be closed.
My problem is on server, I can't detect that close event. Who can help me.
I can send a message from client to server to notify this event before close the connection. But if user end process from tast manager (javaw.exe), this solution will impossible.