2
0
mirror of https://github.com/boostorg/asio.git synced 2026-01-28 06:42:08 +00:00
Commit Graph

197 Commits

Author SHA1 Message Date
Christopher Kohlhoff
f7fa336c91 Update copyright notices. 2017-03-05 22:43:47 +11:00
Rene Rivera
d6d2c452f5 Switch to standalone docs for release.
This hopefully addresses formatting issues.
2017-01-21 08:05:38 -06:00
Rene Rivera
6ef8c1566c Add, and update, documentation build targets. 2016-10-07 23:03:40 -05:00
Christopher Kohlhoff
350f94e722 Revision history. 2016-09-19 07:33:03 +10:00
Christopher Kohlhoff
3ed131266c Regenerate documentation. 2016-09-16 08:27:01 +10:00
Christopher Kohlhoff
36eef63a9c Update copyright notices. 2016-09-11 11:35:40 +10:00
Daniel
629875892b Fix the build location for asio.
Boost build has changed so that documentation is built relative to the
Jamfile, rather than the current working directory. This broke the ASIO
documentation build, to fix it specify the location using the 'name'
parameter - which is a bit wonky, but it's what boost build looks for.
2016-05-29 13:04:16 +01:00
Christopher Kohlhoff
c0d667f36a Revision history. 2015-12-14 12:01:10 +11:00
Christopher Kohlhoff
6582b6966a Fix typo in comment. 2015-12-10 22:51:53 +11:00
Christopher Kohlhoff
ccb7292b2d Revision history. 2015-03-22 10:58:13 +11:00
Christopher Kohlhoff
181e5f6db2 Regenerate documentation. 2015-03-22 10:02:12 +11:00
Christopher Kohlhoff
41bf42b8da Update copyright notices. 2015-03-20 00:14:19 +11:00
Christopher Kohlhoff
ea2c024b32 Revision history. 2014-10-17 22:49:14 +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
fa5673da56 Specify additional headers that don't have a convenience header.
Fixes boost trac ticket #10567.
2014-10-16 19:23:58 +11:00
Christopher Kohlhoff
2ab8462f29 Unit test workaround for AIX. 2014-07-26 19:49:22 +10:00
Christopher Kohlhoff
b857c146c0 Revision history. 2014-07-26 19:27:51 +10:00
Christopher Kohlhoff
1f012a03eb Fix wording in revision history. 2014-06-30 14:12:43 +10:00
Christopher Kohlhoff
7f3a87c81a Revision history. 2014-06-30 14:02:40 +10:00
Christopher Kohlhoff
f769012dc3 Ignore generated html. 2014-05-05 11:48:23 +10:00
Christopher Kohlhoff
b66a114d89 Revision history. 2014-05-05 11:41:40 +10:00
Christopher Kohlhoff
ba9f99216f Regenerate documentation. 2014-05-04 10:06:45 +10:00
Christopher Kohlhoff
a6feafa553 Regenerate documentation. 2014-05-03 11:52:17 +10:00
Christopher Kohlhoff
28f690f504 Update copyright notices. 2014-05-03 09:25:39 +10:00
Christopher Kohlhoff
83ae6fa7cb Updated revision history.
[SVN r86468]
2013-10-26 22:49:17 +00:00
Christopher Kohlhoff
0d57ea2d16 Fix typos in spawn() documentation.
[SVN r86465]
2013-10-26 22:42:53 +00:00
Christopher Kohlhoff
0113c1831f Add a note to clarify that concurrent invocation is not guaranteed for handlers in different strands.
[SVN r86464]
2013-10-26 22:39:23 +00:00
Christopher Kohlhoff
40cba52d74 Fix dead links in documentation.
[SVN r86154]
2013-10-04 00:03:36 +00:00
Christopher Kohlhoff
8acd8eb341 Add WinRT implementation notes.
[SVN r86153]
2013-10-04 00:00:46 +00:00
Christopher Kohlhoff
f8f33ed29c Revision history.
[SVN r86092]
2013-09-30 22:37:40 +00:00
Daniel James
cf6b86a4c9 Fix copying C++11 allocation examples
[SVN r85823]
2013-09-22 10:32:36 +00:00
Christopher Kohlhoff
91fce6c711 Regenerate documentation.
[SVN r85801]
2013-09-20 12:10:45 +00:00
Christopher Kohlhoff
18f477583d Regenerate documentation.
[SVN r85765]
2013-09-17 22:32:13 +00:00
Christopher Kohlhoff
0bc20e40dd Fix link to refer to native_handle() rather than the deprecated native() function.
[SVN r85748]
2013-09-17 21:48:54 +00:00
Christopher Kohlhoff
8bc2679db6 Fix typo in serial ports overview.
[SVN r85742]
2013-09-17 21:40:19 +00:00
Christopher Kohlhoff
0923bc6904 Revision history.
[SVN r84880]
2013-06-22 13:02:21 +00:00
Christopher Kohlhoff
617ecf2598 Regenerate documentation.
[SVN r84879]
2013-06-22 12:58:50 +00:00
Christopher Kohlhoff
f97171acc9 Add documentation for new features.
[SVN r84529]
2013-05-27 12:17:19 +00:00
Christopher Kohlhoff
a05bbf3a53 Regenerate documentation.
[SVN r84494]
2013-05-25 13:03:48 +00:00
Christopher Kohlhoff
abd9cdb60f Add generic socket protocols and converting move constructors.
Four new protocol classes have been added:

- asio::generic::datagram_protocol
- asio::generic::raw_protocol
- asio::generic::seq_packet_protocol
- asio::generic::stream_protocol

These classes implement the Protocol type requirements, but allow the
user to specify the address family (e.g. AF_INET) and protocol type
(e.g. IPPROTO_TCP) at runtime.

A new endpoint class template, asio::generic::basic_endpoint, has been
added to support these new protocol classes. This endpoint can hold any
other endpoint type, provided its native representation fits into a
sockaddr_storage object.

When using C++11, it is now possible to perform move construction from a
socket (or acceptor) object to convert to the more generic protocol's
socket (or acceptor) type. If the protocol conversion is valid:

  Protocol1 p1 = ...;
  Protocol2 p2(p1);

then the corresponding socket conversion is allowed:

  Protocol1::socket socket1(io_service);
  ...
  Protocol2::socket socket2(std::move(socket1));

For example, one possible conversion is from a TCP socket to a generic
stream-oriented socket:

  asio::ip::tcp::socket socket1(io_service);
  ...
  asio::generic::stream_protocol::socket socket2(std::move(socket1));

The conversion is also available for move-assignment. Note that these
conversions are not limited to the newly added generic protocol classes.
User-defined protocols may take advantage of this feature by similarly
ensuring the conversion from Protocol1 to Protocol2 is valid, as above.

As a convenience, the socket acceptor's accept() and async_accept()
functions have been changed so that they can directly accept into a
different protocol's socket type, provided the protocol conversion is
valid. For example, the following is now possible:

  asio::ip::tcp::acceptor acceptor(io_service);
  ...
  asio::generic::stream_protocol::socket socket1(io_service);
  acceptor.accept(socket1);


[SVN r84363]
2013-05-19 04:55:11 +00:00
Christopher Kohlhoff
34f88cf707 Remove some trailing spaces and fix another copyright notice.
[SVN r84361]
2013-05-18 21:56:31 +00:00
Christopher Kohlhoff
280a7d55b3 Remove the stackless coroutine class and macros from the HTTP server 4
example, and instead make them a part of Asio's documented interface.


[SVN r84346]
2013-05-18 11:54:59 +00:00
Christopher Kohlhoff
95d16d75b7 Update copyright notices.
[SVN r84345]
2013-05-18 11:24:59 +00:00
Christopher Kohlhoff
1c9d4a1ac3 Support handshake with re-use of data already read from the wire.
Add new overloads of the SSL stream's handshake() and async_handshake()
functions, that accepts a ConstBufferSequence to be used as initial
input to the ssl engine for the handshake procedure.

Thanks go to Nick Jones <nick dot fa dot jones at gmail dot com>, on
whose work this commit is partially based.


[SVN r84319]
2013-05-17 10:52:08 +00:00
Christopher Kohlhoff
546362b425 Add the asio::use_future special value, which adds first-class support
for returning a C++11 std::future from an asynchronous operation's
initiating function.

To use asio::use_future, pass it to an asynchronous operation instead of
a normal completion handler. For example:

  std::future<std::size_t> length =
    my_socket.async_read_some(my_buffer, asio::use_future);

Where a completion handler signature has the form:

  void handler(error_code ec, result_type result);

the initiating function returns a std::future templated on result_type.
In the above example, this is std::size_t. If the asynchronous operation
fails, the error_code is converted into a system_error exception and
passed back to the caller through the future.

Where a completion handler signature has the form:

  void handler(error_code ec);

the initiating function returns std::future<void>. As above, an error
is passed back in the future as a system_error exception.


[SVN r84313]
2013-05-17 02:35:08 +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
Christopher Kohlhoff
be0221203a Add new traits classes, handler_type and async_result, that allow
the customisation of the return type of an initiating function.


[SVN r84308]
2013-05-16 23:26:04 +00:00
Christopher Kohlhoff
007bf03d0c Release notes.
[SVN r82553]
2013-01-20 01:46:48 +00:00
Christopher Kohlhoff
13353857a5 Regenerate documentation.
[SVN r82288]
2012-12-30 22:39:30 +00:00
Christopher Kohlhoff
d2679ef618 Revision history.
[SVN r79997]
2012-08-13 11:31:11 +00:00