Boost logo

Boost Users :

Subject: Re: [Boost-users] About boost::asio
From: Scott Gifford (sgifford_at_[hidden])
Date: 2008-11-15 15:07:48

"Ken zhang" <kennir_at_[hidden]> writes:

> I want to handle socket close event in my connection, but I can't found
> mothed in ip::tcp::socket,How can I handle close event for socket?

Hello Kennir,

If you have an outstanding read request, when the socket is closed the
read handler will be called with an error indication. In my own code
I've seen these errors returned when a socket is closed:


Hope this helps,


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at