UNPKG

boost-react-native-bundle

Version:

Boost library as in https://sourceforge.net/projects/boost/files/boost/1.57.0/

669 lines 114 kB
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <title>Revision History</title> <link rel="stylesheet" href="../../../doc/src/boostbook.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.78.1"> <link rel="home" href="../boost_asio.html" title="Boost.Asio"> <link rel="up" href="../boost_asio.html" title="Boost.Asio"> <link rel="prev" href="reference/is_error_code_enum_lt__ssl_errors__gt_/value.html" title="boost::system::is_error_code_enum&lt; boost::asio::error::ssl_errors &gt;::value"> <link rel="next" href="index.html" title=""> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <table cellpadding="2" width="100%"><tr> <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../boost.png"></td> <td align="center"><a href="../../../index.html">Home</a></td> <td align="center"><a href="../../../libs/libraries.htm">Libraries</a></td> <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> <td align="center"><a href="../../../more/index.htm">More</a></td> </tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="reference/is_error_code_enum_lt__ssl_errors__gt_/value.html"><img src="../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../boost_asio.html"><img src="../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../boost_asio.html"><img src="../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="index.html"><img src="../../../doc/src/images/next.png" alt="Next"></a> </div> <div class="section"> <div class="titlepage"><div><div><h2 class="title" style="clear: both"> <a name="boost_asio.history"></a><a class="link" href="history.html" title="Revision History">Revision History</a> </h2></div></div></div> <h4> <a name="boost_asio.history.h0"></a> <span class="phrase"><a name="boost_asio.history.asio_1_10_5___boost_1_57"></a></span><a class="link" href="history.html#boost_asio.history.asio_1_10_5___boost_1_57">Asio 1.10.5 / Boost 1.57</a> </h4> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"> Fixed the <code class="literal">kqueue</code> reactor so that it works on FreeBSD (<a href="https://svn.boost.org/trac/boost/ticket/10606" target="_top">#10606</a>). </li> <li class="listitem"> Fixed an issue in the <code class="literal">kqueue</code> reactor which resulted in spinning when using serial ports on Mac OS (<a href="https://svn.boost.org/trac/boost/ticket/10496" target="_top">#10496</a>). </li> <li class="listitem"> Fixed <code class="literal">kqueue</code> reactor support for read-only file descriptors (<a href="https://svn.boost.org/trac/boost/ticket/10367" target="_top">#10367</a>). </li> <li class="listitem"> Fixed a compile error when using the <code class="literal">/dev/poll</code> reactor (<a href="https://svn.boost.org/trac/boost/ticket/10350" target="_top">#10350</a>, <a href="https://svn.boost.org/trac/boost/ticket/10572" target="_top">#10572</a>). </li> <li class="listitem"> Changed the Windows backend to use <code class="computeroutput"><span class="identifier">WSASocketW</span></code>, as <code class="computeroutput"><span class="identifier">WSASocketA</span></code> has been deprecated (<a href="https://svn.boost.org/trac/boost/ticket/10534" target="_top">#10534</a>). </li> <li class="listitem"> Fixed some warnings reported by Visual C++ 2013 (<a href="https://svn.boost.org/trac/boost/ticket/10376" target="_top">#10376</a>). </li> <li class="listitem"> Fixed integer type used in the WinRT version of the byte-order conversion functions (<a href="https://svn.boost.org/trac/boost/ticket/10539" target="_top">#10539</a>). </li> <li class="listitem"> Changed documentation to indicate that <code class="computeroutput"><span class="identifier">use_future</span></code> and <code class="computeroutput"><span class="identifier">spawn</span><span class="special">()</span></code> are not made available when including the <code class="computeroutput"><span class="identifier">asio</span><span class="special">.</span><span class="identifier">hpp</span></code> convenience header (<a href="https://svn.boost.org/trac/boost/ticket/10567" target="_top">#10567</a>). </li> <li class="listitem"> Explicitly marked <code class="computeroutput"><span class="identifier">asio</span><span class="special">::</span><span class="identifier">strand</span></code> as deprecated. Use <code class="computeroutput"><span class="identifier">asio</span><span class="special">::</span><span class="identifier">io_service</span><span class="special">::</span><span class="identifier">strand</span></code> instead. </li> </ul></div> <h4> <a name="boost_asio.history.h1"></a> <span class="phrase"><a name="boost_asio.history.asio_1_10_4___boost_1_56"></a></span><a class="link" href="history.html#boost_asio.history.asio_1_10_4___boost_1_56">Asio 1.10.4 / Boost 1.56</a> </h4> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"> Stopped using certain Winsock functions that are marked as deprecated in the latest Visual C++ and Windows SDK. </li> <li class="listitem"> Fixed a shadow variable warning on Windows. </li> <li class="listitem"> Fixed a regression in the <code class="literal">kqueue</code> backend that was introduced in Asio 1.10.2. </li> <li class="listitem"> Added a workaround for building the unit tests with <code class="literal">gcc</code> on AIX. </li> </ul></div> <h4> <a name="boost_asio.history.h2"></a> <span class="phrase"><a name="boost_asio.history.asio_1_10_3"></a></span><a class="link" href="history.html#boost_asio.history.asio_1_10_3">Asio 1.10.3</a> </h4> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"> Worked around a <code class="literal">gcc</code> problem to do with anonymous enums (<a href="https://svn.boost.org/trac/boost/ticket/10042" target="_top">#10042</a>). </li> <li class="listitem"> Reverted the Windows <code class="computeroutput"><span class="identifier">HANDLE</span></code> backend change to ignore <code class="computeroutput"><span class="identifier">ERROR_MORE_DATA</span></code>. Instead, the error will be propagated as with any other (i.e. in an <code class="computeroutput"><span class="identifier">error_code</span></code> or thrown as a <code class="computeroutput"><span class="identifier">system_error</span></code>), and the number of bytes transferred will be returned. For code that needs to handle partial messages, the <code class="computeroutput"><span class="identifier">error_code</span></code> overload should be used (<a href="https://svn.boost.org/trac/boost/ticket/10034" target="_top">#10034</a>). </li> <li class="listitem"> Fixed an off-by-one error in the <code class="computeroutput"><span class="identifier">signal_set</span></code> implementation's signal number check (<a href="https://svn.boost.org/trac/boost/ticket/9324" target="_top">#9324</a>). </li> <li class="listitem"> Changed the Windows IOCP backend to not assume that <code class="computeroutput"><span class="identifier">SO_UPDATE_CONNECT_CONTEXT</span></code> is defined (<a href="https://svn.boost.org/trac/boost/ticket/10016" target="_top">#10016</a>). </li> <li class="listitem"> Fixed a Windows-specific issue, introduced in Asio 1.10.2, by using <code class="computeroutput"><span class="identifier">VerifyVersionInfo</span></code> rather than <code class="computeroutput"><span class="identifier">GetVersionEx</span></code>, as <code class="computeroutput"><span class="identifier">GetVersionEx</span></code> has been deprecated. </li> <li class="listitem"> Changed to use SSE2 intrinsics rather than inline assembly, to allow the Cray compiler to work. </li> </ul></div> <h4> <a name="boost_asio.history.h3"></a> <span class="phrase"><a name="boost_asio.history.asio_1_10_2"></a></span><a class="link" href="history.html#boost_asio.history.asio_1_10_2">Asio 1.10.2</a> </h4> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"> Fixed <code class="computeroutput"><span class="identifier">asio</span><span class="special">::</span><span class="identifier">spawn</span><span class="special">()</span></code> to work correctly with new Boost.Coroutine interface (<a href="https://svn.boost.org/trac/boost/ticket/9442" target="_top">#9442</a>, <a href="https://svn.boost.org/trac/boost/ticket/9928" target="_top">#9928</a>). </li> <li class="listitem"> Ensured that incomplete <code class="computeroutput"><span class="identifier">asio</span><span class="special">::</span><span class="identifier">spawn</span><span class="special">()</span></code> coroutines are correctly unwound when cleaned up by the <code class="computeroutput"><span class="identifier">io_service</span></code> destructor (<a href="https://svn.boost.org/trac/boost/ticket/9731" target="_top">#9731</a>). </li> <li class="listitem"> Fixed delegation of continuation hook for handlers produced by <code class="computeroutput"><span class="identifier">io_service</span><span class="special">::</span><span class="identifier">wrap</span><span class="special">()</span></code> and <code class="computeroutput"><span class="identifier">strand</span><span class="special">::</span><span class="identifier">wrap</span><span class="special">()</span></code> (<a href="https://svn.boost.org/trac/boost/ticket/9741" target="_top">#9741</a>). </li> <li class="listitem"> Changed the Windows I/O completion port backend to use <code class="computeroutput"><span class="identifier">ConnectEx</span></code>, if available, for connection-oriented IP sockets. </li> <li class="listitem"> Changed the <code class="computeroutput"><span class="identifier">io_service</span></code> backend for non-Windows (and non-IOCP Windows) platforms to use a single condition variable per <code class="computeroutput"><span class="identifier">io_service</span></code> instance. This addresses a potential race condition when <code class="computeroutput"><span class="identifier">run_one</span><span class="special">()</span></code> is used from multiple threads. </li> <li class="listitem"> Prevented integer overflow when computing timeouts based on some <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span></code> and <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">chrono</span></code> clocks (<a href="https://svn.boost.org/trac/boost/ticket/9662" target="_top">#9662</a>, <a href="https://svn.boost.org/trac/boost/ticket/9778" target="_top">#9778</a>). </li> <li class="listitem"> Made further changes to <code class="computeroutput"><span class="identifier">EV_CLEAR</span></code> handling in the kqueue backend, to address other cases where the <code class="computeroutput"><span class="identifier">close</span><span class="special">()</span></code> system call may hang on Mac OS X. </li> <li class="listitem"> Fixed infinite recursion in implementation of <code class="computeroutput"><span class="identifier">resolver_query_base</span><span class="special">::</span><span class="identifier">flags</span><span class="special">::</span><span class="keyword">operator</span><span class="special">~</span></code> (<a href="https://svn.boost.org/trac/boost/ticket/9548" target="_top">#9548</a>). </li> <li class="listitem"> Made the <code class="computeroutput"><span class="identifier">select</span></code> reactor more efficient on Windows for large numbers of sockets (<a href="https://svn.boost.org/trac/boost/ticket/9528" target="_top">#9528</a>). </li> <li class="listitem"> Fixed a Windows-specific type-aliasing issue reported by <code class="literal">gcc</code> (<a href="https://svn.boost.org/trac/boost/ticket/9550" target="_top">#9550</a>). </li> <li class="listitem"> Prevented execution of compile-time-only buffer test to avoid triggering an address sanitiser warning (<a href="https://svn.boost.org/trac/boost/ticket/8295" target="_top">#8295</a>). </li> <li class="listitem"> Disabled the <code class="computeroutput"><span class="identifier">GetQueuedCompletionStatus</span></code> timeout workaround on recent versions of Windows. </li> <li class="listitem"> Added support for string-based scope IDs when using link-local multicast addresses. </li> <li class="listitem"> Changed IPv6 multicast group join to use the address's scope ID as the interface, if an interface is not explicitly specified. </li> <li class="listitem"> Fixed multicast test failure on Mac OS X and the BSDs by using a link-local multicast address. </li> <li class="listitem"> Various minor documentation improvements (<a href="https://svn.boost.org/trac/boost/ticket/8295" target="_top">#8295</a>, <a href="https://svn.boost.org/trac/boost/ticket/9605" target="_top">#9605</a>, <a href="https://svn.boost.org/trac/boost/ticket/9771" target="_top">#9771</a>). </li> </ul></div> <h4> <a name="boost_asio.history.h4"></a> <span class="phrase"><a name="boost_asio.history.asio_1_10_1___boost_1_55"></a></span><a class="link" href="history.html#boost_asio.history.asio_1_10_1___boost_1_55">Asio 1.10.1 / Boost 1.55</a> </h4> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"> Implemented a limited port to Windows Runtime. This support requires that the language extensions be enabled. Due to the restricted facilities exposed by the Windows Runtime API, the port also comes with the following caveats: <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: circle; "> <li class="listitem"> The core facilities such as the <code class="computeroutput"><span class="identifier">io_service</span></code>, <code class="computeroutput"><span class="identifier">strand</span></code>, buffers, composed operations, timers, etc., should all work as normal. </li> <li class="listitem"> For sockets, only client-side TCP is supported. </li> <li class="listitem"> Explicit binding of a client-side TCP socket is not supported. </li> <li class="listitem"> The <code class="computeroutput"><span class="identifier">cancel</span><span class="special">()</span></code> function is not supported for sockets. Asynchronous operations may only be cancelled by closing the socket. </li> <li class="listitem"> Operations that use <code class="computeroutput"><span class="identifier">null_buffers</span></code> are not supported. </li> <li class="listitem"> Only <code class="computeroutput"><span class="identifier">tcp</span><span class="special">::</span><span class="identifier">no_delay</span></code> and <code class="computeroutput"><span class="identifier">socket_base</span><span class="special">::</span><span class="identifier">keep_alive</span></code> options are supported. </li> <li class="listitem"> Resolvers do not support service names, only numbers. I.e. you must use "80" rather than "http". </li> <li class="listitem"> Most resolver query flags have no effect. </li> </ul></div> </li> <li class="listitem"> Fixed a regression (introduced in Boost 1.54) where, on some platforms, errors from <code class="computeroutput"><span class="identifier">async_connect</span></code> were not correctly propagated through to the completion handler (<a href="https://svn.boost.org/trac/boost/ticket/8795" target="_top">#8795</a>). </li> <li class="listitem"> Fixed a Windows-specific regression (introduced in Boost 1.54) that occurs when multiple threads are running an <code class="computeroutput"><span class="identifier">io_service</span></code>. When the bug occurs, the result of an asynchronous operation (error and bytes tranferred) is incorrectly discarded and zero values used instead. For TCP sockets this results in spurious end-of-file notifications (<a href="https://svn.boost.org/trac/boost/ticket/8933" target="_top">#8933</a>). </li> <li class="listitem"> Fixed a bug in handler tracking, where it was not correctly printing out some handler IDs (<a href="https://svn.boost.org/trac/boost/ticket/8808" target="_top">#8808</a>). </li> <li class="listitem"> Fixed the comparison used to test for successful synchronous accept operations so that it works correctly with unsigned socket descriptors (<a href="https://svn.boost.org/trac/boost/ticket/8752" target="_top">#8752</a>). </li> <li class="listitem"> Ensured the signal number is correctly passed to the completion handler when starting an <code class="computeroutput"><span class="identifier">async_wait</span></code> on a signal that is already raised (<a href="https://svn.boost.org/trac/boost/ticket/8738" target="_top">#8738</a>). </li> <li class="listitem"> Suppressed a g++ 4.8+ warning about unused typedefs (<a href="https://svn.boost.org/trac/boost/ticket/8980" target="_top">#8980</a>). </li> <li class="listitem"> Enabled the move optimisation for handlers that use the default invocation hook (<a href="https://svn.boost.org/trac/boost/ticket/8624" target="_top">#8624</a>). </li> <li class="listitem"> Clarified that programs must not issue overlapping <code class="computeroutput"><span class="identifier">async_write_at</span></code> operations (<a href="https://svn.boost.org/trac/boost/ticket/8669" target="_top">#8669</a>). </li> <li class="listitem"> Changed the Windows <code class="computeroutput"><span class="identifier">HANDLE</span></code> backend to treat <code class="computeroutput"><span class="identifier">ERROR_MORE_DATA</span></code> as a non-fatal error when returned by <code class="computeroutput"><span class="identifier">GetOverlappedResult</span></code> for a synchronous read (<a href="https://svn.boost.org/trac/boost/ticket/8722" target="_top">#8722</a>). </li> <li class="listitem"> Visual C++ language extensions use <code class="computeroutput"><span class="identifier">generic</span></code> as a keyword. Added a workaround that renames the namespace to <code class="computeroutput"><span class="identifier">cpp_generic</span></code> when those language extensions are in effect. </li> <li class="listitem"> Fixed some asynchronous operations that missed out on getting <code class="computeroutput"><span class="identifier">async_result</span></code> support in Boost 1.54. In particular, the buffered stream templates have been updated so that they adhere to current handler patterns (<a href="https://svn.boost.org/trac/boost/ticket/9000" target="_top">#9000</a>, <a href="https://svn.boost.org/trac/boost/ticket/9001" target="_top">#9001</a>). </li> <li class="listitem"> Enabled move support for Microsoft Visual Studio 2012 (<a href="https://svn.boost.org/trac/boost/ticket/8959" target="_top">#8959</a>). </li> <li class="listitem"> Added <code class="computeroutput"><span class="identifier">use_future</span></code> support for Microsoft Visual Studio 2012. </li> <li class="listitem"> Removed a use of <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">min</span></code> in the Windows IOCP backend to avoid a dependency on the <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">algorithm</span><span class="special">&gt;</span></code> header (<a href="https://svn.boost.org/trac/boost/ticket/8758" target="_top">#8758</a>). </li> <li class="listitem"> Eliminated some unnecessary handler copies. </li> <li class="listitem"> Fixed support for older versions of OpenSSL that do not provide the <code class="computeroutput"><span class="identifier">SSL_CTX_clear_options</span></code> function (<a href="https://svn.boost.org/trac/boost/ticket/9273" target="_top">#9273</a>). </li> <li class="listitem"> Fixed various minor and cosmetic issues in code and documentation (including <a href="https://svn.boost.org/trac/boost/ticket/8347" target="_top">#8347</a>, <a href="https://svn.boost.org/trac/boost/ticket/8950" target="_top">#8950</a>, <a href="https://svn.boost.org/trac/boost/ticket/8953" target="_top">#8953</a>, <a href="https://svn.boost.org/trac/boost/ticket/8965" target="_top">#8965</a>, <a href="https://svn.boost.org/trac/boost/ticket/8997" target="_top">#8997</a>, <a href="https://svn.boost.org/trac/boost/ticket/9230" target="_top">#9230</a>). </li> </ul></div> <h4> <a name="boost_asio.history.h5"></a> <span class="phrase"><a name="boost_asio.history.asio_1_10_0___boost_1_54"></a></span><a class="link" href="history.html#boost_asio.history.asio_1_10_0___boost_1_54">Asio 1.10.0 / Boost 1.54</a> </h4> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"> Added new traits classes, <code class="computeroutput"><span class="identifier">handler_type</span></code> and <code class="computeroutput"><span class="identifier">async_result</span></code>, that allow the customisation of the return type of an initiating function. </li> <li class="listitem"> Added the <code class="computeroutput"><span class="identifier">asio</span><span class="special">::</span><span class="identifier">spawn</span><span class="special">()</span></code> function, a high-level wrapper for running stackful coroutines, based on the Boost.Coroutine library. The <code class="computeroutput"><span class="identifier">spawn</span><span class="special">()</span></code> function enables programs to implement asynchronous logic in a synchronous manner. For example: <code class="computeroutput"><span class="identifier">size_t</span> <span class="identifier">n</span> <span class="special">=</span> <span class="identifier">my_socket</span><span class="special">.</span><span class="identifier">async_read_some</span><span class="special">(</span><span class="identifier">my_buffer</span><span class="special">,</span> <span class="identifier">yield</span><span class="special">);</span></code>. For further information, see <a class="link" href="overview/core/spawn.html" title="Stackful Coroutines">Stackful Coroutines</a>. </li> <li class="listitem"> Added the <code class="computeroutput"><span class="identifier">asio</span><span class="special">::</span><span class="identifier">use_future</span></code> special value, which provides first-class support for returning a C++11 <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">future</span></code> from an asynchronous operation's initiating function. For example: <code class="computeroutput"><span class="identifier">future</span><span class="special">&lt;</span><span class="identifier">size_t</span><span class="special">&gt;</span> <span class="special">=</span> <span class="identifier">my_socket</span><span class="special">.</span><span class="identifier">async_read_some</span><span class="special">(</span><span class="identifier">my_buffer</span><span class="special">,</span> <span class="identifier">asio</span><span class="special">::</span><span class="identifier">use_future</span><span class="special">);</span></code>. For further information, see <a class="link" href="overview/cpp2011/futures.html" title="Futures">C++ 2011 Support - Futures</a>. </li> <li class="listitem"> Promoted the stackless coroutine class and macros to be part of Asio's documented interface, rather than part of the HTTP server 4 example. For further information, see <a class="link" href="overview/core/coroutine.html" title="Stackless Coroutines">Stackless Coroutines</a>. </li> <li class="listitem"> Added a new handler hook called <code class="computeroutput"><span class="identifier">asio_handler_is_continuation</span></code>. Asynchronous operations may represent a continuation of the asynchronous control flow associated with the current executing handler. The <code class="computeroutput"><span class="identifier">asio_handler_is_continuation</span></code> hook can be customised to return <code class="computeroutput"><span class="keyword">true</span></code> if this is the case, and Asio's implementation can use this knowledge to optimise scheduling of the new handler. To cover common cases, Asio customises the hook for strands, <code class="computeroutput"><span class="identifier">spawn</span><span class="special">()</span></code> and composed asynchronous operations. </li> <li class="listitem"> Added four new generic protocol classes, <code class="computeroutput"><span class="identifier">generic</span><span class="special">::</span><span class="identifier">datagram_protocol</span></code>, <code class="computeroutput"><span class="identifier">generic</span><span class="special">::</span><span class="identifier">raw_protocol</span></code>, <code class="computeroutput"><span class="identifier">generic</span><span class="special">::</span><span class="identifier">seq_packet_protocol</span></code> and <code class="computeroutput"><span class="identifier">generic</span><span class="special">::</span><span class="identifier">stream_protocol</span></code>, which implement the <code class="computeroutput"><span class="identifier">Protocol</span></code> type requirements, but allow the user to specify the address family (e.g. <code class="computeroutput"><span class="identifier">AF_INET</span></code>) and protocol type (e.g. <code class="computeroutput"><span class="identifier">IPPROTO_TCP</span></code>) at runtime. For further information, see <a class="link" href="overview/networking/other_protocols.html" title="Support for Other Protocols">Support for Other Protocols</a>. </li> <li class="listitem"> Added C++11 move constructors that allow the conversion of a socket (or acceptor) into a more generic type. For example, an <code class="computeroutput"><span class="identifier">ip</span><span class="special">::</span><span class="identifier">tcp</span><span class="special">::</span><span class="identifier">socket</span></code> can be converted into a <code class="computeroutput"><span class="identifier">generic</span><span class="special">::</span><span class="identifier">stream_protocol</span><span class="special">::</span><span class="identifier">socket</span></code> via move construction. For further information, see <a class="link" href="overview/networking/other_protocols.html" title="Support for Other Protocols">Support for Other Protocols</a>. </li> <li class="listitem"> Extended the <code class="computeroutput"><span class="identifier">basic_socket_acceptor</span><span class="special">&lt;&gt;</span></code>'s <code class="computeroutput"><span class="identifier">accept</span><span class="special">()</span></code> and <code class="computeroutput"><span class="identifier">async_accept</span><span class="special">()</span></code> functions to allow a new connection to be accepted directly into a socket of a more generic type. For example, an <code class="computeroutput"><span class="identifier">ip</span><span class="special">::</span><span class="identifier">tcp</span><span class="special">::</span><span class="identifier">acceptor</span></code> can be used to accept into a <code class="computeroutput"><span class="identifier">generic</span><span class="special">::</span><span class="identifier">stream_protocol</span><span class="special">::</span><span class="identifier">socket</span></code> object. For further information, see <a class="link" href="overview/networking/other_protocols.html" title="Support for Other Protocols">Support for Other Protocols</a>. </li> <li class="listitem"> Moved existing examples into a C++03-specific directory, and added a new directory for C++11-specific examples. A limited subset of the C++03 examples have been converted to their C++11 equivalents. </li> <li class="listitem"> Various SSL enhancements. Thanks go to Nick Jones, on whose work these changes are based. <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: circle; "> <li class="listitem"> Added support for SSL handshakes with re-use of data already read from the wire. New overloads of the <code class="computeroutput"><span class="identifier">ssl</span><span class="special">::</span><span class="identifier">stream</span><span class="special">&lt;&gt;</span></code> class's <code class="computeroutput"><span class="identifier">handshake</span><span class="special">()</span></code> and <code class="computeroutput"><span class="identifier">async_handshake</span><span class="special">()</span></code> functions have been added. These accept a <code class="computeroutput"><span class="identifier">ConstBufferSequence</span></code> to be used as initial input to the ssl engine for the handshake procedure. </li> <li class="listitem"> Added support for creation of TLSv1.1 and TLSv1.2 <code class="computeroutput"><span class="identifier">ssl</span><span class="special">::</span><span class="identifier">context</span></code> objects. </li> <li class="listitem"> Added a <code class="computeroutput"><span class="identifier">set_verify_depth</span><span class="special">()</span></code> function to the <code class="computeroutput"><span class="identifier">ssl</span><span class="special">::</span><span class="identifier">context</span></code> and <code class="computeroutput"><span class="identifier">ssl</span><span class="special">::</span><span class="identifier">stream</span><span class="special">&lt;&gt;</span></code> classes. </li> <li class="listitem"> Added the ability to load SSL certificate and key data from memory buffers. New functions, <code class="computeroutput"><span class="identifier">add_certificate_authority</span><span class="special">()</span></code>, <code class="computeroutput"><span class="identifier">use_certificate</span><span class="special">()</span></code>, <code class="computeroutput"><span class="identifier">use_certificate_chain</span><span class="special">()</span></code>, <code class="computeroutput"><span class="identifier">use_private_key</span><span class="special">()</span></code>, <code class="computeroutput"><span class="identifier">use_rsa_private_key</span><span class="special">()</span></code> and <code class="computeroutput"><span class="identifier">use_tmp_dh</span><span class="special">()</span></code>, have been added to the <code class="computeroutput"><span class="identifier">ssl</span><span class="special">::</span><span class="identifier">context</span></code> class. </li> <li class="listitem"> Changed <code class="computeroutput"><span class="identifier">ssl</span><span class="special">::</span><span class="identifier">context</span></code> to automatically disable SSL compression by default. To enable, use the new <code class="computeroutput"><span class="identifier">ssl</span><span class="special">::</span><span class="identifier">context</span><span class="special">::</span><span class="identifier">clear_options</span><span class="special">()</span></code> function, as in <code class="computeroutput"><span class="identifier">my_context</span><span class="special">.</span><span class="identifier">clear_options</span><span class="special">(</span><span class="identifier">ssl</span><span class="special">::</span><span class="identifier">context</span><span class="special">::</span><span class="identifier">no_compression</span><span class="special">)</span></code>. </li> </ul></div> </li> <li class="listitem"> Fixed a potential deadlock in <code class="computeroutput"><span class="identifier">signal_set</span></code> implementation. </li> <li class="listitem"> Fixed an error in acceptor example in documentation <a href="https://svn.boost.org/trac/boost/ticket/8421" target="_top">#8421</a>. </li> <li class="listitem"> Fixed copy-paste errors in waitable timer documentation <a href="https://svn.boost.org/trac/boost/ticket/8602" target="_top">#8602</a>. </li> <li class="listitem"> Added assertions to satisfy some code analysis tools <a href="https://svn.boost.org/trac/boost/ticket/7739" target="_top">#7739</a>. </li> <li class="listitem"> Fixed a malformed <code class="computeroutput"><span class="preprocessor">#warning</span></code> directive <a href="https://svn.boost.org/trac/boost/ticket/7939" target="_top">#7939</a>. </li> <li class="listitem"> Fixed a potential data race in the Linux <code class="computeroutput"><span class="identifier">epoll</span></code> implementation. </li> <li class="listitem"> Fixed a Windows-specific bug, where certain operations might generate an <code class="computeroutput"><span class="identifier">error_code</span></code> with an invalid (i.e. <code class="computeroutput"><span class="identifier">NULL</span></code>) <code class="computeroutput"><span class="identifier">error_category</span></code> <a href="https://svn.boost.org/trac/boost/ticket/8613" target="_top">#8613</a>. </li> <li class="listitem"> Fixed <code class="computeroutput"><span class="identifier">basic_waitable_timer</span></code>'s underlying implementation so that it can handle any <code class="computeroutput"><span class="identifier">time_point</span></code> value without overflowing the intermediate duration objects. </li> <li class="listitem"> Fixed a problem with lost thread wakeups that can occur when making concurrent calls to <code class="computeroutput"><span class="identifier">run</span><span class="special">()</span></code> and <code class="computeroutput"><span class="identifier">poll</span><span class="special">()</span></code> on the same <code class="computeroutput"><span class="identifier">io_service</span></code> object <a href="https://svn.boost.org/trac/boost/ticket/8354" target="_top">#8354</a>. </li> <li class="listitem"> Fixed implementation of asynchronous connect operation so that it can cope with spurious readiness notifications from the reactor <a href="https://svn.boost.org/trac/boost/ticket/7961" target="_top">#7961</a>. </li> <li class="listitem"> Fixed a memory leak in the <code class="computeroutput"><span class="identifier">ssl</span><span class="special">::</span><span class="identifier">rfc2818_verification</span></code> class. </li> <li class="listitem"> Added a mechanism for disabling automatic Winsock initialisation <a href="https://svn.boost.org/trac/boost/ticket/3605" target="_top">#3605</a>. See the header file <code class="literal">boost/asio/detail/winsock_init.hpp</code> for details. </li> </ul></div> <h4> <a name="boost_asio.history.h6"></a> <span class="phrase"><a name="boost_asio.history.asio_1_8_3___boost_1_53"></a></span><a class="link" href="history.html#boost_asio.history.asio_1_8_3___boost_1_53">Asio 1.8.3 / Boost 1.53</a> </h4> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"> Fixed some 64-to-32-bit conversion warnings (<a href="https://svn.boost.org/trac/boost/ticket/7459" target="_top">#7459</a>). </li> <li class="listitem"> Fixed some small errors in documentation and comments (<a href="https://svn.boost.org/trac/boost/ticket/7761" target="_top">#7761</a>). </li> <li class="listitem"> Fixed an error in the example embedded in <code class="computeroutput"><span class="identifier">basic_socket</span><span class="special">::</span><span class="identifier">get_option</span></code>'s documentation (<a href="https://svn.boost.org/trac/boost/ticket/7562" target="_top">#7562</a>). </li> <li class="listitem"> Changed to use <code class="computeroutput"><span class="keyword">long</span></code> rather than <code class="computeroutput"><span class="keyword">int</span></code> for SSL_CTX options, to match OpenSSL (<a href="https://svn.boost.org/trac/boost/ticket/7209" target="_top">#7209</a>). </li> <li class="listitem"> Changed to use <code class="computeroutput"><span class="identifier">_snwprintf</span></code> to address a compile error due to the changed <code class="computeroutput"><span class="identifier">swprintf</span></code> signature in recent versions of MinGW (<a href="https://svn.boost.org/trac/boost/ticket/7373" target="_top">#7373</a>). </li> <li class="listitem"> Fixed a deadlock that can occur on Windows when shutting down a pool of <code class="computeroutput"><span class="identifier">io_service</span></code> threads due to running out of work (<a href="https://svn.boost.org/trac/boost/ticket/7552" target="_top">#7552</a>). </li> <li class="listitem"> Enabled the <code class="computeroutput"><span class="keyword">noexcept</span></code> qualifier for error categories (<a href="https://svn.boost.org/trac/boost/ticket/7797" target="_top">#7797</a>). </li> <li class="listitem"> Changed UNIX domain socket example to treat errors from <code class="computeroutput"><span class="identifier">accept</span></code> as non-fatal (<a href="https://svn.boost.org/trac/boost/ticket/7488" target="_top">#7488</a>). </li> <li class="listitem"> Added a small block recycling optimisation to improve default memory allocation behaviour. </li> </ul></div> <h4> <a name="boost_asio.history.h7"></a> <span class="phrase"><a name="boost_asio.history.asio_1_8_2___boost_1_51"></a></span><a class="link" href="history.html#boost_asio.history.asio_1_8_2___boost_1_51">Asio 1.8.2 / Boost 1.51</a> </h4> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"> Fixed an incompatibility between <code class="computeroutput"><span class="identifier">ip</span><span class="special">::</span><span class="identifier">tcp</span><span class="special">::</span><span class="identifier">iostream</span></code> and C++11 (<a href="https://svn.boost.org/trac/boost/ticket/7162" target="_top">#7162</a>). </li> <li class="listitem"> Decorated GCC attribute names with underscores to prevent interaction with user-defined macros (<a href="https://svn.boost.org/trac/boost/ticket/6415" target="_top">#6415</a>). </li> <li class="listitem"> Added missing <code class="computeroutput"><span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">cctype</span><span class="special">&gt;</span></code>, needed for some versions of MinGW. </li> <li class="listitem"> Changed to use <code class="literal">gcc</code>'s atomic builtins on ARM CPUs, when available (<a href="https://svn.boost.org/trac/boost/ticket/7140" target="_top">#7140</a>). </li> <li class="listitem"> Changed strand destruction to be a no-op, to allow strand objects to be destroyed after their associated <code class="computeroutput"><span class="identifier">io_service</span></code> has been destroyed. </li> <li class="listitem"> Added support for some newer versions of glibc which provide the <code class="computeroutput"><span class="identifier">epoll_create1</span><span class="special">()</span></code> function but always fail with <code class="computeroutput"><span class="identifier">ENOSYS</span></code> (<a href="https://svn.boost.org/trac/boost/ticket/7012" target="_top">#7012</a>). </li> <li class="listitem"> Changed the SSL implementation to throw an exception if SSL engine initialisation fails (<a href="https://svn.boost.org/trac/boost/ticket/6303" target="_top">#6303</a>). </li> <li class="listitem"> Fixed another regression in <code class="computeroutput"><span class="identifier">buffered_write_stream</span></code> (<a href="https://svn.boost.org/trac/boost/ticket/6310" target="_top">#6310</a>). </li> <li class="listitem"> Implemented various minor performance improvements, primarily targeted at Linux x86 and x86-64 platforms. </li> </ul></div> <h4> <a name="boost_asio.history.h8"></a> <span class="phrase"><a name="boost_asio.history.asio_1_8_1___boost_1_50"></a></span><a class="link" href="history.html#boost_asio.history.asio_1_8_1___boost_1_50">Asio 1.8.1 / Boost 1.50</a> </h4> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"> Changed the <code class="computeroutput"><span class="identifier">epoll_reactor</span></code> backend to do lazy registration for <code class="computeroutput"><span class="identifier">EPOLLOUT</span></code> events. </li> <li class="listitem"> Fixed the <code class="computeroutput"><span class="identifier">epoll_reactor</span></code> handling of out-of-band data, which was broken by an incomplete fix in the last release. </li> <li class="listitem"> Changed Asio's SSL wrapper to respect OpenSSL's <code class="computeroutput"><span class="identifier">OPENSSL_NO_ENGINE</span></code> feature test <code class="computeroutput"><span class="preprocessor">#define</span></code> (<a href="https://svn.boost.org/trac/boost/ticket/6432" target="_top">#6432</a>). </li> <li class="listitem"> Fixed <code class="computeroutput"><span class="identifier">windows</span><span class="special">::</span><span class="identifier">object_handle</span></code> so that it works with Windows compilers that support C++11 move semantics (such as <code class="literal">g++</code>). </li> <li class="listitem"> Improved the performance of strand rescheduling. </li> <li class="listitem"> Added support for <code class="literal">g++</code> 4.7 when compiling in C++11 mode (<a href="https://svn.boost.org/trac/boost/ticket/6620" target="_top">#6620</a>). </li> <li class="listitem"> Fixed a problem where <code class="computeroutput"><span class="identifier">signal_set</span></code> handlers were not being delivered when the <code class="computeroutput"><span class="identifier">io_service</span></code> was constructed with a <code class="computeroutput"><span class="identifier">concurrency_hint</span></code> of 1 (<a href="https://svn.boost.org/trac/boost/ticket/6657" target="_top">#6657</a>). </li> </ul></div> <h4> <a name="boost_asio.history.h9"></a> <span class="phrase"><a name="boost_asio.history.asio_1_8_0___boost_1_49"></a></span><a class="link" href="history.html#boost_asio.history.asio_1_8_0___boost_1_49">Asio 1.8.0 / Boost 1.49</a> </h4> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"> Added a new class template <code class="computeroutput"><span class="identifier">basic_waitable_timer</span></code> based around the C++11 clock type requirements. It may be used with the clocks from the C++11 <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">chrono</span><span class="special">&gt;</span></code> library facility or, if those are not available, Boost.Chrono. The typedefs <code class="computeroutput"><span class="identifier">high_resolution_timer</span></code>, <code class="computeroutput"><span class="identifier">steady_timer</span></code> and <code class="computeroutput"><span class="identifier">system_timer</span></code> may be used to create timer objects for the standard clock types. </li> <li class="listitem"> Added a new <code class="computeroutput"><span class="identifier">windows</span><span class="special">::</span><span class="identifier">object_handle</span></code> class for performing waits on Windows kernel objects. Thanks go to Boris Schaeling for contributing substantially to the development of this feature. </li> <li class="listitem"> On Linux, <code class="computeroutput"><span class="identifier">connect</span><span class="special">()</span></code> can return EAGAIN in certain circumstances. Remapped this to another error so that it doesn't look like a non-blocking operation (<a href="https://svn.boost.org/trac/boost/ticket/6048" target="_top">#6048</a>). </li> <li class="listitem"> Fixed a compile error on NetBSD (<a href="https://svn.boost.org/trac/boost/ticket/6098" target="_top">#6098</a>). </li> <li class="listitem"> Fixed deadlock on Mac OS X (<a href="https://svn.boost.org/trac/boost/ticket/6275" target="_top">#6275</a>). </li> <li class="listitem"> Fixed a regression in <code class="computeroutput"><span class="identifier">buffered_write_stream</span></code> (<a href="https://svn.boost.org/trac/boost/ticket/6310" target="_top">#6310</a>). </li> <li class="listitem"> Fixed a non-paged pool "leak" on Windows when an <code class="computeroutput"><span class="identifier">io_service</span></code> is repeatedly run without anything to do (<a href="https://svn.boost.org/trac/boost/ticket/6321" target="_top">#6321</a>). </li> <li class="listitem"> Reverted earlier change to allow some speculative operations to be performed without holding the lock, as it introduced a race condition in some multithreaded scenarios. </li> <li class="listitem"> Fixed a bug where the second buffer in an array of two buffers may be ignored if the first buffer is empty. </li> </ul></div> <h4> <a name="boost_asio.history.h10"></a> <span class="phrase"><a name="boost_asio.history.asio_1_6_1___boost_1_48"></a></span><a class="link" href="history.html#boost_asio.history.asio_1_6_1___boost_1_48">Asio 1.6.1 / Boost 1.48</a> </h4> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"> Implemented various performance improvements, including: <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: circle; "> <li class="listitem"> Using thread-local operation queues in single-threaded use cases (i.e. when <code class="computeroutput"><span class="identifier">concurrency_hint</span></code> is 1) to eliminate a lock/unlock pair. </li> <li class="listitem"> Allowing some <code class="com