boost::asio socket async_* strand

Viewed 3779

How to perform async_* operations on socket through the strand? I've looked at Timer.5 (Boost/Asio examples), but they only show how to invoke user's handler. When I async_write to the socket in multithreaded application data may be written corrupted. And a strand guarantees that none of those handlers will execute concurrently.

2 Answers
Related