I\'m using the Boost::asio to implement a client/server applicaion. The client code below is used to connect to the remote server .
try
{
bo
This is a limitation of the underlying socket interface (I think both for Winsock/Bekerly). You could invent a message specifically for this purpose, that the server answers on if it is alive. Else if you get a timeout, means connection is down.
EDIT: As Joachim pointed out, trying to read the socket might be a better way.