|
Boost Users : |
Subject: Re: [Boost-users] asio: selective cancellation of reads/writes
From: Maxim Yanchenko (maximyanchenko_at_[hidden])
Date: 2010-01-12 21:00:35
Alexander Fritze <alex <at> croczilla.com> writes:
> In asio, if I have a socket with pending asynchronous reads and
> writes, is there a way to selectively cancel only the reads or only
> the writes? All I can find is basic_stream_socket::cancel() which
> closes *all* pending operations on the socket.
Is socket::shutdown() what you're looking for?
http://www.boost.org/doc/html/boost_asio/reference/basic_socket/shutdown.html
However, I'm not sure if it cancels all corresponding pending operations or just
puts them on hold.
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