[boost-users][asio] Make asio::strand using tcp::socket
Hello everyone, How do I create this strand using the io_context of the socket in boost 1.70. asio::ip::tcp::socket socket; asio::io_context::strand strand( socket.get_executor().context() ); Thanks Tom
https://github.com/boostorg/beast/issues/1639 https://github.com/boostorg/asio/issues/251 Note that `asio::io_context::strand` is an extension not available in the Networking TS. `asio::strand<E>` is the "standard" type. On Sat, Jun 22, 2019 at 10:32 AM Fiver Dev via Boost-users < boost-users@lists.boost.org> wrote:
Hello everyone,
How do I create this strand using the io_context of the socket in boost 1.70.
asio::ip::tcp::socket socket; asio::io_context::strand strand( socket.get_executor().context() );
Thanks Tom _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org https://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
Damian Jarek
-
Fiver Dev