Commit Graph

1359 Commits

Author SHA1 Message Date
Christopher Kohlhoff
0e02f7c51e Fix incorrect reference to 'io_context' in thread_pool documentation. 2018-11-05 23:08:01 +11:00
Christopher Kohlhoff
4d3833013a Fix MSVC version number for availability of std::invoke_result. 2018-11-05 23:07:28 +11:00
Christopher Kohlhoff
569cba5d47 Test language version using _MSVC_LANG rather than _HAS_CXX17. 2018-11-05 23:07:02 +11:00
Christopher Kohlhoff
5603b1f990 Update buffer sequence traits to test new requirements, if decltype is available. 2018-11-05 23:06:21 +11:00
Christopher Kohlhoff
cf0dab4026 Define buffer sequence traits after buffer_sequence_begin/end has been defined. 2018-11-05 23:05:40 +11:00
Christopher Kohlhoff
a9f264d76e Fix MSVC issue when building with exceptions disabled. 2018-11-05 23:04:39 +11:00
Christopher Kohlhoff
be95255430 Add options for TLS v1.3. 2018-11-05 23:03:56 +11:00
Christopher Kohlhoff
6cdd5782aa Fix typo in 'Streams, Short Reads and Short Writes' documentation section. 2018-11-05 23:03:16 +11:00
Christopher Kohlhoff
8cceba99e6 Prevent global objects from being created once per thread on Windows. 2018-11-05 23:00:35 +11:00
Christopher Kohlhoff
0104da0a41 Use heading elements to keep asynchronous requirements on one page. 2018-11-05 23:00:05 +11:00
Christopher Kohlhoff
ad8cc21d59 Fix crash when using size(), max_size() or empty() on default-constructed resolver results. 2018-11-05 22:58:47 +11:00
Christopher Kohlhoff
d9a0dec854 Move the return value in basic_resolver_results::begin() to avoid copying.
This is reported as a warning by recent Clang.
2018-11-05 22:58:05 +11:00
Christopher Kohlhoff
e382407610 Don't use BOOST_VERSION macro in standalone mode. 2018-11-05 22:57:46 +11:00
Christopher Kohlhoff
f14f1f044c ASIO_HAS_DECL_TYPE should be ASIO_HAS_DECLTYPE in is_buffer_sequence.hpp. 2018-11-05 22:56:17 +11:00
Christopher Kohlhoff
1e55098569 Enable move support for the Intel Compiler. 2018-11-05 22:50:39 +11:00
Christopher Kohlhoff
38cb197197 Do not double define has_string_view with clang-cl
Clang-cl identifies both as clang and as MSVC.
This resulted in defining BOOST_ASIO_HAS_STD_STRING_VIEW twice.
2018-11-05 22:49:53 +11:00
Christopher Kohlhoff
39346ddc3d Fix handler tracking operation name for io_context::executor_type::dispatch. 2018-11-05 22:48:31 +11:00
Christopher Kohlhoff
dd3a28c9fd Fix buffer overflow when parsing an address string with a 64-bit scope id. 2018-11-05 22:47:35 +11:00
Christopher Kohlhoff
25dc6780c2 Merge asio 1.12.1 from 'develop'. 2018-04-03 23:28:43 +10:00
Christopher Kohlhoff
fbe86d86b1 Updated revision history. 2018-04-03 22:55:21 +10:00
Christopher Kohlhoff
9941b40754 Add Coroutines TS overview and examples to documentation. 2018-04-03 22:55:21 +10:00
Christopher Kohlhoff
69091cc54f Fix incomplete addition of cross-compilation support. 2018-04-03 21:08:38 +10:00
Christopher Kohlhoff
d6e731e145 Add back accidentally deleted import of 'os'. 2018-04-03 19:43:07 +10:00
Christopher Kohlhoff
41fbd65fc7 Need to link boost.chrono in tests and C++03 examples. 2018-04-03 19:41:26 +10:00
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