I am not in a position to call async_read, as it will read out some valuable
data (if the connection is not closed).
Al least is there any "dirty way" to do this?
Thanks a lot,
Lloyd
----- Original Message -----
From: "Igor R"
Inside the timer handler routine, is there any way to chek the connection is closed or> not? (From the timer handler, I can access the socket and io_service). Not really. To detect peer disconnection you can perform an async_readon that socket, and in most cases it will call its handler with someerror. But this method doesn't always work - eg., in case of a"non-graceful" cable disconnection._______________________________________________Boost-users mailing listBoost-users@lists.boost.orghttp://lists.boost.org/mailman/listinfo.cgi/boost-users
______________________________________ Scanned and protected by Email scanner