[prev in list] [next in list] [prev in thread] [next in thread] 

List:       boost
Subject:    [boost] [ASIO] Need help reading the documentation
From:       Andrzej Krzemienski via Boost <boost () lists ! boost ! org>
Date:       2021-12-31 0:21:39
Message-ID: CAOenAXhe4yZuf75P_zdeXanSHMBnbz2d8EkwEB4K7h_VGcVXAw () mail ! gmail ! com
[Download RAW message or body]

Hi Everyone,
I need some help in reading the ASIO docs.
I am looking at the following example from the docs
https://www.boost.org/doc/libs/1_78_0/doc/html/boost_asio/example/cpp17/coroutines_ts/echo_server.cpp


It calls one of the overloads of async_write in line

co_await async_write(socket, boost::asio::buffer(data, n), use_awaitable);

The reference section lists eight overloads:
https://www.boost.org/doc/libs/1_78_0/doc/html/boost_asio/reference/async_write.html

But it is still impossible for me to figure out which one it is.

`use_awaitable` is documented as "completion token" in
https://www.boost.org/doc/libs/1_78_0/doc/html/boost_asio/reference/use_awaitable.html


There is some mention of completion token at
https://www.boost.org/doc/libs/1_78_0/doc/html/boost_asio/reference/asynchronous_opera \
tions.html#boost_asio.reference.asynchronous_operations.default_completion_tokens

So I would expect the name `CompletionToken` to appear in the documentation
of `async_write`. Am I missing something?

Regards,
&rzej;

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic