Winsock : How do I know when other host closes connection with me?
Posted on 1998-12-18
I'm beginner to Winsock programming. I wrote a "chat" program. It works but I want to know whenever the connection is closed by other host. For now, I check this by trying sending something to other host. If I can send without any error then it still alives. That's not a good and convenient methode.
Can anyone show me better methode to verify a connection without sending?
For instance something like getting the state of a connection.