What is the simplest way to detect that the TCP connection is broken (ungracefully, e.g. network down) if using CAsynSocket?
If I unplug the network cable out from the computer,
the two connecting sockets do not know the connection is broken until one side try to send data to the other side. Is there other way to detect such condition instead of implementing some kind of heart beat message?