Christopher Kohlhoff
4b25ab9fe1
Note that I/O object constructors are passed executors or execution contexts.
2022-04-06 23:27:35 +10:00
Christopher Kohlhoff
e618fd4353
Work around code formatting problem in doc generation.
2022-04-06 23:24:39 +10:00
Christopher Kohlhoff
5cda4165b6
Add completion token cross-references to tutorial.
2022-04-06 23:21:35 +10:00
Christopher Kohlhoff
ff58013a23
Update copyright notices.
2022-03-02 21:23:52 +11:00
Christopher Kohlhoff
723982b867
Update copyright notices.
2021-02-25 08:29:05 +11:00
Christopher Kohlhoff
18deb3dc5f
Document that there are multiple types of I/O execution context.
2020-08-05 22:54:41 +10:00
Christopher Kohlhoff
26213d8a00
Another tutorial fix to reflect current resolver API.
2020-06-22 20:58:35 +10:00
Christopher Kohlhoff
c9dadbd239
Update tutorial text to use current resolver API.
2020-04-22 18:38:07 +10:00
Christopher Kohlhoff
c2795229e9
Remove unused local variable.
2020-04-08 18:12:32 +10:00
Christopher Kohlhoff
2094aa8ca4
Use boost.bind placeholders from boost::placeholders namespace.
2020-04-08 18:05:13 +10:00
Christopher Kohlhoff
4b552cfd5b
Update copyright notices.
2020-04-07 11:15:42 +10:00
chris.kohlhoff
db788cab40
Fix doxygen generation in tutorial.
2019-07-09 19:20:10 +10:00
Christopher Kohlhoff
9eb153718d
Add a make_strand function.
...
The make_strand function creates a strand with a deduced Executor template
argument.
2019-03-02 16:02:42 +11:00
Christopher Kohlhoff
ae04c26689
Update copyright notices.
2019-02-17 19:59:39 -10:00
Christopher Kohlhoff
59066d80b2
Add custom I/O executor support to I/O objects.
...
All I/O objects now have an additional Executor template parameter. This
template parameter defaults to the asio::executor type (the polymorphic
executor wrapper) but can be used to specify a user-defined executor
type.
I/O objects' constructors and functions that previously took an
asio::io_context& now accept either an Executor or a reference to a
concrete ExecutionContext (such as asio::io_context or
asio::thread_pool).
One potential point of breakage in existing user code is when reusing an
I/O object's io_context for constructing another I/O object, as in:
asio::steady_timer my_timer(my_socket.get_executor().context());
To fix this, either construct the second I/O object using the first I/O
object's executor:
asio::steady_timer my_timer(my_socket.get_executor());
or otherwise explicitly pass the io_context:
asio::steady_timer my_timer(my_io_context);
2019-02-17 19:59:29 -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
d23cb643d9
Fix cross-compilation support.
2018-04-01 21:45:55 +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
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
Christopher Kohlhoff
a57cb2a7a6
Suppress recv truncation errors on Windows, to match POSIX behaviour.
2017-12-02 18:25:44 +11:00
Christopher Kohlhoff
094354f343
Remove old Jamfiles.
2017-12-02 09:51:28 +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
f7fa336c91
Update copyright notices.
2017-03-05 22:43:47 +11:00
Christopher Kohlhoff
36eef63a9c
Update copyright notices.
2016-09-11 11:35:40 +10:00
Jessica Hamilton
df50982934
Haiku: link to libnetwork
2015-12-10 22:45:24 +11:00
Christopher Kohlhoff
41bf42b8da
Update copyright notices.
2015-03-20 00:14:19 +11:00
Christopher Kohlhoff
878b787fce
Use std::endl in tutorial to ensure output is flushed.
2015-03-19 23:49:25 +11:00
Christopher Kohlhoff
d109f120fa
Explicitly mark asio::strand as deprecated.
...
Use asio::io_service::strand instead.
2014-10-17 22:49:14 +11:00
Christopher Kohlhoff
28f690f504
Update copyright notices.
2014-05-03 09:25:39 +10:00
Christopher Kohlhoff
0e90106a30
Make develop identical to master.
2014-05-03 08:57:44 +10:00
Christopher Kohlhoff
95d16d75b7
Update copyright notices.
...
[SVN r84345]
2013-05-18 11:24:59 +00:00
Christopher Kohlhoff
4f1d36c7a1
Move existing examples into a C++03-specific directory, and add a new
...
directory for C++11-specific examples. A limited subset of the C++03
examples have been converted to their C++11 equivalents.
[SVN r84312]
2013-05-17 02:25:10 +00:00