Boost logo

Boost Users :

Subject: Re: [Boost-users] More problems with boost::asio and async_read
From: Igor R (boost.lists_at_[hidden])
Date: 2011-08-08 16:04:18


> Yes, but how do I tell the async_read that it is cancelled?
>
> It is just a free function which returns no handle or anything??
>
> Should I let the boost::asio::posix::stream_descriptor object go out
> of scope to clean up all the references?

Calling cancel() on the i/o object cancels all async. operations
associated with it:
http://www.boost.org/doc/libs/1_47_0/doc/html/boost_asio/reference/posix__basic_stream_descriptor/cancel.html


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