
13 Jan
2010
13 Jan
'10
2 a.m.
Alexander Fritze
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.htm... However, I'm not sure if it cancels all corresponding pending operations or just puts them on hold.