2
0
mirror of https://github.com/boostorg/asio.git synced 2026-02-26 14:52:09 +00:00

Add missing C++14 examples.

This commit is contained in:
Christopher Kohlhoff
2021-08-04 20:32:12 +10:00
parent 481a1820a8
commit 3a585b615e
4 changed files with 188 additions and 1 deletions

View File

@@ -34,7 +34,9 @@ local example-names = cpp03/allocation cpp03/buffers cpp03/chat cpp03/echo
cpp11/chat cpp11/echo cpp11/executors cpp11/fork cpp11/futures
cpp11/handler_tracking cpp11/http/server cpp11/invocation cpp11/local
cpp11/multicast cpp11/nonblocking cpp11/operations cpp11/socks4 cpp11/ssl
cpp11/timeouts cpp11/timers cpp11/spawn cpp14/operations cpp17/coroutines_ts ;
cpp11/timeouts cpp11/timers cpp11/spawn cpp14/deferred cpp14/echo
cpp14/executors cpp14/iostreams cpp14/operations cpp14/parallel_group
cpp17/coroutines_ts ;
for local l in $(example-names)
{

View File

@@ -527,6 +527,55 @@ Examples showing how to use UNIX domain (local) sockets.
[section:cpp14_examples C++14 Examples]
[heading Deferred]
Examples showing how to use the [link boost_asio.reference.experimental__deferred
`experimental::deferred`] completion token.
* [@boost_asio/example/cpp14/deferred/deferred_1.cpp]
* [@boost_asio/example/cpp14/deferred/deferred_2.cpp]
* [@boost_asio/example/cpp14/deferred/deferred_3.cpp]
* [@boost_asio/example/cpp14/deferred/deferred_4.cpp]
* [@boost_asio/example/cpp14/deferred/deferred_5.cpp]
* [@boost_asio/example/cpp14/deferred/deferred_6.cpp]
* [@boost_asio/example/cpp14/deferred/deferred_7.cpp]
[heading Echo]
A collection of simple clients and servers, showing the use of both synchronous
and asynchronous operations.
* [@boost_asio/example/cpp14/echo/async_tcp_echo_server.cpp]
* [@boost_asio/example/cpp14/echo/async_udp_echo_server.cpp]
* [@boost_asio/example/cpp14/echo/blocking_tcp_echo_client.cpp]
* [@boost_asio/example/cpp14/echo/blocking_tcp_echo_server.cpp]
* [@boost_asio/example/cpp14/echo/blocking_udp_echo_client.cpp]
* [@boost_asio/example/cpp14/echo/blocking_udp_echo_server.cpp]
[heading Executors]
Examples showing how to use the executor-related facilities.
* [@boost_asio/example/cpp14/executors/actor.cpp]
* [@boost_asio/example/cpp14/executors/async_1.cpp]
* [@boost_asio/example/cpp14/executors/async_2.cpp]
* [@boost_asio/example/cpp14/executors/bank_account_1.cpp]
* [@boost_asio/example/cpp14/executors/bank_account_2.cpp]
* [@boost_asio/example/cpp14/executors/fork_join.cpp]
* [@boost_asio/example/cpp14/executors/pipeline.cpp]
* [@boost_asio/example/cpp14/executors/priority_scheduler.cpp]
[heading Iostreams]
Two examples showing how to use [link boost_asio.reference.ip__tcp.iostream
ip::tcp::iostream].
* [@boost_asio/example/cpp14/iostreams/http_client.cpp]
[heading Operations]
Examples showing how to implement composed asynchronous operations as reusable library functions.
@@ -541,6 +590,20 @@ Examples showing how to implement composed asynchronous operations as reusable l
* [@boost_asio/example/cpp14/operations/composed_8.cpp]
[heading Parallel Groups]
Examples showing how to use the [link
boost_asio.reference.experimental__make_parallel_group
`experimental::make_parallel_group`] operation.
* [@boost_asio/example/cpp14/parallel_group/parallel_sort.cpp]
* [@boost_asio/example/cpp14/parallel_group/wait_for_all.cpp]
* [@boost_asio/example/cpp14/parallel_group/wait_for_one.cpp]
* [@boost_asio/example/cpp14/parallel_group/wait_for_one_error.cpp]
* [@boost_asio/example/cpp14/parallel_group/wait_for_one_success.cpp]
[endsect]