Re: [Boost-users] [Asio] async_receive_from
You can use tcp::socket::cancel(), but note that on most Windows platforms it won't work. http://www.boost.org/doc/libs/1_35_0/doc/html/boost_asio/reference/basic_str... On the other hand, you can just close() your socket - this cancels any outstanding operations on it. 2008/7/1, Ryan McConnehey <mccorywork@gmail.com>:
All,
Async_receive_from waits on data from a socket. I have this socket in another thread with the sole function of listening to the socket, putting it's data into a queue and then going back to listening on the socket. Is there a way to end the function early, while it's still waiting for data, so I can destroy the socket?
Ryan _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (1)
-
Igor R