
Testing for Closed Socket
Question: Is there any way to test if a socket is still open without writing to it? Answer: Despite being relatively easy to use, the Socket class is not implemented as well as it might have been. Connections are established at the time the Socket is created, so there is