So I have a Server-Client application I am creating and heres my problem.
When the server disconnects, crashes, or a i shut it down (what I'm getting at, is its unexpected), the clients on the other end have no idea that the server has disappeared until sometime later.
I believe the clients find out at some point of a TimeOut but they do eventually find out. I want a creative way to check maybe every 15 seconds whether the server is still there. I've looked up and down the Socket api for methods I could use. For example, there is a method
But even after I close my server this method returns true for some while.