Commit Graph

2203 Commits

Author SHA1 Message Date
Christopher Kohlhoff
3cb990c30b Add wait()/async_wait() operations to sockets and descriptors.
These operations support reactor-style operations. The null_buffers
class is now deprecated.
2014-10-02 23:51:35 +10:00
Christopher Kohlhoff
418695e7c7 Fix warnings reported by VS2013. 2014-10-02 17:42:34 +10:00
Christopher Kohlhoff
63737cc784 Explicitly use WSASocketW, as WSASocketA has been deprecated. 2014-10-02 17:24:03 +10:00
Christopher Kohlhoff
d25fa4e5dd Enable move-only handlers.
All async operations and executor operations support move-only
handlers. However, the io_service::post(), io_service::dispatch(),
io_service::strand::post() and io_service::strand::dispatch() functions
still require copyable handlers.
2014-10-02 16:37:55 +10:00
Christopher Kohlhoff
74e12e51ba Update basic_waitable_timer to proposed interface. 2014-10-02 16:37:54 +10:00
Christopher Kohlhoff
b4bdfd195d New executors framework. 2014-10-02 16:37:54 +10:00
Christopher Kohlhoff
4b7913379f Add io_service::restart() and deprecate io_service::reset(). 2014-10-02 11:18:07 +10:00
Christopher Kohlhoff
5126a89879 Remove previously deprecated functions and classes. 2014-10-02 10:27:16 +10:00
Christopher Kohlhoff
581fe68629 asio version 1.10.4 released 2014-10-02 10:16:06 +10:00
Christopher Kohlhoff
2e4f11b548 Revision history. 2014-10-02 10:07:41 +10:00
Christopher Kohlhoff
b53f70a2a3 Unit test workaround for AIX. 2014-07-26 19:47:48 +10:00
Christopher Kohlhoff
3389cb9d79 Avoid using newly-deprecated Winsock functions. 2014-07-26 18:05:26 +10:00
Christopher Kohlhoff
ee9468429f Fix shadow variable warning. 2014-07-26 17:06:21 +10:00
Christopher Kohlhoff
f475f33732 Don't use EV_CLEAR when registering interrupter.
Fixes copy/paste error introduced in 3f473548a7.
2014-07-26 16:45:14 +10:00
Christopher Kohlhoff
00cdf67265 asio version 1.10.3 released 2014-07-02 17:24:52 +10:00
Christopher Kohlhoff
3bb2b927ac Revision history. 2014-07-02 16:39:35 +10:00
Christopher Kohlhoff
70c158cbec The intel compiler doesn't provide the SSE2 intrinsics. 2014-06-29 20:40:52 +10:00
Christopher Kohlhoff
d5c93e2533 Revert "Fix detection of Windows Runtime."
This reverts commit f1818afc93.
2014-06-28 22:33:49 +10:00
Christopher Kohlhoff
842f1c5df7 Use SSE2 intrinsics to allow the Cray compiler to work. 2014-06-28 21:44:40 +10:00
Christopher Kohlhoff
f1818afc93 Fix detection of Windows Runtime. 2014-06-28 21:27:50 +10:00
Christopher Kohlhoff
4838a895ff Work around gcc problem to do with anonymous enums. 2014-06-28 21:19:57 +10:00
Christopher Kohlhoff
fc8d380d57 Return bytes transferred when ReadFile fails with ERROR_MORE_DATA.
Reverted the previous change to ignore ERROR_MORE_DATA. Instead,
the error will propagated as with any other (i.e. in an error_code
or thrown as a system_error). For code that needs to handle partial
messages, the error_code overload should be used.
2014-06-28 21:07:07 +10:00
Christopher Kohlhoff
c29914eb54 Fix off-by-one error in signal number check. 2014-06-28 20:53:58 +10:00
Christopher Kohlhoff
db136dfb17 Use VerifyVersionInfo rather than GetVersionEx.
GetVersionEx has been deprecated.
2014-06-28 20:47:00 +10:00
Christopher Kohlhoff
c0d6ba03c8 Don't assume SO_UPDATE_CONNECT_CONTEXT is defined. 2014-06-28 19:49:11 +10:00
Christopher Kohlhoff
8482b59726 asio version 1.10.2 released 2014-05-05 12:47:56 +10:00
Christopher Kohlhoff
415113cea9 Update release script to work with modular boost. 2014-05-05 12:40:03 +10:00
Christopher Kohlhoff
191b7fad45 Revision history. 2014-05-05 12:02:16 +10:00
Christopher Kohlhoff
8156ec105c Defend against min/max macros. 2014-05-05 11:28:31 +10:00
Christopher Kohlhoff
99c5f714e1 Remove tab character. 2014-05-05 11:22:05 +10:00
Christopher Kohlhoff
cb52034811 Use link-local multicast on other BSDs too. 2014-05-04 15:15:31 +10:00
Christopher Kohlhoff
b6a38573de Use FormatMessageW when targeting WinRT. 2014-05-04 14:40:09 +10:00
Christopher Kohlhoff
32751f4efc One more event::signal() member to put back. 2014-05-04 10:54:55 +10:00
Christopher Kohlhoff
a3ddbcfbe8 Put back the event::signal() member.
The asio::detail::event class seems to be being used by other projects,
so we'll keep the old function name to avoid unnecessary breakage.
2014-05-04 10:45:07 +10:00
Christopher Kohlhoff
aa5293a09f Move event #include to correct location. 2014-05-04 10:35:11 +10:00
Christopher Kohlhoff
2f6c67c266 Fix another sprintf warning in example. 2014-05-04 10:05:28 +10:00
Christopher Kohlhoff
2ba5df9dc7 Regenerate documentation. 2014-05-04 09:34:20 +10:00
Christopher Kohlhoff
b7383dc289 Clarify that buffer_copy does not support overlapping memory regions.
Fixes boost trac ticket #8295.
2014-05-04 09:16:51 +10:00
Christopher Kohlhoff
a398c855c3 Don't run the compile-time buffer test.
Fixes boost trac ticket #8295.
2014-05-04 09:04:46 +10:00
Christopher Kohlhoff
8c37a7c20b Use link-local multicast on Mac OS. 2014-05-04 08:57:50 +10:00
Christopher Kohlhoff
d3aa157a71 Support stringified scope ids for link-local multicast. 2014-05-04 08:57:11 +10:00
Christopher Kohlhoff
0d78ba574c Use scope id as default IPv6 multicast interface. 2014-05-04 08:55:08 +10:00
Christopher Kohlhoff
9d0b7d146d Avoid waking all threads when only one is required. 2014-05-03 14:53:01 +10:00
Christopher Kohlhoff
e96a7bbdc1 Use a single condition variable per io_service.
This change fixes a potential race condition when using run_one() from
multiple threads. It also paves the way for the future addition of
timed io_service::run() overloads.
2014-05-03 12:51:27 +10:00
Christopher Kohlhoff
41e72662e1 Add new header file to makefile. 2014-05-03 12:23:37 +10:00
Christopher Kohlhoff
46ae8fab41 Remove unused data member. 2014-05-03 12:15:14 +10:00
Christopher Kohlhoff
9e0137bb3d Fix sprintf format warning in example. 2014-05-03 12:14:06 +10:00
Christopher Kohlhoff
9c7424d9be Fix unused argument warning. 2014-05-03 12:10:24 +10:00
Christopher Kohlhoff
093eee0ddf Update boostify.pl to match modular boost layout. 2014-05-03 10:45:11 +10:00
Christopher Kohlhoff
ffead2ce14 Fix long line. 2014-05-03 09:14:16 +10:00