Christopher Kohlhoff
df94a3d0a2
Regenerate documentation.
2018-04-01 21:52:18 +10:00
Christopher Kohlhoff
d23cb643d9
Fix cross-compilation support.
2018-04-01 21:45:55 +10:00
Christopher Kohlhoff
50b66f0fb3
Check for gthreads before enabling std::future with g++.
2018-04-01 21:37:04 +10:00
Christopher Kohlhoff
b61b555157
Need namespace std for sprintf.
2018-04-01 15:49:46 +10:00
Christopher Kohlhoff
158950ed64
Fix storage of decayed function and handler in spawn()-ed coroutine.
2018-04-01 15:28:38 +10:00
Christopher Kohlhoff
e125aa7538
Fixed compilation on Android NDK15+.
2018-04-01 15:28:38 +10:00
Christopher Kohlhoff
da95f47d6b
Fix basic_yield_context support for completion signatures with reference parameters.
2018-04-01 15:28:38 +10:00
Christopher Kohlhoff
b10b5f531b
Explicitly ignore result of iterator dereference.
2018-04-01 15:28:38 +10:00
Christopher Kohlhoff
0ffe337bda
Distinguish legacy completion handlers (which must be CopyConstructible).
2018-04-01 15:28:38 +10:00
Christopher Kohlhoff
ec5c24e3cd
Decay the DynamicBuffer type used in enable_if tests.
2018-04-01 15:28:38 +10:00
Christopher Kohlhoff
b5b17a67f0
Use std::string_view for C++17 or later, and std::experimental::string_view for C++14.
...
Define the preprocessor macro BOOST_ASIO_DISABLE_STD_STRING_VIEW to
force the use of std::experimental::string_view (assuming it is
available) when compiling in C++17 mode.
2018-04-01 15:28:38 +10:00
Christopher Kohlhoff
69a6480fc0
Use std::invoke_result with recent MSVC.
2018-04-01 15:28:38 +10:00
Christopher Kohlhoff
33d4704420
Make add_certificate_authority process multiple certificates in a bundle.
2018-04-01 15:28:38 +10:00
Christopher Kohlhoff
bbc5abf228
Don't call SSL_COMP_free_compression_methods if SSL_OP_NO_COMPRESSION is defined.
2018-04-01 15:28:38 +10:00
Christopher Kohlhoff
c112385412
Fix typo in detail::consuming_buffers specialisation.
2018-04-01 15:28:38 +10:00
Christopher Kohlhoff
4e5cdbf580
Fix basic_resolver_results::value_type typedef.
2018-04-01 15:28:38 +10:00
Christopher Kohlhoff
a224cbfa7b
Add missing move in ssl asynchronous operation.
2018-04-01 15:28:38 +10:00
Christopher Kohlhoff
3ff065118d
Fix includes in some cpp11 examples.
2018-04-01 15:28:38 +10:00
Christopher Kohlhoff
61e0ad085d
Fix async_result when used with handler_type.
2018-04-01 15:28:38 +10:00
Christopher Kohlhoff
9660e81957
Correct prepare_memfn_helper test.
...
Fix prepare_memfn_helper test to use intended member function
'prepare' rather than 'data' copied by mistake from previous check.
2018-04-01 15:28:38 +10:00
Christopher Kohlhoff
69d54db71f
Update examples to use chrono rather than Boost.Date_Time.
...
N.B. The Windows-specific tick_count_timer example has been removed as
it has been superseded by timers based on the standard steady_clock.
It's also not clear how to map a wrapping time source to the standard
chrono concepts.
2018-04-01 15:28:38 +10:00
Christopher Kohlhoff
5672713c90
Change socket iostreams to use chrono by default.
...
Define BOOST_ASIO_USE_BOOST_DATE_TIME_FOR_SOCKET_IOSTREAM to enable the
old Boost.Date_Time interface in basic_socket_streambuf and
basic_socket_iostream.
2018-04-01 15:28:37 +10:00
Christopher Kohlhoff
b5bce45b80
Fix unit tests to compile when BOOST_ASIO_NO_DEPRECATED is defined.
2018-04-01 09:54:01 +10:00
Christopher Kohlhoff
5a9af00480
Update timeout examples to use latest features.
...
* Use asio::steady_timer rather than asio::deadline_timer.
* Use asio::dynamic_buffer rather than asio::streambuf.
* Use timed asio::io_context::run_for() function for blocking clients.
* Add example showing a custom completion token for blocking with timeouts.
2018-04-01 08:42:42 +10:00
Christopher Kohlhoff
c30ed33c5e
Ignore operations posted to a strand during shutdown.
2018-03-12 22:32:35 +11:00
Christopher Kohlhoff
dbccc3beea
Fix redirect_error to work with non-const error_codes.
2018-03-12 22:25:17 +11:00
Christopher Kohlhoff
1b61364239
Add missing include of <sys/timerfd.h>.
2018-03-09 20:59:09 +11:00
Christopher Kohlhoff
c5da00630b
Clean up some experimental::co_spawn examples.
2018-03-09 20:58:42 +11:00
Christopher Kohlhoff
30b047b1e6
Ensure all coroutine layers are correctly attached to the 'stack'.
2018-03-09 20:57:53 +11:00
Christopher Kohlhoff
9093bef944
Add interim revision history.
2018-03-07 17:37:50 +11:00
Christopher Kohlhoff
41ef7c48df
Version bump.
2018-03-07 17:30:08 +11:00
Christopher Kohlhoff
77714ac82b
Add some more experimental::co_spawn examples.
2018-03-07 17:29:34 +11:00
Christopher Kohlhoff
95129f34ca
Fix spurious resumption.
2018-03-06 22:19:51 +11:00
Christopher Kohlhoff
9b45abcbff
Restrict the types that may be awaited.
2018-03-06 07:32:47 +11:00
Christopher Kohlhoff
97b11c49b7
Fix MSVC compile error.
2018-03-06 07:30:44 +11:00
Christopher Kohlhoff
f7222d0866
Fix namespace qualification issues.
2018-03-05 23:00:10 +11:00
Christopher Kohlhoff
37d49a4f68
Allow the awaitable to be stored and co_await applied to it later.
2018-03-05 22:50:26 +11:00
Christopher Kohlhoff
9cb2eba353
Use memory recycling for awaitees.
2018-03-05 22:48:22 +11:00
Christopher Kohlhoff
a67dd90708
Regenerate documentation.
2018-03-04 23:13:03 +11:00
Christopher Kohlhoff
4d7a656b66
Add experimental features to documentation.
2018-03-04 23:09:04 +11:00
Christopher Kohlhoff
c989109489
Fix up make_work_guard ambiguity.
2018-03-04 23:09:04 +11:00
Christopher Kohlhoff
e3226bf6e0
Add experimental::co_spawn examples.
2018-03-04 23:09:04 +11:00
Christopher Kohlhoff
deb02f7a69
Add convenience header for experimental features.
2018-03-04 23:09:04 +11:00
Christopher Kohlhoff
b30dfe8224
Add new experimental::co_spawn function.
2018-03-04 23:09:04 +11:00
Christopher Kohlhoff
142222c0e6
Add new experimental::redirect_error completion token type.
2018-03-04 22:06:55 +11:00
Christopher Kohlhoff
169d1d8cef
Add new experimental::detached_t completion token type.
2018-03-04 22:06:12 +11:00
Christopher Kohlhoff
a589d7344a
Add missing const qualification to acceptor's get_option members.
2018-03-04 22:02:27 +11:00
Christopher Kohlhoff
69c5b2e31e
Work around a mysterious parsing error that occurs with some versions of gcc.
2018-03-04 22:00:17 +11:00
Christopher Kohlhoff
886839cf55
Update copyright notices.
2018-03-04 21:59:30 +11:00
Christopher Kohlhoff
80944b1065
Update tutorial text to use 'io_context'.
2018-03-04 21:57:26 +11:00