I have an android app that talks to a program on a PC. I'm using the Android (Java) Socket class. If I stop and restart the PC app the next time I send something from Android I get an IO Exception "Broken Pipe". My question is not about that. Here's the question:
After getting the broken pipe exception if I query the Socket's isClosed() method it returns false (i.e., it's not closed), and if I query the Socket's isConnected() method it returns true, i.e., that it IS connected. Could someone please explain these results to me? Thanks in advance!