Christopher Kohlhoff
1eaa59ea2a
gcc 4.7 is the minimum version required for std::allocator_traits.
2017-12-05 07:38:14 +11:00
Christopher Kohlhoff
df2abf35da
Ensure that use_future<std::allocator<void>> is always constexpr default-constructible.
2017-12-04 09:08:25 +11:00
Christopher Kohlhoff
4883dcd6c7
Add missing variadic template emulation in use_future.
2017-12-03 23:32:35 +11:00
Christopher Kohlhoff
435f47e8e3
Disable buffer debugging for older MSVC, as it triggers compiler misbehaviour.
2017-12-03 21:56:50 +11:00
Christopher Kohlhoff
619cea4356
Add check for _DEFAULT_SOURCE in addition to _BSD_SOURCE.
2017-12-03 21:53:33 +11:00
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