2
0
mirror of https://github.com/boostorg/asio.git synced 2026-02-02 08:22:08 +00:00
Commit Graph

705 Commits

Author SHA1 Message Date
Christopher Kohlhoff
a57cb2a7a6 Suppress recv truncation errors on Windows, to match POSIX behaviour. 2017-12-02 18:25:44 +11:00
Christopher Kohlhoff
cdd4a0cc81 Add documentation examples of using asio::post to submit work. 2017-12-02 16:13:27 +11:00
Christopher Kohlhoff
c34e42c129 Don't directly include <chrono>, to keep header C++03-compatible. 2017-12-02 10:57:05 +11:00
Christopher Kohlhoff
077ed86047 Add headers for TS compatibility. 2017-12-02 10:23:24 +11:00
Christopher Kohlhoff
dfa54b4fc5 Suppress MSVC dynamic initialisation warning. 2017-12-02 10:09:55 +11:00
Christopher Kohlhoff
8a8157c36d Add waitable timer headers to convenience header. 2017-12-02 09:16:54 +11:00
Christopher Kohlhoff
7b996f66bd Increase number of buffers per operation for consuming_buffers.
Use a smaller number of buffers when the count can be determined at compile
time, e.g. for std::array or boost::array.
2017-12-02 09:03:14 +11:00
Christopher Kohlhoff
282de16d9b Increase threshold for small memory block recycling to 1KB. 2017-12-02 09:03:14 +11:00
Christopher Kohlhoff
2bfd4d24d0 Make sure asio/system_context.hpp is self-contained. 2017-12-02 09:03:14 +11:00
Christopher Kohlhoff
78df0763bf Don't call memcpy with length 0, to avoid passing null pointers. 2017-12-02 09:03:14 +11:00
Christopher Kohlhoff
f8a0469702 Fix description of std::getline's behaviour. 2017-12-02 09:03:14 +11:00
Christopher Kohlhoff
26d4af19c1 Fix clang narrowing warning. 2017-12-02 09:03:14 +11:00
Christopher Kohlhoff
646250076b Remove last remaining instance of auto_ptr. 2017-12-02 09:03:14 +11:00
Christopher Kohlhoff
edbe617864 Restore binder support for 3, 4 and 5 arguments. 2017-12-02 09:03:14 +11:00
Christopher Kohlhoff
aa0bf0a8b3 Reapply double delete fix, which was overwritten by Networking TS merge. 2017-12-02 09:03:14 +11:00
Christopher Kohlhoff
2e61c6f29f Add backward compatibility for the old ConnectCondition form. 2017-11-08 00:08:40 +11:00
Christopher Kohlhoff
875788fde3 Ensure make_network_vX error_code overload doesn't throw on invalid prefix length. 2017-11-08 00:08:40 +11:00
Christopher Kohlhoff
f15e842c79 Fix the rights for event objects on UWP. 2017-11-08 00:08:40 +11:00
Christopher Kohlhoff
53f052c9a0 Suppress implicit fallthrough warning on newer gcc. 2017-11-08 00:08:40 +11:00
Christopher Kohlhoff
bfa3e0373e Fix clang version detection for suppression of unused typedef warning. 2017-11-08 00:08:40 +11:00
Christopher Kohlhoff
a778425068 Fix compile errors in some asio::connect overloads. 2017-11-08 00:08:40 +11:00
Christopher Kohlhoff
d484b66453 Bump minimum MSVC version required for C++11 allocators. 2017-10-25 07:58:21 +11:00
Christopher Kohlhoff
bfe7a04616 Fix compile warning under Emscripten. 2017-10-25 07:57:45 +11:00
Christopher Kohlhoff
59395d663a Use proper SSL_version() function so that asio can build with BoringSSL. 2017-10-25 07:57:14 +11:00
Christopher Kohlhoff
b60e92b13e Initial merge of Networking TS compatibility.
Merged from chriskohlhoff/asio master branch as of commit
4a4d28b0d24c53236e229bd1b5f378c9964b1ebb.
2017-10-23 21:48:43 +11:00
Christopher Kohlhoff
b002097359 Previous fix introduced a leak, use a better approach. 2017-08-13 07:19:28 +10:00
Christopher Kohlhoff
c8d628ad8a Fix double delete issue introduced by 3541ec2eb9. 2017-08-13 00:56:54 +10:00
Christopher Kohlhoff
c88c5f7e1c Version bump. 2017-08-01 22:31:49 +10:00
Christopher Kohlhoff
de42877700 Require gcc >= 4.7 to use standard atomics. 2017-07-31 18:51:14 +10:00
Christopher Kohlhoff
cdae3dd6b4 Don't use auto_ptr. 2017-07-31 18:51:14 +10:00
Christopher Kohlhoff
25b6042644 Use deregister_internal_descriptor in signal_set_service. 2017-07-31 18:51:14 +10:00
Christopher Kohlhoff
38508353af Make epoll_reactor resistant to events with duplicate user data. 2017-07-31 18:51:14 +10:00
Christopher Kohlhoff
3541ec2eb9 Don't free the reactor's per-descriptor state until after close. 2017-07-31 18:51:14 +10:00
Christopher Kohlhoff
4d1b169964 Enable newer language features for recent MSVC versions. 2017-07-31 18:51:14 +10:00
Christopher Kohlhoff
3b8a8d6636 is_continuation misplaced in reactive socket service. 2017-07-31 18:51:14 +10:00
Christopher Kohlhoff
84572fb9be Use poll.h rather than sys/poll.h if possible. 2017-07-31 18:51:14 +10:00
Christopher Kohlhoff
22d69e570d Fix MSVC Intellisense detection. 2017-07-31 18:51:14 +10:00
Christopher Kohlhoff
3a2e196893 Disable __thread keyword extension for android+x86+clang. 2017-07-31 18:51:14 +10:00
Christopher Kohlhoff
3a73a43f62 Version bump. 2017-03-08 06:49:35 +11:00
Christopher Kohlhoff
9bfe806fc1 Ensure winsock2.h is included before windows.h. 2017-03-05 23:00:10 +11:00
Christopher Kohlhoff
991f613b95 Eliminate new clang comma warning. 2017-03-05 22:59:39 +11:00
Christopher Kohlhoff
2b6230aef8 Make sure asio/ssl/error.hpp is self-contained. 2017-03-05 22:58:18 +11:00
Christopher Kohlhoff
fba6c4ccbd Add limited support for regular file descriptors.
The epoll_reactor now supports the use of regular file descriptors with
posix::stream_descriptor, provided the I/O operations on them never fail
with EAGAIN or EWOULDBLOCK. If the descriptor cannot be added to the
epoll set using epoll_ctl, and errno is EPERM (indicating an unsupported
descriptor type), then no error condition is raised. Instead, any
operation which would require a trip through the reactor will fail.
2017-03-05 22:56:48 +11:00
Christopher Kohlhoff
49aa5e1e6c In c++11 or later, use allocator_traits to rebind allocators. 2017-03-05 22:55:54 +11:00
Christopher Kohlhoff
8e835cccd1 Fix error when OpenSSL compression is disabled at compile time. 2017-03-05 22:54:28 +11:00
Christopher Kohlhoff
16e880c667 Update mingw mutex initialisation to match non-mingw version. 2017-03-05 22:53:59 +11:00
Christopher Kohlhoff
d76c1f0533 Make SSL/TLS version handling more consistent across OpenSSL versions.
This adds new enums context_base::tls, context_base::tls_client and
context_base::tls_server. These allow connections to use any supported
TLS version. (N.B. the deprecated version SSLv3 is explicitly disabled
if you use these values.)
2017-03-05 22:53:05 +11:00
Christopher Kohlhoff
9feee12ac2 Avoid double construction in converting move-constructors. 2017-03-05 22:52:07 +11:00
Christopher Kohlhoff
4645a7c351 Fix compilation with OpenSSL 1.1 API
With OPENSSL_API_COMPAT=0x10100000L, SSL_library_init, SSL_load_error_strings, and OpenSSL_add_all_algorithms are removed.
With OPENSSL_API_COMPAT=0x10000000L, these are function-style macros mapping to OPENSSL_init_ssl, which is called automatically anyway.

References:
https://www.openssl.org/docs/man1.1.0/ssl/OPENSSL_init_ssl.html
https://www.openssl.org/docs/man1.1.0/crypto/OPENSSL_init_crypto.html

(from Marcel Raad)
2017-03-05 22:50:36 +11:00
Christopher Kohlhoff
fdec9d1d8f Suppress some spurious unused variable warnings. 2017-03-05 22:49:54 +11:00