I am writing a multithreaded server/client application. One server is handling multiple clients and server is executing separate thread for each client. Now my question is that is there any way for the client application to detect that the server has been shut down? i.e during communication (sending and receiving data) if the server application is suddenly shut down/terminated, then how can the client application(s) detect this event and perform action accordingly?
Any help in this regard will be highly appreciated....