Boost logo

Boost Users :

From: Igor R (boost.lists_at_[hidden])
Date: 2008-07-29 12:31:49


What do you mean by disconnect event?
I'm not sure you can detect disconnection without trying to
send/receive something over the socket, but if you issued async_XXX
function providing your completion handler, then it will be called
with the appropriate error_code, upon disconnection.

2008/7/29, Ken zhang <kennir_at_[hidden]>:
> Hi Dear all.
> How can I catch the disconnect event from remote side in boost::asio?


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net