Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r76511 - in trunk/libs/asio/doc: . overview requirements
From: chris_at_[hidden]
Date: 2012-01-15 07:51:27


Author: chris_kohlhoff
Date: 2012-01-15 07:51:20 EST (Sun, 15 Jan 2012)
New Revision: 76511
URL: http://svn.boost.org/trac/boost/changeset/76511

Log:
Update documentation.

Added:
   trunk/libs/asio/doc/requirements/ObjectHandleService.qbk (contents, props changed)
   trunk/libs/asio/doc/requirements/WaitTraits.qbk (contents, props changed)
   trunk/libs/asio/doc/requirements/WaitableTimerService.qbk (contents, props changed)
Text files modified:
   trunk/libs/asio/doc/history.qbk | 23
   trunk/libs/asio/doc/overview.qbk | 2
   trunk/libs/asio/doc/overview/windows.qbk | 16
   trunk/libs/asio/doc/quickref.xml | 11
   trunk/libs/asio/doc/reference.qbk | 48057 +++++++++++++++++++++------------------
   trunk/libs/asio/doc/reference.xsl | 15
   trunk/libs/asio/doc/tutorial.qbk | 2
   7 files changed, 26287 insertions(+), 21839 deletions(-)

Modified: trunk/libs/asio/doc/history.qbk
==============================================================================
--- trunk/libs/asio/doc/history.qbk (original)
+++ trunk/libs/asio/doc/history.qbk 2012-01-15 07:51:20 EST (Sun, 15 Jan 2012)
@@ -7,6 +7,29 @@
 
 [section:history Revision History]
 
+[heading Asio 1.8.0 / Boost 1.49]
+
+* Added a new class template `basic_waitable_timer` based around the C++11 clock
+ type requirements. It may be used with the clocks from the C++11 `<chrono>`
+ library facility or, if those are not available, Boost.Chrono. The typedefs
+ `high_resolution_timer`, `steady_timer` and `system_timer` may be used to
+ create timer objects for the standard clock types.
+* Added a new `windows::object_handle` class for performing waits on Windows
+ kernel objects. Thanks go to Boris Schaeling for contributing substantially
+ to the development of this feature.
+* On Linux, `connect()` can return EAGAIN in certain circumstances. Remapped
+ this to another error so that it doesn't look like a non-blocking operation
+ ([@https://svn.boost.org/trac/boost/ticket/6048 #6048]).
+* Fixed a compile error on NetBSD
+ ([@https://svn.boost.org/trac/boost/ticket/6098 #6098]).
+* Fixed deadlock on Mac OS X
+ ([@https://svn.boost.org/trac/boost/ticket/6275 #6275]).
+* Fixed a regression in `buffered_write_stream`
+ ([@https://svn.boost.org/trac/boost/ticket/6310 #6310]).
+* Fixed a non-paged pool "leak" on Windows when an `io_service` is repeatedly
+ run without anything to do
+ ([@https://svn.boost.org/trac/boost/ticket/6321 #6321]).
+
 [heading Asio 1.6.1 / Boost 1.48]
 
 * Implemented various performance improvements, including:

Modified: trunk/libs/asio/doc/overview.qbk
==============================================================================
--- trunk/libs/asio/doc/overview.qbk (original)
+++ trunk/libs/asio/doc/overview.qbk 2012-01-15 07:51:20 EST (Sun, 15 Jan 2012)
@@ -33,6 +33,7 @@
 * [link boost_asio.overview.windows Windows-Specific Functionality]
   * [link boost_asio.overview.windows.stream_handle Stream-Oriented HANDLEs]
   * [link boost_asio.overview.windows.random_access_handle Random-Access HANDLEs]
+ * [link boost_asio.overview.windows.object_handle Object HANDLEs]
 * [link boost_asio.overview.ssl SSL]
 * [link boost_asio.overview.cpp2011 C++ 2011 Support]
   * [link boost_asio.overview.cpp2011.move_objects Movable I/O Objects]
@@ -41,6 +42,7 @@
   * [link boost_asio.overview.cpp2011.array Array Container]
   * [link boost_asio.overview.cpp2011.atomic Atomics]
   * [link boost_asio.overview.cpp2011.shared_ptr Shared Pointers]
+ * [link boost_asio.overview.cpp2011.chrono Chrono]
 * [link boost_asio.overview.implementation Platform-Specific Implementation Notes]
 
 [include overview/rationale.qbk]

Modified: trunk/libs/asio/doc/overview/windows.qbk
==============================================================================
--- trunk/libs/asio/doc/overview/windows.qbk (original)
+++ trunk/libs/asio/doc/overview/windows.qbk 2012-01-15 07:51:20 EST (Sun, 15 Jan 2012)
@@ -97,14 +97,14 @@
 Boost.Asio provides Windows-specific classes that permit asynchronous wait operations
 to be performed on HANDLEs to kernel objects of the following types:
 
- * Change notification
- * Console input
- * Event
- * Memory resource notification
- * Process
- * Semaphore
- * Thread
- * Waitable timer
+* Change notification
+* Console input
+* Event
+* Memory resource notification
+* Process
+* Semaphore
+* Thread
+* Waitable timer
 
 For example, to perform asynchronous operations on an event, the following
 object may be created:

Modified: trunk/libs/asio/doc/quickref.xml
==============================================================================
--- trunk/libs/asio/doc/quickref.xml (original)
+++ trunk/libs/asio/doc/quickref.xml 2012-01-15 07:51:20 EST (Sun, 15 Jan 2012)
@@ -282,21 +282,28 @@
           <bridgehead renderas="sect3">Classes</bridgehead>
           <simplelist type="vert" columns="1">
             <member><link linkend="boost_asio.reference.deadline_timer">deadline_timer</link></member>
+ <member><link linkend="boost_asio.reference.high_resolution_timer">high_resolution_timer</link></member>
+ <member><link linkend="boost_asio.reference.steady_timer">steady_timer</link></member>
+ <member><link linkend="boost_asio.reference.system_timer">system_timer</link></member>
           </simplelist>
           <bridgehead renderas="sect3">Class Templates</bridgehead>
           <simplelist type="vert" columns="1">
             <member><link linkend="boost_asio.reference.basic_deadline_timer">basic_deadline_timer</link></member>
+ <member><link linkend="boost_asio.reference.basic_waitable_timer">basic_waitable_timer</link></member>
             <member><link linkend="boost_asio.reference.time_traits_lt__ptime__gt_">time_traits</link></member>
           </simplelist>
           <bridgehead renderas="sect3">Services</bridgehead>
           <simplelist type="vert" columns="1">
             <member><link linkend="boost_asio.reference.deadline_timer_service">deadline_timer_service</link></member>
+ <member><link linkend="boost_asio.reference.waitable_timer_service">waitable_timer_service</link></member>
           </simplelist>
           <bridgehead renderas="sect3">Type Requirements</bridgehead>
           <simplelist type="vert" columns="1">
             <member><link linkend="boost_asio.reference.TimerService">TimerService</link></member>
             <member><link linkend="boost_asio.reference.TimeTraits">TimeTraits</link></member>
+ <member><link linkend="boost_asio.reference.WaitableTimerService">WaitableTimerService</link></member>
             <member><link linkend="boost_asio.reference.WaitHandler">WaitHandler</link></member>
+ <member><link linkend="boost_asio.reference.WaitTraits">WaitTraits</link></member>
           </simplelist>
         </entry>
         <entry valign="top">
@@ -425,6 +432,7 @@
         <entry valign="top" namest="c" nameend="d">
           <bridgehead renderas="sect3">Classes</bridgehead>
           <simplelist type="vert" columns="1">
+ <member><link linkend="boost_asio.reference.windows__object_handle">windows::object_handle</link></member>
             <member><link linkend="boost_asio.reference.windows__overlapped_ptr">windows::overlapped_ptr</link></member>
             <member><link linkend="boost_asio.reference.windows__random_access_handle">windows::random_access_handle</link></member>
             <member><link linkend="boost_asio.reference.windows__stream_handle">windows::stream_handle</link></member>
@@ -432,17 +440,20 @@
           <bridgehead renderas="sect3">Class Templates</bridgehead>
           <simplelist type="vert" columns="1">
             <member><link linkend="boost_asio.reference.windows__basic_handle">windows::basic_handle</link></member>
+ <member><link linkend="boost_asio.reference.windows__basic_object_handle">windows::basic_object_handle</link></member>
             <member><link linkend="boost_asio.reference.windows__basic_random_access_handle">windows::basic_random_access_handle</link></member>
             <member><link linkend="boost_asio.reference.windows__basic_stream_handle">windows::basic_stream_handle</link></member>
           </simplelist>
           <bridgehead renderas="sect3">Services</bridgehead>
           <simplelist type="vert" columns="1">
+ <member><link linkend="boost_asio.reference.windows__object_handle_service">windows::object_handle_service</link></member>
             <member><link linkend="boost_asio.reference.windows__random_access_handle_service">windows::random_access_handle_service</link></member>
             <member><link linkend="boost_asio.reference.windows__stream_handle_service">windows::stream_handle_service</link></member>
           </simplelist>
           <bridgehead renderas="sect3">Type Requirements</bridgehead>
           <simplelist type="vert" columns="1">
             <member><link linkend="boost_asio.reference.HandleService">HandleService</link></member>
+ <member><link linkend="boost_asio.reference.ObjectHandleService">ObjectHandleService</link></member>
             <member><link linkend="boost_asio.reference.RandomAccessHandleService">RandomAccessHandleService</link></member>
             <member><link linkend="boost_asio.reference.StreamHandleService">StreamHandleService</link></member>
           </simplelist>

Modified: trunk/libs/asio/doc/reference.qbk
==============================================================================
--- trunk/libs/asio/doc/reference.qbk (original)
+++ trunk/libs/asio/doc/reference.qbk 2012-01-15 07:51:20 EST (Sun, 15 Jan 2012)
@@ -33,6 +33,7 @@
 [include requirements/IoControlCommand.qbk]
 [include requirements/IoObjectService.qbk]
 [include requirements/MutableBufferSequence.qbk]
+[include requirements/ObjectHandleService.qbk]
 [include requirements/Protocol.qbk]
 [include requirements/RandomAccessHandleService.qbk]
 [include requirements/RawSocketService.qbk]
@@ -58,7 +59,9 @@
 [include requirements/SyncWriteStream.qbk]
 [include requirements/TimeTraits.qbk]
 [include requirements/TimerService.qbk]
+[include requirements/WaitableTimerService.qbk]
 [include requirements/WaitHandler.qbk]
+[include requirements/WaitTraits.qbk]
 [include requirements/WriteHandler.qbk]
 
 
@@ -42945,400 +42948,386 @@
 
 [endsect]
 
-[section:buffer buffer]
-
-[indexterm1 buffer]
-The `boost::asio::buffer` function is used to create a buffer object to represent raw memory, an array of POD elements, a vector of POD elements, or a std::string.
-
-
- mutable_buffers_1 ``[link boost_asio.reference.buffer.overload1 buffer]``(
- const mutable_buffer & b);
- `` [''''&raquo;''' [link boost_asio.reference.buffer.overload1 more...]]``
-
- mutable_buffers_1 ``[link boost_asio.reference.buffer.overload2 buffer]``(
- const mutable_buffer & b,
- std::size_t max_size_in_bytes);
- `` [''''&raquo;''' [link boost_asio.reference.buffer.overload2 more...]]``
-
- const_buffers_1 ``[link boost_asio.reference.buffer.overload3 buffer]``(
- const const_buffer & b);
- `` [''''&raquo;''' [link boost_asio.reference.buffer.overload3 more...]]``
-
- const_buffers_1 ``[link boost_asio.reference.buffer.overload4 buffer]``(
- const const_buffer & b,
- std::size_t max_size_in_bytes);
- `` [''''&raquo;''' [link boost_asio.reference.buffer.overload4 more...]]``
-
- mutable_buffers_1 ``[link boost_asio.reference.buffer.overload5 buffer]``(
- void * data,
- std::size_t size_in_bytes);
- `` [''''&raquo;''' [link boost_asio.reference.buffer.overload5 more...]]``
+[section:basic_waitable_timer basic_waitable_timer]
 
- const_buffers_1 ``[link boost_asio.reference.buffer.overload6 buffer]``(
- const void * data,
- std::size_t size_in_bytes);
- `` [''''&raquo;''' [link boost_asio.reference.buffer.overload6 more...]]``
 
- template<
- typename PodType,
- std::size_t N>
- mutable_buffers_1 ``[link boost_asio.reference.buffer.overload7 buffer]``(
- PodType (&data)[N]);
- `` [''''&raquo;''' [link boost_asio.reference.buffer.overload7 more...]]``
+Provides waitable timer functionality.
 
- template<
- typename PodType,
- std::size_t N>
- mutable_buffers_1 ``[link boost_asio.reference.buffer.overload8 buffer]``(
- PodType (&data)[N],
- std::size_t max_size_in_bytes);
- `` [''''&raquo;''' [link boost_asio.reference.buffer.overload8 more...]]``
 
   template<
- typename PodType,
- std::size_t N>
- const_buffers_1 ``[link boost_asio.reference.buffer.overload9 buffer]``(
- const PodType (&data)[N]);
- `` [''''&raquo;''' [link boost_asio.reference.buffer.overload9 more...]]``
+ typename Clock,
+ typename ``[link boost_asio.reference.WaitTraits WaitTraits]`` = boost::asio::wait_traits<Clock>,
+ typename ``[link boost_asio.reference.WaitableTimerService WaitableTimerService]`` = waitable_timer_service<Clock, WaitTraits>>
+ class basic_waitable_timer :
+ public basic_io_object< WaitableTimerService >
 
- template<
- typename PodType,
- std::size_t N>
- const_buffers_1 ``[link boost_asio.reference.buffer.overload10 buffer]``(
- const PodType (&data)[N],
- std::size_t max_size_in_bytes);
- `` [''''&raquo;''' [link boost_asio.reference.buffer.overload10 more...]]``
 
- template<
- typename PodType,
- std::size_t N>
- mutable_buffers_1 ``[link boost_asio.reference.buffer.overload11 buffer]``(
- boost::array< PodType, N > & data);
- `` [''''&raquo;''' [link boost_asio.reference.buffer.overload11 more...]]``
+[heading Types]
+[table
+ [[Name][Description]]
 
- template<
- typename PodType,
- std::size_t N>
- mutable_buffers_1 ``[link boost_asio.reference.buffer.overload12 buffer]``(
- boost::array< PodType, N > & data,
- std::size_t max_size_in_bytes);
- `` [''''&raquo;''' [link boost_asio.reference.buffer.overload12 more...]]``
+ [
 
- template<
- typename PodType,
- std::size_t N>
- const_buffers_1 ``[link boost_asio.reference.buffer.overload13 buffer]``(
- boost::array< const PodType, N > & data);
- `` [''''&raquo;''' [link boost_asio.reference.buffer.overload13 more...]]``
+ [[link boost_asio.reference.basic_waitable_timer.clock_type [*clock_type]]]
+ [The clock type. ]
+
+ ]
 
- template<
- typename PodType,
- std::size_t N>
- const_buffers_1 ``[link boost_asio.reference.buffer.overload14 buffer]``(
- boost::array< const PodType, N > & data,
- std::size_t max_size_in_bytes);
- `` [''''&raquo;''' [link boost_asio.reference.buffer.overload14 more...]]``
+ [
 
- template<
- typename PodType,
- std::size_t N>
- const_buffers_1 ``[link boost_asio.reference.buffer.overload15 buffer]``(
- const boost::array< PodType, N > & data);
- `` [''''&raquo;''' [link boost_asio.reference.buffer.overload15 more...]]``
+ [[link boost_asio.reference.basic_waitable_timer.duration [*duration]]]
+ [The duration type of the clock. ]
+
+ ]
 
- template<
- typename PodType,
- std::size_t N>
- const_buffers_1 ``[link boost_asio.reference.buffer.overload16 buffer]``(
- const boost::array< PodType, N > & data,
- std::size_t max_size_in_bytes);
- `` [''''&raquo;''' [link boost_asio.reference.buffer.overload16 more...]]``
+ [
 
- template<
- typename PodType,
- std::size_t N>
- mutable_buffers_1 ``[link boost_asio.reference.buffer.overload17 buffer]``(
- std::array< PodType, N > & data);
- `` [''''&raquo;''' [link boost_asio.reference.buffer.overload17 more...]]``
+ [[link boost_asio.reference.basic_waitable_timer.implementation_type [*implementation_type]]]
+ [The underlying implementation type of I/O object. ]
+
+ ]
 
- template<
- typename PodType,
- std::size_t N>
- mutable_buffers_1 ``[link boost_asio.reference.buffer.overload18 buffer]``(
- std::array< PodType, N > & data,
- std::size_t max_size_in_bytes);
- `` [''''&raquo;''' [link boost_asio.reference.buffer.overload18 more...]]``
+ [
 
- template<
- typename PodType,
- std::size_t N>
- const_buffers_1 ``[link boost_asio.reference.buffer.overload19 buffer]``(
- std::array< const PodType, N > & data);
- `` [''''&raquo;''' [link boost_asio.reference.buffer.overload19 more...]]``
+ [[link boost_asio.reference.basic_waitable_timer.service_type [*service_type]]]
+ [The type of the service that will be used to provide I/O operations. ]
+
+ ]
 
- template<
- typename PodType,
- std::size_t N>
- const_buffers_1 ``[link boost_asio.reference.buffer.overload20 buffer]``(
- std::array< const PodType, N > & data,
- std::size_t max_size_in_bytes);
- `` [''''&raquo;''' [link boost_asio.reference.buffer.overload20 more...]]``
+ [
 
- template<
- typename PodType,
- std::size_t N>
- const_buffers_1 ``[link boost_asio.reference.buffer.overload21 buffer]``(
- const std::array< PodType, N > & data);
- `` [''''&raquo;''' [link boost_asio.reference.buffer.overload21 more...]]``
+ [[link boost_asio.reference.basic_waitable_timer.time_point [*time_point]]]
+ [The time point type of the clock. ]
+
+ ]
 
- template<
- typename PodType,
- std::size_t N>
- const_buffers_1 ``[link boost_asio.reference.buffer.overload22 buffer]``(
- const std::array< PodType, N > & data,
- std::size_t max_size_in_bytes);
- `` [''''&raquo;''' [link boost_asio.reference.buffer.overload22 more...]]``
+ [
 
- template<
- typename PodType,
- typename Allocator>
- mutable_buffers_1 ``[link boost_asio.reference.buffer.overload23 buffer]``(
- std::vector< PodType, Allocator > & data);
- `` [''''&raquo;''' [link boost_asio.reference.buffer.overload23 more...]]``
+ [[link boost_asio.reference.basic_waitable_timer.traits_type [*traits_type]]]
+ [The wait traits type. ]
+
+ ]
 
- template<
- typename PodType,
- typename Allocator>
- mutable_buffers_1 ``[link boost_asio.reference.buffer.overload24 buffer]``(
- std::vector< PodType, Allocator > & data,
- std::size_t max_size_in_bytes);
- `` [''''&raquo;''' [link boost_asio.reference.buffer.overload24 more...]]``
+]
 
- template<
- typename PodType,
- typename Allocator>
- const_buffers_1 ``[link boost_asio.reference.buffer.overload25 buffer]``(
- const std::vector< PodType, Allocator > & data);
- `` [''''&raquo;''' [link boost_asio.reference.buffer.overload25 more...]]``
+[heading Member Functions]
+[table
+ [[Name][Description]]
 
- template<
- typename PodType,
- typename Allocator>
- const_buffers_1 ``[link boost_asio.reference.buffer.overload26 buffer]``(
- const std::vector< PodType, Allocator > & data,
- std::size_t max_size_in_bytes);
- `` [''''&raquo;''' [link boost_asio.reference.buffer.overload26 more...]]``
+ [
+ [[link boost_asio.reference.basic_waitable_timer.async_wait [*async_wait]]]
+ [Start an asynchronous wait on the timer. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_waitable_timer.basic_waitable_timer [*basic_waitable_timer]]]
+ [Constructor.
 
- template<
- typename Elem,
- typename Traits,
- typename Allocator>
- const_buffers_1 ``[link boost_asio.reference.buffer.overload27 buffer]``(
- const std::basic_string< Elem, Traits, Allocator > & data);
- `` [''''&raquo;''' [link boost_asio.reference.buffer.overload27 more...]]``
+ Constructor to set a particular expiry time as an absolute time.
 
- template<
- typename Elem,
- typename Traits,
- typename Allocator>
- const_buffers_1 ``[link boost_asio.reference.buffer.overload28 buffer]``(
- const std::basic_string< Elem, Traits, Allocator > & data,
- std::size_t max_size_in_bytes);
- `` [''''&raquo;''' [link boost_asio.reference.buffer.overload28 more...]]``
+ Constructor to set a particular expiry time relative to now. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_waitable_timer.cancel [*cancel]]]
+ [Cancel any asynchronous operations that are waiting on the timer. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_waitable_timer.cancel_one [*cancel_one]]]
+ [Cancels one asynchronous operation that is waiting on the timer. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_waitable_timer.expires_at [*expires_at]]]
+ [Get the timer's expiry time as an absolute time.
 
-A buffer object represents a contiguous region of memory as a 2-tuple consisting of a pointer and size in bytes. A tuple of the form `{void*, size_t}` specifies a mutable (modifiable) region of memory. Similarly, a tuple of the form `{const void*, size_t}` specifies a const (non-modifiable) region of memory. These two forms correspond to the classes [link boost_asio.reference.mutable_buffer `mutable_buffer`] and [link boost_asio.reference.const_buffer `const_buffer`], respectively. To mirror C++'s conversion rules, a [link boost_asio.reference.mutable_buffer `mutable_buffer`] is implicitly convertible to a [link boost_asio.reference.const_buffer `const_buffer`], and the opposite conversion is not permitted.
+ Set the timer's expiry time as an absolute time. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_waitable_timer.expires_from_now [*expires_from_now]]]
+ [Get the timer's expiry time relative to now.
 
-The simplest use case involves reading or writing a single buffer of a specified size:
+ Set the timer's expiry time relative to now. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_waitable_timer.get_io_service [*get_io_service]]]
+ [Get the io_service associated with the object. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_waitable_timer.wait [*wait]]]
+ [Perform a blocking wait on the timer. ]
+ ]
+
+]
 
+[heading Protected Member Functions]
+[table
+ [[Name][Description]]
 
+ [
+ [[link boost_asio.reference.basic_waitable_timer.get_implementation [*get_implementation]]]
+ [Get the underlying implementation of the I/O object. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_waitable_timer.get_service [*get_service]]]
+ [Get the service associated with the I/O object. ]
+ ]
+
+]
 
- sock.send(boost::asio::buffer(data, size));
+[heading Protected Data Members]
+[table
+ [[Name][Description]]
 
+ [
+ [[link boost_asio.reference.basic_waitable_timer.implementation [*implementation]]]
+ [(Deprecated: Use get_implementation().) The underlying implementation of the I/O object. ]
+ ]
 
+ [
+ [[link boost_asio.reference.basic_waitable_timer.service [*service]]]
+ [(Deprecated: Use get_service().) The service associated with the I/O object. ]
+ ]
 
+]
 
-In the above example, the return value of `boost::asio::buffer` meets the requirements of the ConstBufferSequence concept so that it may be directly passed to the socket's write function. A buffer created for modifiable memory also meets the requirements of the MutableBufferSequence concept.
+The [link boost_asio.reference.basic_waitable_timer `basic_waitable_timer`] class template provides the ability to perform a blocking or asynchronous wait for a timer to expire.
 
-An individual buffer may be created from a builtin array, std::vector, std::array or boost::array of POD elements. This helps prevent buffer overruns by automatically determining the size of the buffer:
+A waitable timer is always in one of two states: "expired" or "not expired". If the `wait()` or `async_wait()` function is called on an expired timer, the wait operation will complete immediately.
 
+Most applications will use the boost::asio::waitable\_timer typedef.
 
 
- char d1[128];
- size_t bytes_transferred = sock.receive(boost::asio::buffer(d1));
+[heading Remarks]
+
+This waitable timer functionality is for use with the C++11 standard library's `<chrono>` facility, or with the Boost.Chrono library.
 
- std::vector<char> d2(128);
- bytes_transferred = sock.receive(boost::asio::buffer(d2));
 
- std::array<char, 128> d3;
- bytes_transferred = sock.receive(boost::asio::buffer(d3));
+[heading Thread Safety]
+
+[*Distinct] [*objects:] Safe.
 
- boost::array<char, 128> d4;
- bytes_transferred = sock.receive(boost::asio::buffer(d4));
+[*Shared] [*objects:] Unsafe.
 
 
+[heading Examples]
+
+Performing a blocking wait:
 
+ // Construct a timer without setting an expiry time.
+ boost::asio::waitable_timer timer(io_service);
 
-In all three cases above, the buffers created are exactly 128 bytes long. Note that a vector is [*never] automatically resized when creating or using a buffer. The buffer size is determined using the vector's `size()` member function, and not its capacity.
+ // Set an expiry time relative to now.
+ timer.expires_from_now(boost::posix_time::seconds(5));
 
+ // Wait for the timer to expire.
+ timer.wait();
 
-[heading Accessing Buffer Contents]
-
 
 
-The contents of a buffer may be accessed using the [link boost_asio.reference.buffer_size `buffer_size`] and [link boost_asio.reference.buffer_cast `buffer_cast`] functions:
 
 
+Performing an asynchronous wait:
 
- boost::asio::mutable_buffer b1 = ...;
- std::size_t s1 = boost::asio::buffer_size(b1);
- unsigned char* p1 = boost::asio::buffer_cast<unsigned char*>(b1);
+ void handler(const boost::system::error_code& error)
+ {
+ if (!error)
+ {
+ // Timer expired.
+ }
+ }
 
- boost::asio::const_buffer b2 = ...;
- std::size_t s2 = boost::asio::buffer_size(b2);
- const void* p2 = boost::asio::buffer_cast<const void*>(b2);
+ ...
 
+ // Construct a timer with an absolute expiry time.
+ boost::asio::waitable_timer timer(io_service,
+ boost::posix_time::time_from_string("2005-12-07 23:59:59.000"));
 
+ // Start an asynchronous wait.
+ timer.async_wait(handler);
 
 
-The `boost::asio::buffer_cast` function permits violations of type safety, so uses of it in application code should be carefully considered.
 
-For convenience, the [link boost_asio.reference.buffer_size `buffer_size`] function also works on buffer sequences (that is, types meeting the ConstBufferSequence or MutableBufferSequence type requirements). In this case, the function returns the total size of all buffers in the sequence.
 
 
-[heading Buffer Copying]
+[heading Changing an active waitable_timer's expiry time]
   
 
 
-The [link boost_asio.reference.buffer_copy `buffer_copy`] function may be used to copy raw bytes between individual buffers and buffer sequences.
+Changing the expiry time of a timer while there are pending asynchronous waits causes those wait operations to be cancelled. To ensure that the action associated with the timer is performed only once, use something like this: used:
 
-In particular, when used with the [link boost_asio.reference.buffer_size `buffer_size`] , the [link boost_asio.reference.buffer_copy `buffer_copy`] function can be used to linearise a sequence of buffers. For example:
 
 
+ void on_some_event()
+ {
+ if (my_timer.expires_from_now(seconds(5)) > 0)
+ {
+ // We managed to cancel the timer. Start new asynchronous wait.
+ my_timer.async_wait(on_timeout);
+ }
+ else
+ {
+ // Too late, timer has already expired!
+ }
+ }
 
- vector<const_buffer> buffers = ...;
+ void on_timeout(const boost::system::error_code& e)
+ {
+ if (e != boost::asio::error::operation_aborted)
+ {
+ // Timer was not cancelled, take necessary action.
+ }
+ }
 
- vector<unsigned char> data(boost::asio::buffer_size(buffers));
- boost::asio::buffer_copy(boost::asio::buffer(data), buffers);
 
 
 
 
+* The `boost::asio::basic_waitable_timer::expires_from_now()` function cancels any pending asynchronous waits, and returns the number of asynchronous waits that were cancelled. If it returns 0 then you were too late and the wait handler has already been executed, or will soon be executed. If it returns 1 then the wait handler was successfully cancelled.
 
-[heading Buffer Invalidation]
-
 
+* If a wait handler is cancelled, the boost::system::error\_code passed to it contains the value `boost::asio::error::operation_aborted`.
 
-A buffer object does not have any ownership of the memory it refers to. It is the responsibility of the application to ensure the memory region remains valid until it is no longer required for an I/O operation. When the memory is no longer available, the buffer is said to have been invalidated.
 
-For the `boost::asio::buffer` overloads that accept an argument of type std::vector, the buffer objects returned are invalidated by any vector operation that also invalidates all references, pointers and iterators referring to the elements in the sequence (C++ Std, 23.2.4)
 
-For the `boost::asio::buffer` overloads that accept an argument of type std::basic\_string, the buffer objects returned are invalidated according to the rules defined for invalidation of references, pointers and iterators referring to elements of the sequence (C++ Std, 21.3).
+[heading Requirements]
 
+[*Header: ][^boost/asio/basic_waitable_timer.hpp]
 
-[heading Buffer Arithmetic]
-
+[*Convenience header: ][^boost/asio.hpp]
 
 
-Buffer objects may be manipulated using simple arithmetic in a safe way which helps prevent buffer overruns. Consider an array initialised as follows:
+[section:async_wait basic_waitable_timer::async_wait]
 
+[indexterm2 async_wait..basic_waitable_timer]
+Start an asynchronous wait on the timer.
 
 
- boost::array<char, 6> a = { 'a', 'b', 'c', 'd', 'e' };
+ template<
+ typename ``[link boost_asio.reference.WaitHandler WaitHandler]``>
+ void async_wait(
+ WaitHandler handler);
 
 
+This function may be used to initiate an asynchronous wait against the timer. It always returns immediately.
 
+For each call to `async_wait()`, the supplied handler will be called exactly once. The handler will be called when:
 
-A buffer object `b1` created using:
 
+* The timer has expired.
 
 
- b1 = boost::asio::buffer(a);
+* The timer was cancelled, in which case the handler is passed the error code `boost::asio::error::operation_aborted`.
 
 
+[heading Parameters]
+
 
+[variablelist
+
+[[handler][The handler to be called when the timer expires. Copies will be made of the handler as required. The function signature of the handler must be:
+``
+ void handler(
+ const boost::system::error_code& error // Result of operation.
+ );
+``
+Regardless of whether the asynchronous operation completes immediately or not, the handler will not be invoked from within this function. Invocation of the handler will be performed in a manner equivalent to using `boost::asio::io_service::post()`. ]]
 
-represents the entire array, `{ 'a', 'b', 'c', 'd', 'e' }`. An optional second argument to the `boost::asio::buffer` function may be used to limit the size, in bytes, of the buffer:
+]
 
 
 
- b2 = boost::asio::buffer(a, 3);
 
+[endsect]
 
 
+[section:basic_waitable_timer basic_waitable_timer::basic_waitable_timer]
 
-such that `b2` represents the data `{ 'a', 'b', 'c' }`. Even if the size argument exceeds the actual size of the array, the size of the buffer object created will be limited to the array size.
+[indexterm2 basic_waitable_timer..basic_waitable_timer]
+Constructor.
 
-An offset may be applied to an existing buffer to create a new one:
 
+ explicit ``[link boost_asio.reference.basic_waitable_timer.basic_waitable_timer.overload1 basic_waitable_timer]``(
+ boost::asio::io_service & io_service);
+ `` [''''&raquo;''' [link boost_asio.reference.basic_waitable_timer.basic_waitable_timer.overload1 more...]]``
 
 
- b3 = b1 + 2;
+Constructor to set a particular expiry time as an absolute time.
 
 
+ ``[link boost_asio.reference.basic_waitable_timer.basic_waitable_timer.overload2 basic_waitable_timer]``(
+ boost::asio::io_service & io_service,
+ const time_point & expiry_time);
+ `` [''''&raquo;''' [link boost_asio.reference.basic_waitable_timer.basic_waitable_timer.overload2 more...]]``
 
 
-where `b3` will set to represent `{ 'c', 'd', 'e' }`. If the offset exceeds the size of the existing buffer, the newly created buffer will be empty.
+Constructor to set a particular expiry time relative to now.
 
-Both an offset and size may be specified to create a buffer that corresponds to a specific range of bytes within an existing buffer:
 
+ ``[link boost_asio.reference.basic_waitable_timer.basic_waitable_timer.overload3 basic_waitable_timer]``(
+ boost::asio::io_service & io_service,
+ const duration & expiry_time);
+ `` [''''&raquo;''' [link boost_asio.reference.basic_waitable_timer.basic_waitable_timer.overload3 more...]]``
 
 
- b4 = boost::asio::buffer(b1 + 1, 3);
+[section:overload1 basic_waitable_timer::basic_waitable_timer (1 of 3 overloads)]
 
 
+Constructor.
 
 
-so that `b4` will refer to the bytes `{ 'b', 'c', 'd' }`.
+ basic_waitable_timer(
+ boost::asio::io_service & io_service);
 
 
-[heading Buffers and Scatter-Gather I/O]
-
+This constructor creates a timer without setting an expiry time. The `expires_at()` or `expires_from_now()` functions must be called to set an expiry time before the timer can be waited on.
 
 
-To read or write using multiple buffers (i.e. scatter-gather I/O), multiple buffer objects may be assigned into a container that supports the MutableBufferSequence (for read) or ConstBufferSequence (for write) concepts:
+[heading Parameters]
+
 
+[variablelist
+
+[[io_service][The [link boost_asio.reference.io_service `io_service`] object that the timer will use to dispatch handlers for any asynchronous operations performed on the timer. ]]
 
+]
 
- char d1[128];
- std::vector<char> d2(128);
- boost::array<char, 128> d3;
 
- boost::array<mutable_buffer, 3> bufs1 = {
- boost::asio::buffer(d1),
- boost::asio::buffer(d2),
- boost::asio::buffer(d3) };
- bytes_transferred = sock.receive(bufs1);
 
- std::vector<const_buffer> bufs2;
- bufs2.push_back(boost::asio::buffer(d1));
- bufs2.push_back(boost::asio::buffer(d2));
- bufs2.push_back(boost::asio::buffer(d3));
- bytes_transferred = sock.send(bufs2);
 
+[endsect]
 
 
 
-[heading Requirements]
+[section:overload2 basic_waitable_timer::basic_waitable_timer (2 of 3 overloads)]
 
-[*Header: ][^boost/asio/buffer.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
+Constructor to set a particular expiry time as an absolute time.
 
 
-[section:overload1 buffer (1 of 28 overloads)]
+ basic_waitable_timer(
+ boost::asio::io_service & io_service,
+ const time_point & expiry_time);
 
 
-Create a new modifiable buffer from an existing buffer.
+This constructor creates a timer and sets the expiry time.
 
 
- mutable_buffers_1 buffer(
- const mutable_buffer & b);
+[heading Parameters]
+
 
+[variablelist
+
+[[io_service][The [link boost_asio.reference.io_service `io_service`] object that the timer will use to dispatch handlers for any asynchronous operations performed on the timer.]]
 
+[[expiry_time][The expiry time to be used for the timer, expressed as an absolute time. ]]
 
-[heading Return Value]
-
-`mutable_buffers_1(b)`.
+]
 
 
 
@@ -43347,28 +43336,30 @@
 
 
 
-[section:overload2 buffer (2 of 28 overloads)]
+[section:overload3 basic_waitable_timer::basic_waitable_timer (3 of 3 overloads)]
 
 
-Create a new modifiable buffer from an existing buffer.
+Constructor to set a particular expiry time relative to now.
 
 
- mutable_buffers_1 buffer(
- const mutable_buffer & b,
- std::size_t max_size_in_bytes);
+ basic_waitable_timer(
+ boost::asio::io_service & io_service,
+ const duration & expiry_time);
 
 
+This constructor creates a timer and sets the expiry time.
 
-[heading Return Value]
-
-A [link boost_asio.reference.mutable_buffers_1 `mutable_buffers_1`] value equivalent to:
 
- mutable_buffers_1(
- buffer_cast<void*>(b),
- min(buffer_size(b), max_size_in_bytes));
+[heading Parameters]
+
 
+[variablelist
+
+[[io_service][The [link boost_asio.reference.io_service `io_service`] object that the timer will use to dispatch handlers for any asynchronous operations performed on the timer.]]
 
+[[expiry_time][The expiry time to be used for the timer, relative to now. ]]
 
+]
 
 
 
@@ -43376,520 +43367,575 @@
 [endsect]
 
 
+[endsect]
 
-[section:overload3 buffer (3 of 28 overloads)]
+[section:cancel basic_waitable_timer::cancel]
 
+[indexterm2 cancel..basic_waitable_timer]
+Cancel any asynchronous operations that are waiting on the timer.
 
-Create a new non-modifiable buffer from an existing buffer.
 
+ std::size_t ``[link boost_asio.reference.basic_waitable_timer.cancel.overload1 cancel]``();
+ `` [''''&raquo;''' [link boost_asio.reference.basic_waitable_timer.cancel.overload1 more...]]``
 
- const_buffers_1 buffer(
- const const_buffer & b);
+ std::size_t ``[link boost_asio.reference.basic_waitable_timer.cancel.overload2 cancel]``(
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.basic_waitable_timer.cancel.overload2 more...]]``
 
 
+[section:overload1 basic_waitable_timer::cancel (1 of 2 overloads)]
 
-[heading Return Value]
-
-`const_buffers_1(b)`.
 
+Cancel any asynchronous operations that are waiting on the timer.
 
 
+ std::size_t cancel();
 
-[endsect]
 
+This function forces the completion of any pending asynchronous wait operations against the timer. The handler for each cancelled operation will be invoked with the `boost::asio::error::operation_aborted` error code.
 
+Cancelling the timer does not change the expiry time.
 
-[section:overload4 buffer (4 of 28 overloads)]
 
+[heading Return Value]
+
+The number of asynchronous operations that were cancelled.
 
-Create a new non-modifiable buffer from an existing buffer.
 
+[heading Exceptions]
+
 
- const_buffers_1 buffer(
- const const_buffer & b,
- std::size_t max_size_in_bytes);
+[variablelist
+
+[[boost::system::system_error][Thrown on failure.]]
 
+]
 
 
-[heading Return Value]
+[heading Remarks]
       
-A [link boost_asio.reference.const_buffers_1 `const_buffers_1`] value equivalent to:
-
- const_buffers_1(
- buffer_cast<const void*>(b),
- min(buffer_size(b), max_size_in_bytes));
+If the timer has already expired when `cancel()` is called, then the handlers for asynchronous wait operations will:
 
 
+* have already been invoked; or
 
 
+* have been queued for invocation in the near future.
 
+These handlers can no longer be cancelled, and therefore are passed an error code that indicates the successful completion of the wait operation.
 
 
 [endsect]
 
 
 
-[section:overload5 buffer (5 of 28 overloads)]
+[section:overload2 basic_waitable_timer::cancel (2 of 2 overloads)]
 
 
-Create a new modifiable buffer that represents the given memory range.
+Cancel any asynchronous operations that are waiting on the timer.
 
 
- mutable_buffers_1 buffer(
- void * data,
- std::size_t size_in_bytes);
+ std::size_t cancel(
+ boost::system::error_code & ec);
 
 
+This function forces the completion of any pending asynchronous wait operations against the timer. The handler for each cancelled operation will be invoked with the `boost::asio::error::operation_aborted` error code.
 
-[heading Return Value]
-
-`mutable_buffers_1(data, size_in_bytes)`.
-
+Cancelling the timer does not change the expiry time.
 
 
+[heading Parameters]
+
 
-[endsect]
+[variablelist
+
+[[ec][Set to indicate what error occurred, if any.]]
 
+]
 
 
-[section:overload6 buffer (6 of 28 overloads)]
+[heading Return Value]
+
+The number of asynchronous operations that were cancelled.
 
 
-Create a new non-modifiable buffer that represents the given memory range.
+[heading Remarks]
+
+If the timer has already expired when `cancel()` is called, then the handlers for asynchronous wait operations will:
 
 
- const_buffers_1 buffer(
- const void * data,
- std::size_t size_in_bytes);
+* have already been invoked; or
 
 
+* have been queued for invocation in the near future.
 
-[heading Return Value]
-
-`const_buffers_1(data, size_in_bytes)`.
+These handlers can no longer be cancelled, and therefore are passed an error code that indicates the successful completion of the wait operation.
 
 
+[endsect]
 
 
 [endsect]
 
+[section:cancel_one basic_waitable_timer::cancel_one]
 
-
-[section:overload7 buffer (7 of 28 overloads)]
+[indexterm2 cancel_one..basic_waitable_timer]
+Cancels one asynchronous operation that is waiting on the timer.
 
 
-Create a new modifiable buffer that represents the given POD array.
+ std::size_t ``[link boost_asio.reference.basic_waitable_timer.cancel_one.overload1 cancel_one]``();
+ `` [''''&raquo;''' [link boost_asio.reference.basic_waitable_timer.cancel_one.overload1 more...]]``
 
+ std::size_t ``[link boost_asio.reference.basic_waitable_timer.cancel_one.overload2 cancel_one]``(
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.basic_waitable_timer.cancel_one.overload2 more...]]``
 
- template<
- typename PodType,
- std::size_t N>
- mutable_buffers_1 buffer(
- PodType (&data)[N]);
 
+[section:overload1 basic_waitable_timer::cancel_one (1 of 2 overloads)]
 
 
-[heading Return Value]
-
-A [link boost_asio.reference.mutable_buffers_1 `mutable_buffers_1`] value equivalent to:
+Cancels one asynchronous operation that is waiting on the timer.
 
- mutable_buffers_1(
- static_cast<void*>(data),
- N * sizeof(PodType));
 
+ std::size_t cancel_one();
 
 
+This function forces the completion of one pending asynchronous wait operation against the timer. Handlers are cancelled in FIFO order. The handler for the cancelled operation will be invoked with the `boost::asio::error::operation_aborted` error code.
 
+Cancelling the timer does not change the expiry time.
 
 
+[heading Return Value]
+
+The number of asynchronous operations that were cancelled. That is, either 0 or 1.
 
-[endsect]
 
+[heading Exceptions]
+
 
+[variablelist
+
+[[boost::system::system_error][Thrown on failure.]]
 
-[section:overload8 buffer (8 of 28 overloads)]
+]
 
 
-Create a new modifiable buffer that represents the given POD array.
+[heading Remarks]
+
+If the timer has already expired when `cancel_one()` is called, then the handlers for asynchronous wait operations will:
 
 
- template<
- typename PodType,
- std::size_t N>
- mutable_buffers_1 buffer(
- PodType (&data)[N],
- std::size_t max_size_in_bytes);
+* have already been invoked; or
 
 
+* have been queued for invocation in the near future.
 
-[heading Return Value]
-
-A [link boost_asio.reference.mutable_buffers_1 `mutable_buffers_1`] value equivalent to:
+These handlers can no longer be cancelled, and therefore are passed an error code that indicates the successful completion of the wait operation.
 
- mutable_buffers_1(
- static_cast<void*>(data),
- min(N * sizeof(PodType), max_size_in_bytes));
 
+[endsect]
 
 
 
+[section:overload2 basic_waitable_timer::cancel_one (2 of 2 overloads)]
 
 
+Cancels one asynchronous operation that is waiting on the timer.
 
-[endsect]
 
+ std::size_t cancel_one(
+ boost::system::error_code & ec);
 
 
-[section:overload9 buffer (9 of 28 overloads)]
+This function forces the completion of one pending asynchronous wait operation against the timer. Handlers are cancelled in FIFO order. The handler for the cancelled operation will be invoked with the `boost::asio::error::operation_aborted` error code.
 
+Cancelling the timer does not change the expiry time.
 
-Create a new non-modifiable buffer that represents the given POD array.
 
+[heading Parameters]
+
 
- template<
- typename PodType,
- std::size_t N>
- const_buffers_1 buffer(
- const PodType (&data)[N]);
+[variablelist
+
+[[ec][Set to indicate what error occurred, if any.]]
 
+]
 
 
 [heading Return Value]
       
-A [link boost_asio.reference.const_buffers_1 `const_buffers_1`] value equivalent to:
-
- const_buffers_1(
- static_cast<const void*>(data),
- N * sizeof(PodType));
+The number of asynchronous operations that were cancelled. That is, either 0 or 1.
 
 
+[heading Remarks]
+
+If the timer has already expired when `cancel_one()` is called, then the handlers for asynchronous wait operations will:
 
 
+* have already been invoked; or
 
 
+* have been queued for invocation in the near future.
 
-[endsect]
+These handlers can no longer be cancelled, and therefore are passed an error code that indicates the successful completion of the wait operation.
 
 
+[endsect]
 
-[section:overload10 buffer (10 of 28 overloads)]
 
+[endsect]
 
-Create a new non-modifiable buffer that represents the given POD array.
 
+[section:clock_type basic_waitable_timer::clock_type]
 
- template<
- typename PodType,
- std::size_t N>
- const_buffers_1 buffer(
- const PodType (&data)[N],
- std::size_t max_size_in_bytes);
+[indexterm2 clock_type..basic_waitable_timer]
+The clock type.
 
 
+ typedef Clock clock_type;
 
-[heading Return Value]
-
-A [link boost_asio.reference.const_buffers_1 `const_buffers_1`] value equivalent to:
 
- const_buffers_1(
- static_cast<const void*>(data),
- min(N * sizeof(PodType), max_size_in_bytes));
 
+[heading Requirements]
 
+[*Header: ][^boost/asio/basic_waitable_timer.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
 
+[endsect]
 
 
-[endsect]
 
+[section:duration basic_waitable_timer::duration]
 
+[indexterm2 duration..basic_waitable_timer]
+The duration type of the clock.
 
-[section:overload11 buffer (11 of 28 overloads)]
 
+ typedef clock_type::duration duration;
 
-Create a new modifiable buffer that represents the given POD array.
 
 
- template<
- typename PodType,
- std::size_t N>
- mutable_buffers_1 buffer(
- boost::array< PodType, N > & data);
+[heading Requirements]
 
+[*Header: ][^boost/asio/basic_waitable_timer.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
-[heading Return Value]
-
-A [link boost_asio.reference.mutable_buffers_1 `mutable_buffers_1`] value equivalent to:
 
- mutable_buffers_1(
- data.data(),
- data.size() * sizeof(PodType));
+[endsect]
 
 
+[section:expires_at basic_waitable_timer::expires_at]
 
+[indexterm2 expires_at..basic_waitable_timer]
+Get the timer's expiry time as an absolute time.
 
 
+ time_point ``[link boost_asio.reference.basic_waitable_timer.expires_at.overload1 expires_at]``() const;
+ `` [''''&raquo;''' [link boost_asio.reference.basic_waitable_timer.expires_at.overload1 more...]]``
 
 
-[endsect]
+Set the timer's expiry time as an absolute time.
 
 
+ std::size_t ``[link boost_asio.reference.basic_waitable_timer.expires_at.overload2 expires_at]``(
+ const time_point & expiry_time);
+ `` [''''&raquo;''' [link boost_asio.reference.basic_waitable_timer.expires_at.overload2 more...]]``
 
-[section:overload12 buffer (12 of 28 overloads)]
+ std::size_t ``[link boost_asio.reference.basic_waitable_timer.expires_at.overload3 expires_at]``(
+ const time_point & expiry_time,
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.basic_waitable_timer.expires_at.overload3 more...]]``
 
 
-Create a new modifiable buffer that represents the given POD array.
+[section:overload1 basic_waitable_timer::expires_at (1 of 3 overloads)]
 
 
- template<
- typename PodType,
- std::size_t N>
- mutable_buffers_1 buffer(
- boost::array< PodType, N > & data,
- std::size_t max_size_in_bytes);
+Get the timer's expiry time as an absolute time.
 
 
+ time_point expires_at() const;
 
-[heading Return Value]
-
-A [link boost_asio.reference.mutable_buffers_1 `mutable_buffers_1`] value equivalent to:
 
- mutable_buffers_1(
- data.data(),
- min(data.size() * sizeof(PodType), max_size_in_bytes));
+This function may be used to obtain the timer's current expiry time. Whether the timer has expired or not does not affect this value.
 
 
+[endsect]
 
 
 
+[section:overload2 basic_waitable_timer::expires_at (2 of 3 overloads)]
 
 
-[endsect]
+Set the timer's expiry time as an absolute time.
 
 
+ std::size_t expires_at(
+ const time_point & expiry_time);
 
-[section:overload13 buffer (13 of 28 overloads)]
 
+This function sets the expiry time. Any pending asynchronous wait operations will be cancelled. The handler for each cancelled operation will be invoked with the `boost::asio::error::operation_aborted` error code.
 
-Create a new non-modifiable buffer that represents the given POD array.
 
+[heading Parameters]
+
 
- template<
- typename PodType,
- std::size_t N>
- const_buffers_1 buffer(
- boost::array< const PodType, N > & data);
+[variablelist
+
+[[expiry_time][The expiry time to be used for the timer.]]
 
+]
 
 
 [heading Return Value]
       
-A [link boost_asio.reference.const_buffers_1 `const_buffers_1`] value equivalent to:
+The number of asynchronous operations that were cancelled.
 
- const_buffers_1(
- data.data(),
- data.size() * sizeof(PodType));
+
+[heading Exceptions]
+
+
+[variablelist
+
+[[boost::system::system_error][Thrown on failure.]]
+
+]
+
+
+[heading Remarks]
+
+If the timer has already expired when `expires_at()` is called, then the handlers for asynchronous wait operations will:
 
 
+* have already been invoked; or
 
 
+* have been queued for invocation in the near future.
 
+These handlers can no longer be cancelled, and therefore are passed an error code that indicates the successful completion of the wait operation.
 
 
 [endsect]
 
 
 
-[section:overload14 buffer (14 of 28 overloads)]
+[section:overload3 basic_waitable_timer::expires_at (3 of 3 overloads)]
 
 
-Create a new non-modifiable buffer that represents the given POD array.
+Set the timer's expiry time as an absolute time.
 
 
- template<
- typename PodType,
- std::size_t N>
- const_buffers_1 buffer(
- boost::array< const PodType, N > & data,
- std::size_t max_size_in_bytes);
+ std::size_t expires_at(
+ const time_point & expiry_time,
+ boost::system::error_code & ec);
+
+
+This function sets the expiry time. Any pending asynchronous wait operations will be cancelled. The handler for each cancelled operation will be invoked with the `boost::asio::error::operation_aborted` error code.
+
+
+[heading Parameters]
+
+
+[variablelist
+
+[[expiry_time][The expiry time to be used for the timer.]]
+
+[[ec][Set to indicate what error occurred, if any.]]
 
+]
 
 
 [heading Return Value]
       
-A [link boost_asio.reference.const_buffers_1 `const_buffers_1`] value equivalent to:
+The number of asynchronous operations that were cancelled.
 
- const_buffers_1(
- data.data(),
- min(data.size() * sizeof(PodType), max_size_in_bytes));
+
+[heading Remarks]
+
+If the timer has already expired when `expires_at()` is called, then the handlers for asynchronous wait operations will:
 
 
+* have already been invoked; or
 
 
+* have been queued for invocation in the near future.
 
+These handlers can no longer be cancelled, and therefore are passed an error code that indicates the successful completion of the wait operation.
 
 
 [endsect]
 
 
+[endsect]
 
-[section:overload15 buffer (15 of 28 overloads)]
+[section:expires_from_now basic_waitable_timer::expires_from_now]
 
+[indexterm2 expires_from_now..basic_waitable_timer]
+Get the timer's expiry time relative to now.
 
-Create a new non-modifiable buffer that represents the given POD array.
 
+ duration ``[link boost_asio.reference.basic_waitable_timer.expires_from_now.overload1 expires_from_now]``() const;
+ `` [''''&raquo;''' [link boost_asio.reference.basic_waitable_timer.expires_from_now.overload1 more...]]``
 
- template<
- typename PodType,
- std::size_t N>
- const_buffers_1 buffer(
- const boost::array< PodType, N > & data);
 
+Set the timer's expiry time relative to now.
 
 
-[heading Return Value]
-
-A [link boost_asio.reference.const_buffers_1 `const_buffers_1`] value equivalent to:
+ std::size_t ``[link boost_asio.reference.basic_waitable_timer.expires_from_now.overload2 expires_from_now]``(
+ const duration & expiry_time);
+ `` [''''&raquo;''' [link boost_asio.reference.basic_waitable_timer.expires_from_now.overload2 more...]]``
 
- const_buffers_1(
- data.data(),
- data.size() * sizeof(PodType));
+ std::size_t ``[link boost_asio.reference.basic_waitable_timer.expires_from_now.overload3 expires_from_now]``(
+ const duration & expiry_time,
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.basic_waitable_timer.expires_from_now.overload3 more...]]``
 
 
+[section:overload1 basic_waitable_timer::expires_from_now (1 of 3 overloads)]
 
 
+Get the timer's expiry time relative to now.
 
 
+ duration expires_from_now() const;
 
-[endsect]
 
+This function may be used to obtain the timer's current expiry time. Whether the timer has expired or not does not affect this value.
 
 
-[section:overload16 buffer (16 of 28 overloads)]
+[endsect]
 
 
-Create a new non-modifiable buffer that represents the given POD array.
 
+[section:overload2 basic_waitable_timer::expires_from_now (2 of 3 overloads)]
 
- template<
- typename PodType,
- std::size_t N>
- const_buffers_1 buffer(
- const boost::array< PodType, N > & data,
- std::size_t max_size_in_bytes);
 
+Set the timer's expiry time relative to now.
 
 
-[heading Return Value]
-
-A [link boost_asio.reference.const_buffers_1 `const_buffers_1`] value equivalent to:
+ std::size_t expires_from_now(
+ const duration & expiry_time);
 
- const_buffers_1(
- data.data(),
- min(data.size() * sizeof(PodType), max_size_in_bytes));
 
+This function sets the expiry time. Any pending asynchronous wait operations will be cancelled. The handler for each cancelled operation will be invoked with the `boost::asio::error::operation_aborted` error code.
 
 
+[heading Parameters]
+
 
+[variablelist
+
+[[expiry_time][The expiry time to be used for the timer.]]
 
+]
 
 
-[endsect]
+[heading Return Value]
+
+The number of asynchronous operations that were cancelled.
 
 
+[heading Exceptions]
+
 
-[section:overload17 buffer (17 of 28 overloads)]
+[variablelist
+
+[[boost::system::system_error][Thrown on failure.]]
 
+]
 
-Create a new modifiable buffer that represents the given POD array.
 
+[heading Remarks]
+
+If the timer has already expired when `expires_from_now()` is called, then the handlers for asynchronous wait operations will:
 
- template<
- typename PodType,
- std::size_t N>
- mutable_buffers_1 buffer(
- std::array< PodType, N > & data);
 
+* have already been invoked; or
 
 
-[heading Return Value]
-
-A [link boost_asio.reference.mutable_buffers_1 `mutable_buffers_1`] value equivalent to:
+* have been queued for invocation in the near future.
+
+These handlers can no longer be cancelled, and therefore are passed an error code that indicates the successful completion of the wait operation.
 
- mutable_buffers_1(
- data.data(),
- data.size() * sizeof(PodType));
 
+[endsect]
 
 
 
+[section:overload3 basic_waitable_timer::expires_from_now (3 of 3 overloads)]
 
 
+Set the timer's expiry time relative to now.
 
-[endsect]
 
+ std::size_t expires_from_now(
+ const duration & expiry_time,
+ boost::system::error_code & ec);
 
 
-[section:overload18 buffer (18 of 28 overloads)]
+This function sets the expiry time. Any pending asynchronous wait operations will be cancelled. The handler for each cancelled operation will be invoked with the `boost::asio::error::operation_aborted` error code.
 
 
-Create a new modifiable buffer that represents the given POD array.
+[heading Parameters]
+
 
+[variablelist
+
+[[expiry_time][The expiry time to be used for the timer.]]
 
- template<
- typename PodType,
- std::size_t N>
- mutable_buffers_1 buffer(
- std::array< PodType, N > & data,
- std::size_t max_size_in_bytes);
+[[ec][Set to indicate what error occurred, if any.]]
 
+]
 
 
 [heading Return Value]
       
-A [link boost_asio.reference.mutable_buffers_1 `mutable_buffers_1`] value equivalent to:
+The number of asynchronous operations that were cancelled.
 
- mutable_buffers_1(
- data.data(),
- min(data.size() * sizeof(PodType), max_size_in_bytes));
+
+[heading Remarks]
+
+If the timer has already expired when `expires_from_now()` is called, then the handlers for asynchronous wait operations will:
 
 
+* have already been invoked; or
 
 
+* have been queued for invocation in the near future.
 
+These handlers can no longer be cancelled, and therefore are passed an error code that indicates the successful completion of the wait operation.
 
 
 [endsect]
 
 
+[endsect]
 
-[section:overload19 buffer (19 of 28 overloads)]
+[section:get_implementation basic_waitable_timer::get_implementation]
 
+[indexterm2 get_implementation..basic_waitable_timer]
+Get the underlying implementation of the I/O object.
 
-Create a new non-modifiable buffer that represents the given POD array.
 
+ implementation_type & ``[link boost_asio.reference.basic_waitable_timer.get_implementation.overload1 get_implementation]``();
+ `` [''''&raquo;''' [link boost_asio.reference.basic_waitable_timer.get_implementation.overload1 more...]]``
 
- template<
- typename PodType,
- std::size_t N>
- const_buffers_1 buffer(
- std::array< const PodType, N > & data);
+ const implementation_type & ``[link boost_asio.reference.basic_waitable_timer.get_implementation.overload2 get_implementation]``() const;
+ `` [''''&raquo;''' [link boost_asio.reference.basic_waitable_timer.get_implementation.overload2 more...]]``
 
 
+[section:overload1 basic_waitable_timer::get_implementation (1 of 2 overloads)]
 
-[heading Return Value]
-
-A [link boost_asio.reference.const_buffers_1 `const_buffers_1`] value equivalent to:
 
- const_buffers_1(
- data.data(),
- data.size() * sizeof(PodType));
+['Inherited from basic_io_object.]
 
 
+Get the underlying implementation of the I/O object.
 
 
+ implementation_type & get_implementation();
 
 
 
@@ -43897,171 +43943,156 @@
 
 
 
-[section:overload20 buffer (20 of 28 overloads)]
+[section:overload2 basic_waitable_timer::get_implementation (2 of 2 overloads)]
 
 
-Create a new non-modifiable buffer that represents the given POD array.
+['Inherited from basic_io_object.]
 
 
- template<
- typename PodType,
- std::size_t N>
- const_buffers_1 buffer(
- std::array< const PodType, N > & data,
- std::size_t max_size_in_bytes);
+Get the underlying implementation of the I/O object.
 
 
+ const implementation_type & get_implementation() const;
 
-[heading Return Value]
-
-A [link boost_asio.reference.const_buffers_1 `const_buffers_1`] value equivalent to:
 
- const_buffers_1(
- data.data(),
- min(data.size() * sizeof(PodType), max_size_in_bytes));
 
+[endsect]
 
 
+[endsect]
 
 
+[section:get_io_service basic_waitable_timer::get_io_service]
 
 
-[endsect]
+['Inherited from basic_io_object.]
 
+[indexterm2 get_io_service..basic_waitable_timer]
+Get the [link boost_asio.reference.io_service `io_service`] associated with the object.
 
 
-[section:overload21 buffer (21 of 28 overloads)]
+ boost::asio::io_service & get_io_service();
 
 
-Create a new non-modifiable buffer that represents the given POD array.
+This function may be used to obtain the [link boost_asio.reference.io_service `io_service`] object that the I/O object uses to dispatch handlers for asynchronous operations.
 
 
- template<
- typename PodType,
- std::size_t N>
- const_buffers_1 buffer(
- const std::array< PodType, N > & data);
+[heading Return Value]
+
+A reference to the [link boost_asio.reference.io_service `io_service`] object that the I/O object will use to dispatch handlers. Ownership is not transferred to the caller.
 
 
 
-[heading Return Value]
-
-A [link boost_asio.reference.const_buffers_1 `const_buffers_1`] value equivalent to:
 
- const_buffers_1(
- data.data(),
- data.size() * sizeof(PodType));
+[endsect]
 
 
+[section:get_service basic_waitable_timer::get_service]
 
+[indexterm2 get_service..basic_waitable_timer]
+Get the service associated with the I/O object.
 
 
+ service_type & ``[link boost_asio.reference.basic_waitable_timer.get_service.overload1 get_service]``();
+ `` [''''&raquo;''' [link boost_asio.reference.basic_waitable_timer.get_service.overload1 more...]]``
 
+ const service_type & ``[link boost_asio.reference.basic_waitable_timer.get_service.overload2 get_service]``() const;
+ `` [''''&raquo;''' [link boost_asio.reference.basic_waitable_timer.get_service.overload2 more...]]``
 
-[endsect]
 
+[section:overload1 basic_waitable_timer::get_service (1 of 2 overloads)]
 
 
-[section:overload22 buffer (22 of 28 overloads)]
+['Inherited from basic_io_object.]
 
 
-Create a new non-modifiable buffer that represents the given POD array.
+Get the service associated with the I/O object.
 
 
- template<
- typename PodType,
- std::size_t N>
- const_buffers_1 buffer(
- const std::array< PodType, N > & data,
- std::size_t max_size_in_bytes);
+ service_type & get_service();
 
 
 
-[heading Return Value]
-
-A [link boost_asio.reference.const_buffers_1 `const_buffers_1`] value equivalent to:
+[endsect]
 
- const_buffers_1(
- data.data(),
- min(data.size() * sizeof(PodType), max_size_in_bytes));
 
 
+[section:overload2 basic_waitable_timer::get_service (2 of 2 overloads)]
+
+
+['Inherited from basic_io_object.]
+
+
+Get the service associated with the I/O object.
 
 
+ const service_type & get_service() const;
 
 
 
 [endsect]
 
 
+[endsect]
 
-[section:overload23 buffer (23 of 28 overloads)]
 
+[section:implementation basic_waitable_timer::implementation]
 
-Create a new modifiable buffer that represents the given POD vector.
 
+['Inherited from basic_io_object.]
 
- template<
- typename PodType,
- typename Allocator>
- mutable_buffers_1 buffer(
- std::vector< PodType, Allocator > & data);
+[indexterm2 implementation..basic_waitable_timer]
+(Deprecated: Use `get_implementation()`.) The underlying implementation of the I/O object.
 
 
+ implementation_type implementation;
 
-[heading Return Value]
-
-A [link boost_asio.reference.mutable_buffers_1 `mutable_buffers_1`] value equivalent to:
 
- mutable_buffers_1(
- data.size() ? &data[0] : 0,
- data.size() * sizeof(PodType));
 
+[endsect]
 
 
 
+[section:implementation_type basic_waitable_timer::implementation_type]
 
-[heading Remarks]
-
-The buffer is invalidated by any vector operation that would also invalidate iterators.
 
+['Inherited from basic_io_object.]
 
+[indexterm2 implementation_type..basic_waitable_timer]
+The underlying implementation type of I/O object.
 
 
-[endsect]
+ typedef service_type::implementation_type implementation_type;
 
 
 
-[section:overload24 buffer (24 of 28 overloads)]
+[heading Requirements]
 
+[*Header: ][^boost/asio/basic_waitable_timer.hpp]
 
-Create a new modifiable buffer that represents the given POD vector.
+[*Convenience header: ][^boost/asio.hpp]
 
 
- template<
- typename PodType,
- typename Allocator>
- mutable_buffers_1 buffer(
- std::vector< PodType, Allocator > & data,
- std::size_t max_size_in_bytes);
+[endsect]
 
 
 
-[heading Return Value]
-
-A [link boost_asio.reference.mutable_buffers_1 `mutable_buffers_1`] value equivalent to:
+[section:service basic_waitable_timer::service]
 
- mutable_buffers_1(
- data.size() ? &data[0] : 0,
- min(data.size() * sizeof(PodType), max_size_in_bytes));
+
+['Inherited from basic_io_object.]
+
+[indexterm2 service..basic_waitable_timer]
+(Deprecated: Use `get_service()`.) The service associated with the I/O object.
 
 
+ service_type & service;
 
 
 
 [heading Remarks]
       
-The buffer is invalidated by any vector operation that would also invalidate iterators.
+Available only for services that do not support movability.
 
 
 
@@ -44070,143 +44101,134 @@
 
 
 
-[section:overload25 buffer (25 of 28 overloads)]
+[section:service_type basic_waitable_timer::service_type]
 
 
-Create a new non-modifiable buffer that represents the given POD vector.
+['Inherited from basic_io_object.]
 
+[indexterm2 service_type..basic_waitable_timer]
+The type of the service that will be used to provide I/O operations.
 
- template<
- typename PodType,
- typename Allocator>
- const_buffers_1 buffer(
- const std::vector< PodType, Allocator > & data);
 
+ typedef WaitableTimerService service_type;
 
 
-[heading Return Value]
-
-A [link boost_asio.reference.const_buffers_1 `const_buffers_1`] value equivalent to:
 
- const_buffers_1(
- data.size() ? &data[0] : 0,
- data.size() * sizeof(PodType));
+[heading Requirements]
 
+[*Header: ][^boost/asio/basic_waitable_timer.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
 
+[endsect]
 
-[heading Remarks]
-
-The buffer is invalidated by any vector operation that would also invalidate iterators.
 
 
+[section:time_point basic_waitable_timer::time_point]
 
+[indexterm2 time_point..basic_waitable_timer]
+The time point type of the clock.
 
-[endsect]
 
+ typedef clock_type::time_point time_point;
 
 
-[section:overload26 buffer (26 of 28 overloads)]
 
+[heading Requirements]
 
-Create a new non-modifiable buffer that represents the given POD vector.
+[*Header: ][^boost/asio/basic_waitable_timer.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
- template<
- typename PodType,
- typename Allocator>
- const_buffers_1 buffer(
- const std::vector< PodType, Allocator > & data,
- std::size_t max_size_in_bytes);
 
+[endsect]
 
 
-[heading Return Value]
-
-A [link boost_asio.reference.const_buffers_1 `const_buffers_1`] value equivalent to:
 
- const_buffers_1(
- data.size() ? &data[0] : 0,
- min(data.size() * sizeof(PodType), max_size_in_bytes));
+[section:traits_type basic_waitable_timer::traits_type]
 
+[indexterm2 traits_type..basic_waitable_timer]
+The wait traits type.
 
 
+ typedef WaitTraits traits_type;
 
 
-[heading Remarks]
-
-The buffer is invalidated by any vector operation that would also invalidate iterators.
 
+[heading Requirements]
+
+[*Header: ][^boost/asio/basic_waitable_timer.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
+[section:wait basic_waitable_timer::wait]
 
-[section:overload27 buffer (27 of 28 overloads)]
+[indexterm2 wait..basic_waitable_timer]
+Perform a blocking wait on the timer.
 
 
-Create a new non-modifiable buffer that represents the given string.
+ void ``[link boost_asio.reference.basic_waitable_timer.wait.overload1 wait]``();
+ `` [''''&raquo;''' [link boost_asio.reference.basic_waitable_timer.wait.overload1 more...]]``
 
+ void ``[link boost_asio.reference.basic_waitable_timer.wait.overload2 wait]``(
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.basic_waitable_timer.wait.overload2 more...]]``
 
- template<
- typename Elem,
- typename Traits,
- typename Allocator>
- const_buffers_1 buffer(
- const std::basic_string< Elem, Traits, Allocator > & data);
 
+[section:overload1 basic_waitable_timer::wait (1 of 2 overloads)]
 
 
-[heading Return Value]
-
-`const_buffers_1(data.data(), data.size() * sizeof(Elem))`.
+Perform a blocking wait on the timer.
 
 
-[heading Remarks]
-
-The buffer is invalidated by any non-const operation called on the given string object.
+ void wait();
 
 
+This function is used to wait for the timer to expire. This function blocks and does not return until the timer has expired.
 
 
-[endsect]
+[heading Exceptions]
+
 
+[variablelist
+
+[[boost::system::system_error][Thrown on failure. ]]
 
+]
 
-[section:overload28 buffer (28 of 28 overloads)]
 
 
-Create a new non-modifiable buffer that represents the given string.
 
+[endsect]
 
- template<
- typename Elem,
- typename Traits,
- typename Allocator>
- const_buffers_1 buffer(
- const std::basic_string< Elem, Traits, Allocator > & data,
- std::size_t max_size_in_bytes);
 
 
+[section:overload2 basic_waitable_timer::wait (2 of 2 overloads)]
 
-[heading Return Value]
-
-A [link boost_asio.reference.const_buffers_1 `const_buffers_1`] value equivalent to:
 
- const_buffers_1(
- data.data(),
- min(data.size() * sizeof(Elem), max_size_in_bytes));
+Perform a blocking wait on the timer.
 
 
+ void wait(
+ boost::system::error_code & ec);
 
 
+This function is used to wait for the timer to expire. This function blocks and does not return until the timer has expired.
 
-[heading Remarks]
-
-The buffer is invalidated by any non-const operation called on the given string object.
+
+[heading Parameters]
+
+
+[variablelist
+
+[[ec][Set to indicate what error occurred, if any. ]]
+
+]
 
 
 
@@ -44216,542 +44238,508 @@
 
 [endsect]
 
-[section:buffer_cast buffer_cast]
 
-[indexterm1 buffer_cast]
-The `boost::asio::buffer_cast` function is used to obtain a pointer to the underlying memory region associated with a buffer.
+[endsect]
+
+[section:buffer buffer]
+
+[indexterm1 buffer]
+The `boost::asio::buffer` function is used to create a buffer object to represent raw memory, an array of POD elements, a vector of POD elements, or a std::string.
 
       
- template<
- typename PointerToPodType>
- PointerToPodType ``[link boost_asio.reference.buffer_cast.overload1 buffer_cast]``(
+ mutable_buffers_1 ``[link boost_asio.reference.buffer.overload1 buffer]``(
       const mutable_buffer & b);
- `` [''''&raquo;''' [link boost_asio.reference.buffer_cast.overload1 more...]]``
+ `` [''''&raquo;''' [link boost_asio.reference.buffer.overload1 more...]]``
 
- template<
- typename PointerToPodType>
- PointerToPodType ``[link boost_asio.reference.buffer_cast.overload2 buffer_cast]``(
+ mutable_buffers_1 ``[link boost_asio.reference.buffer.overload2 buffer]``(
+ const mutable_buffer & b,
+ std::size_t max_size_in_bytes);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer.overload2 more...]]``
+
+ const_buffers_1 ``[link boost_asio.reference.buffer.overload3 buffer]``(
       const const_buffer & b);
- `` [''''&raquo;''' [link boost_asio.reference.buffer_cast.overload2 more...]]``
+ `` [''''&raquo;''' [link boost_asio.reference.buffer.overload3 more...]]``
 
+ const_buffers_1 ``[link boost_asio.reference.buffer.overload4 buffer]``(
+ const const_buffer & b,
+ std::size_t max_size_in_bytes);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer.overload4 more...]]``
 
-[heading Examples:]
-
+ mutable_buffers_1 ``[link boost_asio.reference.buffer.overload5 buffer]``(
+ void * data,
+ std::size_t size_in_bytes);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer.overload5 more...]]``
 
+ const_buffers_1 ``[link boost_asio.reference.buffer.overload6 buffer]``(
+ const void * data,
+ std::size_t size_in_bytes);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer.overload6 more...]]``
 
-To access the memory of a non-modifiable buffer, use:
+ template<
+ typename PodType,
+ std::size_t N>
+ mutable_buffers_1 ``[link boost_asio.reference.buffer.overload7 buffer]``(
+ PodType (&data)[N]);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer.overload7 more...]]``
 
- boost::asio::const_buffer b1 = ...;
- const unsigned char* p1 = boost::asio::buffer_cast<const unsigned char*>(b1);
+ template<
+ typename PodType,
+ std::size_t N>
+ mutable_buffers_1 ``[link boost_asio.reference.buffer.overload8 buffer]``(
+ PodType (&data)[N],
+ std::size_t max_size_in_bytes);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer.overload8 more...]]``
 
+ template<
+ typename PodType,
+ std::size_t N>
+ const_buffers_1 ``[link boost_asio.reference.buffer.overload9 buffer]``(
+ const PodType (&data)[N]);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer.overload9 more...]]``
 
+ template<
+ typename PodType,
+ std::size_t N>
+ const_buffers_1 ``[link boost_asio.reference.buffer.overload10 buffer]``(
+ const PodType (&data)[N],
+ std::size_t max_size_in_bytes);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer.overload10 more...]]``
 
+ template<
+ typename PodType,
+ std::size_t N>
+ mutable_buffers_1 ``[link boost_asio.reference.buffer.overload11 buffer]``(
+ boost::array< PodType, N > & data);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer.overload11 more...]]``
 
-To access the memory of a modifiable buffer, use:
+ template<
+ typename PodType,
+ std::size_t N>
+ mutable_buffers_1 ``[link boost_asio.reference.buffer.overload12 buffer]``(
+ boost::array< PodType, N > & data,
+ std::size_t max_size_in_bytes);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer.overload12 more...]]``
 
- boost::asio::mutable_buffer b2 = ...;
- unsigned char* p2 = boost::asio::buffer_cast<unsigned char*>(b2);
+ template<
+ typename PodType,
+ std::size_t N>
+ const_buffers_1 ``[link boost_asio.reference.buffer.overload13 buffer]``(
+ boost::array< const PodType, N > & data);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer.overload13 more...]]``
 
+ template<
+ typename PodType,
+ std::size_t N>
+ const_buffers_1 ``[link boost_asio.reference.buffer.overload14 buffer]``(
+ boost::array< const PodType, N > & data,
+ std::size_t max_size_in_bytes);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer.overload14 more...]]``
 
+ template<
+ typename PodType,
+ std::size_t N>
+ const_buffers_1 ``[link boost_asio.reference.buffer.overload15 buffer]``(
+ const boost::array< PodType, N > & data);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer.overload15 more...]]``
 
+ template<
+ typename PodType,
+ std::size_t N>
+ const_buffers_1 ``[link boost_asio.reference.buffer.overload16 buffer]``(
+ const boost::array< PodType, N > & data,
+ std::size_t max_size_in_bytes);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer.overload16 more...]]``
 
-The `boost::asio::buffer_cast` function permits violations of type safety, so uses of it in application code should be carefully considered.
+ template<
+ typename PodType,
+ std::size_t N>
+ mutable_buffers_1 ``[link boost_asio.reference.buffer.overload17 buffer]``(
+ std::array< PodType, N > & data);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer.overload17 more...]]``
 
-[heading Requirements]
+ template<
+ typename PodType,
+ std::size_t N>
+ mutable_buffers_1 ``[link boost_asio.reference.buffer.overload18 buffer]``(
+ std::array< PodType, N > & data,
+ std::size_t max_size_in_bytes);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer.overload18 more...]]``
 
-[*Header: ][^boost/asio/buffer.hpp]
+ template<
+ typename PodType,
+ std::size_t N>
+ const_buffers_1 ``[link boost_asio.reference.buffer.overload19 buffer]``(
+ std::array< const PodType, N > & data);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer.overload19 more...]]``
 
-[*Convenience header: ][^boost/asio.hpp]
+ template<
+ typename PodType,
+ std::size_t N>
+ const_buffers_1 ``[link boost_asio.reference.buffer.overload20 buffer]``(
+ std::array< const PodType, N > & data,
+ std::size_t max_size_in_bytes);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer.overload20 more...]]``
 
+ template<
+ typename PodType,
+ std::size_t N>
+ const_buffers_1 ``[link boost_asio.reference.buffer.overload21 buffer]``(
+ const std::array< PodType, N > & data);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer.overload21 more...]]``
 
-[section:overload1 buffer_cast (1 of 2 overloads)]
+ template<
+ typename PodType,
+ std::size_t N>
+ const_buffers_1 ``[link boost_asio.reference.buffer.overload22 buffer]``(
+ const std::array< PodType, N > & data,
+ std::size_t max_size_in_bytes);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer.overload22 more...]]``
 
+ template<
+ typename PodType,
+ typename Allocator>
+ mutable_buffers_1 ``[link boost_asio.reference.buffer.overload23 buffer]``(
+ std::vector< PodType, Allocator > & data);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer.overload23 more...]]``
 
-Cast a non-modifiable buffer to a specified pointer to POD type.
+ template<
+ typename PodType,
+ typename Allocator>
+ mutable_buffers_1 ``[link boost_asio.reference.buffer.overload24 buffer]``(
+ std::vector< PodType, Allocator > & data,
+ std::size_t max_size_in_bytes);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer.overload24 more...]]``
 
+ template<
+ typename PodType,
+ typename Allocator>
+ const_buffers_1 ``[link boost_asio.reference.buffer.overload25 buffer]``(
+ const std::vector< PodType, Allocator > & data);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer.overload25 more...]]``
 
   template<
- typename PointerToPodType>
- PointerToPodType buffer_cast(
- const mutable_buffer & b);
+ typename PodType,
+ typename Allocator>
+ const_buffers_1 ``[link boost_asio.reference.buffer.overload26 buffer]``(
+ const std::vector< PodType, Allocator > & data,
+ std::size_t max_size_in_bytes);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer.overload26 more...]]``
 
+ template<
+ typename Elem,
+ typename Traits,
+ typename Allocator>
+ const_buffers_1 ``[link boost_asio.reference.buffer.overload27 buffer]``(
+ const std::basic_string< Elem, Traits, Allocator > & data);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer.overload27 more...]]``
 
+ template<
+ typename Elem,
+ typename Traits,
+ typename Allocator>
+ const_buffers_1 ``[link boost_asio.reference.buffer.overload28 buffer]``(
+ const std::basic_string< Elem, Traits, Allocator > & data,
+ std::size_t max_size_in_bytes);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer.overload28 more...]]``
 
-[endsect]
+A buffer object represents a contiguous region of memory as a 2-tuple consisting of a pointer and size in bytes. A tuple of the form `{void*, size_t}` specifies a mutable (modifiable) region of memory. Similarly, a tuple of the form `{const void*, size_t}` specifies a const (non-modifiable) region of memory. These two forms correspond to the classes [link boost_asio.reference.mutable_buffer `mutable_buffer`] and [link boost_asio.reference.const_buffer `const_buffer`], respectively. To mirror C++'s conversion rules, a [link boost_asio.reference.mutable_buffer `mutable_buffer`] is implicitly convertible to a [link boost_asio.reference.const_buffer `const_buffer`], and the opposite conversion is not permitted.
 
+The simplest use case involves reading or writing a single buffer of a specified size:
 
 
-[section:overload2 buffer_cast (2 of 2 overloads)]
 
+ sock.send(boost::asio::buffer(data, size));
 
-Cast a non-modifiable buffer to a specified pointer to POD type.
 
 
- template<
- typename PointerToPodType>
- PointerToPodType buffer_cast(
- const const_buffer & b);
 
+In the above example, the return value of `boost::asio::buffer` meets the requirements of the ConstBufferSequence concept so that it may be directly passed to the socket's write function. A buffer created for modifiable memory also meets the requirements of the MutableBufferSequence concept.
 
+An individual buffer may be created from a builtin array, std::vector, std::array or boost::array of POD elements. This helps prevent buffer overruns by automatically determining the size of the buffer:
 
-[endsect]
 
 
-[endsect]
+ char d1[128];
+ size_t bytes_transferred = sock.receive(boost::asio::buffer(d1));
 
-[section:buffer_copy buffer_copy]
+ std::vector<char> d2(128);
+ bytes_transferred = sock.receive(boost::asio::buffer(d2));
 
-[indexterm1 buffer_copy]
-The `boost::asio::buffer_copy` function is used to copy bytes from a source buffer (or buffer sequence) to a target buffer (or buffer sequence).
+ std::array<char, 128> d3;
+ bytes_transferred = sock.receive(boost::asio::buffer(d3));
 
-
- std::size_t ``[link boost_asio.reference.buffer_copy.overload1 buffer_copy]``(
- const mutable_buffer & target,
- const const_buffer & source);
- `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload1 more...]]``
+ boost::array<char, 128> d4;
+ bytes_transferred = sock.receive(boost::asio::buffer(d4));
 
- std::size_t ``[link boost_asio.reference.buffer_copy.overload2 buffer_copy]``(
- const mutable_buffer & target,
- const const_buffers_1 & source);
- `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload2 more...]]``
 
- std::size_t ``[link boost_asio.reference.buffer_copy.overload3 buffer_copy]``(
- const mutable_buffer & target,
- const mutable_buffer & source);
- `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload3 more...]]``
 
- std::size_t ``[link boost_asio.reference.buffer_copy.overload4 buffer_copy]``(
- const mutable_buffer & target,
- const mutable_buffers_1 & source);
- `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload4 more...]]``
 
- template<
- typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
- std::size_t ``[link boost_asio.reference.buffer_copy.overload5 buffer_copy]``(
- const mutable_buffer & target,
- const ConstBufferSequence & source);
- `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload5 more...]]``
+In all three cases above, the buffers created are exactly 128 bytes long. Note that a vector is [*never] automatically resized when creating or using a buffer. The buffer size is determined using the vector's `size()` member function, and not its capacity.
 
- std::size_t ``[link boost_asio.reference.buffer_copy.overload6 buffer_copy]``(
- const mutable_buffers_1 & target,
- const const_buffer & source);
- `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload6 more...]]``
 
- std::size_t ``[link boost_asio.reference.buffer_copy.overload7 buffer_copy]``(
- const mutable_buffers_1 & target,
- const const_buffers_1 & source);
- `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload7 more...]]``
+[heading Accessing Buffer Contents]
+
 
- std::size_t ``[link boost_asio.reference.buffer_copy.overload8 buffer_copy]``(
- const mutable_buffers_1 & target,
- const mutable_buffer & source);
- `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload8 more...]]``
 
- std::size_t ``[link boost_asio.reference.buffer_copy.overload9 buffer_copy]``(
- const mutable_buffers_1 & target,
- const mutable_buffers_1 & source);
- `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload9 more...]]``
+The contents of a buffer may be accessed using the [link boost_asio.reference.buffer_size `buffer_size`] and [link boost_asio.reference.buffer_cast `buffer_cast`] functions:
 
- template<
- typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
- std::size_t ``[link boost_asio.reference.buffer_copy.overload10 buffer_copy]``(
- const mutable_buffers_1 & target,
- const ConstBufferSequence & source);
- `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload10 more...]]``
 
- template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
- std::size_t ``[link boost_asio.reference.buffer_copy.overload11 buffer_copy]``(
- const MutableBufferSequence & target,
- const const_buffer & source);
- `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload11 more...]]``
 
- template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
- std::size_t ``[link boost_asio.reference.buffer_copy.overload12 buffer_copy]``(
- const MutableBufferSequence & target,
- const const_buffers_1 & source);
- `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload12 more...]]``
+ boost::asio::mutable_buffer b1 = ...;
+ std::size_t s1 = boost::asio::buffer_size(b1);
+ unsigned char* p1 = boost::asio::buffer_cast<unsigned char*>(b1);
 
- template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
- std::size_t ``[link boost_asio.reference.buffer_copy.overload13 buffer_copy]``(
- const MutableBufferSequence & target,
- const mutable_buffer & source);
- `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload13 more...]]``
+ boost::asio::const_buffer b2 = ...;
+ std::size_t s2 = boost::asio::buffer_size(b2);
+ const void* p2 = boost::asio::buffer_cast<const void*>(b2);
 
- template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
- std::size_t ``[link boost_asio.reference.buffer_copy.overload14 buffer_copy]``(
- const MutableBufferSequence & target,
- const mutable_buffers_1 & source);
- `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload14 more...]]``
 
- template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``,
- typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
- std::size_t ``[link boost_asio.reference.buffer_copy.overload15 buffer_copy]``(
- const MutableBufferSequence & target,
- const ConstBufferSequence & source);
- `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload15 more...]]``
 
- std::size_t ``[link boost_asio.reference.buffer_copy.overload16 buffer_copy]``(
- const mutable_buffer & target,
- const const_buffer & source,
- std::size_t max_bytes_to_copy);
- `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload16 more...]]``
 
- std::size_t ``[link boost_asio.reference.buffer_copy.overload17 buffer_copy]``(
- const mutable_buffer & target,
- const const_buffers_1 & source,
- std::size_t max_bytes_to_copy);
- `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload17 more...]]``
+The `boost::asio::buffer_cast` function permits violations of type safety, so uses of it in application code should be carefully considered.
 
- std::size_t ``[link boost_asio.reference.buffer_copy.overload18 buffer_copy]``(
- const mutable_buffer & target,
- const mutable_buffer & source,
- std::size_t max_bytes_to_copy);
- `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload18 more...]]``
+For convenience, the [link boost_asio.reference.buffer_size `buffer_size`] function also works on buffer sequences (that is, types meeting the ConstBufferSequence or MutableBufferSequence type requirements). In this case, the function returns the total size of all buffers in the sequence.
 
- std::size_t ``[link boost_asio.reference.buffer_copy.overload19 buffer_copy]``(
- const mutable_buffer & target,
- const mutable_buffers_1 & source,
- std::size_t max_bytes_to_copy);
- `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload19 more...]]``
 
- template<
- typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
- std::size_t ``[link boost_asio.reference.buffer_copy.overload20 buffer_copy]``(
- const mutable_buffer & target,
- const ConstBufferSequence & source,
- std::size_t max_bytes_to_copy);
- `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload20 more...]]``
+[heading Buffer Copying]
+
 
- std::size_t ``[link boost_asio.reference.buffer_copy.overload21 buffer_copy]``(
- const mutable_buffers_1 & target,
- const const_buffer & source,
- std::size_t max_bytes_to_copy);
- `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload21 more...]]``
 
- std::size_t ``[link boost_asio.reference.buffer_copy.overload22 buffer_copy]``(
- const mutable_buffers_1 & target,
- const const_buffers_1 & source,
- std::size_t max_bytes_to_copy);
- `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload22 more...]]``
+The [link boost_asio.reference.buffer_copy `buffer_copy`] function may be used to copy raw bytes between individual buffers and buffer sequences.
 
- std::size_t ``[link boost_asio.reference.buffer_copy.overload23 buffer_copy]``(
- const mutable_buffers_1 & target,
- const mutable_buffer & source,
- std::size_t max_bytes_to_copy);
- `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload23 more...]]``
+In particular, when used with the [link boost_asio.reference.buffer_size `buffer_size`] , the [link boost_asio.reference.buffer_copy `buffer_copy`] function can be used to linearise a sequence of buffers. For example:
 
- std::size_t ``[link boost_asio.reference.buffer_copy.overload24 buffer_copy]``(
- const mutable_buffers_1 & target,
- const mutable_buffers_1 & source,
- std::size_t max_bytes_to_copy);
- `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload24 more...]]``
 
- template<
- typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
- std::size_t ``[link boost_asio.reference.buffer_copy.overload25 buffer_copy]``(
- const mutable_buffers_1 & target,
- const ConstBufferSequence & source,
- std::size_t max_bytes_to_copy);
- `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload25 more...]]``
 
- template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
- std::size_t ``[link boost_asio.reference.buffer_copy.overload26 buffer_copy]``(
- const MutableBufferSequence & target,
- const const_buffer & source,
- std::size_t max_bytes_to_copy);
- `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload26 more...]]``
+ vector<const_buffer> buffers = ...;
 
- template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
- std::size_t ``[link boost_asio.reference.buffer_copy.overload27 buffer_copy]``(
- const MutableBufferSequence & target,
- const const_buffers_1 & source,
- std::size_t max_bytes_to_copy);
- `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload27 more...]]``
+ vector<unsigned char> data(boost::asio::buffer_size(buffers));
+ boost::asio::buffer_copy(boost::asio::buffer(data), buffers);
 
- template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
- std::size_t ``[link boost_asio.reference.buffer_copy.overload28 buffer_copy]``(
- const MutableBufferSequence & target,
- const mutable_buffer & source,
- std::size_t max_bytes_to_copy);
- `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload28 more...]]``
 
- template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
- std::size_t ``[link boost_asio.reference.buffer_copy.overload29 buffer_copy]``(
- const MutableBufferSequence & target,
- const mutable_buffers_1 & source,
- std::size_t max_bytes_to_copy);
- `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload29 more...]]``
 
- template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``,
- typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
- std::size_t ``[link boost_asio.reference.buffer_copy.overload30 buffer_copy]``(
- const MutableBufferSequence & target,
- const ConstBufferSequence & source,
- std::size_t max_bytes_to_copy);
- `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload30 more...]]``
 
-The `buffer_copy` function is available in two forms:
 
+[heading Buffer Invalidation]
+
 
-* A 2-argument form: `buffer_copy(target, source)`
 
+A buffer object does not have any ownership of the memory it refers to. It is the responsibility of the application to ensure the memory region remains valid until it is no longer required for an I/O operation. When the memory is no longer available, the buffer is said to have been invalidated.
 
-* A 3-argument form: `buffer_copy(target, source, max_bytes_to_copy)`
+For the `boost::asio::buffer` overloads that accept an argument of type std::vector, the buffer objects returned are invalidated by any vector operation that also invalidates all references, pointers and iterators referring to the elements in the sequence (C++ Std, 23.2.4)
 
-Both forms return the number of bytes actually copied. The number of bytes copied is the lesser of:
+For the `boost::asio::buffer` overloads that accept an argument of type std::basic\_string, the buffer objects returned are invalidated according to the rules defined for invalidation of references, pointers and iterators referring to elements of the sequence (C++ Std, 21.3).
 
 
-* `buffer_size(target)`
+[heading Buffer Arithmetic]
+
 
 
-* `buffer_size(source)`
+Buffer objects may be manipulated using simple arithmetic in a safe way which helps prevent buffer overruns. Consider an array initialised as follows:
 
 
-* `If` specified, `max_bytes_to_copy`.
 
-This prevents buffer overflow, regardless of the buffer sizes used in the copy operation.
+ boost::array<char, 6> a = { 'a', 'b', 'c', 'd', 'e' };
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/buffer.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
 
+A buffer object `b1` created using:
 
-[section:overload1 buffer_copy (1 of 30 overloads)]
 
 
-Copies bytes from a source buffer to a target buffer.
+ b1 = boost::asio::buffer(a);
 
 
- std::size_t buffer_copy(
- const mutable_buffer & target,
- const const_buffer & source);
 
 
+represents the entire array, `{ 'a', 'b', 'c', 'd', 'e' }`. An optional second argument to the `boost::asio::buffer` function may be used to limit the size, in bytes, of the buffer:
 
-[heading Parameters]
-
-
-[variablelist
-
-[[target][A modifiable buffer representing the memory region to which the bytes will be copied.]]
-
-[[source][A non-modifiable buffer representing the memory region from which the bytes will be copied.]]
 
-]
 
+ b2 = boost::asio::buffer(a, 3);
 
-[heading Return Value]
-
-The number of bytes copied.
 
 
-[heading Remarks]
-
-The number of bytes copied is the lesser of:
 
+such that `b2` represents the data `{ 'a', 'b', 'c' }`. Even if the size argument exceeds the actual size of the array, the size of the buffer object created will be limited to the array size.
 
-* `buffer_size(target)`
+An offset may be applied to an existing buffer to create a new one:
 
 
-* `buffer_size(source)`
 
+ b3 = b1 + 2;
 
 
 
-[endsect]
 
+where `b3` will set to represent `{ 'c', 'd', 'e' }`. If the offset exceeds the size of the existing buffer, the newly created buffer will be empty.
 
+Both an offset and size may be specified to create a buffer that corresponds to a specific range of bytes within an existing buffer:
 
-[section:overload2 buffer_copy (2 of 30 overloads)]
 
 
-Copies bytes from a source buffer to a target buffer.
+ b4 = boost::asio::buffer(b1 + 1, 3);
 
 
- std::size_t buffer_copy(
- const mutable_buffer & target,
- const const_buffers_1 & source);
 
 
+so that `b4` will refer to the bytes `{ 'b', 'c', 'd' }`.
 
-[heading Parameters]
-
 
-[variablelist
+[heading Buffers and Scatter-Gather I/O]
   
-[[target][A modifiable buffer representing the memory region to which the bytes will be copied.]]
 
-[[source][A non-modifiable buffer representing the memory region from which the bytes will be copied.]]
 
-]
+To read or write using multiple buffers (i.e. scatter-gather I/O), multiple buffer objects may be assigned into a container that supports the MutableBufferSequence (for read) or ConstBufferSequence (for write) concepts:
 
 
-[heading Return Value]
-
-The number of bytes copied.
 
+ char d1[128];
+ std::vector<char> d2(128);
+ boost::array<char, 128> d3;
 
-[heading Remarks]
-
-The number of bytes copied is the lesser of:
+ boost::array<mutable_buffer, 3> bufs1 = {
+ boost::asio::buffer(d1),
+ boost::asio::buffer(d2),
+ boost::asio::buffer(d3) };
+ bytes_transferred = sock.receive(bufs1);
 
+ std::vector<const_buffer> bufs2;
+ bufs2.push_back(boost::asio::buffer(d1));
+ bufs2.push_back(boost::asio::buffer(d2));
+ bufs2.push_back(boost::asio::buffer(d3));
+ bytes_transferred = sock.send(bufs2);
 
-* `buffer_size(target)`
 
 
-* `buffer_size(source)`
 
+[heading Requirements]
 
+[*Header: ][^boost/asio/buffer.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
-[endsect]
 
+[section:overload1 buffer (1 of 28 overloads)]
 
 
-[section:overload3 buffer_copy (3 of 30 overloads)]
+Create a new modifiable buffer from an existing buffer.
 
 
-Copies bytes from a source buffer to a target buffer.
+ mutable_buffers_1 buffer(
+ const mutable_buffer & b);
 
 
- std::size_t buffer_copy(
- const mutable_buffer & target,
- const mutable_buffer & source);
 
+[heading Return Value]
+
+`mutable_buffers_1(b)`.
 
 
-[heading Parameters]
-
 
-[variablelist
-
-[[target][A modifiable buffer representing the memory region to which the bytes will be copied.]]
 
-[[source][A modifiable buffer representing the memory region from which the bytes will be copied. The contents of the source buffer will not be modified.]]
+[endsect]
 
-]
 
 
-[heading Return Value]
-
-The number of bytes copied.
+[section:overload2 buffer (2 of 28 overloads)]
 
 
-[heading Remarks]
-
-The number of bytes copied is the lesser of:
+Create a new modifiable buffer from an existing buffer.
 
 
-* `buffer_size(target)`
+ mutable_buffers_1 buffer(
+ const mutable_buffer & b,
+ std::size_t max_size_in_bytes);
 
 
-* `buffer_size(source)`
 
+[heading Return Value]
+
+A [link boost_asio.reference.mutable_buffers_1 `mutable_buffers_1`] value equivalent to:
 
+ mutable_buffers_1(
+ buffer_cast<void*>(b),
+ min(buffer_size(b), max_size_in_bytes));
 
 
-[endsect]
 
 
 
-[section:overload4 buffer_copy (4 of 30 overloads)]
 
 
-Copies bytes from a source buffer to a target buffer.
+[endsect]
 
 
- std::size_t buffer_copy(
- const mutable_buffer & target,
- const mutable_buffers_1 & source);
 
+[section:overload3 buffer (3 of 28 overloads)]
 
 
-[heading Parameters]
-
+Create a new non-modifiable buffer from an existing buffer.
 
-[variablelist
-
-[[target][A modifiable buffer representing the memory region to which the bytes will be copied.]]
 
-[[source][A modifiable buffer representing the memory region from which the bytes will be copied. The contents of the source buffer will not be modified.]]
+ const_buffers_1 buffer(
+ const const_buffer & b);
 
-]
 
 
 [heading Return Value]
       
-The number of bytes copied.
+`const_buffers_1(b)`.
 
 
-[heading Remarks]
-
-The number of bytes copied is the lesser of:
 
 
-* `buffer_size(target)`
+[endsect]
 
 
-* `buffer_size(source)`
 
+[section:overload4 buffer (4 of 28 overloads)]
 
 
+Create a new non-modifiable buffer from an existing buffer.
 
-[endsect]
 
+ const_buffers_1 buffer(
+ const const_buffer & b,
+ std::size_t max_size_in_bytes);
 
 
-[section:overload5 buffer_copy (5 of 30 overloads)]
 
+[heading Return Value]
+
+A [link boost_asio.reference.const_buffers_1 `const_buffers_1`] value equivalent to:
 
-Copies bytes from a source buffer sequence to a target buffer.
+ const_buffers_1(
+ buffer_cast<const void*>(b),
+ min(buffer_size(b), max_size_in_bytes));
 
 
- template<
- typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
- std::size_t buffer_copy(
- const mutable_buffer & target,
- const ConstBufferSequence & source);
 
 
 
-[heading Parameters]
-
 
-[variablelist
-
-[[target][A modifiable buffer representing the memory region to which the bytes will be copied.]]
 
-[[source][A non-modifiable buffer sequence representing the memory regions from which the bytes will be copied.]]
+[endsect]
 
-]
 
 
-[heading Return Value]
-
-The number of bytes copied.
+[section:overload5 buffer (5 of 28 overloads)]
 
 
-[heading Remarks]
-
-The number of bytes copied is the lesser of:
+Create a new modifiable buffer that represents the given memory range.
 
 
-* `buffer_size(target)`
+ mutable_buffers_1 buffer(
+ void * data,
+ std::size_t size_in_bytes);
 
 
-* `buffer_size(source)`
+
+[heading Return Value]
+
+`mutable_buffers_1(data, size_in_bytes)`.
 
 
 
@@ -44760,90 +44748,86 @@
 
 
 
-[section:overload6 buffer_copy (6 of 30 overloads)]
+[section:overload6 buffer (6 of 28 overloads)]
 
 
-Copies bytes from a source buffer to a target buffer.
+Create a new non-modifiable buffer that represents the given memory range.
 
 
- std::size_t buffer_copy(
- const mutable_buffers_1 & target,
- const const_buffer & source);
+ const_buffers_1 buffer(
+ const void * data,
+ std::size_t size_in_bytes);
 
 
 
-[heading Parameters]
-
+[heading Return Value]
+
+`const_buffers_1(data, size_in_bytes)`.
 
-[variablelist
-
-[[target][A modifiable buffer representing the memory region to which the bytes will be copied.]]
 
-[[source][A non-modifiable buffer representing the memory region from which the bytes will be copied.]]
 
-]
 
+[endsect]
 
-[heading Return Value]
-
-The number of bytes copied.
 
 
-[heading Remarks]
-
-The number of bytes copied is the lesser of:
+[section:overload7 buffer (7 of 28 overloads)]
 
 
-* `buffer_size(target)`
+Create a new modifiable buffer that represents the given POD array.
 
 
-* `buffer_size(source)`
+ template<
+ typename PodType,
+ std::size_t N>
+ mutable_buffers_1 buffer(
+ PodType (&data)[N]);
 
 
 
+[heading Return Value]
+
+A [link boost_asio.reference.mutable_buffers_1 `mutable_buffers_1`] value equivalent to:
 
-[endsect]
+ mutable_buffers_1(
+ static_cast<void*>(data),
+ N * sizeof(PodType));
 
 
 
-[section:overload7 buffer_copy (7 of 30 overloads)]
 
 
-Copies bytes from a source buffer to a target buffer.
 
 
- std::size_t buffer_copy(
- const mutable_buffers_1 & target,
- const const_buffers_1 & source);
+[endsect]
 
 
 
-[heading Parameters]
-
+[section:overload8 buffer (8 of 28 overloads)]
 
-[variablelist
-
-[[target][A modifiable buffer representing the memory region to which the bytes will be copied.]]
 
-[[source][A non-modifiable buffer representing the memory region from which the bytes will be copied.]]
+Create a new modifiable buffer that represents the given POD array.
 
-]
 
+ template<
+ typename PodType,
+ std::size_t N>
+ mutable_buffers_1 buffer(
+ PodType (&data)[N],
+ std::size_t max_size_in_bytes);
 
-[heading Return Value]
-
-The number of bytes copied.
 
 
-[heading Remarks]
+[heading Return Value]
       
-The number of bytes copied is the lesser of:
+A [link boost_asio.reference.mutable_buffers_1 `mutable_buffers_1`] value equivalent to:
 
+ mutable_buffers_1(
+ static_cast<void*>(data),
+ min(N * sizeof(PodType), max_size_in_bytes));
 
-* `buffer_size(target)`
 
 
-* `buffer_size(source)`
 
 
 
@@ -44852,138 +44836,128 @@
 
 
 
-[section:overload8 buffer_copy (8 of 30 overloads)]
-
+[section:overload9 buffer (9 of 28 overloads)]
 
-Copies bytes from a source buffer to a target buffer.
 
+Create a new non-modifiable buffer that represents the given POD array.
 
- std::size_t buffer_copy(
- const mutable_buffers_1 & target,
- const mutable_buffer & source);
 
+ template<
+ typename PodType,
+ std::size_t N>
+ const_buffers_1 buffer(
+ const PodType (&data)[N]);
 
 
-[heading Parameters]
-
 
-[variablelist
-
-[[target][A modifiable buffer representing the memory region to which the bytes will be copied.]]
+[heading Return Value]
+
+A [link boost_asio.reference.const_buffers_1 `const_buffers_1`] value equivalent to:
 
-[[source][A modifiable buffer representing the memory region from which the bytes will be copied. The contents of the source buffer will not be modified.]]
+ const_buffers_1(
+ static_cast<const void*>(data),
+ N * sizeof(PodType));
 
-]
 
 
-[heading Return Value]
-
-The number of bytes copied.
 
 
-[heading Remarks]
-
-The number of bytes copied is the lesser of:
 
 
-* `buffer_size(target)`
+[endsect]
 
 
-* `buffer_size(source)`
 
+[section:overload10 buffer (10 of 28 overloads)]
 
 
+Create a new non-modifiable buffer that represents the given POD array.
 
-[endsect]
 
+ template<
+ typename PodType,
+ std::size_t N>
+ const_buffers_1 buffer(
+ const PodType (&data)[N],
+ std::size_t max_size_in_bytes);
 
 
-[section:overload9 buffer_copy (9 of 30 overloads)]
 
+[heading Return Value]
+
+A [link boost_asio.reference.const_buffers_1 `const_buffers_1`] value equivalent to:
 
-Copies bytes from a source buffer to a target buffer.
+ const_buffers_1(
+ static_cast<const void*>(data),
+ min(N * sizeof(PodType), max_size_in_bytes));
 
 
- std::size_t buffer_copy(
- const mutable_buffers_1 & target,
- const mutable_buffers_1 & source);
 
 
 
-[heading Parameters]
-
 
-[variablelist
-
-[[target][A modifiable buffer representing the memory region to which the bytes will be copied.]]
 
-[[source][A modifiable buffer representing the memory region from which the bytes will be copied. The contents of the source buffer will not be modified.]]
+[endsect]
 
-]
 
 
-[heading Return Value]
-
-The number of bytes copied.
+[section:overload11 buffer (11 of 28 overloads)]
 
 
-[heading Remarks]
-
-The number of bytes copied is the lesser of:
+Create a new modifiable buffer that represents the given POD array.
 
 
-* `buffer_size(target)`
+ template<
+ typename PodType,
+ std::size_t N>
+ mutable_buffers_1 buffer(
+ boost::array< PodType, N > & data);
 
 
-* `buffer_size(source)`
 
+[heading Return Value]
+
+A [link boost_asio.reference.mutable_buffers_1 `mutable_buffers_1`] value equivalent to:
 
+ mutable_buffers_1(
+ data.data(),
+ data.size() * sizeof(PodType));
 
 
-[endsect]
 
 
 
-[section:overload10 buffer_copy (10 of 30 overloads)]
 
 
-Copies bytes from a source buffer sequence to a target buffer.
+[endsect]
 
 
- template<
- typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
- std::size_t buffer_copy(
- const mutable_buffers_1 & target,
- const ConstBufferSequence & source);
 
+[section:overload12 buffer (12 of 28 overloads)]
 
 
-[heading Parameters]
-
+Create a new modifiable buffer that represents the given POD array.
 
-[variablelist
-
-[[target][A modifiable buffer representing the memory region to which the bytes will be copied.]]
 
-[[source][A non-modifiable buffer sequence representing the memory regions from which the bytes will be copied.]]
+ template<
+ typename PodType,
+ std::size_t N>
+ mutable_buffers_1 buffer(
+ boost::array< PodType, N > & data,
+ std::size_t max_size_in_bytes);
 
-]
 
 
 [heading Return Value]
       
-The number of bytes copied.
-
-
-[heading Remarks]
-
-The number of bytes copied is the lesser of:
+A [link boost_asio.reference.mutable_buffers_1 `mutable_buffers_1`] value equivalent to:
 
+ mutable_buffers_1(
+ data.data(),
+ min(data.size() * sizeof(PodType), max_size_in_bytes));
 
-* `buffer_size(target)`
 
 
-* `buffer_size(source)`
 
 
 
@@ -44992,94 +44966,95 @@
 
 
 
-[section:overload11 buffer_copy (11 of 30 overloads)]
+[section:overload13 buffer (13 of 28 overloads)]
 
 
-Copies bytes from a source buffer to a target buffer sequence.
+Create a new non-modifiable buffer that represents the given POD array.
 
 
   template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
- std::size_t buffer_copy(
- const MutableBufferSequence & target,
- const const_buffer & source);
+ typename PodType,
+ std::size_t N>
+ const_buffers_1 buffer(
+ boost::array< const PodType, N > & data);
 
 
 
-[heading Parameters]
-
+[heading Return Value]
+
+A [link boost_asio.reference.const_buffers_1 `const_buffers_1`] value equivalent to:
 
-[variablelist
-
-[[target][A modifiable buffer sequence representing the memory regions to which the bytes will be copied.]]
+ const_buffers_1(
+ data.data(),
+ data.size() * sizeof(PodType));
 
-[[source][A non-modifiable buffer representing the memory region from which the bytes will be copied.]]
 
-]
 
 
-[heading Return Value]
-
-The number of bytes copied.
 
 
-[heading Remarks]
-
-The number of bytes copied is the lesser of:
 
+[endsect]
 
-* `buffer_size(target)`
 
 
-* `buffer_size(source)`
+[section:overload14 buffer (14 of 28 overloads)]
 
 
+Create a new non-modifiable buffer that represents the given POD array.
 
 
-[endsect]
+ template<
+ typename PodType,
+ std::size_t N>
+ const_buffers_1 buffer(
+ boost::array< const PodType, N > & data,
+ std::size_t max_size_in_bytes);
 
 
 
-[section:overload12 buffer_copy (12 of 30 overloads)]
+[heading Return Value]
+
+A [link boost_asio.reference.const_buffers_1 `const_buffers_1`] value equivalent to:
 
+ const_buffers_1(
+ data.data(),
+ min(data.size() * sizeof(PodType), max_size_in_bytes));
 
-Copies bytes from a source buffer to a target buffer sequence.
 
 
- template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
- std::size_t buffer_copy(
- const MutableBufferSequence & target,
- const const_buffers_1 & source);
 
 
 
-[heading Parameters]
-
 
-[variablelist
-
-[[target][A modifiable buffer sequence representing the memory regions to which the bytes will be copied.]]
+[endsect]
 
-[[source][A non-modifiable buffer representing the memory region from which the bytes will be copied.]]
 
-]
 
+[section:overload15 buffer (15 of 28 overloads)]
 
-[heading Return Value]
-
-The number of bytes copied.
+
+Create a new non-modifiable buffer that represents the given POD array.
 
 
-[heading Remarks]
+ template<
+ typename PodType,
+ std::size_t N>
+ const_buffers_1 buffer(
+ const boost::array< PodType, N > & data);
+
+
+
+[heading Return Value]
       
-The number of bytes copied is the lesser of:
+A [link boost_asio.reference.const_buffers_1 `const_buffers_1`] value equivalent to:
 
+ const_buffers_1(
+ data.data(),
+ data.size() * sizeof(PodType));
 
-* `buffer_size(target)`
 
 
-* `buffer_size(source)`
 
 
 
@@ -45088,143 +45063,128 @@
 
 
 
-[section:overload13 buffer_copy (13 of 30 overloads)]
+[section:overload16 buffer (16 of 28 overloads)]
 
 
-Copies bytes from a source buffer to a target buffer sequence.
+Create a new non-modifiable buffer that represents the given POD array.
 
 
   template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
- std::size_t buffer_copy(
- const MutableBufferSequence & target,
- const mutable_buffer & source);
+ typename PodType,
+ std::size_t N>
+ const_buffers_1 buffer(
+ const boost::array< PodType, N > & data,
+ std::size_t max_size_in_bytes);
 
 
 
-[heading Parameters]
-
+[heading Return Value]
+
+A [link boost_asio.reference.const_buffers_1 `const_buffers_1`] value equivalent to:
 
-[variablelist
-
-[[target][A modifiable buffer sequence representing the memory regions to which the bytes will be copied.]]
+ const_buffers_1(
+ data.data(),
+ min(data.size() * sizeof(PodType), max_size_in_bytes));
 
-[[source][A modifiable buffer representing the memory region from which the bytes will be copied. The contents of the source buffer will not be modified.]]
 
-]
 
 
-[heading Return Value]
-
-The number of bytes copied.
 
 
-[heading Remarks]
-
-The number of bytes copied is the lesser of:
 
+[endsect]
 
-* `buffer_size(target)`
 
 
-* `buffer_size(source)`
+[section:overload17 buffer (17 of 28 overloads)]
 
 
+Create a new modifiable buffer that represents the given POD array.
 
 
-[endsect]
+ template<
+ typename PodType,
+ std::size_t N>
+ mutable_buffers_1 buffer(
+ std::array< PodType, N > & data);
 
 
 
-[section:overload14 buffer_copy (14 of 30 overloads)]
+[heading Return Value]
+
+A [link boost_asio.reference.mutable_buffers_1 `mutable_buffers_1`] value equivalent to:
 
+ mutable_buffers_1(
+ data.data(),
+ data.size() * sizeof(PodType));
 
-Copies bytes from a source buffer to a target buffer sequence.
 
 
- template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
- std::size_t buffer_copy(
- const MutableBufferSequence & target,
- const mutable_buffers_1 & source);
 
 
 
-[heading Parameters]
-
-
-[variablelist
-
-[[target][A modifiable buffer sequence representing the memory regions to which the bytes will be copied.]]
 
-[[source][A modifiable buffer representing the memory region from which the bytes will be copied. The contents of the source buffer will not be modified.]]
+[endsect]
 
-]
 
 
-[heading Return Value]
-
-The number of bytes copied.
+[section:overload18 buffer (18 of 28 overloads)]
 
 
-[heading Remarks]
-
-The number of bytes copied is the lesser of:
+Create a new modifiable buffer that represents the given POD array.
 
 
-* `buffer_size(target)`
+ template<
+ typename PodType,
+ std::size_t N>
+ mutable_buffers_1 buffer(
+ std::array< PodType, N > & data,
+ std::size_t max_size_in_bytes);
 
 
-* `buffer_size(source)`
 
+[heading Return Value]
+
+A [link boost_asio.reference.mutable_buffers_1 `mutable_buffers_1`] value equivalent to:
 
+ mutable_buffers_1(
+ data.data(),
+ min(data.size() * sizeof(PodType), max_size_in_bytes));
 
 
-[endsect]
 
 
 
-[section:overload15 buffer_copy (15 of 30 overloads)]
 
 
-Copies bytes from a source buffer sequence to a target buffer sequence.
+[endsect]
 
 
- template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``,
- typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
- std::size_t buffer_copy(
- const MutableBufferSequence & target,
- const ConstBufferSequence & source);
 
+[section:overload19 buffer (19 of 28 overloads)]
 
 
-[heading Parameters]
-
+Create a new non-modifiable buffer that represents the given POD array.
 
-[variablelist
-
-[[target][A modifiable buffer sequence representing the memory regions to which the bytes will be copied.]]
 
-[[source][A non-modifiable buffer sequence representing the memory regions from which the bytes will be copied.]]
+ template<
+ typename PodType,
+ std::size_t N>
+ const_buffers_1 buffer(
+ std::array< const PodType, N > & data);
 
-]
 
 
 [heading Return Value]
       
-The number of bytes copied.
-
-
-[heading Remarks]
-
-The number of bytes copied is the lesser of:
+A [link boost_asio.reference.const_buffers_1 `const_buffers_1`] value equivalent to:
 
+ const_buffers_1(
+ data.data(),
+ data.size() * sizeof(PodType));
 
-* `buffer_size(target)`
 
 
-* `buffer_size(source)`
 
 
 
@@ -45233,50 +45193,31 @@
 
 
 
-[section:overload16 buffer_copy (16 of 30 overloads)]
-
-
-Copies a limited number of bytes from a source buffer to a target buffer.
-
-
- std::size_t buffer_copy(
- const mutable_buffer & target,
- const const_buffer & source,
- std::size_t max_bytes_to_copy);
-
-
+[section:overload20 buffer (20 of 28 overloads)]
 
-[heading Parameters]
-
 
-[variablelist
-
-[[target][A modifiable buffer representing the memory region to which the bytes will be copied.]]
+Create a new non-modifiable buffer that represents the given POD array.
 
-[[source][A non-modifiable buffer representing the memory region from which the bytes will be copied.]]
 
-[[max_bytes_to_copy][The maximum number of bytes to be copied.]]
+ template<
+ typename PodType,
+ std::size_t N>
+ const_buffers_1 buffer(
+ std::array< const PodType, N > & data,
+ std::size_t max_size_in_bytes);
 
-]
 
 
 [heading Return Value]
       
-The number of bytes copied.
-
-
-[heading Remarks]
-
-The number of bytes copied is the lesser of:
-
-
-* `buffer_size(target)`
+A [link boost_asio.reference.const_buffers_1 `const_buffers_1`] value equivalent to:
 
+ const_buffers_1(
+ data.data(),
+ min(data.size() * sizeof(PodType), max_size_in_bytes));
 
-* `buffer_size(source)`
 
 
-* `max_bytes_to_copy`
 
 
 
@@ -45285,50 +45226,30 @@
 
 
 
-[section:overload17 buffer_copy (17 of 30 overloads)]
-
-
-Copies a limited number of bytes from a source buffer to a target buffer.
-
-
- std::size_t buffer_copy(
- const mutable_buffer & target,
- const const_buffers_1 & source,
- std::size_t max_bytes_to_copy);
-
-
+[section:overload21 buffer (21 of 28 overloads)]
 
-[heading Parameters]
-
 
-[variablelist
-
-[[target][A modifiable buffer representing the memory region to which the bytes will be copied.]]
+Create a new non-modifiable buffer that represents the given POD array.
 
-[[source][A non-modifiable buffer representing the memory region from which the bytes will be copied.]]
 
-[[max_bytes_to_copy][The maximum number of bytes to be copied.]]
+ template<
+ typename PodType,
+ std::size_t N>
+ const_buffers_1 buffer(
+ const std::array< PodType, N > & data);
 
-]
 
 
 [heading Return Value]
       
-The number of bytes copied.
-
-
-[heading Remarks]
-
-The number of bytes copied is the lesser of:
-
-
-* `buffer_size(target)`
+A [link boost_asio.reference.const_buffers_1 `const_buffers_1`] value equivalent to:
 
+ const_buffers_1(
+ data.data(),
+ data.size() * sizeof(PodType));
 
-* `buffer_size(source)`
 
 
-* `max_bytes_to_copy`
 
 
 
@@ -45337,50 +45258,31 @@
 
 
 
-[section:overload18 buffer_copy (18 of 30 overloads)]
-
-
-Copies a limited number of bytes from a source buffer to a target buffer.
-
-
- std::size_t buffer_copy(
- const mutable_buffer & target,
- const mutable_buffer & source,
- std::size_t max_bytes_to_copy);
-
-
+[section:overload22 buffer (22 of 28 overloads)]
 
-[heading Parameters]
-
 
-[variablelist
-
-[[target][A modifiable buffer representing the memory region to which the bytes will be copied.]]
+Create a new non-modifiable buffer that represents the given POD array.
 
-[[source][A modifiable buffer representing the memory region from which the bytes will be copied. The contents of the source buffer will not be modified.]]
 
-[[max_bytes_to_copy][The maximum number of bytes to be copied.]]
+ template<
+ typename PodType,
+ std::size_t N>
+ const_buffers_1 buffer(
+ const std::array< PodType, N > & data,
+ std::size_t max_size_in_bytes);
 
-]
 
 
 [heading Return Value]
       
-The number of bytes copied.
-
-
-[heading Remarks]
-
-The number of bytes copied is the lesser of:
-
-
-* `buffer_size(target)`
+A [link boost_asio.reference.const_buffers_1 `const_buffers_1`] value equivalent to:
 
+ const_buffers_1(
+ data.data(),
+ min(data.size() * sizeof(PodType), max_size_in_bytes));
 
-* `buffer_size(source)`
 
 
-* `max_bytes_to_copy`
 
 
 
@@ -45389,50 +45291,35 @@
 
 
 
-[section:overload19 buffer_copy (19 of 30 overloads)]
-
-
-Copies a limited number of bytes from a source buffer to a target buffer.
-
-
- std::size_t buffer_copy(
- const mutable_buffer & target,
- const mutable_buffers_1 & source,
- std::size_t max_bytes_to_copy);
-
-
+[section:overload23 buffer (23 of 28 overloads)]
 
-[heading Parameters]
-
 
-[variablelist
-
-[[target][A modifiable buffer representing the memory region to which the bytes will be copied.]]
+Create a new modifiable buffer that represents the given POD vector.
 
-[[source][A modifiable buffer representing the memory region from which the bytes will be copied. The contents of the source buffer will not be modified.]]
 
-[[max_bytes_to_copy][The maximum number of bytes to be copied.]]
+ template<
+ typename PodType,
+ typename Allocator>
+ mutable_buffers_1 buffer(
+ std::vector< PodType, Allocator > & data);
 
-]
 
 
 [heading Return Value]
       
-The number of bytes copied.
-
-
-[heading Remarks]
-
-The number of bytes copied is the lesser of:
+A [link boost_asio.reference.mutable_buffers_1 `mutable_buffers_1`] value equivalent to:
 
+ mutable_buffers_1(
+ data.size() ? &data[0] : 0,
+ data.size() * sizeof(PodType));
 
-* `buffer_size(target)`
 
 
-* `buffer_size(source)`
 
 
-* `max_bytes_to_copy`
+[heading Remarks]
+
+The buffer is invalidated by any vector operation that would also invalidate iterators.
 
 
 
@@ -45441,305 +45328,483 @@
 
 
 
-[section:overload20 buffer_copy (20 of 30 overloads)]
+[section:overload24 buffer (24 of 28 overloads)]
 
 
-Copies a limited number of bytes from a source buffer sequence to a target buffer.
+Create a new modifiable buffer that represents the given POD vector.
 
 
   template<
- typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
- std::size_t buffer_copy(
- const mutable_buffer & target,
- const ConstBufferSequence & source,
- std::size_t max_bytes_to_copy);
-
-
+ typename PodType,
+ typename Allocator>
+ mutable_buffers_1 buffer(
+ std::vector< PodType, Allocator > & data,
+ std::size_t max_size_in_bytes);
 
-[heading Parameters]
-
 
-[variablelist
-
-[[target][A modifiable buffer representing the memory region to which the bytes will be copied.]]
 
-[[source][A non-modifiable buffer sequence representing the memory regions from which the bytes will be copied.]]
+[heading Return Value]
+
+A [link boost_asio.reference.mutable_buffers_1 `mutable_buffers_1`] value equivalent to:
 
-[[max_bytes_to_copy][The maximum number of bytes to be copied.]]
+ mutable_buffers_1(
+ data.size() ? &data[0] : 0,
+ min(data.size() * sizeof(PodType), max_size_in_bytes));
 
-]
 
 
-[heading Return Value]
-
-The number of bytes copied.
 
 
 [heading Remarks]
       
-The number of bytes copied is the lesser of:
+The buffer is invalidated by any vector operation that would also invalidate iterators.
 
 
-* `buffer_size(target)`
 
 
-* `buffer_size(source)`
+[endsect]
 
 
-* `max_bytes_to_copy`
 
+[section:overload25 buffer (25 of 28 overloads)]
 
 
+Create a new non-modifiable buffer that represents the given POD vector.
 
-[endsect]
 
+ template<
+ typename PodType,
+ typename Allocator>
+ const_buffers_1 buffer(
+ const std::vector< PodType, Allocator > & data);
 
 
-[section:overload21 buffer_copy (21 of 30 overloads)]
 
+[heading Return Value]
+
+A [link boost_asio.reference.const_buffers_1 `const_buffers_1`] value equivalent to:
 
-Copies a limited number of bytes from a source buffer to a target buffer.
+ const_buffers_1(
+ data.size() ? &data[0] : 0,
+ data.size() * sizeof(PodType));
 
 
- std::size_t buffer_copy(
- const mutable_buffers_1 & target,
- const const_buffer & source,
- std::size_t max_bytes_to_copy);
 
 
 
-[heading Parameters]
-
+[heading Remarks]
+
+The buffer is invalidated by any vector operation that would also invalidate iterators.
 
-[variablelist
-
-[[target][A modifiable buffer representing the memory region to which the bytes will be copied.]]
 
-[[source][A non-modifiable buffer representing the memory region from which the bytes will be copied.]]
 
-[[max_bytes_to_copy][The maximum number of bytes to be copied.]]
 
-]
+[endsect]
 
 
-[heading Return Value]
-
-The number of bytes copied.
 
+[section:overload26 buffer (26 of 28 overloads)]
 
-[heading Remarks]
-
-The number of bytes copied is the lesser of:
 
+Create a new non-modifiable buffer that represents the given POD vector.
 
-* `buffer_size(target)`
 
+ template<
+ typename PodType,
+ typename Allocator>
+ const_buffers_1 buffer(
+ const std::vector< PodType, Allocator > & data,
+ std::size_t max_size_in_bytes);
 
-* `buffer_size(source)`
 
 
-* `max_bytes_to_copy`
+[heading Return Value]
+
+A [link boost_asio.reference.const_buffers_1 `const_buffers_1`] value equivalent to:
 
+ const_buffers_1(
+ data.size() ? &data[0] : 0,
+ min(data.size() * sizeof(PodType), max_size_in_bytes));
 
 
 
-[endsect]
 
 
+[heading Remarks]
+
+The buffer is invalidated by any vector operation that would also invalidate iterators.
 
-[section:overload22 buffer_copy (22 of 30 overloads)]
 
 
-Copies a limited number of bytes from a source buffer to a target buffer.
 
+[endsect]
 
- std::size_t buffer_copy(
- const mutable_buffers_1 & target,
- const const_buffers_1 & source,
- std::size_t max_bytes_to_copy);
 
 
+[section:overload27 buffer (27 of 28 overloads)]
 
-[heading Parameters]
-
 
-[variablelist
-
-[[target][A modifiable buffer representing the memory region to which the bytes will be copied.]]
+Create a new non-modifiable buffer that represents the given string.
 
-[[source][A non-modifiable buffer representing the memory region from which the bytes will be copied.]]
 
-[[max_bytes_to_copy][The maximum number of bytes to be copied.]]
+ template<
+ typename Elem,
+ typename Traits,
+ typename Allocator>
+ const_buffers_1 buffer(
+ const std::basic_string< Elem, Traits, Allocator > & data);
 
-]
 
 
 [heading Return Value]
       
-The number of bytes copied.
+`const_buffers_1(data.data(), data.size() * sizeof(Elem))`.
 
 
 [heading Remarks]
       
-The number of bytes copied is the lesser of:
+The buffer is invalidated by any non-const operation called on the given string object.
 
 
-* `buffer_size(target)`
 
 
-* `buffer_size(source)`
+[endsect]
 
 
-* `max_bytes_to_copy`
 
+[section:overload28 buffer (28 of 28 overloads)]
 
 
+Create a new non-modifiable buffer that represents the given string.
 
-[endsect]
 
+ template<
+ typename Elem,
+ typename Traits,
+ typename Allocator>
+ const_buffers_1 buffer(
+ const std::basic_string< Elem, Traits, Allocator > & data,
+ std::size_t max_size_in_bytes);
 
 
-[section:overload23 buffer_copy (23 of 30 overloads)]
 
+[heading Return Value]
+
+A [link boost_asio.reference.const_buffers_1 `const_buffers_1`] value equivalent to:
 
-Copies a limited number of bytes from a source buffer to a target buffer.
+ const_buffers_1(
+ data.data(),
+ min(data.size() * sizeof(Elem), max_size_in_bytes));
 
 
- std::size_t buffer_copy(
- const mutable_buffers_1 & target,
- const mutable_buffer & source,
- std::size_t max_bytes_to_copy);
 
 
 
-[heading Parameters]
-
+[heading Remarks]
+
+The buffer is invalidated by any non-const operation called on the given string object.
 
-[variablelist
-
-[[target][A modifiable buffer representing the memory region to which the bytes will be copied.]]
 
-[[source][A modifiable buffer representing the memory region from which the bytes will be copied. The contents of the source buffer will not be modified.]]
 
-[[max_bytes_to_copy][The maximum number of bytes to be copied.]]
 
-]
+[endsect]
 
 
-[heading Return Value]
-
-The number of bytes copied.
+[endsect]
 
+[section:buffer_cast buffer_cast]
+
+[indexterm1 buffer_cast]
+The `boost::asio::buffer_cast` function is used to obtain a pointer to the underlying memory region associated with a buffer.
 
-[heading Remarks]
       
-The number of bytes copied is the lesser of:
+ template<
+ typename PointerToPodType>
+ PointerToPodType ``[link boost_asio.reference.buffer_cast.overload1 buffer_cast]``(
+ const mutable_buffer & b);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer_cast.overload1 more...]]``
 
+ template<
+ typename PointerToPodType>
+ PointerToPodType ``[link boost_asio.reference.buffer_cast.overload2 buffer_cast]``(
+ const const_buffer & b);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer_cast.overload2 more...]]``
 
-* `buffer_size(target)`
 
+[heading Examples:]
+
 
-* `buffer_size(source)`
 
+To access the memory of a non-modifiable buffer, use:
 
-* `max_bytes_to_copy`
+ boost::asio::const_buffer b1 = ...;
+ const unsigned char* p1 = boost::asio::buffer_cast<const unsigned char*>(b1);
 
 
 
 
-[endsect]
+To access the memory of a modifiable buffer, use:
 
+ boost::asio::mutable_buffer b2 = ...;
+ unsigned char* p2 = boost::asio::buffer_cast<unsigned char*>(b2);
 
 
-[section:overload24 buffer_copy (24 of 30 overloads)]
 
 
-Copies a limited number of bytes from a source buffer to a target buffer.
+The `boost::asio::buffer_cast` function permits violations of type safety, so uses of it in application code should be carefully considered.
 
+[heading Requirements]
 
- std::size_t buffer_copy(
- const mutable_buffers_1 & target,
- const mutable_buffers_1 & source,
- std::size_t max_bytes_to_copy);
+[*Header: ][^boost/asio/buffer.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
 
-[heading Parameters]
-
+[section:overload1 buffer_cast (1 of 2 overloads)]
 
-[variablelist
-
-[[target][A modifiable buffer representing the memory region to which the bytes will be copied.]]
 
-[[source][A modifiable buffer representing the memory region from which the bytes will be copied. The contents of the source buffer will not be modified.]]
+Cast a non-modifiable buffer to a specified pointer to POD type.
 
-[[max_bytes_to_copy][The maximum number of bytes to be copied.]]
 
-]
+ template<
+ typename PointerToPodType>
+ PointerToPodType buffer_cast(
+ const mutable_buffer & b);
 
 
-[heading Return Value]
-
-The number of bytes copied.
 
+[endsect]
 
-[heading Remarks]
-
-The number of bytes copied is the lesser of:
 
 
-* `buffer_size(target)`
+[section:overload2 buffer_cast (2 of 2 overloads)]
 
 
-* `buffer_size(source)`
+Cast a non-modifiable buffer to a specified pointer to POD type.
 
 
-* `max_bytes_to_copy`
+ template<
+ typename PointerToPodType>
+ PointerToPodType buffer_cast(
+ const const_buffer & b);
+
 
 
+[endsect]
 
 
 [endsect]
 
+[section:buffer_copy buffer_copy]
 
+[indexterm1 buffer_copy]
+The `boost::asio::buffer_copy` function is used to copy bytes from a source buffer (or buffer sequence) to a target buffer (or buffer sequence).
 
-[section:overload25 buffer_copy (25 of 30 overloads)]
+
+ std::size_t ``[link boost_asio.reference.buffer_copy.overload1 buffer_copy]``(
+ const mutable_buffer & target,
+ const const_buffer & source);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload1 more...]]``
 
+ std::size_t ``[link boost_asio.reference.buffer_copy.overload2 buffer_copy]``(
+ const mutable_buffer & target,
+ const const_buffers_1 & source);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload2 more...]]``
 
-Copies a limited number of bytes from a source buffer sequence to a target buffer.
+ std::size_t ``[link boost_asio.reference.buffer_copy.overload3 buffer_copy]``(
+ const mutable_buffer & target,
+ const mutable_buffer & source);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload3 more...]]``
 
+ std::size_t ``[link boost_asio.reference.buffer_copy.overload4 buffer_copy]``(
+ const mutable_buffer & target,
+ const mutable_buffers_1 & source);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload4 more...]]``
 
   template<
       typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
- std::size_t buffer_copy(
+ std::size_t ``[link boost_asio.reference.buffer_copy.overload5 buffer_copy]``(
+ const mutable_buffer & target,
+ const ConstBufferSequence & source);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload5 more...]]``
+
+ std::size_t ``[link boost_asio.reference.buffer_copy.overload6 buffer_copy]``(
       const mutable_buffers_1 & target,
- const ConstBufferSequence & source,
- std::size_t max_bytes_to_copy);
+ const const_buffer & source);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload6 more...]]``
 
+ std::size_t ``[link boost_asio.reference.buffer_copy.overload7 buffer_copy]``(
+ const mutable_buffers_1 & target,
+ const const_buffers_1 & source);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload7 more...]]``
 
+ std::size_t ``[link boost_asio.reference.buffer_copy.overload8 buffer_copy]``(
+ const mutable_buffers_1 & target,
+ const mutable_buffer & source);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload8 more...]]``
 
-[heading Parameters]
-
+ std::size_t ``[link boost_asio.reference.buffer_copy.overload9 buffer_copy]``(
+ const mutable_buffers_1 & target,
+ const mutable_buffers_1 & source);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload9 more...]]``
 
-[variablelist
-
-[[target][A modifiable buffer representing the memory region to which the bytes will be copied.]]
+ template<
+ typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
+ std::size_t ``[link boost_asio.reference.buffer_copy.overload10 buffer_copy]``(
+ const mutable_buffers_1 & target,
+ const ConstBufferSequence & source);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload10 more...]]``
 
-[[source][A non-modifiable buffer sequence representing the memory regions from which the bytes will be copied.]]
+ template<
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
+ std::size_t ``[link boost_asio.reference.buffer_copy.overload11 buffer_copy]``(
+ const MutableBufferSequence & target,
+ const const_buffer & source);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload11 more...]]``
 
-[[max_bytes_to_copy][The maximum number of bytes to be copied.]]
+ template<
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
+ std::size_t ``[link boost_asio.reference.buffer_copy.overload12 buffer_copy]``(
+ const MutableBufferSequence & target,
+ const const_buffers_1 & source);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload12 more...]]``
 
-]
+ template<
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
+ std::size_t ``[link boost_asio.reference.buffer_copy.overload13 buffer_copy]``(
+ const MutableBufferSequence & target,
+ const mutable_buffer & source);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload13 more...]]``
 
+ template<
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
+ std::size_t ``[link boost_asio.reference.buffer_copy.overload14 buffer_copy]``(
+ const MutableBufferSequence & target,
+ const mutable_buffers_1 & source);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload14 more...]]``
 
-[heading Return Value]
-
-The number of bytes copied.
+ template<
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``,
+ typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
+ std::size_t ``[link boost_asio.reference.buffer_copy.overload15 buffer_copy]``(
+ const MutableBufferSequence & target,
+ const ConstBufferSequence & source);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload15 more...]]``
 
+ std::size_t ``[link boost_asio.reference.buffer_copy.overload16 buffer_copy]``(
+ const mutable_buffer & target,
+ const const_buffer & source,
+ std::size_t max_bytes_to_copy);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload16 more...]]``
+
+ std::size_t ``[link boost_asio.reference.buffer_copy.overload17 buffer_copy]``(
+ const mutable_buffer & target,
+ const const_buffers_1 & source,
+ std::size_t max_bytes_to_copy);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload17 more...]]``
+
+ std::size_t ``[link boost_asio.reference.buffer_copy.overload18 buffer_copy]``(
+ const mutable_buffer & target,
+ const mutable_buffer & source,
+ std::size_t max_bytes_to_copy);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload18 more...]]``
+
+ std::size_t ``[link boost_asio.reference.buffer_copy.overload19 buffer_copy]``(
+ const mutable_buffer & target,
+ const mutable_buffers_1 & source,
+ std::size_t max_bytes_to_copy);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload19 more...]]``
+
+ template<
+ typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
+ std::size_t ``[link boost_asio.reference.buffer_copy.overload20 buffer_copy]``(
+ const mutable_buffer & target,
+ const ConstBufferSequence & source,
+ std::size_t max_bytes_to_copy);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload20 more...]]``
+
+ std::size_t ``[link boost_asio.reference.buffer_copy.overload21 buffer_copy]``(
+ const mutable_buffers_1 & target,
+ const const_buffer & source,
+ std::size_t max_bytes_to_copy);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload21 more...]]``
+
+ std::size_t ``[link boost_asio.reference.buffer_copy.overload22 buffer_copy]``(
+ const mutable_buffers_1 & target,
+ const const_buffers_1 & source,
+ std::size_t max_bytes_to_copy);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload22 more...]]``
+
+ std::size_t ``[link boost_asio.reference.buffer_copy.overload23 buffer_copy]``(
+ const mutable_buffers_1 & target,
+ const mutable_buffer & source,
+ std::size_t max_bytes_to_copy);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload23 more...]]``
+
+ std::size_t ``[link boost_asio.reference.buffer_copy.overload24 buffer_copy]``(
+ const mutable_buffers_1 & target,
+ const mutable_buffers_1 & source,
+ std::size_t max_bytes_to_copy);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload24 more...]]``
+
+ template<
+ typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
+ std::size_t ``[link boost_asio.reference.buffer_copy.overload25 buffer_copy]``(
+ const mutable_buffers_1 & target,
+ const ConstBufferSequence & source,
+ std::size_t max_bytes_to_copy);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload25 more...]]``
+
+ template<
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
+ std::size_t ``[link boost_asio.reference.buffer_copy.overload26 buffer_copy]``(
+ const MutableBufferSequence & target,
+ const const_buffer & source,
+ std::size_t max_bytes_to_copy);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload26 more...]]``
+
+ template<
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
+ std::size_t ``[link boost_asio.reference.buffer_copy.overload27 buffer_copy]``(
+ const MutableBufferSequence & target,
+ const const_buffers_1 & source,
+ std::size_t max_bytes_to_copy);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload27 more...]]``
+
+ template<
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
+ std::size_t ``[link boost_asio.reference.buffer_copy.overload28 buffer_copy]``(
+ const MutableBufferSequence & target,
+ const mutable_buffer & source,
+ std::size_t max_bytes_to_copy);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload28 more...]]``
+
+ template<
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
+ std::size_t ``[link boost_asio.reference.buffer_copy.overload29 buffer_copy]``(
+ const MutableBufferSequence & target,
+ const mutable_buffers_1 & source,
+ std::size_t max_bytes_to_copy);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload29 more...]]``
+
+ template<
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``,
+ typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
+ std::size_t ``[link boost_asio.reference.buffer_copy.overload30 buffer_copy]``(
+ const MutableBufferSequence & target,
+ const ConstBufferSequence & source,
+ std::size_t max_bytes_to_copy);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer_copy.overload30 more...]]``
+
+The `buffer_copy` function is available in two forms:
+
+
+* A 2-argument form: `buffer_copy(target, source)`
 
-[heading Remarks]
-
-The number of bytes copied is the lesser of:
+
+* A 3-argument form: `buffer_copy(target, source, max_bytes_to_copy)`
+
+Both forms return the number of bytes actually copied. The number of bytes copied is the lesser of:
 
 
 * `buffer_size(target)`
@@ -45748,27 +45813,26 @@
 * `buffer_size(source)`
 
 
-* `max_bytes_to_copy`
-
+* `If` specified, `max_bytes_to_copy`.
 
+This prevents buffer overflow, regardless of the buffer sizes used in the copy operation.
 
+[heading Requirements]
 
-[endsect]
+[*Header: ][^boost/asio/buffer.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
 
-[section:overload26 buffer_copy (26 of 30 overloads)]
+[section:overload1 buffer_copy (1 of 30 overloads)]
 
 
-Copies a limited number of bytes from a source buffer to a target buffer sequence.
+Copies bytes from a source buffer to a target buffer.
 
 
- template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
   std::size_t buffer_copy(
- const MutableBufferSequence & target,
- const const_buffer & source,
- std::size_t max_bytes_to_copy);
+ const mutable_buffer & target,
+ const const_buffer & source);
 
 
 
@@ -45777,12 +45841,10 @@
 
 [variablelist
   
-[[target][A modifiable buffer sequence representing the memory regions to which the bytes will be copied.]]
+[[target][A modifiable buffer representing the memory region to which the bytes will be copied.]]
 
 [[source][A non-modifiable buffer representing the memory region from which the bytes will be copied.]]
 
-[[max_bytes_to_copy][The maximum number of bytes to be copied.]]
-
 ]
 
 
@@ -45802,27 +45864,21 @@
 * `buffer_size(source)`
 
 
-* `max_bytes_to_copy`
-
-
 
 
 [endsect]
 
 
 
-[section:overload27 buffer_copy (27 of 30 overloads)]
+[section:overload2 buffer_copy (2 of 30 overloads)]
 
 
-Copies a limited number of bytes from a source buffer to a target buffer sequence.
+Copies bytes from a source buffer to a target buffer.
 
 
- template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
   std::size_t buffer_copy(
- const MutableBufferSequence & target,
- const const_buffers_1 & source,
- std::size_t max_bytes_to_copy);
+ const mutable_buffer & target,
+ const const_buffers_1 & source);
 
 
 
@@ -45831,12 +45887,10 @@
 
 [variablelist
   
-[[target][A modifiable buffer sequence representing the memory regions to which the bytes will be copied.]]
+[[target][A modifiable buffer representing the memory region to which the bytes will be copied.]]
 
 [[source][A non-modifiable buffer representing the memory region from which the bytes will be copied.]]
 
-[[max_bytes_to_copy][The maximum number of bytes to be copied.]]
-
 ]
 
 
@@ -45856,27 +45910,21 @@
 * `buffer_size(source)`
 
 
-* `max_bytes_to_copy`
-
-
 
 
 [endsect]
 
 
 
-[section:overload28 buffer_copy (28 of 30 overloads)]
+[section:overload3 buffer_copy (3 of 30 overloads)]
 
 
-Copies a limited number of bytes from a source buffer to a target buffer sequence.
+Copies bytes from a source buffer to a target buffer.
 
 
- template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
   std::size_t buffer_copy(
- const MutableBufferSequence & target,
- const mutable_buffer & source,
- std::size_t max_bytes_to_copy);
+ const mutable_buffer & target,
+ const mutable_buffer & source);
 
 
 
@@ -45885,12 +45933,10 @@
 
 [variablelist
   
-[[target][A modifiable buffer sequence representing the memory regions to which the bytes will be copied.]]
+[[target][A modifiable buffer representing the memory region to which the bytes will be copied.]]
 
 [[source][A modifiable buffer representing the memory region from which the bytes will be copied. The contents of the source buffer will not be modified.]]
 
-[[max_bytes_to_copy][The maximum number of bytes to be copied.]]
-
 ]
 
 
@@ -45910,27 +45956,21 @@
 * `buffer_size(source)`
 
 
-* `max_bytes_to_copy`
-
-
 
 
 [endsect]
 
 
 
-[section:overload29 buffer_copy (29 of 30 overloads)]
+[section:overload4 buffer_copy (4 of 30 overloads)]
 
 
-Copies a limited number of bytes from a source buffer to a target buffer sequence.
+Copies bytes from a source buffer to a target buffer.
 
 
- template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
   std::size_t buffer_copy(
- const MutableBufferSequence & target,
- const mutable_buffers_1 & source,
- std::size_t max_bytes_to_copy);
+ const mutable_buffer & target,
+ const mutable_buffers_1 & source);
 
 
 
@@ -45939,12 +45979,10 @@
 
 [variablelist
   
-[[target][A modifiable buffer sequence representing the memory regions to which the bytes will be copied.]]
+[[target][A modifiable buffer representing the memory region to which the bytes will be copied.]]
 
 [[source][A modifiable buffer representing the memory region from which the bytes will be copied. The contents of the source buffer will not be modified.]]
 
-[[max_bytes_to_copy][The maximum number of bytes to be copied.]]
-
 ]
 
 
@@ -45964,28 +46002,23 @@
 * `buffer_size(source)`
 
 
-* `max_bytes_to_copy`
-
-
 
 
 [endsect]
 
 
 
-[section:overload30 buffer_copy (30 of 30 overloads)]
+[section:overload5 buffer_copy (5 of 30 overloads)]
 
 
-Copies a limited number of bytes from a source buffer sequence to a target buffer sequence.
+Copies bytes from a source buffer sequence to a target buffer.
 
 
   template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``,
       typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
   std::size_t buffer_copy(
- const MutableBufferSequence & target,
- const ConstBufferSequence & source,
- std::size_t max_bytes_to_copy);
+ const mutable_buffer & target,
+ const ConstBufferSequence & source);
 
 
 
@@ -45994,12 +46027,10 @@
 
 [variablelist
   
-[[target][A modifiable buffer sequence representing the memory regions to which the bytes will be copied.]]
+[[target][A modifiable buffer representing the memory region to which the bytes will be copied.]]
 
 [[source][A non-modifiable buffer sequence representing the memory regions from which the bytes will be copied.]]
 
-[[max_bytes_to_copy][The maximum number of bytes to be copied.]]
-
 ]
 
 
@@ -46019,59 +46050,51 @@
 * `buffer_size(source)`
 
 
-* `max_bytes_to_copy`
 
 
+[endsect]
 
 
-[endsect]
 
+[section:overload6 buffer_copy (6 of 30 overloads)]
 
-[endsect]
 
-[section:buffer_size buffer_size]
+Copies bytes from a source buffer to a target buffer.
 
-[indexterm1 buffer_size]
-The `boost::asio::buffer_size` function determines the total number of bytes in a buffer or buffer sequence.
 
-
- std::size_t ``[link boost_asio.reference.buffer_size.overload1 buffer_size]``(
- const mutable_buffer & b);
- `` [''''&raquo;''' [link boost_asio.reference.buffer_size.overload1 more...]]``
+ std::size_t buffer_copy(
+ const mutable_buffers_1 & target,
+ const const_buffer & source);
 
- std::size_t ``[link boost_asio.reference.buffer_size.overload2 buffer_size]``(
- const mutable_buffers_1 & b);
- `` [''''&raquo;''' [link boost_asio.reference.buffer_size.overload2 more...]]``
 
- std::size_t ``[link boost_asio.reference.buffer_size.overload3 buffer_size]``(
- const const_buffer & b);
- `` [''''&raquo;''' [link boost_asio.reference.buffer_size.overload3 more...]]``
 
- std::size_t ``[link boost_asio.reference.buffer_size.overload4 buffer_size]``(
- const const_buffers_1 & b);
- `` [''''&raquo;''' [link boost_asio.reference.buffer_size.overload4 more...]]``
+[heading Parameters]
+
 
- template<
- typename BufferSequence>
- std::size_t ``[link boost_asio.reference.buffer_size.overload5 buffer_size]``(
- const BufferSequence & b);
- `` [''''&raquo;''' [link boost_asio.reference.buffer_size.overload5 more...]]``
+[variablelist
+
+[[target][A modifiable buffer representing the memory region to which the bytes will be copied.]]
 
-[heading Requirements]
+[[source][A non-modifiable buffer representing the memory region from which the bytes will be copied.]]
 
-[*Header: ][^boost/asio/buffer.hpp]
+]
 
-[*Convenience header: ][^boost/asio.hpp]
+
+[heading Return Value]
+
+The number of bytes copied.
 
 
-[section:overload1 buffer_size (1 of 5 overloads)]
+[heading Remarks]
+
+The number of bytes copied is the lesser of:
 
 
-Get the number of bytes in a modifiable buffer.
+* `buffer_size(target)`
 
 
- std::size_t buffer_size(
- const mutable_buffer & b);
+* `buffer_size(source)`
+
 
 
 
@@ -46079,963 +46102,792 @@
 
 
 
-[section:overload2 buffer_size (2 of 5 overloads)]
+[section:overload7 buffer_copy (7 of 30 overloads)]
 
 
-Get the number of bytes in a modifiable buffer.
+Copies bytes from a source buffer to a target buffer.
 
 
- std::size_t buffer_size(
- const mutable_buffers_1 & b);
+ std::size_t buffer_copy(
+ const mutable_buffers_1 & target,
+ const const_buffers_1 & source);
 
 
 
-[endsect]
+[heading Parameters]
+
 
+[variablelist
+
+[[target][A modifiable buffer representing the memory region to which the bytes will be copied.]]
 
+[[source][A non-modifiable buffer representing the memory region from which the bytes will be copied.]]
 
-[section:overload3 buffer_size (3 of 5 overloads)]
+]
 
 
-Get the number of bytes in a non-modifiable buffer.
+[heading Return Value]
+
+The number of bytes copied.
 
 
- std::size_t buffer_size(
- const const_buffer & b);
+[heading Remarks]
+
+The number of bytes copied is the lesser of:
 
 
+* `buffer_size(target)`
 
-[endsect]
 
+* `buffer_size(source)`
 
 
-[section:overload4 buffer_size (4 of 5 overloads)]
 
 
-Get the number of bytes in a non-modifiable buffer.
+[endsect]
 
 
- std::size_t buffer_size(
- const const_buffers_1 & b);
 
+[section:overload8 buffer_copy (8 of 30 overloads)]
 
 
-[endsect]
+Copies bytes from a source buffer to a target buffer.
 
 
+ std::size_t buffer_copy(
+ const mutable_buffers_1 & target,
+ const mutable_buffer & source);
 
-[section:overload5 buffer_size (5 of 5 overloads)]
 
 
-Get the total number of bytes in a buffer sequence.
+[heading Parameters]
+
 
+[variablelist
+
+[[target][A modifiable buffer representing the memory region to which the bytes will be copied.]]
 
- template<
- typename BufferSequence>
- std::size_t buffer_size(
- const BufferSequence & b);
+[[source][A modifiable buffer representing the memory region from which the bytes will be copied. The contents of the source buffer will not be modified.]]
 
+]
 
-The `BufferSequence` template parameter may meet either of the `ConstBufferSequence` or `MutableBufferSequence` type requirements.
 
+[heading Return Value]
+
+The number of bytes copied.
 
-[endsect]
 
+[heading Remarks]
+
+The number of bytes copied is the lesser of:
 
-[endsect]
 
-[section:buffered_read_stream buffered_read_stream]
+* `buffer_size(target)`
 
 
-Adds buffering to the read-related operations of a stream.
+* `buffer_size(source)`
 
 
- template<
- typename Stream>
- class buffered_read_stream :
- noncopyable
 
 
-[heading Types]
-[table
- [[Name][Description]]
+[endsect]
 
- [
 
- [[link boost_asio.reference.buffered_read_stream.lowest_layer_type [*lowest_layer_type]]]
- [The type of the lowest layer. ]
-
- ]
 
- [
+[section:overload9 buffer_copy (9 of 30 overloads)]
 
- [[link boost_asio.reference.buffered_read_stream.next_layer_type [*next_layer_type]]]
- [The type of the next layer. ]
-
- ]
 
-]
+Copies bytes from a source buffer to a target buffer.
 
-[heading Member Functions]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.buffered_read_stream.async_fill [*async_fill]]]
- [Start an asynchronous fill. ]
- ]
-
- [
- [[link boost_asio.reference.buffered_read_stream.async_read_some [*async_read_some]]]
- [Start an asynchronous read. The buffer into which the data will be read must be valid for the lifetime of the asynchronous operation. ]
- ]
-
- [
- [[link boost_asio.reference.buffered_read_stream.async_write_some [*async_write_some]]]
- [Start an asynchronous write. The data being written must be valid for the lifetime of the asynchronous operation. ]
- ]
-
- [
- [[link boost_asio.reference.buffered_read_stream.buffered_read_stream [*buffered_read_stream]]]
- [Construct, passing the specified argument to initialise the next layer. ]
- ]
-
- [
- [[link boost_asio.reference.buffered_read_stream.close [*close]]]
- [Close the stream. ]
- ]
-
- [
- [[link boost_asio.reference.buffered_read_stream.fill [*fill]]]
- [Fill the buffer with some data. Returns the number of bytes placed in the buffer as a result of the operation. Throws an exception on failure.
+ std::size_t buffer_copy(
+ const mutable_buffers_1 & target,
+ const mutable_buffers_1 & source);
 
- Fill the buffer with some data. Returns the number of bytes placed in the buffer as a result of the operation, or 0 if an error occurred. ]
- ]
-
- [
- [[link boost_asio.reference.buffered_read_stream.get_io_service [*get_io_service]]]
- [Get the io_service associated with the object. ]
- ]
-
- [
- [[link boost_asio.reference.buffered_read_stream.in_avail [*in_avail]]]
- [Determine the amount of data that may be read without blocking. ]
- ]
-
- [
- [[link boost_asio.reference.buffered_read_stream.lowest_layer [*lowest_layer]]]
- [Get a reference to the lowest layer.
 
- Get a const reference to the lowest layer. ]
- ]
-
- [
- [[link boost_asio.reference.buffered_read_stream.next_layer [*next_layer]]]
- [Get a reference to the next layer. ]
- ]
-
- [
- [[link boost_asio.reference.buffered_read_stream.peek [*peek]]]
- [Peek at the incoming data on the stream. Returns the number of bytes read. Throws an exception on failure.
 
- Peek at the incoming data on the stream. Returns the number of bytes read, or 0 if an error occurred. ]
- ]
-
- [
- [[link boost_asio.reference.buffered_read_stream.read_some [*read_some]]]
- [Read some data from the stream. Returns the number of bytes read. Throws an exception on failure.
+[heading Parameters]
+
 
- Read some data from the stream. Returns the number of bytes read or 0 if an error occurred. ]
- ]
+[variablelist
   
- [
- [[link boost_asio.reference.buffered_read_stream.write_some [*write_some]]]
- [Write the given data to the stream. Returns the number of bytes written. Throws an exception on failure.
+[[target][A modifiable buffer representing the memory region to which the bytes will be copied.]]
+
+[[source][A modifiable buffer representing the memory region from which the bytes will be copied. The contents of the source buffer will not be modified.]]
 
- Write the given data to the stream. Returns the number of bytes written, or 0 if an error occurred. ]
- ]
-
 ]
 
-[heading Data Members]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.buffered_read_stream.default_buffer_size [*default_buffer_size]]]
- [The default buffer size. ]
- ]
+[heading Return Value]
+
+The number of bytes copied.
 
-]
 
-The [link boost_asio.reference.buffered_read_stream `buffered_read_stream`] class template can be used to add buffering to the synchronous and asynchronous read operations of a stream.
+[heading Remarks]
+
+The number of bytes copied is the lesser of:
 
 
-[heading Thread Safety]
-
-[*Distinct] [*objects:] Safe.
+* `buffer_size(target)`
 
-[*Shared] [*objects:] Unsafe.
 
+* `buffer_size(source)`
 
 
 
-[heading Requirements]
-
-[*Header: ][^boost/asio/buffered_read_stream.hpp]
-
-[*Convenience header: ][^boost/asio.hpp]
 
+[endsect]
 
-[section:async_fill buffered_read_stream::async_fill]
 
-[indexterm2 async_fill..buffered_read_stream]
-Start an asynchronous fill.
 
+[section:overload10 buffer_copy (10 of 30 overloads)]
 
- template<
- typename ``[link boost_asio.reference.ReadHandler ReadHandler]``>
- void async_fill(
- ReadHandler handler);
 
+Copies bytes from a source buffer sequence to a target buffer.
 
 
-[endsect]
+ template<
+ typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
+ std::size_t buffer_copy(
+ const mutable_buffers_1 & target,
+ const ConstBufferSequence & source);
 
 
 
-[section:async_read_some buffered_read_stream::async_read_some]
+[heading Parameters]
+
 
-[indexterm2 async_read_some..buffered_read_stream]
-Start an asynchronous read. The buffer into which the data will be read must be valid for the lifetime of the asynchronous operation.
+[variablelist
+
+[[target][A modifiable buffer representing the memory region to which the bytes will be copied.]]
 
+[[source][A non-modifiable buffer sequence representing the memory regions from which the bytes will be copied.]]
 
- template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``,
- typename ``[link boost_asio.reference.ReadHandler ReadHandler]``>
- void async_read_some(
- const MutableBufferSequence & buffers,
- ReadHandler handler);
+]
 
 
+[heading Return Value]
+
+The number of bytes copied.
 
-[endsect]
 
+[heading Remarks]
+
+The number of bytes copied is the lesser of:
 
 
-[section:async_write_some buffered_read_stream::async_write_some]
+* `buffer_size(target)`
 
-[indexterm2 async_write_some..buffered_read_stream]
-Start an asynchronous write. The data being written must be valid for the lifetime of the asynchronous operation.
 
+* `buffer_size(source)`
 
- template<
- typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``,
- typename ``[link boost_asio.reference.WriteHandler WriteHandler]``>
- void async_write_some(
- const ConstBufferSequence & buffers,
- WriteHandler handler);
 
 
 
 [endsect]
 
 
-[section:buffered_read_stream buffered_read_stream::buffered_read_stream]
 
-[indexterm2 buffered_read_stream..buffered_read_stream]
-Construct, passing the specified argument to initialise the next layer.
+[section:overload11 buffer_copy (11 of 30 overloads)]
 
 
- template<
- typename Arg>
- explicit ``[link boost_asio.reference.buffered_read_stream.buffered_read_stream.overload1 buffered_read_stream]``(
- Arg & a);
- `` [''''&raquo;''' [link boost_asio.reference.buffered_read_stream.buffered_read_stream.overload1 more...]]``
+Copies bytes from a source buffer to a target buffer sequence.
 
- template<
- typename Arg>
- ``[link boost_asio.reference.buffered_read_stream.buffered_read_stream.overload2 buffered_read_stream]``(
- Arg & a,
- std::size_t buffer_size);
- `` [''''&raquo;''' [link boost_asio.reference.buffered_read_stream.buffered_read_stream.overload2 more...]]``
 
+ template<
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
+ std::size_t buffer_copy(
+ const MutableBufferSequence & target,
+ const const_buffer & source);
 
-[section:overload1 buffered_read_stream::buffered_read_stream (1 of 2 overloads)]
 
 
-Construct, passing the specified argument to initialise the next layer.
+[heading Parameters]
+
 
+[variablelist
+
+[[target][A modifiable buffer sequence representing the memory regions to which the bytes will be copied.]]
 
- template<
- typename Arg>
- buffered_read_stream(
- Arg & a);
+[[source][A non-modifiable buffer representing the memory region from which the bytes will be copied.]]
 
+]
 
 
-[endsect]
+[heading Return Value]
+
+The number of bytes copied.
 
 
+[heading Remarks]
+
+The number of bytes copied is the lesser of:
 
-[section:overload2 buffered_read_stream::buffered_read_stream (2 of 2 overloads)]
 
+* `buffer_size(target)`
 
-Construct, passing the specified argument to initialise the next layer.
 
+* `buffer_size(source)`
 
- template<
- typename Arg>
- buffered_read_stream(
- Arg & a,
- std::size_t buffer_size);
 
 
 
 [endsect]
 
 
-[endsect]
-
-[section:close buffered_read_stream::close]
 
-[indexterm2 close..buffered_read_stream]
-Close the stream.
+[section:overload12 buffer_copy (12 of 30 overloads)]
 
 
- void ``[link boost_asio.reference.buffered_read_stream.close.overload1 close]``();
- `` [''''&raquo;''' [link boost_asio.reference.buffered_read_stream.close.overload1 more...]]``
+Copies bytes from a source buffer to a target buffer sequence.
 
- boost::system::error_code ``[link boost_asio.reference.buffered_read_stream.close.overload2 close]``(
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.buffered_read_stream.close.overload2 more...]]``
 
+ template<
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
+ std::size_t buffer_copy(
+ const MutableBufferSequence & target,
+ const const_buffers_1 & source);
 
-[section:overload1 buffered_read_stream::close (1 of 2 overloads)]
 
 
-Close the stream.
+[heading Parameters]
+
 
+[variablelist
+
+[[target][A modifiable buffer sequence representing the memory regions to which the bytes will be copied.]]
 
- void close();
+[[source][A non-modifiable buffer representing the memory region from which the bytes will be copied.]]
 
+]
 
 
-[endsect]
+[heading Return Value]
+
+The number of bytes copied.
 
 
+[heading Remarks]
+
+The number of bytes copied is the lesser of:
 
-[section:overload2 buffered_read_stream::close (2 of 2 overloads)]
 
+* `buffer_size(target)`
 
-Close the stream.
 
+* `buffer_size(source)`
 
- boost::system::error_code close(
- boost::system::error_code & ec);
 
 
 
 [endsect]
 
 
-[endsect]
 
+[section:overload13 buffer_copy (13 of 30 overloads)]
 
-[section:default_buffer_size buffered_read_stream::default_buffer_size]
 
-[indexterm2 default_buffer_size..buffered_read_stream]
-The default buffer size.
+Copies bytes from a source buffer to a target buffer sequence.
 
 
- static const std::size_t default_buffer_size = implementation_defined;
+ template<
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
+ std::size_t buffer_copy(
+ const MutableBufferSequence & target,
+ const mutable_buffer & source);
 
 
 
-[endsect]
+[heading Parameters]
+
 
+[variablelist
+
+[[target][A modifiable buffer sequence representing the memory regions to which the bytes will be copied.]]
 
-[section:fill buffered_read_stream::fill]
+[[source][A modifiable buffer representing the memory region from which the bytes will be copied. The contents of the source buffer will not be modified.]]
 
-[indexterm2 fill..buffered_read_stream]
-Fill the buffer with some data. Returns the number of bytes placed in the buffer as a result of the operation. Throws an exception on failure.
+]
 
 
- std::size_t ``[link boost_asio.reference.buffered_read_stream.fill.overload1 fill]``();
- `` [''''&raquo;''' [link boost_asio.reference.buffered_read_stream.fill.overload1 more...]]``
+[heading Return Value]
+
+The number of bytes copied.
 
 
-Fill the buffer with some data. Returns the number of bytes placed in the buffer as a result of the operation, or 0 if an error occurred.
+[heading Remarks]
+
+The number of bytes copied is the lesser of:
 
 
- std::size_t ``[link boost_asio.reference.buffered_read_stream.fill.overload2 fill]``(
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.buffered_read_stream.fill.overload2 more...]]``
+* `buffer_size(target)`
 
 
-[section:overload1 buffered_read_stream::fill (1 of 2 overloads)]
+* `buffer_size(source)`
 
 
-Fill the buffer with some data. Returns the number of bytes placed in the buffer as a result of the operation. Throws an exception on failure.
 
 
- std::size_t fill();
+[endsect]
 
 
 
-[endsect]
+[section:overload14 buffer_copy (14 of 30 overloads)]
 
 
+Copies bytes from a source buffer to a target buffer sequence.
 
-[section:overload2 buffered_read_stream::fill (2 of 2 overloads)]
 
+ template<
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
+ std::size_t buffer_copy(
+ const MutableBufferSequence & target,
+ const mutable_buffers_1 & source);
 
-Fill the buffer with some data. Returns the number of bytes placed in the buffer as a result of the operation, or 0 if an error occurred.
 
 
- std::size_t fill(
- boost::system::error_code & ec);
+[heading Parameters]
+
 
+[variablelist
+
+[[target][A modifiable buffer sequence representing the memory regions to which the bytes will be copied.]]
 
+[[source][A modifiable buffer representing the memory region from which the bytes will be copied. The contents of the source buffer will not be modified.]]
 
-[endsect]
+]
 
 
-[endsect]
+[heading Return Value]
+
+The number of bytes copied.
 
 
-[section:get_io_service buffered_read_stream::get_io_service]
+[heading Remarks]
+
+The number of bytes copied is the lesser of:
 
-[indexterm2 get_io_service..buffered_read_stream]
-Get the [link boost_asio.reference.io_service `io_service`] associated with the object.
 
+* `buffer_size(target)`
 
- boost::asio::io_service & get_io_service();
 
+* `buffer_size(source)`
 
 
-[endsect]
 
 
-[section:in_avail buffered_read_stream::in_avail]
+[endsect]
 
-[indexterm2 in_avail..buffered_read_stream]
-Determine the amount of data that may be read without blocking.
 
 
- std::size_t ``[link boost_asio.reference.buffered_read_stream.in_avail.overload1 in_avail]``();
- `` [''''&raquo;''' [link boost_asio.reference.buffered_read_stream.in_avail.overload1 more...]]``
+[section:overload15 buffer_copy (15 of 30 overloads)]
 
- std::size_t ``[link boost_asio.reference.buffered_read_stream.in_avail.overload2 in_avail]``(
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.buffered_read_stream.in_avail.overload2 more...]]``
 
+Copies bytes from a source buffer sequence to a target buffer sequence.
 
-[section:overload1 buffered_read_stream::in_avail (1 of 2 overloads)]
 
+ template<
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``,
+ typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
+ std::size_t buffer_copy(
+ const MutableBufferSequence & target,
+ const ConstBufferSequence & source);
 
-Determine the amount of data that may be read without blocking.
 
 
- std::size_t in_avail();
+[heading Parameters]
+
 
+[variablelist
+
+[[target][A modifiable buffer sequence representing the memory regions to which the bytes will be copied.]]
 
+[[source][A non-modifiable buffer sequence representing the memory regions from which the bytes will be copied.]]
 
-[endsect]
+]
 
 
+[heading Return Value]
+
+The number of bytes copied.
 
-[section:overload2 buffered_read_stream::in_avail (2 of 2 overloads)]
 
+[heading Remarks]
+
+The number of bytes copied is the lesser of:
 
-Determine the amount of data that may be read without blocking.
 
+* `buffer_size(target)`
 
- std::size_t in_avail(
- boost::system::error_code & ec);
 
+* `buffer_size(source)`
 
 
-[endsect]
 
 
 [endsect]
 
-[section:lowest_layer buffered_read_stream::lowest_layer]
-
-[indexterm2 lowest_layer..buffered_read_stream]
-Get a reference to the lowest layer.
 
 
- lowest_layer_type & ``[link boost_asio.reference.buffered_read_stream.lowest_layer.overload1 lowest_layer]``();
- `` [''''&raquo;''' [link boost_asio.reference.buffered_read_stream.lowest_layer.overload1 more...]]``
+[section:overload16 buffer_copy (16 of 30 overloads)]
 
 
-Get a const reference to the lowest layer.
+Copies a limited number of bytes from a source buffer to a target buffer.
 
 
- const lowest_layer_type & ``[link boost_asio.reference.buffered_read_stream.lowest_layer.overload2 lowest_layer]``() const;
- `` [''''&raquo;''' [link boost_asio.reference.buffered_read_stream.lowest_layer.overload2 more...]]``
+ std::size_t buffer_copy(
+ const mutable_buffer & target,
+ const const_buffer & source,
+ std::size_t max_bytes_to_copy);
 
 
-[section:overload1 buffered_read_stream::lowest_layer (1 of 2 overloads)]
 
+[heading Parameters]
+
 
-Get a reference to the lowest layer.
+[variablelist
+
+[[target][A modifiable buffer representing the memory region to which the bytes will be copied.]]
 
+[[source][A non-modifiable buffer representing the memory region from which the bytes will be copied.]]
 
- lowest_layer_type & lowest_layer();
+[[max_bytes_to_copy][The maximum number of bytes to be copied.]]
 
+]
 
 
-[endsect]
+[heading Return Value]
+
+The number of bytes copied.
 
 
+[heading Remarks]
+
+The number of bytes copied is the lesser of:
 
-[section:overload2 buffered_read_stream::lowest_layer (2 of 2 overloads)]
 
+* `buffer_size(target)`
 
-Get a const reference to the lowest layer.
 
+* `buffer_size(source)`
 
- const lowest_layer_type & lowest_layer() const;
 
+* `max_bytes_to_copy`
 
 
-[endsect]
 
 
 [endsect]
 
 
-[section:lowest_layer_type buffered_read_stream::lowest_layer_type]
-
-[indexterm2 lowest_layer_type..buffered_read_stream]
-The type of the lowest layer.
-
-
- typedef next_layer_type::lowest_layer_type lowest_layer_type;
-
-
 
-[heading Requirements]
-
-[*Header: ][^boost/asio/buffered_read_stream.hpp]
+[section:overload17 buffer_copy (17 of 30 overloads)]
 
-[*Convenience header: ][^boost/asio.hpp]
 
+Copies a limited number of bytes from a source buffer to a target buffer.
 
-[endsect]
 
+ std::size_t buffer_copy(
+ const mutable_buffer & target,
+ const const_buffers_1 & source,
+ std::size_t max_bytes_to_copy);
 
 
-[section:next_layer buffered_read_stream::next_layer]
 
-[indexterm2 next_layer..buffered_read_stream]
-Get a reference to the next layer.
+[heading Parameters]
+
 
+[variablelist
+
+[[target][A modifiable buffer representing the memory region to which the bytes will be copied.]]
 
- next_layer_type & next_layer();
+[[source][A non-modifiable buffer representing the memory region from which the bytes will be copied.]]
 
+[[max_bytes_to_copy][The maximum number of bytes to be copied.]]
 
+]
 
-[endsect]
 
+[heading Return Value]
+
+The number of bytes copied.
 
 
-[section:next_layer_type buffered_read_stream::next_layer_type]
+[heading Remarks]
+
+The number of bytes copied is the lesser of:
 
-[indexterm2 next_layer_type..buffered_read_stream]
-The type of the next layer.
 
+* `buffer_size(target)`
 
- typedef boost::remove_reference< Stream >::type next_layer_type;
 
+* `buffer_size(source)`
 
 
-[heading Requirements]
+* `max_bytes_to_copy`
 
-[*Header: ][^boost/asio/buffered_read_stream.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
-[section:peek buffered_read_stream::peek]
-
-[indexterm2 peek..buffered_read_stream]
-Peek at the incoming data on the stream. Returns the number of bytes read. Throws an exception on failure.
-
 
- template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
- std::size_t ``[link boost_asio.reference.buffered_read_stream.peek.overload1 peek]``(
- const MutableBufferSequence & buffers);
- `` [''''&raquo;''' [link boost_asio.reference.buffered_read_stream.peek.overload1 more...]]``
+[section:overload18 buffer_copy (18 of 30 overloads)]
 
 
-Peek at the incoming data on the stream. Returns the number of bytes read, or 0 if an error occurred.
+Copies a limited number of bytes from a source buffer to a target buffer.
 
 
- template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
- std::size_t ``[link boost_asio.reference.buffered_read_stream.peek.overload2 peek]``(
- const MutableBufferSequence & buffers,
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.buffered_read_stream.peek.overload2 more...]]``
+ std::size_t buffer_copy(
+ const mutable_buffer & target,
+ const mutable_buffer & source,
+ std::size_t max_bytes_to_copy);
 
 
-[section:overload1 buffered_read_stream::peek (1 of 2 overloads)]
 
+[heading Parameters]
+
 
-Peek at the incoming data on the stream. Returns the number of bytes read. Throws an exception on failure.
+[variablelist
+
+[[target][A modifiable buffer representing the memory region to which the bytes will be copied.]]
 
+[[source][A modifiable buffer representing the memory region from which the bytes will be copied. The contents of the source buffer will not be modified.]]
 
- template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
- std::size_t peek(
- const MutableBufferSequence & buffers);
+[[max_bytes_to_copy][The maximum number of bytes to be copied.]]
 
+]
 
 
-[endsect]
+[heading Return Value]
+
+The number of bytes copied.
 
 
+[heading Remarks]
+
+The number of bytes copied is the lesser of:
 
-[section:overload2 buffered_read_stream::peek (2 of 2 overloads)]
 
+* `buffer_size(target)`
 
-Peek at the incoming data on the stream. Returns the number of bytes read, or 0 if an error occurred.
 
+* `buffer_size(source)`
 
- template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
- std::size_t peek(
- const MutableBufferSequence & buffers,
- boost::system::error_code & ec);
 
+* `max_bytes_to_copy`
 
 
-[endsect]
 
 
 [endsect]
 
-[section:read_some buffered_read_stream::read_some]
-
-[indexterm2 read_some..buffered_read_stream]
-Read some data from the stream. Returns the number of bytes read. Throws an exception on failure.
 
 
- template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
- std::size_t ``[link boost_asio.reference.buffered_read_stream.read_some.overload1 read_some]``(
- const MutableBufferSequence & buffers);
- `` [''''&raquo;''' [link boost_asio.reference.buffered_read_stream.read_some.overload1 more...]]``
+[section:overload19 buffer_copy (19 of 30 overloads)]
 
 
-Read some data from the stream. Returns the number of bytes read or 0 if an error occurred.
+Copies a limited number of bytes from a source buffer to a target buffer.
 
 
- template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
- std::size_t ``[link boost_asio.reference.buffered_read_stream.read_some.overload2 read_some]``(
- const MutableBufferSequence & buffers,
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.buffered_read_stream.read_some.overload2 more...]]``
+ std::size_t buffer_copy(
+ const mutable_buffer & target,
+ const mutable_buffers_1 & source,
+ std::size_t max_bytes_to_copy);
 
 
-[section:overload1 buffered_read_stream::read_some (1 of 2 overloads)]
 
+[heading Parameters]
+
 
-Read some data from the stream. Returns the number of bytes read. Throws an exception on failure.
+[variablelist
+
+[[target][A modifiable buffer representing the memory region to which the bytes will be copied.]]
 
+[[source][A modifiable buffer representing the memory region from which the bytes will be copied. The contents of the source buffer will not be modified.]]
 
- template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
- std::size_t read_some(
- const MutableBufferSequence & buffers);
+[[max_bytes_to_copy][The maximum number of bytes to be copied.]]
 
+]
 
 
-[endsect]
+[heading Return Value]
+
+The number of bytes copied.
 
 
+[heading Remarks]
+
+The number of bytes copied is the lesser of:
 
-[section:overload2 buffered_read_stream::read_some (2 of 2 overloads)]
 
+* `buffer_size(target)`
 
-Read some data from the stream. Returns the number of bytes read or 0 if an error occurred.
 
+* `buffer_size(source)`
 
- template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
- std::size_t read_some(
- const MutableBufferSequence & buffers,
- boost::system::error_code & ec);
 
+* `max_bytes_to_copy`
 
 
-[endsect]
 
 
 [endsect]
 
-[section:write_some buffered_read_stream::write_some]
-
-[indexterm2 write_some..buffered_read_stream]
-Write the given data to the stream. Returns the number of bytes written. Throws an exception on failure.
 
 
- template<
- typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
- std::size_t ``[link boost_asio.reference.buffered_read_stream.write_some.overload1 write_some]``(
- const ConstBufferSequence & buffers);
- `` [''''&raquo;''' [link boost_asio.reference.buffered_read_stream.write_some.overload1 more...]]``
+[section:overload20 buffer_copy (20 of 30 overloads)]
 
 
-Write the given data to the stream. Returns the number of bytes written, or 0 if an error occurred.
+Copies a limited number of bytes from a source buffer sequence to a target buffer.
 
 
   template<
       typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
- std::size_t ``[link boost_asio.reference.buffered_read_stream.write_some.overload2 write_some]``(
- const ConstBufferSequence & buffers,
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.buffered_read_stream.write_some.overload2 more...]]``
+ std::size_t buffer_copy(
+ const mutable_buffer & target,
+ const ConstBufferSequence & source,
+ std::size_t max_bytes_to_copy);
 
 
-[section:overload1 buffered_read_stream::write_some (1 of 2 overloads)]
 
+[heading Parameters]
+
 
-Write the given data to the stream. Returns the number of bytes written. Throws an exception on failure.
+[variablelist
+
+[[target][A modifiable buffer representing the memory region to which the bytes will be copied.]]
 
+[[source][A non-modifiable buffer sequence representing the memory regions from which the bytes will be copied.]]
 
- template<
- typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
- std::size_t write_some(
- const ConstBufferSequence & buffers);
+[[max_bytes_to_copy][The maximum number of bytes to be copied.]]
 
+]
 
 
-[endsect]
+[heading Return Value]
+
+The number of bytes copied.
 
 
+[heading Remarks]
+
+The number of bytes copied is the lesser of:
 
-[section:overload2 buffered_read_stream::write_some (2 of 2 overloads)]
 
+* `buffer_size(target)`
 
-Write the given data to the stream. Returns the number of bytes written, or 0 if an error occurred.
 
+* `buffer_size(source)`
 
- template<
- typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
- std::size_t write_some(
- const ConstBufferSequence & buffers,
- boost::system::error_code & ec);
 
+* `max_bytes_to_copy`
 
 
-[endsect]
 
 
 [endsect]
 
 
-[endsect]
 
-[section:buffered_stream buffered_stream]
+[section:overload21 buffer_copy (21 of 30 overloads)]
 
 
-Adds buffering to the read- and write-related operations of a stream.
+Copies a limited number of bytes from a source buffer to a target buffer.
 
 
- template<
- typename Stream>
- class buffered_stream :
- noncopyable
+ std::size_t buffer_copy(
+ const mutable_buffers_1 & target,
+ const const_buffer & source,
+ std::size_t max_bytes_to_copy);
 
 
-[heading Types]
-[table
- [[Name][Description]]
 
- [
+[heading Parameters]
+
 
- [[link boost_asio.reference.buffered_stream.lowest_layer_type [*lowest_layer_type]]]
- [The type of the lowest layer. ]
+[variablelist
   
- ]
+[[target][A modifiable buffer representing the memory region to which the bytes will be copied.]]
 
- [
+[[source][A non-modifiable buffer representing the memory region from which the bytes will be copied.]]
 
- [[link boost_asio.reference.buffered_stream.next_layer_type [*next_layer_type]]]
- [The type of the next layer. ]
-
- ]
+[[max_bytes_to_copy][The maximum number of bytes to be copied.]]
 
 ]
 
-[heading Member Functions]
-[table
- [[Name][Description]]
-
- [
- [[link boost_asio.reference.buffered_stream.async_fill [*async_fill]]]
- [Start an asynchronous fill. ]
- ]
-
- [
- [[link boost_asio.reference.buffered_stream.async_flush [*async_flush]]]
- [Start an asynchronous flush. ]
- ]
-
- [
- [[link boost_asio.reference.buffered_stream.async_read_some [*async_read_some]]]
- [Start an asynchronous read. The buffer into which the data will be read must be valid for the lifetime of the asynchronous operation. ]
- ]
-
- [
- [[link boost_asio.reference.buffered_stream.async_write_some [*async_write_some]]]
- [Start an asynchronous write. The data being written must be valid for the lifetime of the asynchronous operation. ]
- ]
-
- [
- [[link boost_asio.reference.buffered_stream.buffered_stream [*buffered_stream]]]
- [Construct, passing the specified argument to initialise the next layer. ]
- ]
-
- [
- [[link boost_asio.reference.buffered_stream.close [*close]]]
- [Close the stream. ]
- ]
-
- [
- [[link boost_asio.reference.buffered_stream.fill [*fill]]]
- [Fill the buffer with some data. Returns the number of bytes placed in the buffer as a result of the operation. Throws an exception on failure.
-
- Fill the buffer with some data. Returns the number of bytes placed in the buffer as a result of the operation, or 0 if an error occurred. ]
- ]
-
- [
- [[link boost_asio.reference.buffered_stream.flush [*flush]]]
- [Flush all data from the buffer to the next layer. Returns the number of bytes written to the next layer on the last write operation. Throws an exception on failure.
 
- Flush all data from the buffer to the next layer. Returns the number of bytes written to the next layer on the last write operation, or 0 if an error occurred. ]
- ]
-
- [
- [[link boost_asio.reference.buffered_stream.get_io_service [*get_io_service]]]
- [Get the io_service associated with the object. ]
- ]
-
- [
- [[link boost_asio.reference.buffered_stream.in_avail [*in_avail]]]
- [Determine the amount of data that may be read without blocking. ]
- ]
-
- [
- [[link boost_asio.reference.buffered_stream.lowest_layer [*lowest_layer]]]
- [Get a reference to the lowest layer.
+[heading Return Value]
+
+The number of bytes copied.
 
- Get a const reference to the lowest layer. ]
- ]
-
- [
- [[link boost_asio.reference.buffered_stream.next_layer [*next_layer]]]
- [Get a reference to the next layer. ]
- ]
-
- [
- [[link boost_asio.reference.buffered_stream.peek [*peek]]]
- [Peek at the incoming data on the stream. Returns the number of bytes read. Throws an exception on failure.
 
- Peek at the incoming data on the stream. Returns the number of bytes read, or 0 if an error occurred. ]
- ]
-
- [
- [[link boost_asio.reference.buffered_stream.read_some [*read_some]]]
- [Read some data from the stream. Returns the number of bytes read. Throws an exception on failure.
+[heading Remarks]
+
+The number of bytes copied is the lesser of:
 
- Read some data from the stream. Returns the number of bytes read or 0 if an error occurred. ]
- ]
-
- [
- [[link boost_asio.reference.buffered_stream.write_some [*write_some]]]
- [Write the given data to the stream. Returns the number of bytes written. Throws an exception on failure.
 
- Write the given data to the stream. Returns the number of bytes written, or 0 if an error occurred. ]
- ]
-
-]
+* `buffer_size(target)`
 
-The [link boost_asio.reference.buffered_stream `buffered_stream`] class template can be used to add buffering to the synchronous and asynchronous read and write operations of a stream.
 
+* `buffer_size(source)`
 
-[heading Thread Safety]
-
-[*Distinct] [*objects:] Safe.
 
-[*Shared] [*objects:] Unsafe.
+* `max_bytes_to_copy`
 
 
 
 
-[heading Requirements]
+[endsect]
 
-[*Header: ][^boost/asio/buffered_stream.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
 
+[section:overload22 buffer_copy (22 of 30 overloads)]
 
-[section:async_fill buffered_stream::async_fill]
 
-[indexterm2 async_fill..buffered_stream]
-Start an asynchronous fill.
+Copies a limited number of bytes from a source buffer to a target buffer.
 
 
- template<
- typename ``[link boost_asio.reference.ReadHandler ReadHandler]``>
- void async_fill(
- ReadHandler handler);
+ std::size_t buffer_copy(
+ const mutable_buffers_1 & target,
+ const const_buffers_1 & source,
+ std::size_t max_bytes_to_copy);
 
 
 
-[endsect]
+[heading Parameters]
+
 
+[variablelist
+
+[[target][A modifiable buffer representing the memory region to which the bytes will be copied.]]
 
+[[source][A non-modifiable buffer representing the memory region from which the bytes will be copied.]]
 
-[section:async_flush buffered_stream::async_flush]
+[[max_bytes_to_copy][The maximum number of bytes to be copied.]]
 
-[indexterm2 async_flush..buffered_stream]
-Start an asynchronous flush.
+]
 
 
- template<
- typename ``[link boost_asio.reference.WriteHandler WriteHandler]``>
- void async_flush(
- WriteHandler handler);
+[heading Return Value]
+
+The number of bytes copied.
 
 
+[heading Remarks]
+
+The number of bytes copied is the lesser of:
 
-[endsect]
 
+* `buffer_size(target)`
 
 
-[section:async_read_some buffered_stream::async_read_some]
+* `buffer_size(source)`
 
-[indexterm2 async_read_some..buffered_stream]
-Start an asynchronous read. The buffer into which the data will be read must be valid for the lifetime of the asynchronous operation.
 
+* `max_bytes_to_copy`
 
- template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``,
- typename ``[link boost_asio.reference.ReadHandler ReadHandler]``>
- void async_read_some(
- const MutableBufferSequence & buffers,
- ReadHandler handler);
 
 
 
@@ -47043,355 +46895,373 @@
 
 
 
-[section:async_write_some buffered_stream::async_write_some]
-
-[indexterm2 async_write_some..buffered_stream]
-Start an asynchronous write. The data being written must be valid for the lifetime of the asynchronous operation.
-
-
- template<
- typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``,
- typename ``[link boost_asio.reference.WriteHandler WriteHandler]``>
- void async_write_some(
- const ConstBufferSequence & buffers,
- WriteHandler handler);
-
-
-
-[endsect]
+[section:overload23 buffer_copy (23 of 30 overloads)]
 
 
-[section:buffered_stream buffered_stream::buffered_stream]
+Copies a limited number of bytes from a source buffer to a target buffer.
 
-[indexterm2 buffered_stream..buffered_stream]
-Construct, passing the specified argument to initialise the next layer.
 
+ std::size_t buffer_copy(
+ const mutable_buffers_1 & target,
+ const mutable_buffer & source,
+ std::size_t max_bytes_to_copy);
 
- template<
- typename Arg>
- explicit ``[link boost_asio.reference.buffered_stream.buffered_stream.overload1 buffered_stream]``(
- Arg & a);
- `` [''''&raquo;''' [link boost_asio.reference.buffered_stream.buffered_stream.overload1 more...]]``
 
- template<
- typename Arg>
- explicit ``[link boost_asio.reference.buffered_stream.buffered_stream.overload2 buffered_stream]``(
- Arg & a,
- std::size_t read_buffer_size,
- std::size_t write_buffer_size);
- `` [''''&raquo;''' [link boost_asio.reference.buffered_stream.buffered_stream.overload2 more...]]``
 
+[heading Parameters]
+
 
-[section:overload1 buffered_stream::buffered_stream (1 of 2 overloads)]
+[variablelist
+
+[[target][A modifiable buffer representing the memory region to which the bytes will be copied.]]
 
+[[source][A modifiable buffer representing the memory region from which the bytes will be copied. The contents of the source buffer will not be modified.]]
 
-Construct, passing the specified argument to initialise the next layer.
+[[max_bytes_to_copy][The maximum number of bytes to be copied.]]
 
+]
 
- template<
- typename Arg>
- buffered_stream(
- Arg & a);
 
+[heading Return Value]
+
+The number of bytes copied.
 
 
-[endsect]
+[heading Remarks]
+
+The number of bytes copied is the lesser of:
 
 
+* `buffer_size(target)`
 
-[section:overload2 buffered_stream::buffered_stream (2 of 2 overloads)]
 
+* `buffer_size(source)`
 
-Construct, passing the specified argument to initialise the next layer.
 
+* `max_bytes_to_copy`
 
- template<
- typename Arg>
- buffered_stream(
- Arg & a,
- std::size_t read_buffer_size,
- std::size_t write_buffer_size);
 
 
 
 [endsect]
 
 
-[endsect]
 
-[section:close buffered_stream::close]
+[section:overload24 buffer_copy (24 of 30 overloads)]
 
-[indexterm2 close..buffered_stream]
-Close the stream.
 
+Copies a limited number of bytes from a source buffer to a target buffer.
 
- void ``[link boost_asio.reference.buffered_stream.close.overload1 close]``();
- `` [''''&raquo;''' [link boost_asio.reference.buffered_stream.close.overload1 more...]]``
 
- boost::system::error_code ``[link boost_asio.reference.buffered_stream.close.overload2 close]``(
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.buffered_stream.close.overload2 more...]]``
+ std::size_t buffer_copy(
+ const mutable_buffers_1 & target,
+ const mutable_buffers_1 & source,
+ std::size_t max_bytes_to_copy);
 
 
-[section:overload1 buffered_stream::close (1 of 2 overloads)]
 
+[heading Parameters]
+
 
-Close the stream.
+[variablelist
+
+[[target][A modifiable buffer representing the memory region to which the bytes will be copied.]]
 
+[[source][A modifiable buffer representing the memory region from which the bytes will be copied. The contents of the source buffer will not be modified.]]
 
- void close();
+[[max_bytes_to_copy][The maximum number of bytes to be copied.]]
 
+]
 
 
-[endsect]
+[heading Return Value]
+
+The number of bytes copied.
 
 
+[heading Remarks]
+
+The number of bytes copied is the lesser of:
 
-[section:overload2 buffered_stream::close (2 of 2 overloads)]
 
+* `buffer_size(target)`
 
-Close the stream.
 
+* `buffer_size(source)`
 
- boost::system::error_code close(
- boost::system::error_code & ec);
 
+* `max_bytes_to_copy`
 
 
-[endsect]
 
 
 [endsect]
 
-[section:fill buffered_stream::fill]
-
-[indexterm2 fill..buffered_stream]
-Fill the buffer with some data. Returns the number of bytes placed in the buffer as a result of the operation. Throws an exception on failure.
 
 
- std::size_t ``[link boost_asio.reference.buffered_stream.fill.overload1 fill]``();
- `` [''''&raquo;''' [link boost_asio.reference.buffered_stream.fill.overload1 more...]]``
+[section:overload25 buffer_copy (25 of 30 overloads)]
 
 
-Fill the buffer with some data. Returns the number of bytes placed in the buffer as a result of the operation, or 0 if an error occurred.
+Copies a limited number of bytes from a source buffer sequence to a target buffer.
 
 
- std::size_t ``[link boost_asio.reference.buffered_stream.fill.overload2 fill]``(
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.buffered_stream.fill.overload2 more...]]``
+ template<
+ typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
+ std::size_t buffer_copy(
+ const mutable_buffers_1 & target,
+ const ConstBufferSequence & source,
+ std::size_t max_bytes_to_copy);
 
 
-[section:overload1 buffered_stream::fill (1 of 2 overloads)]
 
+[heading Parameters]
+
 
-Fill the buffer with some data. Returns the number of bytes placed in the buffer as a result of the operation. Throws an exception on failure.
+[variablelist
+
+[[target][A modifiable buffer representing the memory region to which the bytes will be copied.]]
 
+[[source][A non-modifiable buffer sequence representing the memory regions from which the bytes will be copied.]]
 
- std::size_t fill();
+[[max_bytes_to_copy][The maximum number of bytes to be copied.]]
 
+]
 
 
-[endsect]
+[heading Return Value]
+
+The number of bytes copied.
 
 
+[heading Remarks]
+
+The number of bytes copied is the lesser of:
 
-[section:overload2 buffered_stream::fill (2 of 2 overloads)]
 
+* `buffer_size(target)`
 
-Fill the buffer with some data. Returns the number of bytes placed in the buffer as a result of the operation, or 0 if an error occurred.
 
+* `buffer_size(source)`
 
- std::size_t fill(
- boost::system::error_code & ec);
 
+* `max_bytes_to_copy`
 
 
-[endsect]
 
 
 [endsect]
 
-[section:flush buffered_stream::flush]
-
-[indexterm2 flush..buffered_stream]
-Flush all data from the buffer to the next layer. Returns the number of bytes written to the next layer on the last write operation. Throws an exception on failure.
 
 
- std::size_t ``[link boost_asio.reference.buffered_stream.flush.overload1 flush]``();
- `` [''''&raquo;''' [link boost_asio.reference.buffered_stream.flush.overload1 more...]]``
+[section:overload26 buffer_copy (26 of 30 overloads)]
 
 
-Flush all data from the buffer to the next layer. Returns the number of bytes written to the next layer on the last write operation, or 0 if an error occurred.
+Copies a limited number of bytes from a source buffer to a target buffer sequence.
 
 
- std::size_t ``[link boost_asio.reference.buffered_stream.flush.overload2 flush]``(
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.buffered_stream.flush.overload2 more...]]``
+ template<
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
+ std::size_t buffer_copy(
+ const MutableBufferSequence & target,
+ const const_buffer & source,
+ std::size_t max_bytes_to_copy);
 
 
-[section:overload1 buffered_stream::flush (1 of 2 overloads)]
 
+[heading Parameters]
+
 
-Flush all data from the buffer to the next layer. Returns the number of bytes written to the next layer on the last write operation. Throws an exception on failure.
+[variablelist
+
+[[target][A modifiable buffer sequence representing the memory regions to which the bytes will be copied.]]
 
+[[source][A non-modifiable buffer representing the memory region from which the bytes will be copied.]]
 
- std::size_t flush();
+[[max_bytes_to_copy][The maximum number of bytes to be copied.]]
 
+]
 
 
-[endsect]
+[heading Return Value]
+
+The number of bytes copied.
 
 
+[heading Remarks]
+
+The number of bytes copied is the lesser of:
 
-[section:overload2 buffered_stream::flush (2 of 2 overloads)]
 
+* `buffer_size(target)`
 
-Flush all data from the buffer to the next layer. Returns the number of bytes written to the next layer on the last write operation, or 0 if an error occurred.
 
+* `buffer_size(source)`
 
- std::size_t flush(
- boost::system::error_code & ec);
 
+* `max_bytes_to_copy`
 
 
-[endsect]
 
 
 [endsect]
 
 
-[section:get_io_service buffered_stream::get_io_service]
-
-[indexterm2 get_io_service..buffered_stream]
-Get the [link boost_asio.reference.io_service `io_service`] associated with the object.
 
+[section:overload27 buffer_copy (27 of 30 overloads)]
 
- boost::asio::io_service & get_io_service();
 
+Copies a limited number of bytes from a source buffer to a target buffer sequence.
 
 
-[endsect]
+ template<
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
+ std::size_t buffer_copy(
+ const MutableBufferSequence & target,
+ const const_buffers_1 & source,
+ std::size_t max_bytes_to_copy);
 
 
-[section:in_avail buffered_stream::in_avail]
 
-[indexterm2 in_avail..buffered_stream]
-Determine the amount of data that may be read without blocking.
+[heading Parameters]
+
 
+[variablelist
+
+[[target][A modifiable buffer sequence representing the memory regions to which the bytes will be copied.]]
 
- std::size_t ``[link boost_asio.reference.buffered_stream.in_avail.overload1 in_avail]``();
- `` [''''&raquo;''' [link boost_asio.reference.buffered_stream.in_avail.overload1 more...]]``
+[[source][A non-modifiable buffer representing the memory region from which the bytes will be copied.]]
 
- std::size_t ``[link boost_asio.reference.buffered_stream.in_avail.overload2 in_avail]``(
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.buffered_stream.in_avail.overload2 more...]]``
+[[max_bytes_to_copy][The maximum number of bytes to be copied.]]
 
+]
 
-[section:overload1 buffered_stream::in_avail (1 of 2 overloads)]
 
+[heading Return Value]
+
+The number of bytes copied.
 
-Determine the amount of data that may be read without blocking.
 
+[heading Remarks]
+
+The number of bytes copied is the lesser of:
 
- std::size_t in_avail();
 
+* `buffer_size(target)`
 
 
-[endsect]
+* `buffer_size(source)`
 
 
+* `max_bytes_to_copy`
 
-[section:overload2 buffered_stream::in_avail (2 of 2 overloads)]
 
 
-Determine the amount of data that may be read without blocking.
 
+[endsect]
 
- std::size_t in_avail(
- boost::system::error_code & ec);
 
 
+[section:overload28 buffer_copy (28 of 30 overloads)]
 
-[endsect]
 
+Copies a limited number of bytes from a source buffer to a target buffer sequence.
 
-[endsect]
 
-[section:lowest_layer buffered_stream::lowest_layer]
+ template<
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
+ std::size_t buffer_copy(
+ const MutableBufferSequence & target,
+ const mutable_buffer & source,
+ std::size_t max_bytes_to_copy);
 
-[indexterm2 lowest_layer..buffered_stream]
-Get a reference to the lowest layer.
 
 
- lowest_layer_type & ``[link boost_asio.reference.buffered_stream.lowest_layer.overload1 lowest_layer]``();
- `` [''''&raquo;''' [link boost_asio.reference.buffered_stream.lowest_layer.overload1 more...]]``
+[heading Parameters]
+
 
+[variablelist
+
+[[target][A modifiable buffer sequence representing the memory regions to which the bytes will be copied.]]
 
-Get a const reference to the lowest layer.
+[[source][A modifiable buffer representing the memory region from which the bytes will be copied. The contents of the source buffer will not be modified.]]
 
+[[max_bytes_to_copy][The maximum number of bytes to be copied.]]
 
- const lowest_layer_type & ``[link boost_asio.reference.buffered_stream.lowest_layer.overload2 lowest_layer]``() const;
- `` [''''&raquo;''' [link boost_asio.reference.buffered_stream.lowest_layer.overload2 more...]]``
+]
 
 
-[section:overload1 buffered_stream::lowest_layer (1 of 2 overloads)]
+[heading Return Value]
+
+The number of bytes copied.
 
 
-Get a reference to the lowest layer.
+[heading Remarks]
+
+The number of bytes copied is the lesser of:
 
 
- lowest_layer_type & lowest_layer();
+* `buffer_size(target)`
 
 
+* `buffer_size(source)`
 
-[endsect]
 
+* `max_bytes_to_copy`
 
 
-[section:overload2 buffered_stream::lowest_layer (2 of 2 overloads)]
 
 
-Get a const reference to the lowest layer.
+[endsect]
 
 
- const lowest_layer_type & lowest_layer() const;
 
+[section:overload29 buffer_copy (29 of 30 overloads)]
 
 
-[endsect]
+Copies a limited number of bytes from a source buffer to a target buffer sequence.
 
 
-[endsect]
+ template<
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
+ std::size_t buffer_copy(
+ const MutableBufferSequence & target,
+ const mutable_buffers_1 & source,
+ std::size_t max_bytes_to_copy);
 
 
-[section:lowest_layer_type buffered_stream::lowest_layer_type]
 
-[indexterm2 lowest_layer_type..buffered_stream]
-The type of the lowest layer.
+[heading Parameters]
+
 
+[variablelist
+
+[[target][A modifiable buffer sequence representing the memory regions to which the bytes will be copied.]]
 
- typedef next_layer_type::lowest_layer_type lowest_layer_type;
+[[source][A modifiable buffer representing the memory region from which the bytes will be copied. The contents of the source buffer will not be modified.]]
 
+[[max_bytes_to_copy][The maximum number of bytes to be copied.]]
 
+]
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/buffered_stream.hpp]
+[heading Return Value]
+
+The number of bytes copied.
 
-[*Convenience header: ][^boost/asio.hpp]
 
+[heading Remarks]
+
+The number of bytes copied is the lesser of:
 
-[endsect]
 
+* `buffer_size(target)`
 
 
-[section:next_layer buffered_stream::next_layer]
+* `buffer_size(source)`
 
-[indexterm2 next_layer..buffered_stream]
-Get a reference to the next layer.
 
+* `max_bytes_to_copy`
 
- next_layer_type & next_layer();
 
 
 
@@ -47399,120 +47269,120 @@
 
 
 
-[section:next_layer_type buffered_stream::next_layer_type]
-
-[indexterm2 next_layer_type..buffered_stream]
-The type of the next layer.
+[section:overload30 buffer_copy (30 of 30 overloads)]
 
 
- typedef boost::remove_reference< Stream >::type next_layer_type;
+Copies a limited number of bytes from a source buffer sequence to a target buffer sequence.
 
 
+ template<
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``,
+ typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
+ std::size_t buffer_copy(
+ const MutableBufferSequence & target,
+ const ConstBufferSequence & source,
+ std::size_t max_bytes_to_copy);
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/buffered_stream.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
+[heading Parameters]
+
 
+[variablelist
+
+[[target][A modifiable buffer sequence representing the memory regions to which the bytes will be copied.]]
 
-[endsect]
+[[source][A non-modifiable buffer sequence representing the memory regions from which the bytes will be copied.]]
 
+[[max_bytes_to_copy][The maximum number of bytes to be copied.]]
 
-[section:peek buffered_stream::peek]
+]
 
-[indexterm2 peek..buffered_stream]
-Peek at the incoming data on the stream. Returns the number of bytes read. Throws an exception on failure.
 
+[heading Return Value]
+
+The number of bytes copied.
 
- template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
- std::size_t ``[link boost_asio.reference.buffered_stream.peek.overload1 peek]``(
- const MutableBufferSequence & buffers);
- `` [''''&raquo;''' [link boost_asio.reference.buffered_stream.peek.overload1 more...]]``
 
+[heading Remarks]
+
+The number of bytes copied is the lesser of:
 
-Peek at the incoming data on the stream. Returns the number of bytes read, or 0 if an error occurred.
 
+* `buffer_size(target)`
 
- template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
- std::size_t ``[link boost_asio.reference.buffered_stream.peek.overload2 peek]``(
- const MutableBufferSequence & buffers,
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.buffered_stream.peek.overload2 more...]]``
 
+* `buffer_size(source)`
 
-[section:overload1 buffered_stream::peek (1 of 2 overloads)]
 
+* `max_bytes_to_copy`
 
-Peek at the incoming data on the stream. Returns the number of bytes read. Throws an exception on failure.
 
 
- template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
- std::size_t peek(
- const MutableBufferSequence & buffers);
 
+[endsect]
 
 
 [endsect]
 
+[section:buffer_size buffer_size]
 
+[indexterm1 buffer_size]
+The `boost::asio::buffer_size` function determines the total number of bytes in a buffer or buffer sequence.
 
-[section:overload2 buffered_stream::peek (2 of 2 overloads)]
+
+ std::size_t ``[link boost_asio.reference.buffer_size.overload1 buffer_size]``(
+ const mutable_buffer & b);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer_size.overload1 more...]]``
 
+ std::size_t ``[link boost_asio.reference.buffer_size.overload2 buffer_size]``(
+ const mutable_buffers_1 & b);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer_size.overload2 more...]]``
 
-Peek at the incoming data on the stream. Returns the number of bytes read, or 0 if an error occurred.
+ std::size_t ``[link boost_asio.reference.buffer_size.overload3 buffer_size]``(
+ const const_buffer & b);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer_size.overload3 more...]]``
 
+ std::size_t ``[link boost_asio.reference.buffer_size.overload4 buffer_size]``(
+ const const_buffers_1 & b);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer_size.overload4 more...]]``
 
   template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
- std::size_t peek(
- const MutableBufferSequence & buffers,
- boost::system::error_code & ec);
+ typename BufferSequence>
+ std::size_t ``[link boost_asio.reference.buffer_size.overload5 buffer_size]``(
+ const BufferSequence & b);
+ `` [''''&raquo;''' [link boost_asio.reference.buffer_size.overload5 more...]]``
 
+[heading Requirements]
 
+[*Header: ][^boost/asio/buffer.hpp]
 
-[endsect]
+[*Convenience header: ][^boost/asio.hpp]
 
 
-[endsect]
+[section:overload1 buffer_size (1 of 5 overloads)]
 
-[section:read_some buffered_stream::read_some]
 
-[indexterm2 read_some..buffered_stream]
-Read some data from the stream. Returns the number of bytes read. Throws an exception on failure.
+Get the number of bytes in a modifiable buffer.
 
 
- template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
- std::size_t ``[link boost_asio.reference.buffered_stream.read_some.overload1 read_some]``(
- const MutableBufferSequence & buffers);
- `` [''''&raquo;''' [link boost_asio.reference.buffered_stream.read_some.overload1 more...]]``
+ std::size_t buffer_size(
+ const mutable_buffer & b);
 
 
-Read some data from the stream. Returns the number of bytes read or 0 if an error occurred.
 
+[endsect]
 
- template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
- std::size_t ``[link boost_asio.reference.buffered_stream.read_some.overload2 read_some]``(
- const MutableBufferSequence & buffers,
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.buffered_stream.read_some.overload2 more...]]``
 
 
-[section:overload1 buffered_stream::read_some (1 of 2 overloads)]
+[section:overload2 buffer_size (2 of 5 overloads)]
 
 
-Read some data from the stream. Returns the number of bytes read. Throws an exception on failure.
+Get the number of bytes in a modifiable buffer.
 
 
- template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
- std::size_t read_some(
- const MutableBufferSequence & buffers);
+ std::size_t buffer_size(
+ const mutable_buffers_1 & b);
 
 
 
@@ -47520,59 +47390,29 @@
 
 
 
-[section:overload2 buffered_stream::read_some (2 of 2 overloads)]
-
-
-Read some data from the stream. Returns the number of bytes read or 0 if an error occurred.
+[section:overload3 buffer_size (3 of 5 overloads)]
 
 
- template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
- std::size_t read_some(
- const MutableBufferSequence & buffers,
- boost::system::error_code & ec);
+Get the number of bytes in a non-modifiable buffer.
 
 
+ std::size_t buffer_size(
+ const const_buffer & b);
 
-[endsect]
 
 
 [endsect]
 
-[section:write_some buffered_stream::write_some]
-
-[indexterm2 write_some..buffered_stream]
-Write the given data to the stream. Returns the number of bytes written. Throws an exception on failure.
-
-
- template<
- typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
- std::size_t ``[link boost_asio.reference.buffered_stream.write_some.overload1 write_some]``(
- const ConstBufferSequence & buffers);
- `` [''''&raquo;''' [link boost_asio.reference.buffered_stream.write_some.overload1 more...]]``
-
-
-Write the given data to the stream. Returns the number of bytes written, or 0 if an error occurred.
-
 
- template<
- typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
- std::size_t ``[link boost_asio.reference.buffered_stream.write_some.overload2 write_some]``(
- const ConstBufferSequence & buffers,
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.buffered_stream.write_some.overload2 more...]]``
 
-
-[section:overload1 buffered_stream::write_some (1 of 2 overloads)]
+[section:overload4 buffer_size (4 of 5 overloads)]
 
 
-Write the given data to the stream. Returns the number of bytes written. Throws an exception on failure.
+Get the number of bytes in a non-modifiable buffer.
 
 
- template<
- typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
- std::size_t write_some(
- const ConstBufferSequence & buffers);
+ std::size_t buffer_size(
+ const const_buffers_1 & b);
 
 
 
@@ -47580,21 +47420,19 @@
 
 
 
-[section:overload2 buffered_stream::write_some (2 of 2 overloads)]
+[section:overload5 buffer_size (5 of 5 overloads)]
 
 
-Write the given data to the stream. Returns the number of bytes written, or 0 if an error occurred.
+Get the total number of bytes in a buffer sequence.
 
 
   template<
- typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
- std::size_t write_some(
- const ConstBufferSequence & buffers,
- boost::system::error_code & ec);
-
+ typename BufferSequence>
+ std::size_t buffer_size(
+ const BufferSequence & b);
 
 
-[endsect]
+The `BufferSequence` template parameter may meet either of the `ConstBufferSequence` or `MutableBufferSequence` type requirements.
 
 
 [endsect]
@@ -47602,15 +47440,15 @@
 
 [endsect]
 
-[section:buffered_write_stream buffered_write_stream]
+[section:buffered_read_stream buffered_read_stream]
 
 
-Adds buffering to the write-related operations of a stream.
+Adds buffering to the read-related operations of a stream.
 
 
   template<
       typename Stream>
- class buffered_write_stream :
+ class buffered_read_stream :
     noncopyable
 
 
@@ -47620,14 +47458,14 @@
 
   [
 
- [[link boost_asio.reference.buffered_write_stream.lowest_layer_type [*lowest_layer_type]]]
+ [[link boost_asio.reference.buffered_read_stream.lowest_layer_type [*lowest_layer_type]]]
     [The type of the lowest layer. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.buffered_write_stream.next_layer_type [*next_layer_type]]]
+ [[link boost_asio.reference.buffered_read_stream.next_layer_type [*next_layer_type]]]
     [The type of the next layer. ]
   
   ]
@@ -47639,78 +47477,78 @@
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.buffered_write_stream.async_flush [*async_flush]]]
- [Start an asynchronous flush. ]
+ [[link boost_asio.reference.buffered_read_stream.async_fill [*async_fill]]]
+ [Start an asynchronous fill. ]
   ]
   
   [
- [[link boost_asio.reference.buffered_write_stream.async_read_some [*async_read_some]]]
+ [[link boost_asio.reference.buffered_read_stream.async_read_some [*async_read_some]]]
     [Start an asynchronous read. The buffer into which the data will be read must be valid for the lifetime of the asynchronous operation. ]
   ]
   
   [
- [[link boost_asio.reference.buffered_write_stream.async_write_some [*async_write_some]]]
+ [[link boost_asio.reference.buffered_read_stream.async_write_some [*async_write_some]]]
     [Start an asynchronous write. The data being written must be valid for the lifetime of the asynchronous operation. ]
   ]
   
   [
- [[link boost_asio.reference.buffered_write_stream.buffered_write_stream [*buffered_write_stream]]]
+ [[link boost_asio.reference.buffered_read_stream.buffered_read_stream [*buffered_read_stream]]]
     [Construct, passing the specified argument to initialise the next layer. ]
   ]
   
   [
- [[link boost_asio.reference.buffered_write_stream.close [*close]]]
+ [[link boost_asio.reference.buffered_read_stream.close [*close]]]
     [Close the stream. ]
   ]
   
   [
- [[link boost_asio.reference.buffered_write_stream.flush [*flush]]]
- [Flush all data from the buffer to the next layer. Returns the number of bytes written to the next layer on the last write operation. Throws an exception on failure.
+ [[link boost_asio.reference.buffered_read_stream.fill [*fill]]]
+ [Fill the buffer with some data. Returns the number of bytes placed in the buffer as a result of the operation. Throws an exception on failure.
 
- Flush all data from the buffer to the next layer. Returns the number of bytes written to the next layer on the last write operation, or 0 if an error occurred. ]
+ Fill the buffer with some data. Returns the number of bytes placed in the buffer as a result of the operation, or 0 if an error occurred. ]
   ]
   
   [
- [[link boost_asio.reference.buffered_write_stream.get_io_service [*get_io_service]]]
+ [[link boost_asio.reference.buffered_read_stream.get_io_service [*get_io_service]]]
     [Get the io_service associated with the object. ]
   ]
   
   [
- [[link boost_asio.reference.buffered_write_stream.in_avail [*in_avail]]]
+ [[link boost_asio.reference.buffered_read_stream.in_avail [*in_avail]]]
     [Determine the amount of data that may be read without blocking. ]
   ]
   
   [
- [[link boost_asio.reference.buffered_write_stream.lowest_layer [*lowest_layer]]]
+ [[link boost_asio.reference.buffered_read_stream.lowest_layer [*lowest_layer]]]
     [Get a reference to the lowest layer.
 
      Get a const reference to the lowest layer. ]
   ]
   
   [
- [[link boost_asio.reference.buffered_write_stream.next_layer [*next_layer]]]
+ [[link boost_asio.reference.buffered_read_stream.next_layer [*next_layer]]]
     [Get a reference to the next layer. ]
   ]
   
   [
- [[link boost_asio.reference.buffered_write_stream.peek [*peek]]]
+ [[link boost_asio.reference.buffered_read_stream.peek [*peek]]]
     [Peek at the incoming data on the stream. Returns the number of bytes read. Throws an exception on failure.
 
      Peek at the incoming data on the stream. Returns the number of bytes read, or 0 if an error occurred. ]
   ]
   
   [
- [[link boost_asio.reference.buffered_write_stream.read_some [*read_some]]]
+ [[link boost_asio.reference.buffered_read_stream.read_some [*read_some]]]
     [Read some data from the stream. Returns the number of bytes read. Throws an exception on failure.
 
      Read some data from the stream. Returns the number of bytes read or 0 if an error occurred. ]
   ]
   
   [
- [[link boost_asio.reference.buffered_write_stream.write_some [*write_some]]]
+ [[link boost_asio.reference.buffered_read_stream.write_some [*write_some]]]
     [Write the given data to the stream. Returns the number of bytes written. Throws an exception on failure.
 
- Write the given data to the stream. Returns the number of bytes written, or 0 if an error occurred and the error handler did not throw. ]
+ Write the given data to the stream. Returns the number of bytes written, or 0 if an error occurred. ]
   ]
   
 ]
@@ -47720,13 +47558,13 @@
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.buffered_write_stream.default_buffer_size [*default_buffer_size]]]
+ [[link boost_asio.reference.buffered_read_stream.default_buffer_size [*default_buffer_size]]]
     [The default buffer size. ]
   ]
 
 ]
 
-The [link boost_asio.reference.buffered_write_stream `buffered_write_stream`] class template can be used to add buffering to the synchronous and asynchronous write operations of a stream.
+The [link boost_asio.reference.buffered_read_stream `buffered_read_stream`] class template can be used to add buffering to the synchronous and asynchronous read operations of a stream.
 
 
 [heading Thread Safety]
@@ -47740,21 +47578,21 @@
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/buffered_write_stream.hpp]
+[*Header: ][^boost/asio/buffered_read_stream.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
 
-[section:async_flush buffered_write_stream::async_flush]
+[section:async_fill buffered_read_stream::async_fill]
 
-[indexterm2 async_flush..buffered_write_stream]
-Start an asynchronous flush.
+[indexterm2 async_fill..buffered_read_stream]
+Start an asynchronous fill.
 
 
   template<
- typename ``[link boost_asio.reference.WriteHandler WriteHandler]``>
- void async_flush(
- WriteHandler handler);
+ typename ``[link boost_asio.reference.ReadHandler ReadHandler]``>
+ void async_fill(
+ ReadHandler handler);
 
 
 
@@ -47762,9 +47600,9 @@
 
 
 
-[section:async_read_some buffered_write_stream::async_read_some]
+[section:async_read_some buffered_read_stream::async_read_some]
 
-[indexterm2 async_read_some..buffered_write_stream]
+[indexterm2 async_read_some..buffered_read_stream]
 Start an asynchronous read. The buffer into which the data will be read must be valid for the lifetime of the asynchronous operation.
 
 
@@ -47781,9 +47619,9 @@
 
 
 
-[section:async_write_some buffered_write_stream::async_write_some]
+[section:async_write_some buffered_read_stream::async_write_some]
 
-[indexterm2 async_write_some..buffered_write_stream]
+[indexterm2 async_write_some..buffered_read_stream]
 Start an asynchronous write. The data being written must be valid for the lifetime of the asynchronous operation.
 
 
@@ -47799,27 +47637,27 @@
 [endsect]
 
 
-[section:buffered_write_stream buffered_write_stream::buffered_write_stream]
+[section:buffered_read_stream buffered_read_stream::buffered_read_stream]
 
-[indexterm2 buffered_write_stream..buffered_write_stream]
+[indexterm2 buffered_read_stream..buffered_read_stream]
 Construct, passing the specified argument to initialise the next layer.
 
 
   template<
       typename Arg>
- explicit ``[link boost_asio.reference.buffered_write_stream.buffered_write_stream.overload1 buffered_write_stream]``(
+ explicit ``[link boost_asio.reference.buffered_read_stream.buffered_read_stream.overload1 buffered_read_stream]``(
       Arg & a);
- `` [''''&raquo;''' [link boost_asio.reference.buffered_write_stream.buffered_write_stream.overload1 more...]]``
+ `` [''''&raquo;''' [link boost_asio.reference.buffered_read_stream.buffered_read_stream.overload1 more...]]``
 
   template<
       typename Arg>
- ``[link boost_asio.reference.buffered_write_stream.buffered_write_stream.overload2 buffered_write_stream]``(
+ ``[link boost_asio.reference.buffered_read_stream.buffered_read_stream.overload2 buffered_read_stream]``(
       Arg & a,
       std::size_t buffer_size);
- `` [''''&raquo;''' [link boost_asio.reference.buffered_write_stream.buffered_write_stream.overload2 more...]]``
+ `` [''''&raquo;''' [link boost_asio.reference.buffered_read_stream.buffered_read_stream.overload2 more...]]``
 
 
-[section:overload1 buffered_write_stream::buffered_write_stream (1 of 2 overloads)]
+[section:overload1 buffered_read_stream::buffered_read_stream (1 of 2 overloads)]
 
 
 Construct, passing the specified argument to initialise the next layer.
@@ -47827,7 +47665,7 @@
 
   template<
       typename Arg>
- buffered_write_stream(
+ buffered_read_stream(
       Arg & a);
 
 
@@ -47836,7 +47674,7 @@
 
 
 
-[section:overload2 buffered_write_stream::buffered_write_stream (2 of 2 overloads)]
+[section:overload2 buffered_read_stream::buffered_read_stream (2 of 2 overloads)]
 
 
 Construct, passing the specified argument to initialise the next layer.
@@ -47844,7 +47682,7 @@
 
   template<
       typename Arg>
- buffered_write_stream(
+ buffered_read_stream(
       Arg & a,
       std::size_t buffer_size);
 
@@ -47855,21 +47693,21 @@
 
 [endsect]
 
-[section:close buffered_write_stream::close]
+[section:close buffered_read_stream::close]
 
-[indexterm2 close..buffered_write_stream]
+[indexterm2 close..buffered_read_stream]
 Close the stream.
 
 
- void ``[link boost_asio.reference.buffered_write_stream.close.overload1 close]``();
- `` [''''&raquo;''' [link boost_asio.reference.buffered_write_stream.close.overload1 more...]]``
+ void ``[link boost_asio.reference.buffered_read_stream.close.overload1 close]``();
+ `` [''''&raquo;''' [link boost_asio.reference.buffered_read_stream.close.overload1 more...]]``
 
- boost::system::error_code ``[link boost_asio.reference.buffered_write_stream.close.overload2 close]``(
+ boost::system::error_code ``[link boost_asio.reference.buffered_read_stream.close.overload2 close]``(
       boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.buffered_write_stream.close.overload2 more...]]``
+ `` [''''&raquo;''' [link boost_asio.reference.buffered_read_stream.close.overload2 more...]]``
 
 
-[section:overload1 buffered_write_stream::close (1 of 2 overloads)]
+[section:overload1 buffered_read_stream::close (1 of 2 overloads)]
 
 
 Close the stream.
@@ -47883,7 +47721,7 @@
 
 
 
-[section:overload2 buffered_write_stream::close (2 of 2 overloads)]
+[section:overload2 buffered_read_stream::close (2 of 2 overloads)]
 
 
 Close the stream.
@@ -47900,9 +47738,9 @@
 [endsect]
 
 
-[section:default_buffer_size buffered_write_stream::default_buffer_size]
+[section:default_buffer_size buffered_read_stream::default_buffer_size]
 
-[indexterm2 default_buffer_size..buffered_write_stream]
+[indexterm2 default_buffer_size..buffered_read_stream]
 The default buffer size.
 
 
@@ -47913,31 +47751,31 @@
 [endsect]
 
 
-[section:flush buffered_write_stream::flush]
+[section:fill buffered_read_stream::fill]
 
-[indexterm2 flush..buffered_write_stream]
-Flush all data from the buffer to the next layer. Returns the number of bytes written to the next layer on the last write operation. Throws an exception on failure.
+[indexterm2 fill..buffered_read_stream]
+Fill the buffer with some data. Returns the number of bytes placed in the buffer as a result of the operation. Throws an exception on failure.
 
 
- std::size_t ``[link boost_asio.reference.buffered_write_stream.flush.overload1 flush]``();
- `` [''''&raquo;''' [link boost_asio.reference.buffered_write_stream.flush.overload1 more...]]``
+ std::size_t ``[link boost_asio.reference.buffered_read_stream.fill.overload1 fill]``();
+ `` [''''&raquo;''' [link boost_asio.reference.buffered_read_stream.fill.overload1 more...]]``
 
 
-Flush all data from the buffer to the next layer. Returns the number of bytes written to the next layer on the last write operation, or 0 if an error occurred.
+Fill the buffer with some data. Returns the number of bytes placed in the buffer as a result of the operation, or 0 if an error occurred.
 
 
- std::size_t ``[link boost_asio.reference.buffered_write_stream.flush.overload2 flush]``(
+ std::size_t ``[link boost_asio.reference.buffered_read_stream.fill.overload2 fill]``(
       boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.buffered_write_stream.flush.overload2 more...]]``
+ `` [''''&raquo;''' [link boost_asio.reference.buffered_read_stream.fill.overload2 more...]]``
 
 
-[section:overload1 buffered_write_stream::flush (1 of 2 overloads)]
+[section:overload1 buffered_read_stream::fill (1 of 2 overloads)]
 
 
-Flush all data from the buffer to the next layer. Returns the number of bytes written to the next layer on the last write operation. Throws an exception on failure.
+Fill the buffer with some data. Returns the number of bytes placed in the buffer as a result of the operation. Throws an exception on failure.
 
 
- std::size_t flush();
+ std::size_t fill();
 
 
 
@@ -47945,13 +47783,13 @@
 
 
 
-[section:overload2 buffered_write_stream::flush (2 of 2 overloads)]
+[section:overload2 buffered_read_stream::fill (2 of 2 overloads)]
 
 
-Flush all data from the buffer to the next layer. Returns the number of bytes written to the next layer on the last write operation, or 0 if an error occurred.
+Fill the buffer with some data. Returns the number of bytes placed in the buffer as a result of the operation, or 0 if an error occurred.
 
 
- std::size_t flush(
+ std::size_t fill(
       boost::system::error_code & ec);
 
 
@@ -47962,9 +47800,9 @@
 [endsect]
 
 
-[section:get_io_service buffered_write_stream::get_io_service]
+[section:get_io_service buffered_read_stream::get_io_service]
 
-[indexterm2 get_io_service..buffered_write_stream]
+[indexterm2 get_io_service..buffered_read_stream]
 Get the [link boost_asio.reference.io_service `io_service`] associated with the object.
 
 
@@ -47975,21 +47813,21 @@
 [endsect]
 
 
-[section:in_avail buffered_write_stream::in_avail]
+[section:in_avail buffered_read_stream::in_avail]
 
-[indexterm2 in_avail..buffered_write_stream]
+[indexterm2 in_avail..buffered_read_stream]
 Determine the amount of data that may be read without blocking.
 
 
- std::size_t ``[link boost_asio.reference.buffered_write_stream.in_avail.overload1 in_avail]``();
- `` [''''&raquo;''' [link boost_asio.reference.buffered_write_stream.in_avail.overload1 more...]]``
+ std::size_t ``[link boost_asio.reference.buffered_read_stream.in_avail.overload1 in_avail]``();
+ `` [''''&raquo;''' [link boost_asio.reference.buffered_read_stream.in_avail.overload1 more...]]``
 
- std::size_t ``[link boost_asio.reference.buffered_write_stream.in_avail.overload2 in_avail]``(
+ std::size_t ``[link boost_asio.reference.buffered_read_stream.in_avail.overload2 in_avail]``(
       boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.buffered_write_stream.in_avail.overload2 more...]]``
+ `` [''''&raquo;''' [link boost_asio.reference.buffered_read_stream.in_avail.overload2 more...]]``
 
 
-[section:overload1 buffered_write_stream::in_avail (1 of 2 overloads)]
+[section:overload1 buffered_read_stream::in_avail (1 of 2 overloads)]
 
 
 Determine the amount of data that may be read without blocking.
@@ -48003,7 +47841,7 @@
 
 
 
-[section:overload2 buffered_write_stream::in_avail (2 of 2 overloads)]
+[section:overload2 buffered_read_stream::in_avail (2 of 2 overloads)]
 
 
 Determine the amount of data that may be read without blocking.
@@ -48019,24 +47857,24 @@
 
 [endsect]
 
-[section:lowest_layer buffered_write_stream::lowest_layer]
+[section:lowest_layer buffered_read_stream::lowest_layer]
 
-[indexterm2 lowest_layer..buffered_write_stream]
+[indexterm2 lowest_layer..buffered_read_stream]
 Get a reference to the lowest layer.
 
 
- lowest_layer_type & ``[link boost_asio.reference.buffered_write_stream.lowest_layer.overload1 lowest_layer]``();
- `` [''''&raquo;''' [link boost_asio.reference.buffered_write_stream.lowest_layer.overload1 more...]]``
+ lowest_layer_type & ``[link boost_asio.reference.buffered_read_stream.lowest_layer.overload1 lowest_layer]``();
+ `` [''''&raquo;''' [link boost_asio.reference.buffered_read_stream.lowest_layer.overload1 more...]]``
 
 
 Get a const reference to the lowest layer.
 
 
- const lowest_layer_type & ``[link boost_asio.reference.buffered_write_stream.lowest_layer.overload2 lowest_layer]``() const;
- `` [''''&raquo;''' [link boost_asio.reference.buffered_write_stream.lowest_layer.overload2 more...]]``
+ const lowest_layer_type & ``[link boost_asio.reference.buffered_read_stream.lowest_layer.overload2 lowest_layer]``() const;
+ `` [''''&raquo;''' [link boost_asio.reference.buffered_read_stream.lowest_layer.overload2 more...]]``
 
 
-[section:overload1 buffered_write_stream::lowest_layer (1 of 2 overloads)]
+[section:overload1 buffered_read_stream::lowest_layer (1 of 2 overloads)]
 
 
 Get a reference to the lowest layer.
@@ -48050,7 +47888,7 @@
 
 
 
-[section:overload2 buffered_write_stream::lowest_layer (2 of 2 overloads)]
+[section:overload2 buffered_read_stream::lowest_layer (2 of 2 overloads)]
 
 
 Get a const reference to the lowest layer.
@@ -48066,9 +47904,9 @@
 [endsect]
 
 
-[section:lowest_layer_type buffered_write_stream::lowest_layer_type]
+[section:lowest_layer_type buffered_read_stream::lowest_layer_type]
 
-[indexterm2 lowest_layer_type..buffered_write_stream]
+[indexterm2 lowest_layer_type..buffered_read_stream]
 The type of the lowest layer.
 
 
@@ -48078,7 +47916,7 @@
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/buffered_write_stream.hpp]
+[*Header: ][^boost/asio/buffered_read_stream.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -48087,9 +47925,9 @@
 
 
 
-[section:next_layer buffered_write_stream::next_layer]
+[section:next_layer buffered_read_stream::next_layer]
 
-[indexterm2 next_layer..buffered_write_stream]
+[indexterm2 next_layer..buffered_read_stream]
 Get a reference to the next layer.
 
 
@@ -48101,9 +47939,9 @@
 
 
 
-[section:next_layer_type buffered_write_stream::next_layer_type]
+[section:next_layer_type buffered_read_stream::next_layer_type]
 
-[indexterm2 next_layer_type..buffered_write_stream]
+[indexterm2 next_layer_type..buffered_read_stream]
 The type of the next layer.
 
 
@@ -48113,7 +47951,7 @@
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/buffered_write_stream.hpp]
+[*Header: ][^boost/asio/buffered_read_stream.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -48121,17 +47959,17 @@
 [endsect]
 
 
-[section:peek buffered_write_stream::peek]
+[section:peek buffered_read_stream::peek]
 
-[indexterm2 peek..buffered_write_stream]
+[indexterm2 peek..buffered_read_stream]
 Peek at the incoming data on the stream. Returns the number of bytes read. Throws an exception on failure.
 
 
   template<
       typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
- std::size_t ``[link boost_asio.reference.buffered_write_stream.peek.overload1 peek]``(
+ std::size_t ``[link boost_asio.reference.buffered_read_stream.peek.overload1 peek]``(
       const MutableBufferSequence & buffers);
- `` [''''&raquo;''' [link boost_asio.reference.buffered_write_stream.peek.overload1 more...]]``
+ `` [''''&raquo;''' [link boost_asio.reference.buffered_read_stream.peek.overload1 more...]]``
 
 
 Peek at the incoming data on the stream. Returns the number of bytes read, or 0 if an error occurred.
@@ -48139,13 +47977,13 @@
 
   template<
       typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
- std::size_t ``[link boost_asio.reference.buffered_write_stream.peek.overload2 peek]``(
+ std::size_t ``[link boost_asio.reference.buffered_read_stream.peek.overload2 peek]``(
       const MutableBufferSequence & buffers,
       boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.buffered_write_stream.peek.overload2 more...]]``
+ `` [''''&raquo;''' [link boost_asio.reference.buffered_read_stream.peek.overload2 more...]]``
 
 
-[section:overload1 buffered_write_stream::peek (1 of 2 overloads)]
+[section:overload1 buffered_read_stream::peek (1 of 2 overloads)]
 
 
 Peek at the incoming data on the stream. Returns the number of bytes read. Throws an exception on failure.
@@ -48162,7 +48000,7 @@
 
 
 
-[section:overload2 buffered_write_stream::peek (2 of 2 overloads)]
+[section:overload2 buffered_read_stream::peek (2 of 2 overloads)]
 
 
 Peek at the incoming data on the stream. Returns the number of bytes read, or 0 if an error occurred.
@@ -48181,17 +48019,17 @@
 
 [endsect]
 
-[section:read_some buffered_write_stream::read_some]
+[section:read_some buffered_read_stream::read_some]
 
-[indexterm2 read_some..buffered_write_stream]
+[indexterm2 read_some..buffered_read_stream]
 Read some data from the stream. Returns the number of bytes read. Throws an exception on failure.
 
 
   template<
       typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
- std::size_t ``[link boost_asio.reference.buffered_write_stream.read_some.overload1 read_some]``(
+ std::size_t ``[link boost_asio.reference.buffered_read_stream.read_some.overload1 read_some]``(
       const MutableBufferSequence & buffers);
- `` [''''&raquo;''' [link boost_asio.reference.buffered_write_stream.read_some.overload1 more...]]``
+ `` [''''&raquo;''' [link boost_asio.reference.buffered_read_stream.read_some.overload1 more...]]``
 
 
 Read some data from the stream. Returns the number of bytes read or 0 if an error occurred.
@@ -48199,13 +48037,13 @@
 
   template<
       typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
- std::size_t ``[link boost_asio.reference.buffered_write_stream.read_some.overload2 read_some]``(
+ std::size_t ``[link boost_asio.reference.buffered_read_stream.read_some.overload2 read_some]``(
       const MutableBufferSequence & buffers,
       boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.buffered_write_stream.read_some.overload2 more...]]``
+ `` [''''&raquo;''' [link boost_asio.reference.buffered_read_stream.read_some.overload2 more...]]``
 
 
-[section:overload1 buffered_write_stream::read_some (1 of 2 overloads)]
+[section:overload1 buffered_read_stream::read_some (1 of 2 overloads)]
 
 
 Read some data from the stream. Returns the number of bytes read. Throws an exception on failure.
@@ -48222,7 +48060,7 @@
 
 
 
-[section:overload2 buffered_write_stream::read_some (2 of 2 overloads)]
+[section:overload2 buffered_read_stream::read_some (2 of 2 overloads)]
 
 
 Read some data from the stream. Returns the number of bytes read or 0 if an error occurred.
@@ -48241,31 +48079,31 @@
 
 [endsect]
 
-[section:write_some buffered_write_stream::write_some]
+[section:write_some buffered_read_stream::write_some]
 
-[indexterm2 write_some..buffered_write_stream]
+[indexterm2 write_some..buffered_read_stream]
 Write the given data to the stream. Returns the number of bytes written. Throws an exception on failure.
 
 
   template<
       typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
- std::size_t ``[link boost_asio.reference.buffered_write_stream.write_some.overload1 write_some]``(
+ std::size_t ``[link boost_asio.reference.buffered_read_stream.write_some.overload1 write_some]``(
       const ConstBufferSequence & buffers);
- `` [''''&raquo;''' [link boost_asio.reference.buffered_write_stream.write_some.overload1 more...]]``
+ `` [''''&raquo;''' [link boost_asio.reference.buffered_read_stream.write_some.overload1 more...]]``
 
 
-Write the given data to the stream. Returns the number of bytes written, or 0 if an error occurred and the error handler did not throw.
+Write the given data to the stream. Returns the number of bytes written, or 0 if an error occurred.
 
 
   template<
       typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
- std::size_t ``[link boost_asio.reference.buffered_write_stream.write_some.overload2 write_some]``(
+ std::size_t ``[link boost_asio.reference.buffered_read_stream.write_some.overload2 write_some]``(
       const ConstBufferSequence & buffers,
       boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.buffered_write_stream.write_some.overload2 more...]]``
+ `` [''''&raquo;''' [link boost_asio.reference.buffered_read_stream.write_some.overload2 more...]]``
 
 
-[section:overload1 buffered_write_stream::write_some (1 of 2 overloads)]
+[section:overload1 buffered_read_stream::write_some (1 of 2 overloads)]
 
 
 Write the given data to the stream. Returns the number of bytes written. Throws an exception on failure.
@@ -48282,10 +48120,10 @@
 
 
 
-[section:overload2 buffered_write_stream::write_some (2 of 2 overloads)]
+[section:overload2 buffered_read_stream::write_some (2 of 2 overloads)]
 
 
-Write the given data to the stream. Returns the number of bytes written, or 0 if an error occurred and the error handler did not throw.
+Write the given data to the stream. Returns the number of bytes written, or 0 if an error occurred.
 
 
   template<
@@ -48304,62 +48142,16 @@
 
 [endsect]
 
-
-[section:buffers_begin buffers_begin]
-
-[indexterm1 buffers_begin]
-Construct an iterator representing the beginning of the buffers' data.
-
-
- template<
- typename BufferSequence>
- buffers_iterator< BufferSequence > buffers_begin(
- const BufferSequence & buffers);
-
-
-[heading Requirements]
-
-[*Header: ][^boost/asio/buffers_iterator.hpp]
-
-[*Convenience header: ][^boost/asio.hpp]
-
-
-[endsect]
-
-
-
-[section:buffers_end buffers_end]
-
-[indexterm1 buffers_end]
-Construct an iterator representing the end of the buffers' data.
-
-
- template<
- typename BufferSequence>
- buffers_iterator< BufferSequence > buffers_end(
- const BufferSequence & buffers);
-
-
-[heading Requirements]
-
-[*Header: ][^boost/asio/buffers_iterator.hpp]
-
-[*Convenience header: ][^boost/asio.hpp]
-
-
-[endsect]
-
-
-[section:buffers_iterator buffers_iterator]
+[section:buffered_stream buffered_stream]
 
 
-A random access iterator over the bytes in a buffer sequence.
+Adds buffering to the read- and write-related operations of a stream.
 
 
   template<
- typename BufferSequence,
- typename ByteType = char>
- class buffers_iterator
+ typename Stream>
+ class buffered_stream :
+ noncopyable
 
 
 [heading Types]
@@ -48368,36 +48160,15 @@
 
   [
 
- [[link boost_asio.reference.buffers_iterator.difference_type [*difference_type]]]
- [The type used for the distance between two iterators. ]
-
- ]
-
- [
-
- [[link boost_asio.reference.buffers_iterator.iterator_category [*iterator_category]]]
- [The iterator category. ]
-
- ]
-
- [
-
- [[link boost_asio.reference.buffers_iterator.pointer [*pointer]]]
- [The type of the result of applying operator->() to the iterator. ]
-
- ]
-
- [
-
- [[link boost_asio.reference.buffers_iterator.reference [*reference]]]
- [The type of the result of applying operator*() to the iterator. ]
+ [[link boost_asio.reference.buffered_stream.lowest_layer_type [*lowest_layer_type]]]
+ [The type of the lowest layer. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.buffers_iterator.value_type [*value_type]]]
- [The type of the value pointed to by the iterator. ]
+ [[link boost_asio.reference.buffered_stream.next_layer_type [*next_layer_type]]]
+ [The type of the next layer. ]
   
   ]
 
@@ -48408,136 +48179,123 @@
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.buffers_iterator.begin [*begin]]]
- [Construct an iterator representing the beginning of the buffers' data. ]
+ [[link boost_asio.reference.buffered_stream.async_fill [*async_fill]]]
+ [Start an asynchronous fill. ]
   ]
   
   [
- [[link boost_asio.reference.buffers_iterator.buffers_iterator [*buffers_iterator]]]
- [Default constructor. Creates an iterator in an undefined state. ]
+ [[link boost_asio.reference.buffered_stream.async_flush [*async_flush]]]
+ [Start an asynchronous flush. ]
   ]
   
   [
- [[link boost_asio.reference.buffers_iterator.end [*end]]]
- [Construct an iterator representing the end of the buffers' data. ]
+ [[link boost_asio.reference.buffered_stream.async_read_some [*async_read_some]]]
+ [Start an asynchronous read. The buffer into which the data will be read must be valid for the lifetime of the asynchronous operation. ]
   ]
   
   [
- [[link boost_asio.reference.buffers_iterator.operator__star_ [*operator *]]]
- [Dereference an iterator. ]
+ [[link boost_asio.reference.buffered_stream.async_write_some [*async_write_some]]]
+ [Start an asynchronous write. The data being written must be valid for the lifetime of the asynchronous operation. ]
   ]
   
   [
- [[link boost_asio.reference.buffers_iterator.operator_plus__plus_ [*operator++]]]
- [Increment operator (prefix).
-
- Increment operator (postfix). ]
+ [[link boost_asio.reference.buffered_stream.buffered_stream [*buffered_stream]]]
+ [Construct, passing the specified argument to initialise the next layer. ]
   ]
   
   [
- [[link boost_asio.reference.buffers_iterator.operator_plus__eq_ [*operator+=]]]
- [Addition operator. ]
+ [[link boost_asio.reference.buffered_stream.close [*close]]]
+ [Close the stream. ]
   ]
   
   [
- [[link boost_asio.reference.buffers_iterator.operator_minus__minus_ [*operator--]]]
- [Decrement operator (prefix).
+ [[link boost_asio.reference.buffered_stream.fill [*fill]]]
+ [Fill the buffer with some data. Returns the number of bytes placed in the buffer as a result of the operation. Throws an exception on failure.
 
- Decrement operator (postfix). ]
- ]
-
- [
- [[link boost_asio.reference.buffers_iterator.operator_minus__eq_ [*operator-=]]]
- [Subtraction operator. ]
- ]
-
- [
- [[link boost_asio.reference.buffers_iterator.operator_arrow_ [*operator->]]]
- [Dereference an iterator. ]
+ Fill the buffer with some data. Returns the number of bytes placed in the buffer as a result of the operation, or 0 if an error occurred. ]
   ]
   
   [
- [[link boost_asio.reference.buffers_iterator.operator_lb__rb_ [*operator\[\]]]]
- [Access an individual element. ]
- ]
-
-]
-
-[heading Friends]
-[table
- [[Name][Description]]
+ [[link boost_asio.reference.buffered_stream.flush [*flush]]]
+ [Flush all data from the buffer to the next layer. Returns the number of bytes written to the next layer on the last write operation. Throws an exception on failure.
 
- [
- [[link boost_asio.reference.buffers_iterator.operator_not__eq_ [*operator!=]]]
- [Test two iterators for inequality. ]
+ Flush all data from the buffer to the next layer. Returns the number of bytes written to the next layer on the last write operation, or 0 if an error occurred. ]
   ]
   
   [
- [[link boost_asio.reference.buffers_iterator.operator_plus_ [*operator+]]]
- [Addition operator. ]
+ [[link boost_asio.reference.buffered_stream.get_io_service [*get_io_service]]]
+ [Get the io_service associated with the object. ]
   ]
   
   [
- [[link boost_asio.reference.buffers_iterator.operator_minus_ [*operator-]]]
- [Subtraction operator. ]
+ [[link boost_asio.reference.buffered_stream.in_avail [*in_avail]]]
+ [Determine the amount of data that may be read without blocking. ]
   ]
   
   [
- [[link boost_asio.reference.buffers_iterator.operator_lt_ [*operator<]]]
- [Compare two iterators. ]
+ [[link boost_asio.reference.buffered_stream.lowest_layer [*lowest_layer]]]
+ [Get a reference to the lowest layer.
+
+ Get a const reference to the lowest layer. ]
   ]
   
   [
- [[link boost_asio.reference.buffers_iterator.operator_lt__eq_ [*operator<=]]]
- [Compare two iterators. ]
+ [[link boost_asio.reference.buffered_stream.next_layer [*next_layer]]]
+ [Get a reference to the next layer. ]
   ]
   
   [
- [[link boost_asio.reference.buffers_iterator.operator_eq__eq_ [*operator==]]]
- [Test two iterators for equality. ]
+ [[link boost_asio.reference.buffered_stream.peek [*peek]]]
+ [Peek at the incoming data on the stream. Returns the number of bytes read. Throws an exception on failure.
+
+ Peek at the incoming data on the stream. Returns the number of bytes read, or 0 if an error occurred. ]
   ]
   
   [
- [[link boost_asio.reference.buffers_iterator.operator_gt_ [*operator>]]]
- [Compare two iterators. ]
+ [[link boost_asio.reference.buffered_stream.read_some [*read_some]]]
+ [Read some data from the stream. Returns the number of bytes read. Throws an exception on failure.
+
+ Read some data from the stream. Returns the number of bytes read or 0 if an error occurred. ]
   ]
   
   [
- [[link boost_asio.reference.buffers_iterator.operator_gt__eq_ [*operator>=]]]
- [Compare two iterators. ]
+ [[link boost_asio.reference.buffered_stream.write_some [*write_some]]]
+ [Write the given data to the stream. Returns the number of bytes written. Throws an exception on failure.
+
+ Write the given data to the stream. Returns the number of bytes written, or 0 if an error occurred. ]
   ]
   
 ]
 
-[heading Requirements]
-
-[*Header: ][^boost/asio/buffers_iterator.hpp]
-
-[*Convenience header: ][^boost/asio.hpp]
+The [link boost_asio.reference.buffered_stream `buffered_stream`] class template can be used to add buffering to the synchronous and asynchronous read and write operations of a stream.
 
 
-[section:begin buffers_iterator::begin]
+[heading Thread Safety]
+
+[*Distinct] [*objects:] Safe.
 
-[indexterm2 begin..buffers_iterator]
-Construct an iterator representing the beginning of the buffers' data.
+[*Shared] [*objects:] Unsafe.
 
 
- static buffers_iterator begin(
- const BufferSequence & buffers);
 
 
+[heading Requirements]
 
-[endsect]
+[*Header: ][^boost/asio/buffered_stream.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
 
-[section:buffers_iterator buffers_iterator::buffers_iterator]
+[section:async_fill buffered_stream::async_fill]
 
-[indexterm2 buffers_iterator..buffers_iterator]
-Default constructor. Creates an iterator in an undefined state.
+[indexterm2 async_fill..buffered_stream]
+Start an asynchronous fill.
 
 
- buffers_iterator();
+ template<
+ typename ``[link boost_asio.reference.ReadHandler ReadHandler]``>
+ void async_fill(
+ ReadHandler handler);
 
 
 
@@ -48545,35 +48303,35 @@
 
 
 
-[section:difference_type buffers_iterator::difference_type]
-
-[indexterm2 difference_type..buffers_iterator]
-The type used for the distance between two iterators.
-
-
- typedef std::ptrdiff_t difference_type;
-
+[section:async_flush buffered_stream::async_flush]
 
+[indexterm2 async_flush..buffered_stream]
+Start an asynchronous flush.
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/buffers_iterator.hpp]
+ template<
+ typename ``[link boost_asio.reference.WriteHandler WriteHandler]``>
+ void async_flush(
+ WriteHandler handler);
 
-[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
 
-[section:end buffers_iterator::end]
+[section:async_read_some buffered_stream::async_read_some]
 
-[indexterm2 end..buffers_iterator]
-Construct an iterator representing the end of the buffers' data.
+[indexterm2 async_read_some..buffered_stream]
+Start an asynchronous read. The buffer into which the data will be read must be valid for the lifetime of the asynchronous operation.
 
 
- static buffers_iterator end(
- const BufferSequence & buffers);
+ template<
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``,
+ typename ``[link boost_asio.reference.ReadHandler ReadHandler]``>
+ void async_read_some(
+ const MutableBufferSequence & buffers,
+ ReadHandler handler);
 
 
 
@@ -48581,117 +48339,119 @@
 
 
 
-[section:iterator_category buffers_iterator::iterator_category]
+[section:async_write_some buffered_stream::async_write_some]
 
-[indexterm2 iterator_category..buffers_iterator]
-The iterator category.
+[indexterm2 async_write_some..buffered_stream]
+Start an asynchronous write. The data being written must be valid for the lifetime of the asynchronous operation.
 
 
- typedef std::random_access_iterator_tag iterator_category;
+ template<
+ typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``,
+ typename ``[link boost_asio.reference.WriteHandler WriteHandler]``>
+ void async_write_some(
+ const ConstBufferSequence & buffers,
+ WriteHandler handler);
 
 
 
-[heading Requirements]
+[endsect]
 
-[*Header: ][^boost/asio/buffers_iterator.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
+[section:buffered_stream buffered_stream::buffered_stream]
 
+[indexterm2 buffered_stream..buffered_stream]
+Construct, passing the specified argument to initialise the next layer.
 
-[endsect]
 
+ template<
+ typename Arg>
+ explicit ``[link boost_asio.reference.buffered_stream.buffered_stream.overload1 buffered_stream]``(
+ Arg & a);
+ `` [''''&raquo;''' [link boost_asio.reference.buffered_stream.buffered_stream.overload1 more...]]``
 
+ template<
+ typename Arg>
+ explicit ``[link boost_asio.reference.buffered_stream.buffered_stream.overload2 buffered_stream]``(
+ Arg & a,
+ std::size_t read_buffer_size,
+ std::size_t write_buffer_size);
+ `` [''''&raquo;''' [link boost_asio.reference.buffered_stream.buffered_stream.overload2 more...]]``
 
-[section:operator__star_ buffers_iterator::operator *]
 
-[indexterm2 operator *..buffers_iterator]
-Dereference an iterator.
+[section:overload1 buffered_stream::buffered_stream (1 of 2 overloads)]
 
 
- reference operator *() const;
+Construct, passing the specified argument to initialise the next layer.
 
 
+ template<
+ typename Arg>
+ buffered_stream(
+ Arg & a);
 
-[endsect]
 
 
+[endsect]
 
-[section:operator_not__eq_ buffers_iterator::operator!=]
 
-[indexterm2 operator!=..buffers_iterator]
-Test two iterators for inequality.
 
+[section:overload2 buffered_stream::buffered_stream (2 of 2 overloads)]
 
- friend bool operator!=(
- const buffers_iterator & a,
- const buffers_iterator & b);
 
+Construct, passing the specified argument to initialise the next layer.
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/buffers_iterator.hpp]
+ template<
+ typename Arg>
+ buffered_stream(
+ Arg & a,
+ std::size_t read_buffer_size,
+ std::size_t write_buffer_size);
 
-[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
-[section:operator_plus_ buffers_iterator::operator+]
-
-[indexterm2 operator+..buffers_iterator]
-Addition operator.
-
+[endsect]
 
- friend buffers_iterator ``[link boost_asio.reference.buffers_iterator.operator_plus_.overload1 operator+]``(
- const buffers_iterator & iter,
- std::ptrdiff_t difference);
- `` [''''&raquo;''' [link boost_asio.reference.buffers_iterator.operator_plus_.overload1 more...]]``
+[section:close buffered_stream::close]
 
- friend buffers_iterator ``[link boost_asio.reference.buffers_iterator.operator_plus_.overload2 operator+]``(
- std::ptrdiff_t difference,
- const buffers_iterator & iter);
- `` [''''&raquo;''' [link boost_asio.reference.buffers_iterator.operator_plus_.overload2 more...]]``
+[indexterm2 close..buffered_stream]
+Close the stream.
 
 
-[section:overload1 buffers_iterator::operator+ (1 of 2 overloads)]
+ void ``[link boost_asio.reference.buffered_stream.close.overload1 close]``();
+ `` [''''&raquo;''' [link boost_asio.reference.buffered_stream.close.overload1 more...]]``
 
+ boost::system::error_code ``[link boost_asio.reference.buffered_stream.close.overload2 close]``(
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.buffered_stream.close.overload2 more...]]``
 
-Addition operator.
 
+[section:overload1 buffered_stream::close (1 of 2 overloads)]
 
- friend buffers_iterator operator+(
- const buffers_iterator & iter,
- std::ptrdiff_t difference);
 
+Close the stream.
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/buffers_iterator.hpp]
+ void close();
 
-[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
 
-[section:overload2 buffers_iterator::operator+ (2 of 2 overloads)]
-
-
-Addition operator.
-
+[section:overload2 buffered_stream::close (2 of 2 overloads)]
 
- friend buffers_iterator operator+(
- std::ptrdiff_t difference,
- const buffers_iterator & iter);
 
+Close the stream.
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/buffers_iterator.hpp]
+ boost::system::error_code close(
+ boost::system::error_code & ec);
 
-[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
@@ -48699,31 +48459,31 @@
 
 [endsect]
 
-[section:operator_plus__plus_ buffers_iterator::operator++]
+[section:fill buffered_stream::fill]
 
-[indexterm2 operator++..buffers_iterator]
-Increment operator (prefix).
+[indexterm2 fill..buffered_stream]
+Fill the buffer with some data. Returns the number of bytes placed in the buffer as a result of the operation. Throws an exception on failure.
 
 
- buffers_iterator & ``[link boost_asio.reference.buffers_iterator.operator_plus__plus_.overload1 operator++]``();
- `` [''''&raquo;''' [link boost_asio.reference.buffers_iterator.operator_plus__plus_.overload1 more...]]``
+ std::size_t ``[link boost_asio.reference.buffered_stream.fill.overload1 fill]``();
+ `` [''''&raquo;''' [link boost_asio.reference.buffered_stream.fill.overload1 more...]]``
 
 
-Increment operator (postfix).
+Fill the buffer with some data. Returns the number of bytes placed in the buffer as a result of the operation, or 0 if an error occurred.
 
 
- buffers_iterator ``[link boost_asio.reference.buffers_iterator.operator_plus__plus_.overload2 operator++]``(
- int );
- `` [''''&raquo;''' [link boost_asio.reference.buffers_iterator.operator_plus__plus_.overload2 more...]]``
+ std::size_t ``[link boost_asio.reference.buffered_stream.fill.overload2 fill]``(
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.buffered_stream.fill.overload2 more...]]``
 
 
-[section:overload1 buffers_iterator::operator++ (1 of 2 overloads)]
+[section:overload1 buffered_stream::fill (1 of 2 overloads)]
 
 
-Increment operator (prefix).
+Fill the buffer with some data. Returns the number of bytes placed in the buffer as a result of the operation. Throws an exception on failure.
 
 
- buffers_iterator & operator++();
+ std::size_t fill();
 
 
 
@@ -48731,14 +48491,14 @@
 
 
 
-[section:overload2 buffers_iterator::operator++ (2 of 2 overloads)]
+[section:overload2 buffered_stream::fill (2 of 2 overloads)]
 
 
-Increment operator (postfix).
+Fill the buffer with some data. Returns the number of bytes placed in the buffer as a result of the operation, or 0 if an error occurred.
 
 
- buffers_iterator operator++(
- int );
+ std::size_t fill(
+ boost::system::error_code & ec);
 
 
 
@@ -48747,108 +48507,89 @@
 
 [endsect]
 
+[section:flush buffered_stream::flush]
 
-[section:operator_plus__eq_ buffers_iterator::operator+=]
-
-[indexterm2 operator+=..buffers_iterator]
-Addition operator.
-
-
- buffers_iterator & operator+=(
- std::ptrdiff_t difference);
-
+[indexterm2 flush..buffered_stream]
+Flush all data from the buffer to the next layer. Returns the number of bytes written to the next layer on the last write operation. Throws an exception on failure.
 
 
-[endsect]
+ std::size_t ``[link boost_asio.reference.buffered_stream.flush.overload1 flush]``();
+ `` [''''&raquo;''' [link boost_asio.reference.buffered_stream.flush.overload1 more...]]``
 
 
-[section:operator_minus_ buffers_iterator::operator-]
+Flush all data from the buffer to the next layer. Returns the number of bytes written to the next layer on the last write operation, or 0 if an error occurred.
 
-[indexterm2 operator-..buffers_iterator]
-Subtraction operator.
 
+ std::size_t ``[link boost_asio.reference.buffered_stream.flush.overload2 flush]``(
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.buffered_stream.flush.overload2 more...]]``
 
- friend buffers_iterator ``[link boost_asio.reference.buffers_iterator.operator_minus_.overload1 operator-]``(
- const buffers_iterator & iter,
- std::ptrdiff_t difference);
- `` [''''&raquo;''' [link boost_asio.reference.buffers_iterator.operator_minus_.overload1 more...]]``
 
- friend std::ptrdiff_t ``[link boost_asio.reference.buffers_iterator.operator_minus_.overload2 operator-]``(
- const buffers_iterator & a,
- const buffers_iterator & b);
- `` [''''&raquo;''' [link boost_asio.reference.buffers_iterator.operator_minus_.overload2 more...]]``
+[section:overload1 buffered_stream::flush (1 of 2 overloads)]
 
 
-[section:overload1 buffers_iterator::operator- (1 of 2 overloads)]
+Flush all data from the buffer to the next layer. Returns the number of bytes written to the next layer on the last write operation. Throws an exception on failure.
 
 
-Subtraction operator.
+ std::size_t flush();
 
 
- friend buffers_iterator operator-(
- const buffers_iterator & iter,
- std::ptrdiff_t difference);
 
+[endsect]
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/buffers_iterator.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
+[section:overload2 buffered_stream::flush (2 of 2 overloads)]
 
 
-[endsect]
+Flush all data from the buffer to the next layer. Returns the number of bytes written to the next layer on the last write operation, or 0 if an error occurred.
 
 
+ std::size_t flush(
+ boost::system::error_code & ec);
 
-[section:overload2 buffers_iterator::operator- (2 of 2 overloads)]
 
 
-Subtraction operator.
+[endsect]
 
 
- friend std::ptrdiff_t operator-(
- const buffers_iterator & a,
- const buffers_iterator & b);
+[endsect]
 
 
-[heading Requirements]
+[section:get_io_service buffered_stream::get_io_service]
 
-[*Header: ][^boost/asio/buffers_iterator.hpp]
+[indexterm2 get_io_service..buffered_stream]
+Get the [link boost_asio.reference.io_service `io_service`] associated with the object.
 
-[*Convenience header: ][^boost/asio.hpp]
 
+ boost::asio::io_service & get_io_service();
 
-[endsect]
 
 
 [endsect]
 
-[section:operator_minus__minus_ buffers_iterator::operator--]
-
-[indexterm2 operator--..buffers_iterator]
-Decrement operator (prefix).
-
 
- buffers_iterator & ``[link boost_asio.reference.buffers_iterator.operator_minus__minus_.overload1 operator--]``();
- `` [''''&raquo;''' [link boost_asio.reference.buffers_iterator.operator_minus__minus_.overload1 more...]]``
+[section:in_avail buffered_stream::in_avail]
 
+[indexterm2 in_avail..buffered_stream]
+Determine the amount of data that may be read without blocking.
 
-Decrement operator (postfix).
 
+ std::size_t ``[link boost_asio.reference.buffered_stream.in_avail.overload1 in_avail]``();
+ `` [''''&raquo;''' [link boost_asio.reference.buffered_stream.in_avail.overload1 more...]]``
 
- buffers_iterator ``[link boost_asio.reference.buffers_iterator.operator_minus__minus_.overload2 operator--]``(
- int );
- `` [''''&raquo;''' [link boost_asio.reference.buffers_iterator.operator_minus__minus_.overload2 more...]]``
+ std::size_t ``[link boost_asio.reference.buffered_stream.in_avail.overload2 in_avail]``(
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.buffered_stream.in_avail.overload2 more...]]``
 
 
-[section:overload1 buffers_iterator::operator-- (1 of 2 overloads)]
+[section:overload1 buffered_stream::in_avail (1 of 2 overloads)]
 
 
-Decrement operator (prefix).
+Determine the amount of data that may be read without blocking.
 
 
- buffers_iterator & operator--();
+ std::size_t in_avail();
 
 
 
@@ -48856,14 +48597,14 @@
 
 
 
-[section:overload2 buffers_iterator::operator-- (2 of 2 overloads)]
+[section:overload2 buffered_stream::in_avail (2 of 2 overloads)]
 
 
-Decrement operator (postfix).
+Determine the amount of data that may be read without blocking.
 
 
- buffers_iterator operator--(
- int );
+ std::size_t in_avail(
+ boost::system::error_code & ec);
 
 
 
@@ -48872,29 +48613,30 @@
 
 [endsect]
 
+[section:lowest_layer buffered_stream::lowest_layer]
 
-[section:operator_minus__eq_ buffers_iterator::operator-=]
+[indexterm2 lowest_layer..buffered_stream]
+Get a reference to the lowest layer.
 
-[indexterm2 operator-=..buffers_iterator]
-Subtraction operator.
 
+ lowest_layer_type & ``[link boost_asio.reference.buffered_stream.lowest_layer.overload1 lowest_layer]``();
+ `` [''''&raquo;''' [link boost_asio.reference.buffered_stream.lowest_layer.overload1 more...]]``
 
- buffers_iterator & operator-=(
- std::ptrdiff_t difference);
 
+Get a const reference to the lowest layer.
 
 
-[endsect]
+ const lowest_layer_type & ``[link boost_asio.reference.buffered_stream.lowest_layer.overload2 lowest_layer]``() const;
+ `` [''''&raquo;''' [link boost_asio.reference.buffered_stream.lowest_layer.overload2 more...]]``
 
 
+[section:overload1 buffered_stream::lowest_layer (1 of 2 overloads)]
 
-[section:operator_arrow_ buffers_iterator::operator->]
 
-[indexterm2 operator->..buffers_iterator]
-Dereference an iterator.
+Get a reference to the lowest layer.
 
 
- pointer operator->() const;
+ lowest_layer_type & lowest_layer();
 
 
 
@@ -48902,42 +48644,35 @@
 
 
 
-[section:operator_lt_ buffers_iterator::operator<]
+[section:overload2 buffered_stream::lowest_layer (2 of 2 overloads)]
 
-[indexterm2 operator<..buffers_iterator]
-Compare two iterators.
 
+Get a const reference to the lowest layer.
 
- friend bool operator<(
- const buffers_iterator & a,
- const buffers_iterator & b);
 
+ const lowest_layer_type & lowest_layer() const;
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/buffers_iterator.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
+[endsect]
 
 
 [endsect]
 
 
+[section:lowest_layer_type buffered_stream::lowest_layer_type]
 
-[section:operator_lt__eq_ buffers_iterator::operator<=]
+[indexterm2 lowest_layer_type..buffered_stream]
+The type of the lowest layer.
 
-[indexterm2 operator<=..buffers_iterator]
-Compare two iterators.
 
+ typedef next_layer_type::lowest_layer_type lowest_layer_type;
 
- friend bool operator<=(
- const buffers_iterator & a,
- const buffers_iterator & b);
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/buffers_iterator.hpp]
+[*Header: ][^boost/asio/buffered_stream.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -48946,42 +48681,33 @@
 
 
 
-[section:operator_eq__eq_ buffers_iterator::operator==]
-
-[indexterm2 operator==..buffers_iterator]
-Test two iterators for equality.
-
-
- friend bool operator==(
- const buffers_iterator & a,
- const buffers_iterator & b);
+[section:next_layer buffered_stream::next_layer]
 
+[indexterm2 next_layer..buffered_stream]
+Get a reference to the next layer.
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/buffers_iterator.hpp]
+ next_layer_type & next_layer();
 
-[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
 
-[section:operator_gt_ buffers_iterator::operator>]
+[section:next_layer_type buffered_stream::next_layer_type]
 
-[indexterm2 operator>..buffers_iterator]
-Compare two iterators.
+[indexterm2 next_layer_type..buffered_stream]
+The type of the next layer.
 
 
- friend bool operator>(
- const buffers_iterator & a,
- const buffers_iterator & b);
+ typedef boost::remove_reference< Stream >::type next_layer_type;
+
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/buffers_iterator.hpp]
+[*Header: ][^boost/asio/buffered_stream.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -48989,343 +48715,361 @@
 [endsect]
 
 
+[section:peek buffered_stream::peek]
 
-[section:operator_gt__eq_ buffers_iterator::operator>=]
+[indexterm2 peek..buffered_stream]
+Peek at the incoming data on the stream. Returns the number of bytes read. Throws an exception on failure.
 
-[indexterm2 operator>=..buffers_iterator]
-Compare two iterators.
 
+ template<
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
+ std::size_t ``[link boost_asio.reference.buffered_stream.peek.overload1 peek]``(
+ const MutableBufferSequence & buffers);
+ `` [''''&raquo;''' [link boost_asio.reference.buffered_stream.peek.overload1 more...]]``
 
- friend bool operator>=(
- const buffers_iterator & a,
- const buffers_iterator & b);
 
+Peek at the incoming data on the stream. Returns the number of bytes read, or 0 if an error occurred.
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/buffers_iterator.hpp]
+ template<
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
+ std::size_t ``[link boost_asio.reference.buffered_stream.peek.overload2 peek]``(
+ const MutableBufferSequence & buffers,
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.buffered_stream.peek.overload2 more...]]``
 
-[*Convenience header: ][^boost/asio.hpp]
 
+[section:overload1 buffered_stream::peek (1 of 2 overloads)]
 
-[endsect]
 
+Peek at the incoming data on the stream. Returns the number of bytes read. Throws an exception on failure.
 
 
-[section:operator_lb__rb_ buffers_iterator::operator\[\]]
+ template<
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
+ std::size_t peek(
+ const MutableBufferSequence & buffers);
 
-[indexterm2 operator\[\]..buffers_iterator]
-Access an individual element.
 
 
- reference operator[](
- std::ptrdiff_t difference) const;
+[endsect]
 
 
 
-[endsect]
+[section:overload2 buffered_stream::peek (2 of 2 overloads)]
 
 
+Peek at the incoming data on the stream. Returns the number of bytes read, or 0 if an error occurred.
 
-[section:pointer buffers_iterator::pointer]
 
-[indexterm2 pointer..buffers_iterator]
-The type of the result of applying `operator->()` to the iterator.
+ template<
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
+ std::size_t peek(
+ const MutableBufferSequence & buffers,
+ boost::system::error_code & ec);
 
 
- typedef const_or_non_const_ByteType * pointer;
 
+[endsect]
 
 
-If the buffer sequence stores buffer objects that are convertible to [link boost_asio.reference.mutable_buffer `mutable_buffer`], this is a pointer to a non-const ByteType. Otherwise, a pointer to a const ByteType.
+[endsect]
 
-[heading Requirements]
-
-[*Header: ][^boost/asio/buffers_iterator.hpp]
-
-[*Convenience header: ][^boost/asio.hpp]
+[section:read_some buffered_stream::read_some]
 
+[indexterm2 read_some..buffered_stream]
+Read some data from the stream. Returns the number of bytes read. Throws an exception on failure.
 
-[endsect]
 
+ template<
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
+ std::size_t ``[link boost_asio.reference.buffered_stream.read_some.overload1 read_some]``(
+ const MutableBufferSequence & buffers);
+ `` [''''&raquo;''' [link boost_asio.reference.buffered_stream.read_some.overload1 more...]]``
 
 
-[section:reference buffers_iterator::reference]
+Read some data from the stream. Returns the number of bytes read or 0 if an error occurred.
 
-[indexterm2 reference..buffers_iterator]
-The type of the result of applying `operator*()` to the iterator.
 
+ template<
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
+ std::size_t ``[link boost_asio.reference.buffered_stream.read_some.overload2 read_some]``(
+ const MutableBufferSequence & buffers,
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.buffered_stream.read_some.overload2 more...]]``
 
- typedef const_or_non_const_ByteType & reference;
 
+[section:overload1 buffered_stream::read_some (1 of 2 overloads)]
 
 
-If the buffer sequence stores buffer objects that are convertible to [link boost_asio.reference.mutable_buffer `mutable_buffer`], this is a reference to a non-const ByteType. Otherwise, a reference to a const ByteType.
+Read some data from the stream. Returns the number of bytes read. Throws an exception on failure.
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/buffers_iterator.hpp]
+ template<
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
+ std::size_t read_some(
+ const MutableBufferSequence & buffers);
 
-[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
 
-[section:value_type buffers_iterator::value_type]
-
-[indexterm2 value_type..buffers_iterator]
-The type of the value pointed to by the iterator.
+[section:overload2 buffered_stream::read_some (2 of 2 overloads)]
 
 
- typedef ByteType value_type;
+Read some data from the stream. Returns the number of bytes read or 0 if an error occurred.
 
 
+ template<
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
+ std::size_t read_some(
+ const MutableBufferSequence & buffers,
+ boost::system::error_code & ec);
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/buffers_iterator.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
+[endsect]
 
 
 [endsect]
 
+[section:write_some buffered_stream::write_some]
 
+[indexterm2 write_some..buffered_stream]
+Write the given data to the stream. Returns the number of bytes written. Throws an exception on failure.
 
-[endsect]
 
-[section:connect connect]
+ template<
+ typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
+ std::size_t ``[link boost_asio.reference.buffered_stream.write_some.overload1 write_some]``(
+ const ConstBufferSequence & buffers);
+ `` [''''&raquo;''' [link boost_asio.reference.buffered_stream.write_some.overload1 more...]]``
 
-[indexterm1 connect]
-Establishes a socket connection by trying each endpoint in a sequence.
 
-
- template<
- typename ``[link boost_asio.reference.Protocol Protocol]``,
- typename ``[link boost_asio.reference.SocketService SocketService]``,
- typename Iterator>
- Iterator ``[link boost_asio.reference.connect.overload1 connect]``(
- basic_socket< Protocol, SocketService > & s,
- Iterator begin);
- `` [''''&raquo;''' [link boost_asio.reference.connect.overload1 more...]]``
+Write the given data to the stream. Returns the number of bytes written, or 0 if an error occurred.
+
 
   template<
- typename ``[link boost_asio.reference.Protocol Protocol]``,
- typename ``[link boost_asio.reference.SocketService SocketService]``,
- typename Iterator>
- Iterator ``[link boost_asio.reference.connect.overload2 connect]``(
- basic_socket< Protocol, SocketService > & s,
- Iterator begin,
+ typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
+ std::size_t ``[link boost_asio.reference.buffered_stream.write_some.overload2 write_some]``(
+ const ConstBufferSequence & buffers,
       boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.connect.overload2 more...]]``
+ `` [''''&raquo;''' [link boost_asio.reference.buffered_stream.write_some.overload2 more...]]``
 
- template<
- typename ``[link boost_asio.reference.Protocol Protocol]``,
- typename ``[link boost_asio.reference.SocketService SocketService]``,
- typename Iterator>
- Iterator ``[link boost_asio.reference.connect.overload3 connect]``(
- basic_socket< Protocol, SocketService > & s,
- Iterator begin,
- Iterator end);
- `` [''''&raquo;''' [link boost_asio.reference.connect.overload3 more...]]``
 
- template<
- typename ``[link boost_asio.reference.Protocol Protocol]``,
- typename ``[link boost_asio.reference.SocketService SocketService]``,
- typename Iterator>
- Iterator ``[link boost_asio.reference.connect.overload4 connect]``(
- basic_socket< Protocol, SocketService > & s,
- Iterator begin,
- Iterator end,
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.connect.overload4 more...]]``
+[section:overload1 buffered_stream::write_some (1 of 2 overloads)]
 
- template<
- typename ``[link boost_asio.reference.Protocol Protocol]``,
- typename ``[link boost_asio.reference.SocketService SocketService]``,
- typename Iterator,
- typename ConnectCondition>
- Iterator ``[link boost_asio.reference.connect.overload5 connect]``(
- basic_socket< Protocol, SocketService > & s,
- Iterator begin,
- ConnectCondition connect_condition);
- `` [''''&raquo;''' [link boost_asio.reference.connect.overload5 more...]]``
 
- template<
- typename ``[link boost_asio.reference.Protocol Protocol]``,
- typename ``[link boost_asio.reference.SocketService SocketService]``,
- typename Iterator,
- typename ConnectCondition>
- Iterator ``[link boost_asio.reference.connect.overload6 connect]``(
- basic_socket< Protocol, SocketService > & s,
- Iterator begin,
- ConnectCondition connect_condition,
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.connect.overload6 more...]]``
+Write the given data to the stream. Returns the number of bytes written. Throws an exception on failure.
 
- template<
- typename ``[link boost_asio.reference.Protocol Protocol]``,
- typename ``[link boost_asio.reference.SocketService SocketService]``,
- typename Iterator,
- typename ConnectCondition>
- Iterator ``[link boost_asio.reference.connect.overload7 connect]``(
- basic_socket< Protocol, SocketService > & s,
- Iterator begin,
- Iterator end,
- ConnectCondition connect_condition);
- `` [''''&raquo;''' [link boost_asio.reference.connect.overload7 more...]]``
 
   template<
- typename ``[link boost_asio.reference.Protocol Protocol]``,
- typename ``[link boost_asio.reference.SocketService SocketService]``,
- typename Iterator,
- typename ConnectCondition>
- Iterator ``[link boost_asio.reference.connect.overload8 connect]``(
- basic_socket< Protocol, SocketService > & s,
- Iterator begin,
- Iterator end,
- ConnectCondition connect_condition,
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.connect.overload8 more...]]``
+ typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
+ std::size_t write_some(
+ const ConstBufferSequence & buffers);
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/connect.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
+[endsect]
 
 
-[section:overload1 connect (1 of 8 overloads)]
 
+[section:overload2 buffered_stream::write_some (2 of 2 overloads)]
 
-Establishes a socket connection by trying each endpoint in a sequence.
 
+Write the given data to the stream. Returns the number of bytes written, or 0 if an error occurred.
 
- template<
- typename ``[link boost_asio.reference.Protocol Protocol]``,
- typename ``[link boost_asio.reference.SocketService SocketService]``,
- typename Iterator>
- Iterator connect(
- basic_socket< Protocol, SocketService > & s,
- Iterator begin);
 
+ template<
+ typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
+ std::size_t write_some(
+ const ConstBufferSequence & buffers,
+ boost::system::error_code & ec);
 
-This function attempts to connect a socket to one of a sequence of endpoints. It does this by repeated calls to the socket's `connect` member function, once for each endpoint in the sequence, until a connection is successfully established.
 
 
-[heading Parameters]
-
+[endsect]
 
-[variablelist
-
-[[s][The socket to be connected. If the socket is already open, it will be closed.]]
 
-[[begin][An iterator pointing to the start of a sequence of endpoints.]]
+[endsect]
 
-]
 
+[endsect]
 
-[heading Return Value]
-
-On success, an iterator denoting the successfully connected endpoint. Otherwise, the end iterator.
+[section:buffered_write_stream buffered_write_stream]
 
 
-[heading Exceptions]
-
+Adds buffering to the write-related operations of a stream.
 
-[variablelist
-
-[[boost::system::system_error][Thrown on failure. If the sequence is empty, the associated `error_code` is `boost::asio::error::not_found`. Otherwise, contains the error from the last connection attempt.]]
 
-]
+ template<
+ typename Stream>
+ class buffered_write_stream :
+ noncopyable
 
 
-[heading Remarks]
-
-This overload assumes that a default constructed object of type `Iterator` represents the end of the sequence. This is a valid assumption for iterator types such as `boost::asio::ip::tcp::resolver::iterator`.
+[heading Types]
+[table
+ [[Name][Description]]
 
+ [
 
-[heading Example]
+ [[link boost_asio.reference.buffered_write_stream.lowest_layer_type [*lowest_layer_type]]]
+ [The type of the lowest layer. ]
   
+ ]
 
+ [
 
- tcp::resolver r(io_service);
- tcp::resolver::query q("host", "service");
- tcp::socket s(io_service);
- boost::asio::connect(s, r.resolve(q));
+ [[link boost_asio.reference.buffered_write_stream.next_layer_type [*next_layer_type]]]
+ [The type of the next layer. ]
+
+ ]
+
+]
 
+[heading Member Functions]
+[table
+ [[Name][Description]]
 
+ [
+ [[link boost_asio.reference.buffered_write_stream.async_flush [*async_flush]]]
+ [Start an asynchronous flush. ]
+ ]
+
+ [
+ [[link boost_asio.reference.buffered_write_stream.async_read_some [*async_read_some]]]
+ [Start an asynchronous read. The buffer into which the data will be read must be valid for the lifetime of the asynchronous operation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.buffered_write_stream.async_write_some [*async_write_some]]]
+ [Start an asynchronous write. The data being written must be valid for the lifetime of the asynchronous operation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.buffered_write_stream.buffered_write_stream [*buffered_write_stream]]]
+ [Construct, passing the specified argument to initialise the next layer. ]
+ ]
+
+ [
+ [[link boost_asio.reference.buffered_write_stream.close [*close]]]
+ [Close the stream. ]
+ ]
+
+ [
+ [[link boost_asio.reference.buffered_write_stream.flush [*flush]]]
+ [Flush all data from the buffer to the next layer. Returns the number of bytes written to the next layer on the last write operation. Throws an exception on failure.
 
+ Flush all data from the buffer to the next layer. Returns the number of bytes written to the next layer on the last write operation, or 0 if an error occurred. ]
+ ]
+
+ [
+ [[link boost_asio.reference.buffered_write_stream.get_io_service [*get_io_service]]]
+ [Get the io_service associated with the object. ]
+ ]
+
+ [
+ [[link boost_asio.reference.buffered_write_stream.in_avail [*in_avail]]]
+ [Determine the amount of data that may be read without blocking. ]
+ ]
+
+ [
+ [[link boost_asio.reference.buffered_write_stream.lowest_layer [*lowest_layer]]]
+ [Get a reference to the lowest layer.
 
+ Get a const reference to the lowest layer. ]
+ ]
+
+ [
+ [[link boost_asio.reference.buffered_write_stream.next_layer [*next_layer]]]
+ [Get a reference to the next layer. ]
+ ]
+
+ [
+ [[link boost_asio.reference.buffered_write_stream.peek [*peek]]]
+ [Peek at the incoming data on the stream. Returns the number of bytes read. Throws an exception on failure.
 
+ Peek at the incoming data on the stream. Returns the number of bytes read, or 0 if an error occurred. ]
+ ]
+
+ [
+ [[link boost_asio.reference.buffered_write_stream.read_some [*read_some]]]
+ [Read some data from the stream. Returns the number of bytes read. Throws an exception on failure.
 
+ Read some data from the stream. Returns the number of bytes read or 0 if an error occurred. ]
+ ]
+
+ [
+ [[link boost_asio.reference.buffered_write_stream.write_some [*write_some]]]
+ [Write the given data to the stream. Returns the number of bytes written. Throws an exception on failure.
 
-[endsect]
+ Write the given data to the stream. Returns the number of bytes written, or 0 if an error occurred and the error handler did not throw. ]
+ ]
+
+]
 
+[heading Data Members]
+[table
+ [[Name][Description]]
 
+ [
+ [[link boost_asio.reference.buffered_write_stream.default_buffer_size [*default_buffer_size]]]
+ [The default buffer size. ]
+ ]
 
-[section:overload2 connect (2 of 8 overloads)]
+]
 
+The [link boost_asio.reference.buffered_write_stream `buffered_write_stream`] class template can be used to add buffering to the synchronous and asynchronous write operations of a stream.
 
-Establishes a socket connection by trying each endpoint in a sequence.
 
+[heading Thread Safety]
+
+[*Distinct] [*objects:] Safe.
 
- template<
- typename ``[link boost_asio.reference.Protocol Protocol]``,
- typename ``[link boost_asio.reference.SocketService SocketService]``,
- typename Iterator>
- Iterator connect(
- basic_socket< Protocol, SocketService > & s,
- Iterator begin,
- boost::system::error_code & ec);
+[*Shared] [*objects:] Unsafe.
 
 
-This function attempts to connect a socket to one of a sequence of endpoints. It does this by repeated calls to the socket's `connect` member function, once for each endpoint in the sequence, until a connection is successfully established.
 
 
-[heading Parameters]
-
+[heading Requirements]
 
-[variablelist
-
-[[s][The socket to be connected. If the socket is already open, it will be closed.]]
+[*Header: ][^boost/asio/buffered_write_stream.hpp]
 
-[[begin][An iterator pointing to the start of a sequence of endpoints.]]
+[*Convenience header: ][^boost/asio.hpp]
 
-[[ec][Set to indicate what error occurred, if any. If the sequence is empty, set to `boost::asio::error::not_found`. Otherwise, contains the error from the last connection attempt.]]
 
-]
+[section:async_flush buffered_write_stream::async_flush]
 
+[indexterm2 async_flush..buffered_write_stream]
+Start an asynchronous flush.
 
-[heading Return Value]
-
-On success, an iterator denoting the successfully connected endpoint. Otherwise, the end iterator.
 
+ template<
+ typename ``[link boost_asio.reference.WriteHandler WriteHandler]``>
+ void async_flush(
+ WriteHandler handler);
 
-[heading Remarks]
-
-This overload assumes that a default constructed object of type `Iterator` represents the end of the sequence. This is a valid assumption for iterator types such as `boost::asio::ip::tcp::resolver::iterator`.
 
 
-[heading Example]
-
+[endsect]
 
 
- tcp::resolver r(io_service);
- tcp::resolver::query q("host", "service");
- tcp::socket s(io_service);
- boost::system::error_code ec;
- boost::asio::connect(s, r.resolve(q), ec);
- if (ec)
- {
- // An error occurred.
- }
 
+[section:async_read_some buffered_write_stream::async_read_some]
 
+[indexterm2 async_read_some..buffered_write_stream]
+Start an asynchronous read. The buffer into which the data will be read must be valid for the lifetime of the asynchronous operation.
 
 
+ template<
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``,
+ typename ``[link boost_asio.reference.ReadHandler ReadHandler]``>
+ void async_read_some(
+ const MutableBufferSequence & buffers,
+ ReadHandler handler);
 
 
 
@@ -49333,622 +49077,440 @@
 
 
 
-[section:overload3 connect (3 of 8 overloads)]
-
+[section:async_write_some buffered_write_stream::async_write_some]
 
-Establishes a socket connection by trying each endpoint in a sequence.
+[indexterm2 async_write_some..buffered_write_stream]
+Start an asynchronous write. The data being written must be valid for the lifetime of the asynchronous operation.
 
 
   template<
- typename ``[link boost_asio.reference.Protocol Protocol]``,
- typename ``[link boost_asio.reference.SocketService SocketService]``,
- typename Iterator>
- Iterator connect(
- basic_socket< Protocol, SocketService > & s,
- Iterator begin,
- Iterator end);
+ typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``,
+ typename ``[link boost_asio.reference.WriteHandler WriteHandler]``>
+ void async_write_some(
+ const ConstBufferSequence & buffers,
+ WriteHandler handler);
 
 
-This function attempts to connect a socket to one of a sequence of endpoints. It does this by repeated calls to the socket's `connect` member function, once for each endpoint in the sequence, until a connection is successfully established.
 
+[endsect]
 
-[heading Parameters]
-
 
-[variablelist
-
-[[s][The socket to be connected. If the socket is already open, it will be closed.]]
+[section:buffered_write_stream buffered_write_stream::buffered_write_stream]
 
-[[begin][An iterator pointing to the start of a sequence of endpoints.]]
+[indexterm2 buffered_write_stream..buffered_write_stream]
+Construct, passing the specified argument to initialise the next layer.
 
-[[end][An iterator pointing to the end of a sequence of endpoints.]]
 
-]
+ template<
+ typename Arg>
+ explicit ``[link boost_asio.reference.buffered_write_stream.buffered_write_stream.overload1 buffered_write_stream]``(
+ Arg & a);
+ `` [''''&raquo;''' [link boost_asio.reference.buffered_write_stream.buffered_write_stream.overload1 more...]]``
 
+ template<
+ typename Arg>
+ ``[link boost_asio.reference.buffered_write_stream.buffered_write_stream.overload2 buffered_write_stream]``(
+ Arg & a,
+ std::size_t buffer_size);
+ `` [''''&raquo;''' [link boost_asio.reference.buffered_write_stream.buffered_write_stream.overload2 more...]]``
 
-[heading Return Value]
-
-On success, an iterator denoting the successfully connected endpoint. Otherwise, the end iterator.
 
+[section:overload1 buffered_write_stream::buffered_write_stream (1 of 2 overloads)]
 
-[heading Exceptions]
-
 
-[variablelist
-
-[[boost::system::system_error][Thrown on failure. If the sequence is empty, the associated `error_code` is `boost::asio::error::not_found`. Otherwise, contains the error from the last connection attempt.]]
+Construct, passing the specified argument to initialise the next layer.
 
-]
 
+ template<
+ typename Arg>
+ buffered_write_stream(
+ Arg & a);
 
-[heading Example]
-
 
 
- tcp::resolver r(io_service);
- tcp::resolver::query q("host", "service");
- tcp::resolver::iterator i = r.resolve(q), end;
- tcp::socket s(io_service);
- boost::asio::connect(s, i, end);
+[endsect]
 
 
 
+[section:overload2 buffered_write_stream::buffered_write_stream (2 of 2 overloads)]
 
 
+Construct, passing the specified argument to initialise the next layer.
 
 
-[endsect]
+ template<
+ typename Arg>
+ buffered_write_stream(
+ Arg & a,
+ std::size_t buffer_size);
 
 
 
-[section:overload4 connect (4 of 8 overloads)]
+[endsect]
 
 
-Establishes a socket connection by trying each endpoint in a sequence.
+[endsect]
 
+[section:close buffered_write_stream::close]
 
- template<
- typename ``[link boost_asio.reference.Protocol Protocol]``,
- typename ``[link boost_asio.reference.SocketService SocketService]``,
- typename Iterator>
- Iterator connect(
- basic_socket< Protocol, SocketService > & s,
- Iterator begin,
- Iterator end,
- boost::system::error_code & ec);
+[indexterm2 close..buffered_write_stream]
+Close the stream.
 
 
-This function attempts to connect a socket to one of a sequence of endpoints. It does this by repeated calls to the socket's `connect` member function, once for each endpoint in the sequence, until a connection is successfully established.
+ void ``[link boost_asio.reference.buffered_write_stream.close.overload1 close]``();
+ `` [''''&raquo;''' [link boost_asio.reference.buffered_write_stream.close.overload1 more...]]``
 
+ boost::system::error_code ``[link boost_asio.reference.buffered_write_stream.close.overload2 close]``(
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.buffered_write_stream.close.overload2 more...]]``
 
-[heading Parameters]
-
 
-[variablelist
-
-[[s][The socket to be connected. If the socket is already open, it will be closed.]]
+[section:overload1 buffered_write_stream::close (1 of 2 overloads)]
 
-[[begin][An iterator pointing to the start of a sequence of endpoints.]]
 
-[[end][An iterator pointing to the end of a sequence of endpoints.]]
+Close the stream.
 
-[[ec][Set to indicate what error occurred, if any. If the sequence is empty, set to `boost::asio::error::not_found`. Otherwise, contains the error from the last connection attempt.]]
 
-]
+ void close();
 
 
-[heading Return Value]
-
-On success, an iterator denoting the successfully connected endpoint. Otherwise, the end iterator.
 
+[endsect]
 
-[heading Example]
-
 
 
- tcp::resolver r(io_service);
- tcp::resolver::query q("host", "service");
- tcp::resolver::iterator i = r.resolve(q), end;
- tcp::socket s(io_service);
- boost::system::error_code ec;
- boost::asio::connect(s, i, end, ec);
- if (ec)
- {
- // An error occurred.
- }
+[section:overload2 buffered_write_stream::close (2 of 2 overloads)]
 
 
+Close the stream.
 
 
+ boost::system::error_code close(
+ boost::system::error_code & ec);
 
 
 
 [endsect]
 
 
+[endsect]
 
-[section:overload5 connect (5 of 8 overloads)]
 
+[section:default_buffer_size buffered_write_stream::default_buffer_size]
 
-Establishes a socket connection by trying each endpoint in a sequence.
+[indexterm2 default_buffer_size..buffered_write_stream]
+The default buffer size.
 
 
- template<
- typename ``[link boost_asio.reference.Protocol Protocol]``,
- typename ``[link boost_asio.reference.SocketService SocketService]``,
- typename Iterator,
- typename ConnectCondition>
- Iterator connect(
- basic_socket< Protocol, SocketService > & s,
- Iterator begin,
- ConnectCondition connect_condition);
+ static const std::size_t default_buffer_size = implementation_defined;
 
 
-This function attempts to connect a socket to one of a sequence of endpoints. It does this by repeated calls to the socket's `connect` member function, once for each endpoint in the sequence, until a connection is successfully established.
 
+[endsect]
 
-[heading Parameters]
-
 
-[variablelist
-
-[[s][The socket to be connected. If the socket is already open, it will be closed.]]
+[section:flush buffered_write_stream::flush]
 
-[[begin][An iterator pointing to the start of a sequence of endpoints.]]
+[indexterm2 flush..buffered_write_stream]
+Flush all data from the buffer to the next layer. Returns the number of bytes written to the next layer on the last write operation. Throws an exception on failure.
 
-[[connect_condition][A function object that is called prior to each connection attempt. The signature of the function object must be:
-``
- Iterator connect_condition(
- const boost::system::error_code& ec,
- Iterator next);
-``
-The `ec` parameter contains the result from the most recent connect operation. Before the first connection attempt, `ec` is always set to indicate success. The `next` parameter is an iterator pointing to the next endpoint to be tried. The function object should return the next iterator, but is permitted to return a different iterator so that endpoints may be skipped. The implementation guarantees that the function object will never be called with the end iterator.]]
 
-]
+ std::size_t ``[link boost_asio.reference.buffered_write_stream.flush.overload1 flush]``();
+ `` [''''&raquo;''' [link boost_asio.reference.buffered_write_stream.flush.overload1 more...]]``
 
 
-[heading Return Value]
-
-On success, an iterator denoting the successfully connected endpoint. Otherwise, the end iterator.
+Flush all data from the buffer to the next layer. Returns the number of bytes written to the next layer on the last write operation, or 0 if an error occurred.
 
 
-[heading Exceptions]
-
+ std::size_t ``[link boost_asio.reference.buffered_write_stream.flush.overload2 flush]``(
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.buffered_write_stream.flush.overload2 more...]]``
 
-[variablelist
-
-[[boost::system::system_error][Thrown on failure. If the sequence is empty, the associated `error_code` is `boost::asio::error::not_found`. Otherwise, contains the error from the last connection attempt.]]
 
-]
+[section:overload1 buffered_write_stream::flush (1 of 2 overloads)]
 
 
-[heading Remarks]
-
-This overload assumes that a default constructed object of type `Iterator` represents the end of the sequence. This is a valid assumption for iterator types such as `boost::asio::ip::tcp::resolver::iterator`.
+Flush all data from the buffer to the next layer. Returns the number of bytes written to the next layer on the last write operation. Throws an exception on failure.
 
 
-[heading Example]
-
-The following connect condition function object can be used to output information about the individual connection attempts:
+ std::size_t flush();
 
- struct my_connect_condition
- {
- template <typename Iterator>
- Iterator operator()(
- const boost::system::error_code& ec,
- Iterator next)
- {
- if (ec) std::cout << "Error: " << ec.message() << std::endl;
- std::cout << "Trying: " << next->endpoint() << std::endl;
- return next;
- }
- };
 
 
-It would be used with the `boost::asio::connect` function as follows:
+[endsect]
 
- tcp::resolver r(io_service);
- tcp::resolver::query q("host", "service");
- tcp::socket s(io_service);
- tcp::resolver::iterator i = boost::asio::connect(
- s, r.resolve(q), my_connect_condition());
- std::cout << "Connected to: " << i->endpoint() << std::endl;
 
 
+[section:overload2 buffered_write_stream::flush (2 of 2 overloads)]
 
 
+Flush all data from the buffer to the next layer. Returns the number of bytes written to the next layer on the last write operation, or 0 if an error occurred.
 
 
+ std::size_t flush(
+ boost::system::error_code & ec);
 
-[endsect]
 
 
+[endsect]
 
-[section:overload6 connect (6 of 8 overloads)]
 
+[endsect]
 
-Establishes a socket connection by trying each endpoint in a sequence.
 
+[section:get_io_service buffered_write_stream::get_io_service]
 
- template<
- typename ``[link boost_asio.reference.Protocol Protocol]``,
- typename ``[link boost_asio.reference.SocketService SocketService]``,
- typename Iterator,
- typename ConnectCondition>
- Iterator connect(
- basic_socket< Protocol, SocketService > & s,
- Iterator begin,
- ConnectCondition connect_condition,
- boost::system::error_code & ec);
+[indexterm2 get_io_service..buffered_write_stream]
+Get the [link boost_asio.reference.io_service `io_service`] associated with the object.
 
 
-This function attempts to connect a socket to one of a sequence of endpoints. It does this by repeated calls to the socket's `connect` member function, once for each endpoint in the sequence, until a connection is successfully established.
+ boost::asio::io_service & get_io_service();
 
 
-[heading Parameters]
-
 
-[variablelist
-
-[[s][The socket to be connected. If the socket is already open, it will be closed.]]
+[endsect]
 
-[[begin][An iterator pointing to the start of a sequence of endpoints.]]
 
-[[connect_condition][A function object that is called prior to each connection attempt. The signature of the function object must be:
-``
- Iterator connect_condition(
- const boost::system::error_code& ec,
- Iterator next);
-``
-The `ec` parameter contains the result from the most recent connect operation. Before the first connection attempt, `ec` is always set to indicate success. The `next` parameter is an iterator pointing to the next endpoint to be tried. The function object should return the next iterator, but is permitted to return a different iterator so that endpoints may be skipped. The implementation guarantees that the function object will never be called with the end iterator.]]
+[section:in_avail buffered_write_stream::in_avail]
 
-[[ec][Set to indicate what error occurred, if any. If the sequence is empty, set to `boost::asio::error::not_found`. Otherwise, contains the error from the last connection attempt.]]
+[indexterm2 in_avail..buffered_write_stream]
+Determine the amount of data that may be read without blocking.
 
-]
 
+ std::size_t ``[link boost_asio.reference.buffered_write_stream.in_avail.overload1 in_avail]``();
+ `` [''''&raquo;''' [link boost_asio.reference.buffered_write_stream.in_avail.overload1 more...]]``
 
-[heading Return Value]
-
-On success, an iterator denoting the successfully connected endpoint. Otherwise, the end iterator.
+ std::size_t ``[link boost_asio.reference.buffered_write_stream.in_avail.overload2 in_avail]``(
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.buffered_write_stream.in_avail.overload2 more...]]``
 
 
-[heading Remarks]
-
-This overload assumes that a default constructed object of type `Iterator` represents the end of the sequence. This is a valid assumption for iterator types such as `boost::asio::ip::tcp::resolver::iterator`.
+[section:overload1 buffered_write_stream::in_avail (1 of 2 overloads)]
 
 
-[heading Example]
-
-The following connect condition function object can be used to output information about the individual connection attempts:
+Determine the amount of data that may be read without blocking.
 
- struct my_connect_condition
- {
- template <typename Iterator>
- Iterator operator()(
- const boost::system::error_code& ec,
- Iterator next)
- {
- if (ec) std::cout << "Error: " << ec.message() << std::endl;
- std::cout << "Trying: " << next->endpoint() << std::endl;
- return next;
- }
- };
 
+ std::size_t in_avail();
 
-It would be used with the `boost::asio::connect` function as follows:
 
- tcp::resolver r(io_service);
- tcp::resolver::query q("host", "service");
- tcp::socket s(io_service);
- boost::system::error_code ec;
- tcp::resolver::iterator i = boost::asio::connect(
- s, r.resolve(q), my_connect_condition(), ec);
- if (ec)
- {
- // An error occurred.
- }
- else
- {
- std::cout << "Connected to: " << i->endpoint() << std::endl;
- }
 
+[endsect]
 
 
 
+[section:overload2 buffered_write_stream::in_avail (2 of 2 overloads)]
 
 
+Determine the amount of data that may be read without blocking.
 
-[endsect]
 
+ std::size_t in_avail(
+ boost::system::error_code & ec);
 
 
-[section:overload7 connect (7 of 8 overloads)]
 
+[endsect]
 
-Establishes a socket connection by trying each endpoint in a sequence.
 
+[endsect]
 
- template<
- typename ``[link boost_asio.reference.Protocol Protocol]``,
- typename ``[link boost_asio.reference.SocketService SocketService]``,
- typename Iterator,
- typename ConnectCondition>
- Iterator connect(
- basic_socket< Protocol, SocketService > & s,
- Iterator begin,
- Iterator end,
- ConnectCondition connect_condition);
+[section:lowest_layer buffered_write_stream::lowest_layer]
 
+[indexterm2 lowest_layer..buffered_write_stream]
+Get a reference to the lowest layer.
 
-This function attempts to connect a socket to one of a sequence of endpoints. It does this by repeated calls to the socket's `connect` member function, once for each endpoint in the sequence, until a connection is successfully established.
 
+ lowest_layer_type & ``[link boost_asio.reference.buffered_write_stream.lowest_layer.overload1 lowest_layer]``();
+ `` [''''&raquo;''' [link boost_asio.reference.buffered_write_stream.lowest_layer.overload1 more...]]``
 
-[heading Parameters]
-
 
-[variablelist
-
-[[s][The socket to be connected. If the socket is already open, it will be closed.]]
+Get a const reference to the lowest layer.
 
-[[begin][An iterator pointing to the start of a sequence of endpoints.]]
 
-[[end][An iterator pointing to the end of a sequence of endpoints.]]
+ const lowest_layer_type & ``[link boost_asio.reference.buffered_write_stream.lowest_layer.overload2 lowest_layer]``() const;
+ `` [''''&raquo;''' [link boost_asio.reference.buffered_write_stream.lowest_layer.overload2 more...]]``
 
-[[connect_condition][A function object that is called prior to each connection attempt. The signature of the function object must be:
-``
- Iterator connect_condition(
- const boost::system::error_code& ec,
- Iterator next);
-``
-The `ec` parameter contains the result from the most recent connect operation. Before the first connection attempt, `ec` is always set to indicate success. The `next` parameter is an iterator pointing to the next endpoint to be tried. The function object should return the next iterator, but is permitted to return a different iterator so that endpoints may be skipped. The implementation guarantees that the function object will never be called with the end iterator.]]
 
-]
+[section:overload1 buffered_write_stream::lowest_layer (1 of 2 overloads)]
 
 
-[heading Return Value]
-
-On success, an iterator denoting the successfully connected endpoint. Otherwise, the end iterator.
+Get a reference to the lowest layer.
 
 
-[heading Exceptions]
-
+ lowest_layer_type & lowest_layer();
 
-[variablelist
-
-[[boost::system::system_error][Thrown on failure. If the sequence is empty, the associated `error_code` is `boost::asio::error::not_found`. Otherwise, contains the error from the last connection attempt.]]
 
-]
 
+[endsect]
 
-[heading Example]
-
-The following connect condition function object can be used to output information about the individual connection attempts:
 
- struct my_connect_condition
- {
- template <typename Iterator>
- Iterator operator()(
- const boost::system::error_code& ec,
- Iterator next)
- {
- if (ec) std::cout << "Error: " << ec.message() << std::endl;
- std::cout << "Trying: " << next->endpoint() << std::endl;
- return next;
- }
- };
 
+[section:overload2 buffered_write_stream::lowest_layer (2 of 2 overloads)]
 
-It would be used with the `boost::asio::connect` function as follows:
 
- tcp::resolver r(io_service);
- tcp::resolver::query q("host", "service");
- tcp::resolver::iterator i = r.resolve(q), end;
- tcp::socket s(io_service);
- i = boost::asio::connect(s, i, end, my_connect_condition());
- std::cout << "Connected to: " << i->endpoint() << std::endl;
+Get a const reference to the lowest layer.
 
 
+ const lowest_layer_type & lowest_layer() const;
 
 
 
+[endsect]
 
 
 [endsect]
 
 
+[section:lowest_layer_type buffered_write_stream::lowest_layer_type]
 
-[section:overload8 connect (8 of 8 overloads)]
+[indexterm2 lowest_layer_type..buffered_write_stream]
+The type of the lowest layer.
 
 
-Establishes a socket connection by trying each endpoint in a sequence.
+ typedef next_layer_type::lowest_layer_type lowest_layer_type;
 
 
- template<
- typename ``[link boost_asio.reference.Protocol Protocol]``,
- typename ``[link boost_asio.reference.SocketService SocketService]``,
- typename Iterator,
- typename ConnectCondition>
- Iterator connect(
- basic_socket< Protocol, SocketService > & s,
- Iterator begin,
- Iterator end,
- ConnectCondition connect_condition,
- boost::system::error_code & ec);
 
+[heading Requirements]
 
-This function attempts to connect a socket to one of a sequence of endpoints. It does this by repeated calls to the socket's `connect` member function, once for each endpoint in the sequence, until a connection is successfully established.
+[*Header: ][^boost/asio/buffered_write_stream.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
-[heading Parameters]
-
 
-[variablelist
-
-[[s][The socket to be connected. If the socket is already open, it will be closed.]]
+[endsect]
 
-[[begin][An iterator pointing to the start of a sequence of endpoints.]]
 
-[[end][An iterator pointing to the end of a sequence of endpoints.]]
 
-[[connect_condition][A function object that is called prior to each connection attempt. The signature of the function object must be:
-``
- Iterator connect_condition(
- const boost::system::error_code& ec,
- Iterator next);
-``
-The `ec` parameter contains the result from the most recent connect operation. Before the first connection attempt, `ec` is always set to indicate success. The `next` parameter is an iterator pointing to the next endpoint to be tried. The function object should return the next iterator, but is permitted to return a different iterator so that endpoints may be skipped. The implementation guarantees that the function object will never be called with the end iterator.]]
+[section:next_layer buffered_write_stream::next_layer]
 
-[[ec][Set to indicate what error occurred, if any. If the sequence is empty, set to `boost::asio::error::not_found`. Otherwise, contains the error from the last connection attempt.]]
+[indexterm2 next_layer..buffered_write_stream]
+Get a reference to the next layer.
 
-]
 
+ next_layer_type & next_layer();
 
-[heading Return Value]
-
-On success, an iterator denoting the successfully connected endpoint. Otherwise, the end iterator.
 
 
-[heading Example]
-
-The following connect condition function object can be used to output information about the individual connection attempts:
+[endsect]
 
- struct my_connect_condition
- {
- template <typename Iterator>
- Iterator operator()(
- const boost::system::error_code& ec,
- Iterator next)
- {
- if (ec) std::cout << "Error: " << ec.message() << std::endl;
- std::cout << "Trying: " << next->endpoint() << std::endl;
- return next;
- }
- };
 
 
-It would be used with the `boost::asio::connect` function as follows:
+[section:next_layer_type buffered_write_stream::next_layer_type]
 
- tcp::resolver r(io_service);
- tcp::resolver::query q("host", "service");
- tcp::resolver::iterator i = r.resolve(q), end;
- tcp::socket s(io_service);
- boost::system::error_code ec;
- i = boost::asio::connect(s, i, end, my_connect_condition(), ec);
- if (ec)
- {
- // An error occurred.
- }
- else
- {
- std::cout << "Connected to: " << i->endpoint() << std::endl;
- }
+[indexterm2 next_layer_type..buffered_write_stream]
+The type of the next layer.
 
 
+ typedef boost::remove_reference< Stream >::type next_layer_type;
 
 
 
+[heading Requirements]
 
+[*Header: ][^boost/asio/buffered_write_stream.hpp]
 
-[endsect]
+[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
-[section:const_buffer const_buffer]
-
 
-Holds a buffer that cannot be modified.
+[section:peek buffered_write_stream::peek]
 
+[indexterm2 peek..buffered_write_stream]
+Peek at the incoming data on the stream. Returns the number of bytes read. Throws an exception on failure.
 
- class const_buffer
 
+ template<
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
+ std::size_t ``[link boost_asio.reference.buffered_write_stream.peek.overload1 peek]``(
+ const MutableBufferSequence & buffers);
+ `` [''''&raquo;''' [link boost_asio.reference.buffered_write_stream.peek.overload1 more...]]``
 
-[heading Member Functions]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.const_buffer.const_buffer [*const_buffer]]]
- [Construct an empty buffer.
+Peek at the incoming data on the stream. Returns the number of bytes read, or 0 if an error occurred.
 
- Construct a buffer to represent a given memory range.
 
- Construct a non-modifiable buffer from a modifiable one. ]
- ]
-
-]
+ template<
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
+ std::size_t ``[link boost_asio.reference.buffered_write_stream.peek.overload2 peek]``(
+ const MutableBufferSequence & buffers,
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.buffered_write_stream.peek.overload2 more...]]``
 
-[heading Related Functions]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.const_buffer.operator_plus_ [*operator+]]]
- [Create a new non-modifiable buffer that is offset from the start of another. ]
- ]
-
-]
+[section:overload1 buffered_write_stream::peek (1 of 2 overloads)]
 
-The [link boost_asio.reference.const_buffer `const_buffer`] class provides a safe representation of a buffer that cannot be modified. It does not own the underlying data, and so is cheap to copy or assign.
 
+Peek at the incoming data on the stream. Returns the number of bytes read. Throws an exception on failure.
 
-[heading Accessing Buffer Contents]
-
 
+ template<
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
+ std::size_t peek(
+ const MutableBufferSequence & buffers);
 
-The contents of a buffer may be accessed using the [link boost_asio.reference.buffer_size `buffer_size`] and [link boost_asio.reference.buffer_cast `buffer_cast`] functions:
 
 
+[endsect]
 
- boost::asio::const_buffer b1 = ...;
- std::size_t s1 = boost::asio::buffer_size(b1);
- const unsigned char* p1 = boost::asio::buffer_cast<const unsigned char*>(b1);
 
 
+[section:overload2 buffered_write_stream::peek (2 of 2 overloads)]
 
 
-The `boost::asio::buffer_cast` function permits violations of type safety, so uses of it in application code should be carefully considered.
+Peek at the incoming data on the stream. Returns the number of bytes read, or 0 if an error occurred.
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/buffer.hpp]
+ template<
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
+ std::size_t peek(
+ const MutableBufferSequence & buffers,
+ boost::system::error_code & ec);
 
-[*Convenience header: ][^boost/asio.hpp]
 
-[section:const_buffer const_buffer::const_buffer]
 
-[indexterm2 const_buffer..const_buffer]
-Construct an empty buffer.
+[endsect]
 
 
- ``[link boost_asio.reference.const_buffer.const_buffer.overload1 const_buffer]``();
- `` [''''&raquo;''' [link boost_asio.reference.const_buffer.const_buffer.overload1 more...]]``
+[endsect]
 
+[section:read_some buffered_write_stream::read_some]
 
-Construct a buffer to represent a given memory range.
+[indexterm2 read_some..buffered_write_stream]
+Read some data from the stream. Returns the number of bytes read. Throws an exception on failure.
 
 
- ``[link boost_asio.reference.const_buffer.const_buffer.overload2 const_buffer]``(
- const void * data,
- std::size_t size);
- `` [''''&raquo;''' [link boost_asio.reference.const_buffer.const_buffer.overload2 more...]]``
+ template<
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
+ std::size_t ``[link boost_asio.reference.buffered_write_stream.read_some.overload1 read_some]``(
+ const MutableBufferSequence & buffers);
+ `` [''''&raquo;''' [link boost_asio.reference.buffered_write_stream.read_some.overload1 more...]]``
 
 
-Construct a non-modifiable buffer from a modifiable one.
+Read some data from the stream. Returns the number of bytes read or 0 if an error occurred.
 
 
- ``[link boost_asio.reference.const_buffer.const_buffer.overload3 const_buffer]``(
- const mutable_buffer & b);
- `` [''''&raquo;''' [link boost_asio.reference.const_buffer.const_buffer.overload3 more...]]``
+ template<
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
+ std::size_t ``[link boost_asio.reference.buffered_write_stream.read_some.overload2 read_some]``(
+ const MutableBufferSequence & buffers,
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.buffered_write_stream.read_some.overload2 more...]]``
 
 
-[section:overload1 const_buffer::const_buffer (1 of 3 overloads)]
+[section:overload1 buffered_write_stream::read_some (1 of 2 overloads)]
 
 
-Construct an empty buffer.
+Read some data from the stream. Returns the number of bytes read. Throws an exception on failure.
 
 
- const_buffer();
+ template<
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
+ std::size_t read_some(
+ const MutableBufferSequence & buffers);
 
 
 
@@ -49956,116 +49518,182 @@
 
 
 
-[section:overload2 const_buffer::const_buffer (2 of 3 overloads)]
+[section:overload2 buffered_write_stream::read_some (2 of 2 overloads)]
 
 
-Construct a buffer to represent a given memory range.
+Read some data from the stream. Returns the number of bytes read or 0 if an error occurred.
 
 
- const_buffer(
- const void * data,
- std::size_t size);
+ template<
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
+ std::size_t read_some(
+ const MutableBufferSequence & buffers,
+ boost::system::error_code & ec);
 
 
 
 [endsect]
 
 
+[endsect]
 
-[section:overload3 const_buffer::const_buffer (3 of 3 overloads)]
+[section:write_some buffered_write_stream::write_some]
 
+[indexterm2 write_some..buffered_write_stream]
+Write the given data to the stream. Returns the number of bytes written. Throws an exception on failure.
 
-Construct a non-modifiable buffer from a modifiable one.
 
+ template<
+ typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
+ std::size_t ``[link boost_asio.reference.buffered_write_stream.write_some.overload1 write_some]``(
+ const ConstBufferSequence & buffers);
+ `` [''''&raquo;''' [link boost_asio.reference.buffered_write_stream.write_some.overload1 more...]]``
 
- const_buffer(
- const mutable_buffer & b);
 
+Write the given data to the stream. Returns the number of bytes written, or 0 if an error occurred and the error handler did not throw.
 
 
-[endsect]
+ template<
+ typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
+ std::size_t ``[link boost_asio.reference.buffered_write_stream.write_some.overload2 write_some]``(
+ const ConstBufferSequence & buffers,
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.buffered_write_stream.write_some.overload2 more...]]``
 
 
-[endsect]
+[section:overload1 buffered_write_stream::write_some (1 of 2 overloads)]
 
-[section:operator_plus_ const_buffer::operator+]
 
-[indexterm2 operator+..const_buffer]
-Create a new non-modifiable buffer that is offset from the start of another.
+Write the given data to the stream. Returns the number of bytes written. Throws an exception on failure.
 
 
- const_buffer ``[link boost_asio.reference.const_buffer.operator_plus_.overload1 operator+]``(
- const const_buffer & b,
- std::size_t start);
- `` [''''&raquo;''' [link boost_asio.reference.const_buffer.operator_plus_.overload1 more...]]``
+ template<
+ typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
+ std::size_t write_some(
+ const ConstBufferSequence & buffers);
 
- const_buffer ``[link boost_asio.reference.const_buffer.operator_plus_.overload2 operator+]``(
- std::size_t start,
- const const_buffer & b);
- `` [''''&raquo;''' [link boost_asio.reference.const_buffer.operator_plus_.overload2 more...]]``
 
 
-[section:overload1 const_buffer::operator+ (1 of 2 overloads)]
+[endsect]
 
 
-Create a new non-modifiable buffer that is offset from the start of another.
 
+[section:overload2 buffered_write_stream::write_some (2 of 2 overloads)]
 
- const_buffer operator+(
- const const_buffer & b,
- std::size_t start);
 
+Write the given data to the stream. Returns the number of bytes written, or 0 if an error occurred and the error handler did not throw.
 
 
-[endsect]
+ template<
+ typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
+ std::size_t write_some(
+ const ConstBufferSequence & buffers,
+ boost::system::error_code & ec);
 
 
 
-[section:overload2 const_buffer::operator+ (2 of 2 overloads)]
+[endsect]
 
 
-Create a new non-modifiable buffer that is offset from the start of another.
+[endsect]
 
 
- const_buffer operator+(
- std::size_t start,
- const const_buffer & b);
+[endsect]
 
 
+[section:buffers_begin buffers_begin]
 
-[endsect]
+[indexterm1 buffers_begin]
+Construct an iterator representing the beginning of the buffers' data.
 
 
-[endsect]
+ template<
+ typename BufferSequence>
+ buffers_iterator< BufferSequence > buffers_begin(
+ const BufferSequence & buffers);
 
 
-[endsect]
+[heading Requirements]
 
-[section:const_buffers_1 const_buffers_1]
+[*Header: ][^boost/asio/buffers_iterator.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
-Adapts a single non-modifiable buffer so that it meets the requirements of the ConstBufferSequence concept.
 
+[endsect]
 
- class const_buffers_1 :
- public const_buffer
 
 
-[heading Types]
-[table
- [[Name][Description]]
+[section:buffers_end buffers_end]
 
- [
+[indexterm1 buffers_end]
+Construct an iterator representing the end of the buffers' data.
 
- [[link boost_asio.reference.const_buffers_1.const_iterator [*const_iterator]]]
- [A random-access iterator type that may be used to read elements. ]
+
+ template<
+ typename BufferSequence>
+ buffers_iterator< BufferSequence > buffers_end(
+ const BufferSequence & buffers);
+
+
+[heading Requirements]
+
+[*Header: ][^boost/asio/buffers_iterator.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
+
+
+[endsect]
+
+
+[section:buffers_iterator buffers_iterator]
+
+
+A random access iterator over the bytes in a buffer sequence.
+
+
+ template<
+ typename BufferSequence,
+ typename ByteType = char>
+ class buffers_iterator
+
+
+[heading Types]
+[table
+ [[Name][Description]]
+
+ [
+
+ [[link boost_asio.reference.buffers_iterator.difference_type [*difference_type]]]
+ [The type used for the distance between two iterators. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.const_buffers_1.value_type [*value_type]]]
- [The type for each element in the list of buffers. ]
+ [[link boost_asio.reference.buffers_iterator.iterator_category [*iterator_category]]]
+ [The iterator category. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.buffers_iterator.pointer [*pointer]]]
+ [The type of the result of applying operator->() to the iterator. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.buffers_iterator.reference [*reference]]]
+ [The type of the result of applying operator*() to the iterator. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.buffers_iterator.value_type [*value_type]]]
+ [The type of the value pointed to by the iterator. ]
   
   ]
 
@@ -50076,121 +49704,228 @@
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.const_buffers_1.begin [*begin]]]
- [Get a random-access iterator to the first element. ]
+ [[link boost_asio.reference.buffers_iterator.begin [*begin]]]
+ [Construct an iterator representing the beginning of the buffers' data. ]
   ]
   
   [
- [[link boost_asio.reference.const_buffers_1.const_buffers_1 [*const_buffers_1]]]
- [Construct to represent a given memory range.
+ [[link boost_asio.reference.buffers_iterator.buffers_iterator [*buffers_iterator]]]
+ [Default constructor. Creates an iterator in an undefined state. ]
+ ]
+
+ [
+ [[link boost_asio.reference.buffers_iterator.end [*end]]]
+ [Construct an iterator representing the end of the buffers' data. ]
+ ]
+
+ [
+ [[link boost_asio.reference.buffers_iterator.operator__star_ [*operator *]]]
+ [Dereference an iterator. ]
+ ]
+
+ [
+ [[link boost_asio.reference.buffers_iterator.operator_plus__plus_ [*operator++]]]
+ [Increment operator (prefix).
 
- Construct to represent a single non-modifiable buffer. ]
+ Increment operator (postfix). ]
   ]
   
   [
- [[link boost_asio.reference.const_buffers_1.end [*end]]]
- [Get a random-access iterator for one past the last element. ]
+ [[link boost_asio.reference.buffers_iterator.operator_plus__eq_ [*operator+=]]]
+ [Addition operator. ]
+ ]
+
+ [
+ [[link boost_asio.reference.buffers_iterator.operator_minus__minus_ [*operator--]]]
+ [Decrement operator (prefix).
+
+ Decrement operator (postfix). ]
+ ]
+
+ [
+ [[link boost_asio.reference.buffers_iterator.operator_minus__eq_ [*operator-=]]]
+ [Subtraction operator. ]
+ ]
+
+ [
+ [[link boost_asio.reference.buffers_iterator.operator_arrow_ [*operator->]]]
+ [Dereference an iterator. ]
+ ]
+
+ [
+ [[link boost_asio.reference.buffers_iterator.operator_lb__rb_ [*operator\[\]]]]
+ [Access an individual element. ]
   ]
   
 ]
 
-[heading Related Functions]
+[heading Friends]
 [table
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.const_buffers_1.operator_plus_ [*operator+]]]
- [Create a new non-modifiable buffer that is offset from the start of another. ]
+ [[link boost_asio.reference.buffers_iterator.operator_not__eq_ [*operator!=]]]
+ [Test two iterators for inequality. ]
+ ]
+
+ [
+ [[link boost_asio.reference.buffers_iterator.operator_plus_ [*operator+]]]
+ [Addition operator. ]
+ ]
+
+ [
+ [[link boost_asio.reference.buffers_iterator.operator_minus_ [*operator-]]]
+ [Subtraction operator. ]
+ ]
+
+ [
+ [[link boost_asio.reference.buffers_iterator.operator_lt_ [*operator<]]]
+ [Compare two iterators. ]
+ ]
+
+ [
+ [[link boost_asio.reference.buffers_iterator.operator_lt__eq_ [*operator<=]]]
+ [Compare two iterators. ]
+ ]
+
+ [
+ [[link boost_asio.reference.buffers_iterator.operator_eq__eq_ [*operator==]]]
+ [Test two iterators for equality. ]
+ ]
+
+ [
+ [[link boost_asio.reference.buffers_iterator.operator_gt_ [*operator>]]]
+ [Compare two iterators. ]
+ ]
+
+ [
+ [[link boost_asio.reference.buffers_iterator.operator_gt__eq_ [*operator>=]]]
+ [Compare two iterators. ]
   ]
   
 ]
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/buffer.hpp]
+[*Header: ][^boost/asio/buffers_iterator.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
 
-[section:begin const_buffers_1::begin]
+[section:begin buffers_iterator::begin]
 
-[indexterm2 begin..const_buffers_1]
-Get a random-access iterator to the first element.
+[indexterm2 begin..buffers_iterator]
+Construct an iterator representing the beginning of the buffers' data.
 
 
- const_iterator begin() const;
+ static buffers_iterator begin(
+ const BufferSequence & buffers);
 
 
 
 [endsect]
 
 
-[section:const_buffers_1 const_buffers_1::const_buffers_1]
 
-[indexterm2 const_buffers_1..const_buffers_1]
-Construct to represent a given memory range.
+[section:buffers_iterator buffers_iterator::buffers_iterator]
 
+[indexterm2 buffers_iterator..buffers_iterator]
+Default constructor. Creates an iterator in an undefined state.
 
- ``[link boost_asio.reference.const_buffers_1.const_buffers_1.overload1 const_buffers_1]``(
- const void * data,
- std::size_t size);
- `` [''''&raquo;''' [link boost_asio.reference.const_buffers_1.const_buffers_1.overload1 more...]]``
 
+ buffers_iterator();
 
-Construct to represent a single non-modifiable buffer.
 
 
- explicit ``[link boost_asio.reference.const_buffers_1.const_buffers_1.overload2 const_buffers_1]``(
- const const_buffer & b);
- `` [''''&raquo;''' [link boost_asio.reference.const_buffers_1.const_buffers_1.overload2 more...]]``
+[endsect]
 
 
-[section:overload1 const_buffers_1::const_buffers_1 (1 of 2 overloads)]
 
+[section:difference_type buffers_iterator::difference_type]
+
+[indexterm2 difference_type..buffers_iterator]
+The type used for the distance between two iterators.
 
-Construct to represent a given memory range.
 
+ typedef std::ptrdiff_t difference_type;
 
- const_buffers_1(
- const void * data,
- std::size_t size);
 
 
+[heading Requirements]
+
+[*Header: ][^boost/asio/buffers_iterator.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
+
 
 [endsect]
 
 
 
-[section:overload2 const_buffers_1::const_buffers_1 (2 of 2 overloads)]
+[section:end buffers_iterator::end]
 
+[indexterm2 end..buffers_iterator]
+Construct an iterator representing the end of the buffers' data.
 
-Construct to represent a single non-modifiable buffer.
+
+ static buffers_iterator end(
+ const BufferSequence & buffers);
 
 
- const_buffers_1(
- const const_buffer & b);
 
+[endsect]
+
+
+
+[section:iterator_category buffers_iterator::iterator_category]
+
+[indexterm2 iterator_category..buffers_iterator]
+The iterator category.
+
+
+ typedef std::random_access_iterator_tag iterator_category;
+
+
+
+[heading Requirements]
+
+[*Header: ][^boost/asio/buffers_iterator.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
+
+[section:operator__star_ buffers_iterator::operator *]
+
+[indexterm2 operator *..buffers_iterator]
+Dereference an iterator.
+
+
+ reference operator *() const;
+
+
+
 [endsect]
 
 
-[section:const_iterator const_buffers_1::const_iterator]
 
-[indexterm2 const_iterator..const_buffers_1]
-A random-access iterator type that may be used to read elements.
+[section:operator_not__eq_ buffers_iterator::operator!=]
 
+[indexterm2 operator!=..buffers_iterator]
+Test two iterators for inequality.
 
- typedef const const_buffer * const_iterator;
 
+ friend bool operator!=(
+ const buffers_iterator & a,
+ const buffers_iterator & b);
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/buffer.hpp]
+[*Header: ][^boost/asio/buffers_iterator.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -50198,49 +49933,93 @@
 [endsect]
 
 
+[section:operator_plus_ buffers_iterator::operator+]
 
-[section:end const_buffers_1::end]
+[indexterm2 operator+..buffers_iterator]
+Addition operator.
 
-[indexterm2 end..const_buffers_1]
-Get a random-access iterator for one past the last element.
 
+ friend buffers_iterator ``[link boost_asio.reference.buffers_iterator.operator_plus_.overload1 operator+]``(
+ const buffers_iterator & iter,
+ std::ptrdiff_t difference);
+ `` [''''&raquo;''' [link boost_asio.reference.buffers_iterator.operator_plus_.overload1 more...]]``
+
+ friend buffers_iterator ``[link boost_asio.reference.buffers_iterator.operator_plus_.overload2 operator+]``(
+ std::ptrdiff_t difference,
+ const buffers_iterator & iter);
+ `` [''''&raquo;''' [link boost_asio.reference.buffers_iterator.operator_plus_.overload2 more...]]``
+
+
+[section:overload1 buffers_iterator::operator+ (1 of 2 overloads)]
+
+
+Addition operator.
 
- const_iterator end() const;
 
+ friend buffers_iterator operator+(
+ const buffers_iterator & iter,
+ std::ptrdiff_t difference);
+
+
+[heading Requirements]
+
+[*Header: ][^boost/asio/buffers_iterator.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
-[section:operator_plus_ const_buffers_1::operator+]
 
-[indexterm2 operator+..const_buffers_1]
-Create a new non-modifiable buffer that is offset from the start of another.
+[section:overload2 buffers_iterator::operator+ (2 of 2 overloads)]
 
 
- const_buffer ``[link boost_asio.reference.const_buffers_1.operator_plus_.overload1 operator+]``(
- const const_buffer & b,
- std::size_t start);
- `` [''''&raquo;''' [link boost_asio.reference.const_buffers_1.operator_plus_.overload1 more...]]``
+Addition operator.
 
- const_buffer ``[link boost_asio.reference.const_buffers_1.operator_plus_.overload2 operator+]``(
- std::size_t start,
- const const_buffer & b);
- `` [''''&raquo;''' [link boost_asio.reference.const_buffers_1.operator_plus_.overload2 more...]]``
 
+ friend buffers_iterator operator+(
+ std::ptrdiff_t difference,
+ const buffers_iterator & iter);
 
-[section:overload1 const_buffers_1::operator+ (1 of 2 overloads)]
 
+[heading Requirements]
 
-['Inherited from const_buffer.]
+[*Header: ][^boost/asio/buffers_iterator.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
-Create a new non-modifiable buffer that is offset from the start of another.
 
+[endsect]
+
+
+[endsect]
+
+[section:operator_plus__plus_ buffers_iterator::operator++]
+
+[indexterm2 operator++..buffers_iterator]
+Increment operator (prefix).
+
+
+ buffers_iterator & ``[link boost_asio.reference.buffers_iterator.operator_plus__plus_.overload1 operator++]``();
+ `` [''''&raquo;''' [link boost_asio.reference.buffers_iterator.operator_plus__plus_.overload1 more...]]``
 
- const_buffer operator+(
- const const_buffer & b,
- std::size_t start);
+
+Increment operator (postfix).
+
+
+ buffers_iterator ``[link boost_asio.reference.buffers_iterator.operator_plus__plus_.overload2 operator++]``(
+ int );
+ `` [''''&raquo;''' [link boost_asio.reference.buffers_iterator.operator_plus__plus_.overload2 more...]]``
+
+
+[section:overload1 buffers_iterator::operator++ (1 of 2 overloads)]
+
+
+Increment operator (prefix).
+
+
+ buffers_iterator & operator++();
 
 
 
@@ -50248,86 +50027,90 @@
 
 
 
-[section:overload2 const_buffers_1::operator+ (2 of 2 overloads)]
+[section:overload2 buffers_iterator::operator++ (2 of 2 overloads)]
 
 
-['Inherited from const_buffer.]
+Increment operator (postfix).
 
 
-Create a new non-modifiable buffer that is offset from the start of another.
+ buffers_iterator operator++(
+ int );
 
 
- const_buffer operator+(
- std::size_t start,
- const const_buffer & b);
 
+[endsect]
 
 
 [endsect]
 
 
+[section:operator_plus__eq_ buffers_iterator::operator+=]
+
+[indexterm2 operator+=..buffers_iterator]
+Addition operator.
+
+
+ buffers_iterator & operator+=(
+ std::ptrdiff_t difference);
+
+
+
 [endsect]
 
 
-[section:value_type const_buffers_1::value_type]
+[section:operator_minus_ buffers_iterator::operator-]
 
-[indexterm2 value_type..const_buffers_1]
-The type for each element in the list of buffers.
+[indexterm2 operator-..buffers_iterator]
+Subtraction operator.
 
 
- typedef const_buffer value_type;
+ friend buffers_iterator ``[link boost_asio.reference.buffers_iterator.operator_minus_.overload1 operator-]``(
+ const buffers_iterator & iter,
+ std::ptrdiff_t difference);
+ `` [''''&raquo;''' [link boost_asio.reference.buffers_iterator.operator_minus_.overload1 more...]]``
 
+ friend std::ptrdiff_t ``[link boost_asio.reference.buffers_iterator.operator_minus_.overload2 operator-]``(
+ const buffers_iterator & a,
+ const buffers_iterator & b);
+ `` [''''&raquo;''' [link boost_asio.reference.buffers_iterator.operator_minus_.overload2 more...]]``
 
-[heading Member Functions]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.const_buffer.const_buffer [*const_buffer]]]
- [Construct an empty buffer.
+[section:overload1 buffers_iterator::operator- (1 of 2 overloads)]
 
- Construct a buffer to represent a given memory range.
 
- Construct a non-modifiable buffer from a modifiable one. ]
- ]
-
-]
+Subtraction operator.
 
-[heading Related Functions]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.const_buffer.operator_plus_ [*operator+]]]
- [Create a new non-modifiable buffer that is offset from the start of another. ]
- ]
-
-]
+ friend buffers_iterator operator-(
+ const buffers_iterator & iter,
+ std::ptrdiff_t difference);
 
-The [link boost_asio.reference.const_buffer `const_buffer`] class provides a safe representation of a buffer that cannot be modified. It does not own the underlying data, and so is cheap to copy or assign.
 
+[heading Requirements]
+
+[*Header: ][^boost/asio/buffers_iterator.hpp]
 
-[heading Accessing Buffer Contents]
-
+[*Convenience header: ][^boost/asio.hpp]
 
 
-The contents of a buffer may be accessed using the [link boost_asio.reference.buffer_size `buffer_size`] and [link boost_asio.reference.buffer_cast `buffer_cast`] functions:
+[endsect]
 
 
 
- boost::asio::const_buffer b1 = ...;
- std::size_t s1 = boost::asio::buffer_size(b1);
- const unsigned char* p1 = boost::asio::buffer_cast<const unsigned char*>(b1);
+[section:overload2 buffers_iterator::operator- (2 of 2 overloads)]
 
 
+Subtraction operator.
 
 
-The `boost::asio::buffer_cast` function permits violations of type safety, so uses of it in application code should be carefully considered.
+ friend std::ptrdiff_t operator-(
+ const buffers_iterator & a,
+ const buffers_iterator & b);
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/buffer.hpp]
+[*Header: ][^boost/asio/buffers_iterator.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -50335,408 +50118,204 @@
 [endsect]
 
 
+[endsect]
+
+[section:operator_minus__minus_ buffers_iterator::operator--]
+
+[indexterm2 operator--..buffers_iterator]
+Decrement operator (prefix).
+
+
+ buffers_iterator & ``[link boost_asio.reference.buffers_iterator.operator_minus__minus_.overload1 operator--]``();
+ `` [''''&raquo;''' [link boost_asio.reference.buffers_iterator.operator_minus__minus_.overload1 more...]]``
+
+
+Decrement operator (postfix).
+
+
+ buffers_iterator ``[link boost_asio.reference.buffers_iterator.operator_minus__minus_.overload2 operator--]``(
+ int );
+ `` [''''&raquo;''' [link boost_asio.reference.buffers_iterator.operator_minus__minus_.overload2 more...]]``
+
+
+[section:overload1 buffers_iterator::operator-- (1 of 2 overloads)]
+
+
+Decrement operator (prefix).
+
+
+ buffers_iterator & operator--();
+
+
 
 [endsect]
 
-[section:datagram_socket_service datagram_socket_service]
 
 
-Default service implementation for a datagram socket.
+[section:overload2 buffers_iterator::operator-- (2 of 2 overloads)]
 
 
- template<
- typename ``[link boost_asio.reference.Protocol Protocol]``>
- class datagram_socket_service :
- public io_service::service
+Decrement operator (postfix).
 
 
-[heading Types]
-[table
- [[Name][Description]]
+ buffers_iterator operator--(
+ int );
 
- [
 
- [[link boost_asio.reference.datagram_socket_service.endpoint_type [*endpoint_type]]]
- [The endpoint type. ]
-
- ]
 
- [
+[endsect]
 
- [[link boost_asio.reference.datagram_socket_service.implementation_type [*implementation_type]]]
- [The type of a datagram socket. ]
-
- ]
 
- [
+[endsect]
 
- [[link boost_asio.reference.datagram_socket_service.native_handle_type [*native_handle_type]]]
- [The native socket type. ]
-
- ]
 
- [
+[section:operator_minus__eq_ buffers_iterator::operator-=]
 
- [[link boost_asio.reference.datagram_socket_service.native_type [*native_type]]]
- [(Deprecated: Use native_handle_type.) The native socket type. ]
-
- ]
+[indexterm2 operator-=..buffers_iterator]
+Subtraction operator.
 
- [
 
- [[link boost_asio.reference.datagram_socket_service.protocol_type [*protocol_type]]]
- [The protocol type. ]
-
- ]
+ buffers_iterator & operator-=(
+ std::ptrdiff_t difference);
 
-]
 
-[heading Member Functions]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.datagram_socket_service.assign [*assign]]]
- [Assign an existing native socket to a datagram socket. ]
- ]
-
- [
- [[link boost_asio.reference.datagram_socket_service.async_connect [*async_connect]]]
- [Start an asynchronous connect. ]
- ]
-
- [
- [[link boost_asio.reference.datagram_socket_service.async_receive [*async_receive]]]
- [Start an asynchronous receive. ]
- ]
-
- [
- [[link boost_asio.reference.datagram_socket_service.async_receive_from [*async_receive_from]]]
- [Start an asynchronous receive that will get the endpoint of the sender. ]
- ]
-
- [
- [[link boost_asio.reference.datagram_socket_service.async_send [*async_send]]]
- [Start an asynchronous send. ]
- ]
-
- [
- [[link boost_asio.reference.datagram_socket_service.async_send_to [*async_send_to]]]
- [Start an asynchronous send. ]
- ]
-
- [
- [[link boost_asio.reference.datagram_socket_service.at_mark [*at_mark]]]
- [Determine whether the socket is at the out-of-band data mark. ]
- ]
-
- [
- [[link boost_asio.reference.datagram_socket_service.available [*available]]]
- [Determine the number of bytes available for reading. ]
- ]
-
- [
- [[link boost_asio.reference.datagram_socket_service.bind [*bind]]]
- []
- ]
-
- [
- [[link boost_asio.reference.datagram_socket_service.cancel [*cancel]]]
- [Cancel all asynchronous operations associated with the socket. ]
- ]
-
- [
- [[link boost_asio.reference.datagram_socket_service.close [*close]]]
- [Close a datagram socket implementation. ]
- ]
-
- [
- [[link boost_asio.reference.datagram_socket_service.connect [*connect]]]
- [Connect the datagram socket to the specified endpoint. ]
- ]
-
- [
- [[link boost_asio.reference.datagram_socket_service.construct [*construct]]]
- [Construct a new datagram socket implementation. ]
- ]
-
- [
- [[link boost_asio.reference.datagram_socket_service.datagram_socket_service [*datagram_socket_service]]]
- [Construct a new datagram socket service for the specified io_service. ]
- ]
-
- [
- [[link boost_asio.reference.datagram_socket_service.destroy [*destroy]]]
- [Destroy a datagram socket implementation. ]
- ]
-
- [
- [[link boost_asio.reference.datagram_socket_service.get_io_service [*get_io_service]]]
- [Get the io_service object that owns the service. ]
- ]
-
- [
- [[link boost_asio.reference.datagram_socket_service.get_option [*get_option]]]
- [Get a socket option. ]
- ]
-
- [
- [[link boost_asio.reference.datagram_socket_service.io_control [*io_control]]]
- [Perform an IO control command on the socket. ]
- ]
-
- [
- [[link boost_asio.reference.datagram_socket_service.is_open [*is_open]]]
- [Determine whether the socket is open. ]
- ]
-
- [
- [[link boost_asio.reference.datagram_socket_service.local_endpoint [*local_endpoint]]]
- [Get the local endpoint. ]
- ]
-
- [
- [[link boost_asio.reference.datagram_socket_service.move_assign [*move_assign]]]
- [Move-assign from another datagram socket implementation. ]
- ]
-
- [
- [[link boost_asio.reference.datagram_socket_service.move_construct [*move_construct]]]
- [Move-construct a new datagram socket implementation. ]
- ]
-
- [
- [[link boost_asio.reference.datagram_socket_service.native [*native]]]
- [(Deprecated: Use native_handle().) Get the native socket implementation. ]
- ]
-
- [
- [[link boost_asio.reference.datagram_socket_service.native_handle [*native_handle]]]
- [Get the native socket implementation. ]
- ]
-
- [
- [[link boost_asio.reference.datagram_socket_service.native_non_blocking [*native_non_blocking]]]
- [Gets the non-blocking mode of the native socket implementation.
-
- Sets the non-blocking mode of the native socket implementation. ]
- ]
-
- [
- [[link boost_asio.reference.datagram_socket_service.non_blocking [*non_blocking]]]
- [Gets the non-blocking mode of the socket.
+[endsect]
 
- Sets the non-blocking mode of the socket. ]
- ]
-
- [
- [[link boost_asio.reference.datagram_socket_service.open [*open]]]
- []
- ]
-
- [
- [[link boost_asio.reference.datagram_socket_service.receive [*receive]]]
- [Receive some data from the peer. ]
- ]
-
- [
- [[link boost_asio.reference.datagram_socket_service.receive_from [*receive_from]]]
- [Receive a datagram with the endpoint of the sender. ]
- ]
-
- [
- [[link boost_asio.reference.datagram_socket_service.remote_endpoint [*remote_endpoint]]]
- [Get the remote endpoint. ]
- ]
-
- [
- [[link boost_asio.reference.datagram_socket_service.send [*send]]]
- [Send the given data to the peer. ]
- ]
-
- [
- [[link boost_asio.reference.datagram_socket_service.send_to [*send_to]]]
- [Send a datagram to the specified endpoint. ]
- ]
-
- [
- [[link boost_asio.reference.datagram_socket_service.set_option [*set_option]]]
- [Set a socket option. ]
- ]
-
- [
- [[link boost_asio.reference.datagram_socket_service.shutdown [*shutdown]]]
- [Disable sends or receives on the socket. ]
- ]
-
-]
 
-[heading Data Members]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.datagram_socket_service.id [*id]]]
- [The unique service identifier. ]
- ]
+[section:operator_arrow_ buffers_iterator::operator->]
 
-]
+[indexterm2 operator->..buffers_iterator]
+Dereference an iterator.
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/datagram_socket_service.hpp]
+ pointer operator->() const;
 
-[*Convenience header: ][^boost/asio.hpp]
 
 
-[section:assign datagram_socket_service::assign]
+[endsect]
 
-[indexterm2 assign..datagram_socket_service]
-Assign an existing native socket to a datagram socket.
 
 
- boost::system::error_code assign(
- implementation_type & impl,
- const protocol_type & protocol,
- const native_handle_type & native_socket,
- boost::system::error_code & ec);
+[section:operator_lt_ buffers_iterator::operator<]
 
+[indexterm2 operator<..buffers_iterator]
+Compare two iterators.
 
 
-[endsect]
+ friend bool operator<(
+ const buffers_iterator & a,
+ const buffers_iterator & b);
 
 
+[heading Requirements]
 
-[section:async_connect datagram_socket_service::async_connect]
+[*Header: ][^boost/asio/buffers_iterator.hpp]
 
-[indexterm2 async_connect..datagram_socket_service]
-Start an asynchronous connect.
+[*Convenience header: ][^boost/asio.hpp]
 
 
- template<
- typename ``[link boost_asio.reference.ConnectHandler ConnectHandler]``>
- void async_connect(
- implementation_type & impl,
- const endpoint_type & peer_endpoint,
- ConnectHandler handler);
+[endsect]
 
 
 
-[endsect]
+[section:operator_lt__eq_ buffers_iterator::operator<=]
 
+[indexterm2 operator<=..buffers_iterator]
+Compare two iterators.
 
 
-[section:async_receive datagram_socket_service::async_receive]
+ friend bool operator<=(
+ const buffers_iterator & a,
+ const buffers_iterator & b);
 
-[indexterm2 async_receive..datagram_socket_service]
-Start an asynchronous receive.
 
+[heading Requirements]
 
- template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``,
- typename ``[link boost_asio.reference.ReadHandler ReadHandler]``>
- void async_receive(
- implementation_type & impl,
- const MutableBufferSequence & buffers,
- socket_base::message_flags flags,
- ReadHandler handler);
+[*Header: ][^boost/asio/buffers_iterator.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
 
-[section:async_receive_from datagram_socket_service::async_receive_from]
+[section:operator_eq__eq_ buffers_iterator::operator==]
 
-[indexterm2 async_receive_from..datagram_socket_service]
-Start an asynchronous receive that will get the endpoint of the sender.
+[indexterm2 operator==..buffers_iterator]
+Test two iterators for equality.
 
 
- template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``,
- typename ``[link boost_asio.reference.ReadHandler ReadHandler]``>
- void async_receive_from(
- implementation_type & impl,
- const MutableBufferSequence & buffers,
- endpoint_type & sender_endpoint,
- socket_base::message_flags flags,
- ReadHandler handler);
+ friend bool operator==(
+ const buffers_iterator & a,
+ const buffers_iterator & b);
 
 
+[heading Requirements]
 
-[endsect]
+[*Header: ][^boost/asio/buffers_iterator.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
 
-[section:async_send datagram_socket_service::async_send]
+[endsect]
 
-[indexterm2 async_send..datagram_socket_service]
-Start an asynchronous send.
 
 
- template<
- typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``,
- typename ``[link boost_asio.reference.WriteHandler WriteHandler]``>
- void async_send(
- implementation_type & impl,
- const ConstBufferSequence & buffers,
- socket_base::message_flags flags,
- WriteHandler handler);
+[section:operator_gt_ buffers_iterator::operator>]
 
+[indexterm2 operator>..buffers_iterator]
+Compare two iterators.
 
 
-[endsect]
+ friend bool operator>(
+ const buffers_iterator & a,
+ const buffers_iterator & b);
 
 
+[heading Requirements]
 
-[section:async_send_to datagram_socket_service::async_send_to]
+[*Header: ][^boost/asio/buffers_iterator.hpp]
 
-[indexterm2 async_send_to..datagram_socket_service]
-Start an asynchronous send.
+[*Convenience header: ][^boost/asio.hpp]
 
 
- template<
- typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``,
- typename ``[link boost_asio.reference.WriteHandler WriteHandler]``>
- void async_send_to(
- implementation_type & impl,
- const ConstBufferSequence & buffers,
- const endpoint_type & destination,
- socket_base::message_flags flags,
- WriteHandler handler);
+[endsect]
 
 
 
-[endsect]
+[section:operator_gt__eq_ buffers_iterator::operator>=]
 
+[indexterm2 operator>=..buffers_iterator]
+Compare two iterators.
 
 
-[section:at_mark datagram_socket_service::at_mark]
+ friend bool operator>=(
+ const buffers_iterator & a,
+ const buffers_iterator & b);
 
-[indexterm2 at_mark..datagram_socket_service]
-Determine whether the socket is at the out-of-band data mark.
 
+[heading Requirements]
 
- bool at_mark(
- const implementation_type & impl,
- boost::system::error_code & ec) const;
+[*Header: ][^boost/asio/buffers_iterator.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
 
-[section:available datagram_socket_service::available]
+[section:operator_lb__rb_ buffers_iterator::operator\[\]]
 
-[indexterm2 available..datagram_socket_service]
-Determine the number of bytes available for reading.
+[indexterm2 operator\[\]..buffers_iterator]
+Access an individual element.
 
 
- std::size_t available(
- const implementation_type & impl,
- boost::system::error_code & ec) const;
+ reference operator[](
+ std::ptrdiff_t difference) const;
 
 
 
@@ -50744,165 +50323,238 @@
 
 
 
-[section:bind datagram_socket_service::bind]
-
-[indexterm2 bind..datagram_socket_service]
-
- boost::system::error_code bind(
- implementation_type & impl,
- const endpoint_type & endpoint,
- boost::system::error_code & ec);
-
+[section:pointer buffers_iterator::pointer]
 
+[indexterm2 pointer..buffers_iterator]
+The type of the result of applying `operator->()` to the iterator.
 
-[endsect]
 
+ typedef const_or_non_const_ByteType * pointer;
 
 
-[section:cancel datagram_socket_service::cancel]
 
-[indexterm2 cancel..datagram_socket_service]
-Cancel all asynchronous operations associated with the socket.
+If the buffer sequence stores buffer objects that are convertible to [link boost_asio.reference.mutable_buffer `mutable_buffer`], this is a pointer to a non-const ByteType. Otherwise, a pointer to a const ByteType.
 
+[heading Requirements]
 
- boost::system::error_code cancel(
- implementation_type & impl,
- boost::system::error_code & ec);
+[*Header: ][^boost/asio/buffers_iterator.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
 
-[section:close datagram_socket_service::close]
+[section:reference buffers_iterator::reference]
 
-[indexterm2 close..datagram_socket_service]
-Close a datagram socket implementation.
+[indexterm2 reference..buffers_iterator]
+The type of the result of applying `operator*()` to the iterator.
 
 
- boost::system::error_code close(
- implementation_type & impl,
- boost::system::error_code & ec);
+ typedef const_or_non_const_ByteType & reference;
 
 
 
-[endsect]
+If the buffer sequence stores buffer objects that are convertible to [link boost_asio.reference.mutable_buffer `mutable_buffer`], this is a reference to a non-const ByteType. Otherwise, a reference to a const ByteType.
 
+[heading Requirements]
 
+[*Header: ][^boost/asio/buffers_iterator.hpp]
 
-[section:connect datagram_socket_service::connect]
+[*Convenience header: ][^boost/asio.hpp]
 
-[indexterm2 connect..datagram_socket_service]
-Connect the datagram socket to the specified endpoint.
 
+[endsect]
 
- boost::system::error_code connect(
- implementation_type & impl,
- const endpoint_type & peer_endpoint,
- boost::system::error_code & ec);
 
 
+[section:value_type buffers_iterator::value_type]
 
-[endsect]
+[indexterm2 value_type..buffers_iterator]
+The type of the value pointed to by the iterator.
 
 
+ typedef ByteType value_type;
 
-[section:construct datagram_socket_service::construct]
 
-[indexterm2 construct..datagram_socket_service]
-Construct a new datagram socket implementation.
 
+[heading Requirements]
 
- void construct(
- implementation_type & impl);
+[*Header: ][^boost/asio/buffers_iterator.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
 
-[section:datagram_socket_service datagram_socket_service::datagram_socket_service]
+[endsect]
 
-[indexterm2 datagram_socket_service..datagram_socket_service]
-Construct a new datagram socket service for the specified [link boost_asio.reference.io_service `io_service`].
+[section:connect connect]
 
+[indexterm1 connect]
+Establishes a socket connection by trying each endpoint in a sequence.
 
- datagram_socket_service(
- boost::asio::io_service & io_service);
+
+ template<
+ typename ``[link boost_asio.reference.Protocol Protocol]``,
+ typename ``[link boost_asio.reference.SocketService SocketService]``,
+ typename Iterator>
+ Iterator ``[link boost_asio.reference.connect.overload1 connect]``(
+ basic_socket< Protocol, SocketService > & s,
+ Iterator begin);
+ `` [''''&raquo;''' [link boost_asio.reference.connect.overload1 more...]]``
 
+ template<
+ typename ``[link boost_asio.reference.Protocol Protocol]``,
+ typename ``[link boost_asio.reference.SocketService SocketService]``,
+ typename Iterator>
+ Iterator ``[link boost_asio.reference.connect.overload2 connect]``(
+ basic_socket< Protocol, SocketService > & s,
+ Iterator begin,
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.connect.overload2 more...]]``
 
+ template<
+ typename ``[link boost_asio.reference.Protocol Protocol]``,
+ typename ``[link boost_asio.reference.SocketService SocketService]``,
+ typename Iterator>
+ Iterator ``[link boost_asio.reference.connect.overload3 connect]``(
+ basic_socket< Protocol, SocketService > & s,
+ Iterator begin,
+ Iterator end);
+ `` [''''&raquo;''' [link boost_asio.reference.connect.overload3 more...]]``
 
-[endsect]
+ template<
+ typename ``[link boost_asio.reference.Protocol Protocol]``,
+ typename ``[link boost_asio.reference.SocketService SocketService]``,
+ typename Iterator>
+ Iterator ``[link boost_asio.reference.connect.overload4 connect]``(
+ basic_socket< Protocol, SocketService > & s,
+ Iterator begin,
+ Iterator end,
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.connect.overload4 more...]]``
 
+ template<
+ typename ``[link boost_asio.reference.Protocol Protocol]``,
+ typename ``[link boost_asio.reference.SocketService SocketService]``,
+ typename Iterator,
+ typename ConnectCondition>
+ Iterator ``[link boost_asio.reference.connect.overload5 connect]``(
+ basic_socket< Protocol, SocketService > & s,
+ Iterator begin,
+ ConnectCondition connect_condition);
+ `` [''''&raquo;''' [link boost_asio.reference.connect.overload5 more...]]``
 
+ template<
+ typename ``[link boost_asio.reference.Protocol Protocol]``,
+ typename ``[link boost_asio.reference.SocketService SocketService]``,
+ typename Iterator,
+ typename ConnectCondition>
+ Iterator ``[link boost_asio.reference.connect.overload6 connect]``(
+ basic_socket< Protocol, SocketService > & s,
+ Iterator begin,
+ ConnectCondition connect_condition,
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.connect.overload6 more...]]``
 
-[section:destroy datagram_socket_service::destroy]
+ template<
+ typename ``[link boost_asio.reference.Protocol Protocol]``,
+ typename ``[link boost_asio.reference.SocketService SocketService]``,
+ typename Iterator,
+ typename ConnectCondition>
+ Iterator ``[link boost_asio.reference.connect.overload7 connect]``(
+ basic_socket< Protocol, SocketService > & s,
+ Iterator begin,
+ Iterator end,
+ ConnectCondition connect_condition);
+ `` [''''&raquo;''' [link boost_asio.reference.connect.overload7 more...]]``
 
-[indexterm2 destroy..datagram_socket_service]
-Destroy a datagram socket implementation.
+ template<
+ typename ``[link boost_asio.reference.Protocol Protocol]``,
+ typename ``[link boost_asio.reference.SocketService SocketService]``,
+ typename Iterator,
+ typename ConnectCondition>
+ Iterator ``[link boost_asio.reference.connect.overload8 connect]``(
+ basic_socket< Protocol, SocketService > & s,
+ Iterator begin,
+ Iterator end,
+ ConnectCondition connect_condition,
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.connect.overload8 more...]]``
 
+[heading Requirements]
 
- void destroy(
- implementation_type & impl);
+[*Header: ][^boost/asio/connect.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
 
-[endsect]
+[section:overload1 connect (1 of 8 overloads)]
 
 
+Establishes a socket connection by trying each endpoint in a sequence.
 
-[section:endpoint_type datagram_socket_service::endpoint_type]
 
-[indexterm2 endpoint_type..datagram_socket_service]
-The endpoint type.
+ template<
+ typename ``[link boost_asio.reference.Protocol Protocol]``,
+ typename ``[link boost_asio.reference.SocketService SocketService]``,
+ typename Iterator>
+ Iterator connect(
+ basic_socket< Protocol, SocketService > & s,
+ Iterator begin);
 
 
- typedef Protocol::endpoint endpoint_type;
+This function attempts to connect a socket to one of a sequence of endpoints. It does this by repeated calls to the socket's `connect` member function, once for each endpoint in the sequence, until a connection is successfully established.
 
 
+[heading Parameters]
+
 
-[heading Requirements]
+[variablelist
+
+[[s][The socket to be connected. If the socket is already open, it will be closed.]]
 
-[*Header: ][^boost/asio/datagram_socket_service.hpp]
+[[begin][An iterator pointing to the start of a sequence of endpoints.]]
 
-[*Convenience header: ][^boost/asio.hpp]
+]
 
 
-[endsect]
+[heading Return Value]
+
+On success, an iterator denoting the successfully connected endpoint. Otherwise, the end iterator.
 
 
+[heading Exceptions]
+
 
-[section:get_io_service datagram_socket_service::get_io_service]
+[variablelist
+
+[[boost::system::system_error][Thrown on failure. If the sequence is empty, the associated `error_code` is `boost::asio::error::not_found`. Otherwise, contains the error from the last connection attempt.]]
 
+]
 
-['Inherited from io_service.]
 
-[indexterm2 get_io_service..datagram_socket_service]
-Get the [link boost_asio.reference.io_service `io_service`] object that owns the service.
+[heading Remarks]
+
+This overload assumes that a default constructed object of type `Iterator` represents the end of the sequence. This is a valid assumption for iterator types such as `boost::asio::ip::tcp::resolver::iterator`.
 
 
- boost::asio::io_service & get_io_service();
-
-
-
-[endsect]
+[heading Example]
+
 
 
+ tcp::resolver r(io_service);
+ tcp::resolver::query q("host", "service");
+ tcp::socket s(io_service);
+ boost::asio::connect(s, r.resolve(q));
 
-[section:get_option datagram_socket_service::get_option]
 
-[indexterm2 get_option..datagram_socket_service]
-Get a socket option.
 
 
- template<
- typename ``[link boost_asio.reference.GettableSocketOption GettableSocketOption]``>
- boost::system::error_code get_option(
- const implementation_type & impl,
- GettableSocketOption & option,
- boost::system::error_code & ec) const;
 
 
 
@@ -50910,53 +50562,66 @@
 
 
 
-[section:id datagram_socket_service::id]
-
-[indexterm2 id..datagram_socket_service]
-The unique service identifier.
+[section:overload2 connect (2 of 8 overloads)]
 
 
- static boost::asio::io_service::id id;
+Establishes a socket connection by trying each endpoint in a sequence.
 
 
+ template<
+ typename ``[link boost_asio.reference.Protocol Protocol]``,
+ typename ``[link boost_asio.reference.SocketService SocketService]``,
+ typename Iterator>
+ Iterator connect(
+ basic_socket< Protocol, SocketService > & s,
+ Iterator begin,
+ boost::system::error_code & ec);
 
-[endsect]
 
+This function attempts to connect a socket to one of a sequence of endpoints. It does this by repeated calls to the socket's `connect` member function, once for each endpoint in the sequence, until a connection is successfully established.
 
 
-[section:implementation_type datagram_socket_service::implementation_type]
+[heading Parameters]
+
 
-[indexterm2 implementation_type..datagram_socket_service]
-The type of a datagram socket.
+[variablelist
+
+[[s][The socket to be connected. If the socket is already open, it will be closed.]]
 
+[[begin][An iterator pointing to the start of a sequence of endpoints.]]
 
- typedef implementation_defined implementation_type;
+[[ec][Set to indicate what error occurred, if any. If the sequence is empty, set to `boost::asio::error::not_found`. Otherwise, contains the error from the last connection attempt.]]
 
+]
 
 
-[heading Requirements]
+[heading Return Value]
+
+On success, an iterator denoting the successfully connected endpoint. Otherwise, the end iterator.
 
-[*Header: ][^boost/asio/datagram_socket_service.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
+[heading Remarks]
+
+This overload assumes that a default constructed object of type `Iterator` represents the end of the sequence. This is a valid assumption for iterator types such as `boost::asio::ip::tcp::resolver::iterator`.
 
 
-[endsect]
+[heading Example]
+
 
 
+ tcp::resolver r(io_service);
+ tcp::resolver::query q("host", "service");
+ tcp::socket s(io_service);
+ boost::system::error_code ec;
+ boost::asio::connect(s, r.resolve(q), ec);
+ if (ec)
+ {
+ // An error occurred.
+ }
 
-[section:io_control datagram_socket_service::io_control]
 
-[indexterm2 io_control..datagram_socket_service]
-Perform an IO control command on the socket.
 
 
- template<
- typename ``[link boost_asio.reference.IoControlCommand IoControlCommand]``>
- boost::system::error_code io_control(
- implementation_type & impl,
- IoControlCommand & command,
- boost::system::error_code & ec);
 
 
 
@@ -50964,299 +50629,423 @@
 
 
 
-[section:is_open datagram_socket_service::is_open]
+[section:overload3 connect (3 of 8 overloads)]
 
-[indexterm2 is_open..datagram_socket_service]
-Determine whether the socket is open.
 
+Establishes a socket connection by trying each endpoint in a sequence.
 
- bool is_open(
- const implementation_type & impl) const;
 
+ template<
+ typename ``[link boost_asio.reference.Protocol Protocol]``,
+ typename ``[link boost_asio.reference.SocketService SocketService]``,
+ typename Iterator>
+ Iterator connect(
+ basic_socket< Protocol, SocketService > & s,
+ Iterator begin,
+ Iterator end);
 
 
-[endsect]
+This function attempts to connect a socket to one of a sequence of endpoints. It does this by repeated calls to the socket's `connect` member function, once for each endpoint in the sequence, until a connection is successfully established.
 
 
+[heading Parameters]
+
 
-[section:local_endpoint datagram_socket_service::local_endpoint]
+[variablelist
+
+[[s][The socket to be connected. If the socket is already open, it will be closed.]]
 
-[indexterm2 local_endpoint..datagram_socket_service]
-Get the local endpoint.
+[[begin][An iterator pointing to the start of a sequence of endpoints.]]
 
+[[end][An iterator pointing to the end of a sequence of endpoints.]]
 
- endpoint_type local_endpoint(
- const implementation_type & impl,
- boost::system::error_code & ec) const;
+]
 
 
+[heading Return Value]
+
+On success, an iterator denoting the successfully connected endpoint. Otherwise, the end iterator.
 
-[endsect]
 
+[heading Exceptions]
+
 
+[variablelist
+
+[[boost::system::system_error][Thrown on failure. If the sequence is empty, the associated `error_code` is `boost::asio::error::not_found`. Otherwise, contains the error from the last connection attempt.]]
 
-[section:move_assign datagram_socket_service::move_assign]
+]
 
-[indexterm2 move_assign..datagram_socket_service]
-Move-assign from another datagram socket implementation.
 
+[heading Example]
+
 
- void move_assign(
- implementation_type & impl,
- datagram_socket_service & other_service,
- implementation_type & other_impl);
 
+ tcp::resolver r(io_service);
+ tcp::resolver::query q("host", "service");
+ tcp::resolver::iterator i = r.resolve(q), end;
+ tcp::socket s(io_service);
+ boost::asio::connect(s, i, end);
 
 
-[endsect]
 
 
 
-[section:move_construct datagram_socket_service::move_construct]
 
-[indexterm2 move_construct..datagram_socket_service]
-Move-construct a new datagram socket implementation.
 
+[endsect]
 
- void move_construct(
- implementation_type & impl,
- implementation_type & other_impl);
 
 
+[section:overload4 connect (4 of 8 overloads)]
 
-[endsect]
 
+Establishes a socket connection by trying each endpoint in a sequence.
 
 
-[section:native datagram_socket_service::native]
+ template<
+ typename ``[link boost_asio.reference.Protocol Protocol]``,
+ typename ``[link boost_asio.reference.SocketService SocketService]``,
+ typename Iterator>
+ Iterator connect(
+ basic_socket< Protocol, SocketService > & s,
+ Iterator begin,
+ Iterator end,
+ boost::system::error_code & ec);
 
-[indexterm2 native..datagram_socket_service]
-(Deprecated: Use `native_handle()`.) Get the native socket implementation.
 
+This function attempts to connect a socket to one of a sequence of endpoints. It does this by repeated calls to the socket's `connect` member function, once for each endpoint in the sequence, until a connection is successfully established.
 
- native_type native(
- implementation_type & impl);
 
+[heading Parameters]
+
 
+[variablelist
+
+[[s][The socket to be connected. If the socket is already open, it will be closed.]]
 
-[endsect]
+[[begin][An iterator pointing to the start of a sequence of endpoints.]]
 
+[[end][An iterator pointing to the end of a sequence of endpoints.]]
 
+[[ec][Set to indicate what error occurred, if any. If the sequence is empty, set to `boost::asio::error::not_found`. Otherwise, contains the error from the last connection attempt.]]
 
-[section:native_handle datagram_socket_service::native_handle]
+]
 
-[indexterm2 native_handle..datagram_socket_service]
-Get the native socket implementation.
 
+[heading Return Value]
+
+On success, an iterator denoting the successfully connected endpoint. Otherwise, the end iterator.
 
- native_handle_type native_handle(
- implementation_type & impl);
 
+[heading Example]
+
 
 
-[endsect]
+ tcp::resolver r(io_service);
+ tcp::resolver::query q("host", "service");
+ tcp::resolver::iterator i = r.resolve(q), end;
+ tcp::socket s(io_service);
+ boost::system::error_code ec;
+ boost::asio::connect(s, i, end, ec);
+ if (ec)
+ {
+ // An error occurred.
+ }
 
 
 
-[section:native_handle_type datagram_socket_service::native_handle_type]
 
-[indexterm2 native_handle_type..datagram_socket_service]
-The native socket type.
 
 
- typedef implementation_defined native_handle_type;
 
+[endsect]
 
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/datagram_socket_service.hpp]
+[section:overload5 connect (5 of 8 overloads)]
 
-[*Convenience header: ][^boost/asio.hpp]
 
+Establishes a socket connection by trying each endpoint in a sequence.
 
-[endsect]
 
+ template<
+ typename ``[link boost_asio.reference.Protocol Protocol]``,
+ typename ``[link boost_asio.reference.SocketService SocketService]``,
+ typename Iterator,
+ typename ConnectCondition>
+ Iterator connect(
+ basic_socket< Protocol, SocketService > & s,
+ Iterator begin,
+ ConnectCondition connect_condition);
 
-[section:native_non_blocking datagram_socket_service::native_non_blocking]
 
-[indexterm2 native_non_blocking..datagram_socket_service]
-Gets the non-blocking mode of the native socket implementation.
+This function attempts to connect a socket to one of a sequence of endpoints. It does this by repeated calls to the socket's `connect` member function, once for each endpoint in the sequence, until a connection is successfully established.
 
 
- bool ``[link boost_asio.reference.datagram_socket_service.native_non_blocking.overload1 native_non_blocking]``(
- const implementation_type & impl) const;
- `` [''''&raquo;''' [link boost_asio.reference.datagram_socket_service.native_non_blocking.overload1 more...]]``
+[heading Parameters]
+
 
+[variablelist
+
+[[s][The socket to be connected. If the socket is already open, it will be closed.]]
 
-Sets the non-blocking mode of the native socket implementation.
+[[begin][An iterator pointing to the start of a sequence of endpoints.]]
 
+[[connect_condition][A function object that is called prior to each connection attempt. The signature of the function object must be:
+``
+ Iterator connect_condition(
+ const boost::system::error_code& ec,
+ Iterator next);
+``
+The `ec` parameter contains the result from the most recent connect operation. Before the first connection attempt, `ec` is always set to indicate success. The `next` parameter is an iterator pointing to the next endpoint to be tried. The function object should return the next iterator, but is permitted to return a different iterator so that endpoints may be skipped. The implementation guarantees that the function object will never be called with the end iterator.]]
 
- boost::system::error_code ``[link boost_asio.reference.datagram_socket_service.native_non_blocking.overload2 native_non_blocking]``(
- implementation_type & impl,
- bool mode,
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.datagram_socket_service.native_non_blocking.overload2 more...]]``
+]
 
 
-[section:overload1 datagram_socket_service::native_non_blocking (1 of 2 overloads)]
+[heading Return Value]
+
+On success, an iterator denoting the successfully connected endpoint. Otherwise, the end iterator.
 
 
-Gets the non-blocking mode of the native socket implementation.
+[heading Exceptions]
+
 
+[variablelist
+
+[[boost::system::system_error][Thrown on failure. If the sequence is empty, the associated `error_code` is `boost::asio::error::not_found`. Otherwise, contains the error from the last connection attempt.]]
 
- bool native_non_blocking(
- const implementation_type & impl) const;
+]
 
 
+[heading Remarks]
+
+This overload assumes that a default constructed object of type `Iterator` represents the end of the sequence. This is a valid assumption for iterator types such as `boost::asio::ip::tcp::resolver::iterator`.
 
-[endsect]
 
+[heading Example]
+
+The following connect condition function object can be used to output information about the individual connection attempts:
 
+ struct my_connect_condition
+ {
+ template <typename Iterator>
+ Iterator operator()(
+ const boost::system::error_code& ec,
+ Iterator next)
+ {
+ if (ec) std::cout << "Error: " << ec.message() << std::endl;
+ std::cout << "Trying: " << next->endpoint() << std::endl;
+ return next;
+ }
+ };
 
-[section:overload2 datagram_socket_service::native_non_blocking (2 of 2 overloads)]
 
+It would be used with the `boost::asio::connect` function as follows:
 
-Sets the non-blocking mode of the native socket implementation.
+ tcp::resolver r(io_service);
+ tcp::resolver::query q("host", "service");
+ tcp::socket s(io_service);
+ tcp::resolver::iterator i = boost::asio::connect(
+ s, r.resolve(q), my_connect_condition());
+ std::cout << "Connected to: " << i->endpoint() << std::endl;
 
 
- boost::system::error_code native_non_blocking(
- implementation_type & impl,
- bool mode,
- boost::system::error_code & ec);
 
 
 
-[endsect]
 
 
 [endsect]
 
 
-[section:native_type datagram_socket_service::native_type]
-
-[indexterm2 native_type..datagram_socket_service]
-(Deprecated: Use native\_handle\_type.) The native socket type.
-
-
- typedef implementation_defined native_type;
 
+[section:overload6 connect (6 of 8 overloads)]
 
 
-[heading Requirements]
+Establishes a socket connection by trying each endpoint in a sequence.
 
-[*Header: ][^boost/asio/datagram_socket_service.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
+ template<
+ typename ``[link boost_asio.reference.Protocol Protocol]``,
+ typename ``[link boost_asio.reference.SocketService SocketService]``,
+ typename Iterator,
+ typename ConnectCondition>
+ Iterator connect(
+ basic_socket< Protocol, SocketService > & s,
+ Iterator begin,
+ ConnectCondition connect_condition,
+ boost::system::error_code & ec);
 
 
-[endsect]
+This function attempts to connect a socket to one of a sequence of endpoints. It does this by repeated calls to the socket's `connect` member function, once for each endpoint in the sequence, until a connection is successfully established.
 
 
-[section:non_blocking datagram_socket_service::non_blocking]
+[heading Parameters]
+
 
-[indexterm2 non_blocking..datagram_socket_service]
-Gets the non-blocking mode of the socket.
+[variablelist
+
+[[s][The socket to be connected. If the socket is already open, it will be closed.]]
 
+[[begin][An iterator pointing to the start of a sequence of endpoints.]]
 
- bool ``[link boost_asio.reference.datagram_socket_service.non_blocking.overload1 non_blocking]``(
- const implementation_type & impl) const;
- `` [''''&raquo;''' [link boost_asio.reference.datagram_socket_service.non_blocking.overload1 more...]]``
+[[connect_condition][A function object that is called prior to each connection attempt. The signature of the function object must be:
+``
+ Iterator connect_condition(
+ const boost::system::error_code& ec,
+ Iterator next);
+``
+The `ec` parameter contains the result from the most recent connect operation. Before the first connection attempt, `ec` is always set to indicate success. The `next` parameter is an iterator pointing to the next endpoint to be tried. The function object should return the next iterator, but is permitted to return a different iterator so that endpoints may be skipped. The implementation guarantees that the function object will never be called with the end iterator.]]
 
+[[ec][Set to indicate what error occurred, if any. If the sequence is empty, set to `boost::asio::error::not_found`. Otherwise, contains the error from the last connection attempt.]]
 
-Sets the non-blocking mode of the socket.
+]
 
 
- boost::system::error_code ``[link boost_asio.reference.datagram_socket_service.non_blocking.overload2 non_blocking]``(
- implementation_type & impl,
- bool mode,
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.datagram_socket_service.non_blocking.overload2 more...]]``
+[heading Return Value]
+
+On success, an iterator denoting the successfully connected endpoint. Otherwise, the end iterator.
 
 
-[section:overload1 datagram_socket_service::non_blocking (1 of 2 overloads)]
+[heading Remarks]
+
+This overload assumes that a default constructed object of type `Iterator` represents the end of the sequence. This is a valid assumption for iterator types such as `boost::asio::ip::tcp::resolver::iterator`.
 
 
-Gets the non-blocking mode of the socket.
+[heading Example]
+
+The following connect condition function object can be used to output information about the individual connection attempts:
 
+ struct my_connect_condition
+ {
+ template <typename Iterator>
+ Iterator operator()(
+ const boost::system::error_code& ec,
+ Iterator next)
+ {
+ if (ec) std::cout << "Error: " << ec.message() << std::endl;
+ std::cout << "Trying: " << next->endpoint() << std::endl;
+ return next;
+ }
+ };
 
- bool non_blocking(
- const implementation_type & impl) const;
 
+It would be used with the `boost::asio::connect` function as follows:
 
+ tcp::resolver r(io_service);
+ tcp::resolver::query q("host", "service");
+ tcp::socket s(io_service);
+ boost::system::error_code ec;
+ tcp::resolver::iterator i = boost::asio::connect(
+ s, r.resolve(q), my_connect_condition(), ec);
+ if (ec)
+ {
+ // An error occurred.
+ }
+ else
+ {
+ std::cout << "Connected to: " << i->endpoint() << std::endl;
+ }
 
-[endsect]
 
 
 
-[section:overload2 datagram_socket_service::non_blocking (2 of 2 overloads)]
 
 
-Sets the non-blocking mode of the socket.
 
+[endsect]
 
- boost::system::error_code non_blocking(
- implementation_type & impl,
- bool mode,
- boost::system::error_code & ec);
 
 
+[section:overload7 connect (7 of 8 overloads)]
 
-[endsect]
 
+Establishes a socket connection by trying each endpoint in a sequence.
 
-[endsect]
 
+ template<
+ typename ``[link boost_asio.reference.Protocol Protocol]``,
+ typename ``[link boost_asio.reference.SocketService SocketService]``,
+ typename Iterator,
+ typename ConnectCondition>
+ Iterator connect(
+ basic_socket< Protocol, SocketService > & s,
+ Iterator begin,
+ Iterator end,
+ ConnectCondition connect_condition);
 
-[section:open datagram_socket_service::open]
 
-[indexterm2 open..datagram_socket_service]
+This function attempts to connect a socket to one of a sequence of endpoints. It does this by repeated calls to the socket's `connect` member function, once for each endpoint in the sequence, until a connection is successfully established.
 
- boost::system::error_code open(
- implementation_type & impl,
- const protocol_type & protocol,
- boost::system::error_code & ec);
 
+[heading Parameters]
+
 
+[variablelist
+
+[[s][The socket to be connected. If the socket is already open, it will be closed.]]
 
-[endsect]
+[[begin][An iterator pointing to the start of a sequence of endpoints.]]
 
+[[end][An iterator pointing to the end of a sequence of endpoints.]]
 
+[[connect_condition][A function object that is called prior to each connection attempt. The signature of the function object must be:
+``
+ Iterator connect_condition(
+ const boost::system::error_code& ec,
+ Iterator next);
+``
+The `ec` parameter contains the result from the most recent connect operation. Before the first connection attempt, `ec` is always set to indicate success. The `next` parameter is an iterator pointing to the next endpoint to be tried. The function object should return the next iterator, but is permitted to return a different iterator so that endpoints may be skipped. The implementation guarantees that the function object will never be called with the end iterator.]]
 
-[section:protocol_type datagram_socket_service::protocol_type]
+]
 
-[indexterm2 protocol_type..datagram_socket_service]
-The protocol type.
 
+[heading Return Value]
+
+On success, an iterator denoting the successfully connected endpoint. Otherwise, the end iterator.
 
- typedef Protocol protocol_type;
 
+[heading Exceptions]
+
 
+[variablelist
+
+[[boost::system::system_error][Thrown on failure. If the sequence is empty, the associated `error_code` is `boost::asio::error::not_found`. Otherwise, contains the error from the last connection attempt.]]
 
-[heading Requirements]
+]
 
-[*Header: ][^boost/asio/datagram_socket_service.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
+[heading Example]
+
+The following connect condition function object can be used to output information about the individual connection attempts:
 
+ struct my_connect_condition
+ {
+ template <typename Iterator>
+ Iterator operator()(
+ const boost::system::error_code& ec,
+ Iterator next)
+ {
+ if (ec) std::cout << "Error: " << ec.message() << std::endl;
+ std::cout << "Trying: " << next->endpoint() << std::endl;
+ return next;
+ }
+ };
 
-[endsect]
 
+It would be used with the `boost::asio::connect` function as follows:
 
+ tcp::resolver r(io_service);
+ tcp::resolver::query q("host", "service");
+ tcp::resolver::iterator i = r.resolve(q), end;
+ tcp::socket s(io_service);
+ i = boost::asio::connect(s, i, end, my_connect_condition());
+ std::cout << "Connected to: " << i->endpoint() << std::endl;
 
-[section:receive datagram_socket_service::receive]
 
-[indexterm2 receive..datagram_socket_service]
-Receive some data from the peer.
 
 
- template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
- std::size_t receive(
- implementation_type & impl,
- const MutableBufferSequence & buffers,
- socket_base::message_flags flags,
- boost::system::error_code & ec);
 
 
 
@@ -51264,375 +51053,298 @@
 
 
 
-[section:receive_from datagram_socket_service::receive_from]
+[section:overload8 connect (8 of 8 overloads)]
 
-[indexterm2 receive_from..datagram_socket_service]
-Receive a datagram with the endpoint of the sender.
+
+Establishes a socket connection by trying each endpoint in a sequence.
 
 
   template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
- std::size_t receive_from(
- implementation_type & impl,
- const MutableBufferSequence & buffers,
- endpoint_type & sender_endpoint,
- socket_base::message_flags flags,
+ typename ``[link boost_asio.reference.Protocol Protocol]``,
+ typename ``[link boost_asio.reference.SocketService SocketService]``,
+ typename Iterator,
+ typename ConnectCondition>
+ Iterator connect(
+ basic_socket< Protocol, SocketService > & s,
+ Iterator begin,
+ Iterator end,
+ ConnectCondition connect_condition,
       boost::system::error_code & ec);
 
 
+This function attempts to connect a socket to one of a sequence of endpoints. It does this by repeated calls to the socket's `connect` member function, once for each endpoint in the sequence, until a connection is successfully established.
 
-[endsect]
 
+[heading Parameters]
+
 
+[variablelist
+
+[[s][The socket to be connected. If the socket is already open, it will be closed.]]
 
-[section:remote_endpoint datagram_socket_service::remote_endpoint]
+[[begin][An iterator pointing to the start of a sequence of endpoints.]]
 
-[indexterm2 remote_endpoint..datagram_socket_service]
-Get the remote endpoint.
+[[end][An iterator pointing to the end of a sequence of endpoints.]]
 
+[[connect_condition][A function object that is called prior to each connection attempt. The signature of the function object must be:
+``
+ Iterator connect_condition(
+ const boost::system::error_code& ec,
+ Iterator next);
+``
+The `ec` parameter contains the result from the most recent connect operation. Before the first connection attempt, `ec` is always set to indicate success. The `next` parameter is an iterator pointing to the next endpoint to be tried. The function object should return the next iterator, but is permitted to return a different iterator so that endpoints may be skipped. The implementation guarantees that the function object will never be called with the end iterator.]]
 
- endpoint_type remote_endpoint(
- const implementation_type & impl,
- boost::system::error_code & ec) const;
+[[ec][Set to indicate what error occurred, if any. If the sequence is empty, set to `boost::asio::error::not_found`. Otherwise, contains the error from the last connection attempt.]]
 
+]
 
 
-[endsect]
-
-
-
-[section:send datagram_socket_service::send]
+[heading Return Value]
+
+On success, an iterator denoting the successfully connected endpoint. Otherwise, the end iterator.
 
-[indexterm2 send..datagram_socket_service]
-Send the given data to the peer.
 
+[heading Example]
+
+The following connect condition function object can be used to output information about the individual connection attempts:
 
- template<
- typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
- std::size_t send(
- implementation_type & impl,
- const ConstBufferSequence & buffers,
- socket_base::message_flags flags,
- boost::system::error_code & ec);
+ struct my_connect_condition
+ {
+ template <typename Iterator>
+ Iterator operator()(
+ const boost::system::error_code& ec,
+ Iterator next)
+ {
+ if (ec) std::cout << "Error: " << ec.message() << std::endl;
+ std::cout << "Trying: " << next->endpoint() << std::endl;
+ return next;
+ }
+ };
 
 
+It would be used with the `boost::asio::connect` function as follows:
 
-[endsect]
+ tcp::resolver r(io_service);
+ tcp::resolver::query q("host", "service");
+ tcp::resolver::iterator i = r.resolve(q), end;
+ tcp::socket s(io_service);
+ boost::system::error_code ec;
+ i = boost::asio::connect(s, i, end, my_connect_condition(), ec);
+ if (ec)
+ {
+ // An error occurred.
+ }
+ else
+ {
+ std::cout << "Connected to: " << i->endpoint() << std::endl;
+ }
 
 
 
-[section:send_to datagram_socket_service::send_to]
 
-[indexterm2 send_to..datagram_socket_service]
-Send a datagram to the specified endpoint.
 
 
- template<
- typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
- std::size_t send_to(
- implementation_type & impl,
- const ConstBufferSequence & buffers,
- const endpoint_type & destination,
- socket_base::message_flags flags,
- boost::system::error_code & ec);
 
+[endsect]
 
 
 [endsect]
 
+[section:const_buffer const_buffer]
 
 
-[section:set_option datagram_socket_service::set_option]
-
-[indexterm2 set_option..datagram_socket_service]
-Set a socket option.
+Holds a buffer that cannot be modified.
 
 
- template<
- typename ``[link boost_asio.reference.SettableSocketOption SettableSocketOption]``>
- boost::system::error_code set_option(
- implementation_type & impl,
- const SettableSocketOption & option,
- boost::system::error_code & ec);
+ class const_buffer
 
 
+[heading Member Functions]
+[table
+ [[Name][Description]]
 
-[endsect]
+ [
+ [[link boost_asio.reference.const_buffer.const_buffer [*const_buffer]]]
+ [Construct an empty buffer.
 
+ Construct a buffer to represent a given memory range.
 
+ Construct a non-modifiable buffer from a modifiable one. ]
+ ]
+
+]
 
-[section:shutdown datagram_socket_service::shutdown]
+[heading Related Functions]
+[table
+ [[Name][Description]]
 
-[indexterm2 shutdown..datagram_socket_service]
-Disable sends or receives on the socket.
+ [
+ [[link boost_asio.reference.const_buffer.operator_plus_ [*operator+]]]
+ [Create a new non-modifiable buffer that is offset from the start of another. ]
+ ]
+
+]
 
+The [link boost_asio.reference.const_buffer `const_buffer`] class provides a safe representation of a buffer that cannot be modified. It does not own the underlying data, and so is cheap to copy or assign.
 
- boost::system::error_code shutdown(
- implementation_type & impl,
- socket_base::shutdown_type what,
- boost::system::error_code & ec);
 
+[heading Accessing Buffer Contents]
+
 
 
-[endsect]
+The contents of a buffer may be accessed using the [link boost_asio.reference.buffer_size `buffer_size`] and [link boost_asio.reference.buffer_cast `buffer_cast`] functions:
 
 
 
-[endsect]
+ boost::asio::const_buffer b1 = ...;
+ std::size_t s1 = boost::asio::buffer_size(b1);
+ const unsigned char* p1 = boost::asio::buffer_cast<const unsigned char*>(b1);
 
 
-[section:deadline_timer deadline_timer]
 
-[indexterm1 deadline_timer]
-Typedef for the typical usage of timer. Uses a UTC clock.
 
+The `boost::asio::buffer_cast` function permits violations of type safety, so uses of it in application code should be carefully considered.
 
- typedef basic_deadline_timer< boost::posix_time::ptime > deadline_timer;
+[heading Requirements]
 
+[*Header: ][^boost/asio/buffer.hpp]
 
-[heading Types]
-[table
- [[Name][Description]]
+[*Convenience header: ][^boost/asio.hpp]
 
- [
+[section:const_buffer const_buffer::const_buffer]
 
- [[link boost_asio.reference.basic_deadline_timer.duration_type [*duration_type]]]
- [The duration type. ]
-
- ]
+[indexterm2 const_buffer..const_buffer]
+Construct an empty buffer.
 
- [
 
- [[link boost_asio.reference.basic_deadline_timer.implementation_type [*implementation_type]]]
- [The underlying implementation type of I/O object. ]
-
- ]
+ ``[link boost_asio.reference.const_buffer.const_buffer.overload1 const_buffer]``();
+ `` [''''&raquo;''' [link boost_asio.reference.const_buffer.const_buffer.overload1 more...]]``
 
- [
 
- [[link boost_asio.reference.basic_deadline_timer.service_type [*service_type]]]
- [The type of the service that will be used to provide I/O operations. ]
-
- ]
+Construct a buffer to represent a given memory range.
 
- [
 
- [[link boost_asio.reference.basic_deadline_timer.time_type [*time_type]]]
- [The time type. ]
-
- ]
+ ``[link boost_asio.reference.const_buffer.const_buffer.overload2 const_buffer]``(
+ const void * data,
+ std::size_t size);
+ `` [''''&raquo;''' [link boost_asio.reference.const_buffer.const_buffer.overload2 more...]]``
 
- [
 
- [[link boost_asio.reference.basic_deadline_timer.traits_type [*traits_type]]]
- [The time traits type. ]
-
- ]
+Construct a non-modifiable buffer from a modifiable one.
 
-]
 
-[heading Member Functions]
-[table
- [[Name][Description]]
+ ``[link boost_asio.reference.const_buffer.const_buffer.overload3 const_buffer]``(
+ const mutable_buffer & b);
+ `` [''''&raquo;''' [link boost_asio.reference.const_buffer.const_buffer.overload3 more...]]``
 
- [
- [[link boost_asio.reference.basic_deadline_timer.async_wait [*async_wait]]]
- [Start an asynchronous wait on the timer. ]
- ]
-
- [
- [[link boost_asio.reference.basic_deadline_timer.basic_deadline_timer [*basic_deadline_timer]]]
- [Constructor.
 
- Constructor to set a particular expiry time as an absolute time.
+[section:overload1 const_buffer::const_buffer (1 of 3 overloads)]
 
- Constructor to set a particular expiry time relative to now. ]
- ]
-
- [
- [[link boost_asio.reference.basic_deadline_timer.cancel [*cancel]]]
- [Cancel any asynchronous operations that are waiting on the timer. ]
- ]
-
- [
- [[link boost_asio.reference.basic_deadline_timer.cancel_one [*cancel_one]]]
- [Cancels one asynchronous operation that is waiting on the timer. ]
- ]
-
- [
- [[link boost_asio.reference.basic_deadline_timer.expires_at [*expires_at]]]
- [Get the timer's expiry time as an absolute time.
 
- Set the timer's expiry time as an absolute time. ]
- ]
-
- [
- [[link boost_asio.reference.basic_deadline_timer.expires_from_now [*expires_from_now]]]
- [Get the timer's expiry time relative to now.
+Construct an empty buffer.
 
- Set the timer's expiry time relative to now. ]
- ]
-
- [
- [[link boost_asio.reference.basic_deadline_timer.get_io_service [*get_io_service]]]
- [Get the io_service associated with the object. ]
- ]
-
- [
- [[link boost_asio.reference.basic_deadline_timer.wait [*wait]]]
- [Perform a blocking wait on the timer. ]
- ]
-
-]
 
-[heading Protected Member Functions]
-[table
- [[Name][Description]]
+ const_buffer();
 
- [
- [[link boost_asio.reference.basic_deadline_timer.get_implementation [*get_implementation]]]
- [Get the underlying implementation of the I/O object. ]
- ]
-
- [
- [[link boost_asio.reference.basic_deadline_timer.get_service [*get_service]]]
- [Get the service associated with the I/O object. ]
- ]
-
-]
 
-[heading Protected Data Members]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.basic_deadline_timer.implementation [*implementation]]]
- [(Deprecated: Use get_implementation().) The underlying implementation of the I/O object. ]
- ]
+[endsect]
 
- [
- [[link boost_asio.reference.basic_deadline_timer.service [*service]]]
- [(Deprecated: Use get_service().) The service associated with the I/O object. ]
- ]
 
-]
 
-The [link boost_asio.reference.basic_deadline_timer `basic_deadline_timer`] class template provides the ability to perform a blocking or asynchronous wait for a timer to expire.
+[section:overload2 const_buffer::const_buffer (2 of 3 overloads)]
 
-A deadline timer is always in one of two states: "expired" or "not expired". If the `wait()` or `async_wait()` function is called on an expired timer, the wait operation will complete immediately.
 
-Most applications will use the [link boost_asio.reference.deadline_timer `deadline_timer`] typedef.
+Construct a buffer to represent a given memory range.
 
 
-[heading Thread Safety]
-
-[*Distinct] [*objects:] Safe.
+ const_buffer(
+ const void * data,
+ std::size_t size);
 
-[*Shared] [*objects:] Unsafe.
 
 
-[heading Examples]
-
-Performing a blocking wait:
+[endsect]
 
- // Construct a timer without setting an expiry time.
- boost::asio::deadline_timer timer(io_service);
 
- // Set an expiry time relative to now.
- timer.expires_from_now(boost::posix_time::seconds(5));
 
- // Wait for the timer to expire.
- timer.wait();
+[section:overload3 const_buffer::const_buffer (3 of 3 overloads)]
 
 
+Construct a non-modifiable buffer from a modifiable one.
 
 
+ const_buffer(
+ const mutable_buffer & b);
 
-Performing an asynchronous wait:
 
- void handler(const boost::system::error_code& error)
- {
- if (!error)
- {
- // Timer expired.
- }
- }
 
- ...
+[endsect]
 
- // Construct a timer with an absolute expiry time.
- boost::asio::deadline_timer timer(io_service,
- boost::posix_time::time_from_string("2005-12-07 23:59:59.000"));
 
- // Start an asynchronous wait.
- timer.async_wait(handler);
+[endsect]
 
+[section:operator_plus_ const_buffer::operator+]
 
+[indexterm2 operator+..const_buffer]
+Create a new non-modifiable buffer that is offset from the start of another.
 
 
+ const_buffer ``[link boost_asio.reference.const_buffer.operator_plus_.overload1 operator+]``(
+ const const_buffer & b,
+ std::size_t start);
+ `` [''''&raquo;''' [link boost_asio.reference.const_buffer.operator_plus_.overload1 more...]]``
 
-[heading Changing an active deadline_timer's expiry time]
-
+ const_buffer ``[link boost_asio.reference.const_buffer.operator_plus_.overload2 operator+]``(
+ std::size_t start,
+ const const_buffer & b);
+ `` [''''&raquo;''' [link boost_asio.reference.const_buffer.operator_plus_.overload2 more...]]``
 
 
-Changing the expiry time of a timer while there are pending asynchronous waits causes those wait operations to be cancelled. To ensure that the action associated with the timer is performed only once, use something like this: used:
+[section:overload1 const_buffer::operator+ (1 of 2 overloads)]
 
 
+Create a new non-modifiable buffer that is offset from the start of another.
 
- void on_some_event()
- {
- if (my_timer.expires_from_now(seconds(5)) > 0)
- {
- // We managed to cancel the timer. Start new asynchronous wait.
- my_timer.async_wait(on_timeout);
- }
- else
- {
- // Too late, timer has already expired!
- }
- }
 
- void on_timeout(const boost::system::error_code& e)
- {
- if (e != boost::asio::error::operation_aborted)
- {
- // Timer was not cancelled, take necessary action.
- }
- }
+ const_buffer operator+(
+ const const_buffer & b,
+ std::size_t start);
 
 
 
+[endsect]
 
 
-* The `boost::asio::basic_deadline_timer::expires_from_now()` function cancels any pending asynchronous waits, and returns the number of asynchronous waits that were cancelled. If it returns 0 then you were too late and the wait handler has already been executed, or will soon be executed. If it returns 1 then the wait handler was successfully cancelled.
 
+[section:overload2 const_buffer::operator+ (2 of 2 overloads)]
 
-* If a wait handler is cancelled, the boost::system::error\_code passed to it contains the value `boost::asio::error::operation_aborted`.
 
+Create a new non-modifiable buffer that is offset from the start of another.
 
 
+ const_buffer operator+(
+ std::size_t start,
+ const const_buffer & b);
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/deadline_timer.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
+[endsect]
 
 
 [endsect]
 
 
-[section:deadline_timer_service deadline_timer_service]
+[endsect]
 
+[section:const_buffers_1 const_buffers_1]
 
-Default service implementation for a timer.
 
+Adapts a single non-modifiable buffer so that it meets the requirements of the ConstBufferSequence concept.
 
- template<
- typename TimeType,
- typename ``[link boost_asio.reference.TimeTraits TimeTraits]`` = boost::asio::time_traits<TimeType>>
- class deadline_timer_service :
- public io_service::service
+
+ class const_buffers_1 :
+ public const_buffer
 
 
 [heading Types]
@@ -51641,29 +51353,15 @@
 
   [
 
- [[link boost_asio.reference.deadline_timer_service.duration_type [*duration_type]]]
- [The duration type. ]
-
- ]
-
- [
-
- [[link boost_asio.reference.deadline_timer_service.implementation_type [*implementation_type]]]
- [The implementation type of the deadline timer. ]
-
- ]
-
- [
-
- [[link boost_asio.reference.deadline_timer_service.time_type [*time_type]]]
- [The time type. ]
+ [[link boost_asio.reference.const_buffers_1.const_iterator [*const_iterator]]]
+ [A random-access iterator type that may be used to read elements. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.deadline_timer_service.traits_type [*traits_type]]]
- [The time traits type. ]
+ [[link boost_asio.reference.const_buffers_1.value_type [*value_type]]]
+ [The type for each element in the list of buffers. ]
   
   ]
 
@@ -51674,120 +51372,84 @@
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.deadline_timer_service.async_wait [*async_wait]]]
- []
- ]
-
- [
- [[link boost_asio.reference.deadline_timer_service.cancel [*cancel]]]
- [Cancel any asynchronous wait operations associated with the timer. ]
- ]
-
- [
- [[link boost_asio.reference.deadline_timer_service.cancel_one [*cancel_one]]]
- [Cancels one asynchronous wait operation associated with the timer. ]
- ]
-
- [
- [[link boost_asio.reference.deadline_timer_service.construct [*construct]]]
- [Construct a new timer implementation. ]
- ]
-
- [
- [[link boost_asio.reference.deadline_timer_service.deadline_timer_service [*deadline_timer_service]]]
- [Construct a new timer service for the specified io_service. ]
- ]
-
- [
- [[link boost_asio.reference.deadline_timer_service.destroy [*destroy]]]
- [Destroy a timer implementation. ]
- ]
-
- [
- [[link boost_asio.reference.deadline_timer_service.expires_at [*expires_at]]]
- [Get the expiry time for the timer as an absolute time.
-
- Set the expiry time for the timer as an absolute time. ]
+ [[link boost_asio.reference.const_buffers_1.begin [*begin]]]
+ [Get a random-access iterator to the first element. ]
   ]
   
   [
- [[link boost_asio.reference.deadline_timer_service.expires_from_now [*expires_from_now]]]
- [Get the expiry time for the timer relative to now.
+ [[link boost_asio.reference.const_buffers_1.const_buffers_1 [*const_buffers_1]]]
+ [Construct to represent a given memory range.
 
- Set the expiry time for the timer relative to now. ]
- ]
-
- [
- [[link boost_asio.reference.deadline_timer_service.get_io_service [*get_io_service]]]
- [Get the io_service object that owns the service. ]
+ Construct to represent a single non-modifiable buffer. ]
   ]
   
   [
- [[link boost_asio.reference.deadline_timer_service.wait [*wait]]]
- []
+ [[link boost_asio.reference.const_buffers_1.end [*end]]]
+ [Get a random-access iterator for one past the last element. ]
   ]
   
 ]
 
-[heading Data Members]
+[heading Related Functions]
 [table
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.deadline_timer_service.id [*id]]]
- [The unique service identifier. ]
+ [[link boost_asio.reference.const_buffers_1.operator_plus_ [*operator+]]]
+ [Create a new non-modifiable buffer that is offset from the start of another. ]
   ]
-
+
 ]
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/deadline_timer_service.hpp]
+[*Header: ][^boost/asio/buffer.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
 
-[section:async_wait deadline_timer_service::async_wait]
+[section:begin const_buffers_1::begin]
 
-[indexterm2 async_wait..deadline_timer_service]
+[indexterm2 begin..const_buffers_1]
+Get a random-access iterator to the first element.
 
- template<
- typename ``[link boost_asio.reference.WaitHandler WaitHandler]``>
- void async_wait(
- implementation_type & impl,
- WaitHandler handler);
+
+ const_iterator begin() const;
 
 
 
 [endsect]
 
 
+[section:const_buffers_1 const_buffers_1::const_buffers_1]
 
-[section:cancel deadline_timer_service::cancel]
+[indexterm2 const_buffers_1..const_buffers_1]
+Construct to represent a given memory range.
 
-[indexterm2 cancel..deadline_timer_service]
-Cancel any asynchronous wait operations associated with the timer.
 
+ ``[link boost_asio.reference.const_buffers_1.const_buffers_1.overload1 const_buffers_1]``(
+ const void * data,
+ std::size_t size);
+ `` [''''&raquo;''' [link boost_asio.reference.const_buffers_1.const_buffers_1.overload1 more...]]``
 
- std::size_t cancel(
- implementation_type & impl,
- boost::system::error_code & ec);
 
+Construct to represent a single non-modifiable buffer.
 
 
-[endsect]
+ explicit ``[link boost_asio.reference.const_buffers_1.const_buffers_1.overload2 const_buffers_1]``(
+ const const_buffer & b);
+ `` [''''&raquo;''' [link boost_asio.reference.const_buffers_1.const_buffers_1.overload2 more...]]``
 
 
+[section:overload1 const_buffers_1::const_buffers_1 (1 of 2 overloads)]
 
-[section:cancel_one deadline_timer_service::cancel_one]
 
-[indexterm2 cancel_one..deadline_timer_service]
-Cancels one asynchronous wait operation associated with the timer.
+Construct to represent a given memory range.
 
 
- std::size_t cancel_one(
- implementation_type & impl,
- boost::system::error_code & ec);
+ const_buffers_1(
+ const void * data,
+ std::size_t size);
 
 
 
@@ -51795,281 +51457,550 @@
 
 
 
-[section:construct deadline_timer_service::construct]
+[section:overload2 const_buffers_1::const_buffers_1 (2 of 2 overloads)]
 
-[indexterm2 construct..deadline_timer_service]
-Construct a new timer implementation.
+
+Construct to represent a single non-modifiable buffer.
 
 
- void construct(
- implementation_type & impl);
+ const_buffers_1(
+ const const_buffer & b);
 
 
 
 [endsect]
 
 
+[endsect]
 
-[section:deadline_timer_service deadline_timer_service::deadline_timer_service]
 
-[indexterm2 deadline_timer_service..deadline_timer_service]
-Construct a new timer service for the specified [link boost_asio.reference.io_service `io_service`].
+[section:const_iterator const_buffers_1::const_iterator]
 
+[indexterm2 const_iterator..const_buffers_1]
+A random-access iterator type that may be used to read elements.
 
- deadline_timer_service(
- boost::asio::io_service & io_service);
 
+ typedef const const_buffer * const_iterator;
 
 
-[endsect]
 
+[heading Requirements]
 
+[*Header: ][^boost/asio/buffer.hpp]
 
-[section:destroy deadline_timer_service::destroy]
+[*Convenience header: ][^boost/asio.hpp]
 
-[indexterm2 destroy..deadline_timer_service]
-Destroy a timer implementation.
 
+[endsect]
 
- void destroy(
- implementation_type & impl);
 
 
+[section:end const_buffers_1::end]
 
-[endsect]
+[indexterm2 end..const_buffers_1]
+Get a random-access iterator for one past the last element.
 
 
+ const_iterator end() const;
 
-[section:duration_type deadline_timer_service::duration_type]
 
-[indexterm2 duration_type..deadline_timer_service]
-The duration type.
 
+[endsect]
 
- typedef traits_type::duration_type duration_type;
 
+[section:operator_plus_ const_buffers_1::operator+]
 
+[indexterm2 operator+..const_buffers_1]
+Create a new non-modifiable buffer that is offset from the start of another.
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/deadline_timer_service.hpp]
+ const_buffer ``[link boost_asio.reference.const_buffers_1.operator_plus_.overload1 operator+]``(
+ const const_buffer & b,
+ std::size_t start);
+ `` [''''&raquo;''' [link boost_asio.reference.const_buffers_1.operator_plus_.overload1 more...]]``
 
-[*Convenience header: ][^boost/asio.hpp]
+ const_buffer ``[link boost_asio.reference.const_buffers_1.operator_plus_.overload2 operator+]``(
+ std::size_t start,
+ const const_buffer & b);
+ `` [''''&raquo;''' [link boost_asio.reference.const_buffers_1.operator_plus_.overload2 more...]]``
 
 
-[endsect]
+[section:overload1 const_buffers_1::operator+ (1 of 2 overloads)]
 
 
-[section:expires_at deadline_timer_service::expires_at]
+['Inherited from const_buffer.]
 
-[indexterm2 expires_at..deadline_timer_service]
-Get the expiry time for the timer as an absolute time.
 
+Create a new non-modifiable buffer that is offset from the start of another.
 
- time_type ``[link boost_asio.reference.deadline_timer_service.expires_at.overload1 expires_at]``(
- const implementation_type & impl) const;
- `` [''''&raquo;''' [link boost_asio.reference.deadline_timer_service.expires_at.overload1 more...]]``
 
+ const_buffer operator+(
+ const const_buffer & b,
+ std::size_t start);
 
-Set the expiry time for the timer as an absolute time.
 
 
- std::size_t ``[link boost_asio.reference.deadline_timer_service.expires_at.overload2 expires_at]``(
- implementation_type & impl,
- const time_type & expiry_time,
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.deadline_timer_service.expires_at.overload2 more...]]``
+[endsect]
 
 
-[section:overload1 deadline_timer_service::expires_at (1 of 2 overloads)]
 
+[section:overload2 const_buffers_1::operator+ (2 of 2 overloads)]
 
-Get the expiry time for the timer as an absolute time.
 
+['Inherited from const_buffer.]
 
- time_type expires_at(
- const implementation_type & impl) const;
+
+Create a new non-modifiable buffer that is offset from the start of another.
+
+
+ const_buffer operator+(
+ std::size_t start,
+ const const_buffer & b);
 
 
 
 [endsect]
 
 
+[endsect]
 
-[section:overload2 deadline_timer_service::expires_at (2 of 2 overloads)]
 
+[section:value_type const_buffers_1::value_type]
 
-Set the expiry time for the timer as an absolute time.
+[indexterm2 value_type..const_buffers_1]
+The type for each element in the list of buffers.
 
 
- std::size_t expires_at(
- implementation_type & impl,
- const time_type & expiry_time,
- boost::system::error_code & ec);
+ typedef const_buffer value_type;
 
 
+[heading Member Functions]
+[table
+ [[Name][Description]]
 
-[endsect]
+ [
+ [[link boost_asio.reference.const_buffer.const_buffer [*const_buffer]]]
+ [Construct an empty buffer.
 
+ Construct a buffer to represent a given memory range.
 
-[endsect]
+ Construct a non-modifiable buffer from a modifiable one. ]
+ ]
+
+]
 
-[section:expires_from_now deadline_timer_service::expires_from_now]
+[heading Related Functions]
+[table
+ [[Name][Description]]
 
-[indexterm2 expires_from_now..deadline_timer_service]
-Get the expiry time for the timer relative to now.
+ [
+ [[link boost_asio.reference.const_buffer.operator_plus_ [*operator+]]]
+ [Create a new non-modifiable buffer that is offset from the start of another. ]
+ ]
+
+]
 
+The [link boost_asio.reference.const_buffer `const_buffer`] class provides a safe representation of a buffer that cannot be modified. It does not own the underlying data, and so is cheap to copy or assign.
 
- duration_type ``[link boost_asio.reference.deadline_timer_service.expires_from_now.overload1 expires_from_now]``(
- const implementation_type & impl) const;
- `` [''''&raquo;''' [link boost_asio.reference.deadline_timer_service.expires_from_now.overload1 more...]]``
 
+[heading Accessing Buffer Contents]
+
 
-Set the expiry time for the timer relative to now.
 
+The contents of a buffer may be accessed using the [link boost_asio.reference.buffer_size `buffer_size`] and [link boost_asio.reference.buffer_cast `buffer_cast`] functions:
 
- std::size_t ``[link boost_asio.reference.deadline_timer_service.expires_from_now.overload2 expires_from_now]``(
- implementation_type & impl,
- const duration_type & expiry_time,
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.deadline_timer_service.expires_from_now.overload2 more...]]``
 
 
-[section:overload1 deadline_timer_service::expires_from_now (1 of 2 overloads)]
+ boost::asio::const_buffer b1 = ...;
+ std::size_t s1 = boost::asio::buffer_size(b1);
+ const unsigned char* p1 = boost::asio::buffer_cast<const unsigned char*>(b1);
 
 
-Get the expiry time for the timer relative to now.
 
 
- duration_type expires_from_now(
- const implementation_type & impl) const;
+The `boost::asio::buffer_cast` function permits violations of type safety, so uses of it in application code should be carefully considered.
+
+
+[heading Requirements]
+
+[*Header: ][^boost/asio/buffer.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
 
-[section:overload2 deadline_timer_service::expires_from_now (2 of 2 overloads)]
+[endsect]
 
+[section:datagram_socket_service datagram_socket_service]
 
-Set the expiry time for the timer relative to now.
 
+Default service implementation for a datagram socket.
 
- std::size_t expires_from_now(
- implementation_type & impl,
- const duration_type & expiry_time,
- boost::system::error_code & ec);
 
+ template<
+ typename ``[link boost_asio.reference.Protocol Protocol]``>
+ class datagram_socket_service :
+ public io_service::service
 
 
-[endsect]
+[heading Types]
+[table
+ [[Name][Description]]
 
+ [
 
-[endsect]
+ [[link boost_asio.reference.datagram_socket_service.endpoint_type [*endpoint_type]]]
+ [The endpoint type. ]
+
+ ]
 
+ [
 
-[section:get_io_service deadline_timer_service::get_io_service]
+ [[link boost_asio.reference.datagram_socket_service.implementation_type [*implementation_type]]]
+ [The type of a datagram socket. ]
+
+ ]
 
+ [
 
-['Inherited from io_service.]
+ [[link boost_asio.reference.datagram_socket_service.native_handle_type [*native_handle_type]]]
+ [The native socket type. ]
+
+ ]
 
-[indexterm2 get_io_service..deadline_timer_service]
-Get the [link boost_asio.reference.io_service `io_service`] object that owns the service.
+ [
+
+ [[link boost_asio.reference.datagram_socket_service.native_type [*native_type]]]
+ [(Deprecated: Use native_handle_type.) The native socket type. ]
+
+ ]
 
+ [
 
- boost::asio::io_service & get_io_service();
+ [[link boost_asio.reference.datagram_socket_service.protocol_type [*protocol_type]]]
+ [The protocol type. ]
+
+ ]
 
+]
 
+[heading Member Functions]
+[table
+ [[Name][Description]]
 
-[endsect]
+ [
+ [[link boost_asio.reference.datagram_socket_service.assign [*assign]]]
+ [Assign an existing native socket to a datagram socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.datagram_socket_service.async_connect [*async_connect]]]
+ [Start an asynchronous connect. ]
+ ]
+
+ [
+ [[link boost_asio.reference.datagram_socket_service.async_receive [*async_receive]]]
+ [Start an asynchronous receive. ]
+ ]
+
+ [
+ [[link boost_asio.reference.datagram_socket_service.async_receive_from [*async_receive_from]]]
+ [Start an asynchronous receive that will get the endpoint of the sender. ]
+ ]
+
+ [
+ [[link boost_asio.reference.datagram_socket_service.async_send [*async_send]]]
+ [Start an asynchronous send. ]
+ ]
+
+ [
+ [[link boost_asio.reference.datagram_socket_service.async_send_to [*async_send_to]]]
+ [Start an asynchronous send. ]
+ ]
+
+ [
+ [[link boost_asio.reference.datagram_socket_service.at_mark [*at_mark]]]
+ [Determine whether the socket is at the out-of-band data mark. ]
+ ]
+
+ [
+ [[link boost_asio.reference.datagram_socket_service.available [*available]]]
+ [Determine the number of bytes available for reading. ]
+ ]
+
+ [
+ [[link boost_asio.reference.datagram_socket_service.bind [*bind]]]
+ []
+ ]
+
+ [
+ [[link boost_asio.reference.datagram_socket_service.cancel [*cancel]]]
+ [Cancel all asynchronous operations associated with the socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.datagram_socket_service.close [*close]]]
+ [Close a datagram socket implementation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.datagram_socket_service.connect [*connect]]]
+ [Connect the datagram socket to the specified endpoint. ]
+ ]
+
+ [
+ [[link boost_asio.reference.datagram_socket_service.construct [*construct]]]
+ [Construct a new datagram socket implementation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.datagram_socket_service.datagram_socket_service [*datagram_socket_service]]]
+ [Construct a new datagram socket service for the specified io_service. ]
+ ]
+
+ [
+ [[link boost_asio.reference.datagram_socket_service.destroy [*destroy]]]
+ [Destroy a datagram socket implementation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.datagram_socket_service.get_io_service [*get_io_service]]]
+ [Get the io_service object that owns the service. ]
+ ]
+
+ [
+ [[link boost_asio.reference.datagram_socket_service.get_option [*get_option]]]
+ [Get a socket option. ]
+ ]
+
+ [
+ [[link boost_asio.reference.datagram_socket_service.io_control [*io_control]]]
+ [Perform an IO control command on the socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.datagram_socket_service.is_open [*is_open]]]
+ [Determine whether the socket is open. ]
+ ]
+
+ [
+ [[link boost_asio.reference.datagram_socket_service.local_endpoint [*local_endpoint]]]
+ [Get the local endpoint. ]
+ ]
+
+ [
+ [[link boost_asio.reference.datagram_socket_service.move_assign [*move_assign]]]
+ [Move-assign from another datagram socket implementation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.datagram_socket_service.move_construct [*move_construct]]]
+ [Move-construct a new datagram socket implementation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.datagram_socket_service.native [*native]]]
+ [(Deprecated: Use native_handle().) Get the native socket implementation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.datagram_socket_service.native_handle [*native_handle]]]
+ [Get the native socket implementation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.datagram_socket_service.native_non_blocking [*native_non_blocking]]]
+ [Gets the non-blocking mode of the native socket implementation.
+
+ Sets the non-blocking mode of the native socket implementation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.datagram_socket_service.non_blocking [*non_blocking]]]
+ [Gets the non-blocking mode of the socket.
+
+ Sets the non-blocking mode of the socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.datagram_socket_service.open [*open]]]
+ []
+ ]
+
+ [
+ [[link boost_asio.reference.datagram_socket_service.receive [*receive]]]
+ [Receive some data from the peer. ]
+ ]
+
+ [
+ [[link boost_asio.reference.datagram_socket_service.receive_from [*receive_from]]]
+ [Receive a datagram with the endpoint of the sender. ]
+ ]
+
+ [
+ [[link boost_asio.reference.datagram_socket_service.remote_endpoint [*remote_endpoint]]]
+ [Get the remote endpoint. ]
+ ]
+
+ [
+ [[link boost_asio.reference.datagram_socket_service.send [*send]]]
+ [Send the given data to the peer. ]
+ ]
+
+ [
+ [[link boost_asio.reference.datagram_socket_service.send_to [*send_to]]]
+ [Send a datagram to the specified endpoint. ]
+ ]
+
+ [
+ [[link boost_asio.reference.datagram_socket_service.set_option [*set_option]]]
+ [Set a socket option. ]
+ ]
+
+ [
+ [[link boost_asio.reference.datagram_socket_service.shutdown [*shutdown]]]
+ [Disable sends or receives on the socket. ]
+ ]
+
+]
 
+[heading Data Members]
+[table
+ [[Name][Description]]
 
+ [
+ [[link boost_asio.reference.datagram_socket_service.id [*id]]]
+ [The unique service identifier. ]
+ ]
 
-[section:id deadline_timer_service::id]
+]
 
-[indexterm2 id..deadline_timer_service]
-The unique service identifier.
+[heading Requirements]
 
+[*Header: ][^boost/asio/datagram_socket_service.hpp]
 
- static boost::asio::io_service::id id;
+[*Convenience header: ][^boost/asio.hpp]
 
 
+[section:assign datagram_socket_service::assign]
 
-[endsect]
+[indexterm2 assign..datagram_socket_service]
+Assign an existing native socket to a datagram socket.
 
 
+ boost::system::error_code assign(
+ implementation_type & impl,
+ const protocol_type & protocol,
+ const native_handle_type & native_socket,
+ boost::system::error_code & ec);
 
-[section:implementation_type deadline_timer_service::implementation_type]
 
-[indexterm2 implementation_type..deadline_timer_service]
-The implementation type of the deadline timer.
 
+[endsect]
 
- typedef implementation_defined implementation_type;
 
 
+[section:async_connect datagram_socket_service::async_connect]
 
-[heading Requirements]
+[indexterm2 async_connect..datagram_socket_service]
+Start an asynchronous connect.
 
-[*Header: ][^boost/asio/deadline_timer_service.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
+ template<
+ typename ``[link boost_asio.reference.ConnectHandler ConnectHandler]``>
+ void async_connect(
+ implementation_type & impl,
+ const endpoint_type & peer_endpoint,
+ ConnectHandler handler);
+
 
 
 [endsect]
 
 
 
-[section:time_type deadline_timer_service::time_type]
+[section:async_receive datagram_socket_service::async_receive]
 
-[indexterm2 time_type..deadline_timer_service]
-The time type.
+[indexterm2 async_receive..datagram_socket_service]
+Start an asynchronous receive.
 
 
- typedef traits_type::time_type time_type;
+ template<
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``,
+ typename ``[link boost_asio.reference.ReadHandler ReadHandler]``>
+ void async_receive(
+ implementation_type & impl,
+ const MutableBufferSequence & buffers,
+ socket_base::message_flags flags,
+ ReadHandler handler);
 
 
 
-[heading Requirements]
+[endsect]
 
-[*Header: ][^boost/asio/deadline_timer_service.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
 
+[section:async_receive_from datagram_socket_service::async_receive_from]
 
-[endsect]
+[indexterm2 async_receive_from..datagram_socket_service]
+Start an asynchronous receive that will get the endpoint of the sender.
 
 
+ template<
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``,
+ typename ``[link boost_asio.reference.ReadHandler ReadHandler]``>
+ void async_receive_from(
+ implementation_type & impl,
+ const MutableBufferSequence & buffers,
+ endpoint_type & sender_endpoint,
+ socket_base::message_flags flags,
+ ReadHandler handler);
 
-[section:traits_type deadline_timer_service::traits_type]
 
-[indexterm2 traits_type..deadline_timer_service]
-The time traits type.
 
+[endsect]
 
- typedef TimeTraits traits_type;
 
 
+[section:async_send datagram_socket_service::async_send]
 
-[heading Requirements]
+[indexterm2 async_send..datagram_socket_service]
+Start an asynchronous send.
 
-[*Header: ][^boost/asio/deadline_timer_service.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
+ template<
+ typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``,
+ typename ``[link boost_asio.reference.WriteHandler WriteHandler]``>
+ void async_send(
+ implementation_type & impl,
+ const ConstBufferSequence & buffers,
+ socket_base::message_flags flags,
+ WriteHandler handler);
+
 
 
 [endsect]
 
 
 
-[section:wait deadline_timer_service::wait]
+[section:async_send_to datagram_socket_service::async_send_to]
 
-[indexterm2 wait..deadline_timer_service]
+[indexterm2 async_send_to..datagram_socket_service]
+Start an asynchronous send.
 
- void wait(
+
+ template<
+ typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``,
+ typename ``[link boost_asio.reference.WriteHandler WriteHandler]``>
+ void async_send_to(
       implementation_type & impl,
- boost::system::error_code & ec);
+ const ConstBufferSequence & buffers,
+ const endpoint_type & destination,
+ socket_base::message_flags flags,
+ WriteHandler handler);
 
 
 
@@ -52077,295 +52008,160 @@
 
 
 
-[endsect]
+[section:at_mark datagram_socket_service::at_mark]
+
+[indexterm2 at_mark..datagram_socket_service]
+Determine whether the socket is at the out-of-band data mark.
 
 
-[section:error__addrinfo_category error::addrinfo_category]
+ bool at_mark(
+ const implementation_type & impl,
+ boost::system::error_code & ec) const;
 
-[indexterm1 error::addrinfo_category]
 
- static const boost::system::error_category & addrinfo_category = boost::asio::error::get_addrinfo_category();
+
+[endsect]
 
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/error.hpp]
+[section:available datagram_socket_service::available]
+
+[indexterm2 available..datagram_socket_service]
+Determine the number of bytes available for reading.
+
+
+ std::size_t available(
+ const implementation_type & impl,
+ boost::system::error_code & ec) const;
 
-[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
 
-[section:error__addrinfo_errors error::addrinfo_errors]
+[section:bind datagram_socket_service::bind]
 
-[indexterm1 error::addrinfo_errors]
+[indexterm2 bind..datagram_socket_service]
 
- enum addrinfo_errors
+ boost::system::error_code bind(
+ implementation_type & impl,
+ const endpoint_type & endpoint,
+ boost::system::error_code & ec);
 
-[indexterm2 service_not_found..error::addrinfo_errors]
-[indexterm2 socket_type_not_supported..error::addrinfo_errors]
 
-[heading Values]
-[variablelist
 
- [
- [service_not_found]
- [The service is not supported for the given socket type. ]
- ]
+[endsect]
 
- [
- [socket_type_not_supported]
- [The socket type is not supported. ]
- ]
 
-]
 
+[section:cancel datagram_socket_service::cancel]
 
-[heading Requirements]
+[indexterm2 cancel..datagram_socket_service]
+Cancel all asynchronous operations associated with the socket.
 
-[*Header: ][^boost/asio/error.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
+ boost::system::error_code cancel(
+ implementation_type & impl,
+ boost::system::error_code & ec);
+
 
 
 [endsect]
 
 
 
-[section:error__basic_errors error::basic_errors]
+[section:close datagram_socket_service::close]
 
-[indexterm1 error::basic_errors]
+[indexterm2 close..datagram_socket_service]
+Close a datagram socket implementation.
 
- enum basic_errors
 
-[indexterm2 access_denied..error::basic_errors]
-[indexterm2 address_family_not_supported..error::basic_errors]
-[indexterm2 address_in_use..error::basic_errors]
-[indexterm2 already_connected..error::basic_errors]
-[indexterm2 already_started..error::basic_errors]
-[indexterm2 broken_pipe..error::basic_errors]
-[indexterm2 connection_aborted..error::basic_errors]
-[indexterm2 connection_refused..error::basic_errors]
-[indexterm2 connection_reset..error::basic_errors]
-[indexterm2 bad_descriptor..error::basic_errors]
-[indexterm2 fault..error::basic_errors]
-[indexterm2 host_unreachable..error::basic_errors]
-[indexterm2 in_progress..error::basic_errors]
-[indexterm2 interrupted..error::basic_errors]
-[indexterm2 invalid_argument..error::basic_errors]
-[indexterm2 message_size..error::basic_errors]
-[indexterm2 name_too_long..error::basic_errors]
-[indexterm2 network_down..error::basic_errors]
-[indexterm2 network_reset..error::basic_errors]
-[indexterm2 network_unreachable..error::basic_errors]
-[indexterm2 no_descriptors..error::basic_errors]
-[indexterm2 no_buffer_space..error::basic_errors]
-[indexterm2 no_memory..error::basic_errors]
-[indexterm2 no_permission..error::basic_errors]
-[indexterm2 no_protocol_option..error::basic_errors]
-[indexterm2 not_connected..error::basic_errors]
-[indexterm2 not_socket..error::basic_errors]
-[indexterm2 operation_aborted..error::basic_errors]
-[indexterm2 operation_not_supported..error::basic_errors]
-[indexterm2 shut_down..error::basic_errors]
-[indexterm2 timed_out..error::basic_errors]
-[indexterm2 try_again..error::basic_errors]
-[indexterm2 would_block..error::basic_errors]
+ boost::system::error_code close(
+ implementation_type & impl,
+ boost::system::error_code & ec);
 
-[heading Values]
-[variablelist
 
- [
- [access_denied]
- [Permission denied. ]
- ]
 
- [
- [address_family_not_supported]
- [Address family not supported by protocol. ]
- ]
+[endsect]
 
- [
- [address_in_use]
- [Address already in use. ]
- ]
 
- [
- [already_connected]
- [Transport endpoint is already connected. ]
- ]
 
- [
- [already_started]
- [Operation already in progress. ]
- ]
+[section:connect datagram_socket_service::connect]
 
- [
- [broken_pipe]
- [Broken pipe. ]
- ]
+[indexterm2 connect..datagram_socket_service]
+Connect the datagram socket to the specified endpoint.
 
- [
- [connection_aborted]
- [A connection has been aborted. ]
- ]
 
- [
- [connection_refused]
- [Connection refused. ]
- ]
+ boost::system::error_code connect(
+ implementation_type & impl,
+ const endpoint_type & peer_endpoint,
+ boost::system::error_code & ec);
 
- [
- [connection_reset]
- [Connection reset by peer. ]
- ]
 
- [
- [bad_descriptor]
- [Bad file descriptor. ]
- ]
 
- [
- [fault]
- [Bad address. ]
- ]
+[endsect]
 
- [
- [host_unreachable]
- [No route to host. ]
- ]
 
- [
- [in_progress]
- [Operation now in progress. ]
- ]
 
- [
- [interrupted]
- [Interrupted system call. ]
- ]
+[section:construct datagram_socket_service::construct]
 
- [
- [invalid_argument]
- [Invalid argument. ]
- ]
+[indexterm2 construct..datagram_socket_service]
+Construct a new datagram socket implementation.
 
- [
- [message_size]
- [Message too long. ]
- ]
 
- [
- [name_too_long]
- [The name was too long. ]
- ]
+ void construct(
+ implementation_type & impl);
 
- [
- [network_down]
- [Network is down. ]
- ]
 
- [
- [network_reset]
- [Network dropped connection on reset. ]
- ]
 
- [
- [network_unreachable]
- [Network is unreachable. ]
- ]
+[endsect]
 
- [
- [no_descriptors]
- [Too many open files. ]
- ]
 
- [
- [no_buffer_space]
- [No buffer space available. ]
- ]
 
- [
- [no_memory]
- [Cannot allocate memory. ]
- ]
+[section:datagram_socket_service datagram_socket_service::datagram_socket_service]
 
- [
- [no_permission]
- [Operation not permitted. ]
- ]
+[indexterm2 datagram_socket_service..datagram_socket_service]
+Construct a new datagram socket service for the specified [link boost_asio.reference.io_service `io_service`].
 
- [
- [no_protocol_option]
- [Protocol not available. ]
- ]
 
- [
- [not_connected]
- [Transport endpoint is not connected. ]
- ]
+ datagram_socket_service(
+ boost::asio::io_service & io_service);
 
- [
- [not_socket]
- [Socket operation on non-socket. ]
- ]
 
- [
- [operation_aborted]
- [Operation cancelled. ]
- ]
 
- [
- [operation_not_supported]
- [Operation not supported. ]
- ]
+[endsect]
 
- [
- [shut_down]
- [Cannot send after transport endpoint shutdown. ]
- ]
 
- [
- [timed_out]
- [Connection timed out. ]
- ]
 
- [
- [try_again]
- [Resource temporarily unavailable. ]
- ]
+[section:destroy datagram_socket_service::destroy]
 
- [
- [would_block]
- [The socket is marked non-blocking and the requested operation would block. ]
- ]
+[indexterm2 destroy..datagram_socket_service]
+Destroy a datagram socket implementation.
 
-]
 
+ void destroy(
+ implementation_type & impl);
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/error.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
+[endsect]
 
 
-[endsect]
 
+[section:endpoint_type datagram_socket_service::endpoint_type]
 
+[indexterm2 endpoint_type..datagram_socket_service]
+The endpoint type.
 
-[section:error__get_addrinfo_category error::get_addrinfo_category]
 
-[indexterm1 error::get_addrinfo_category]
+ typedef Protocol::endpoint endpoint_type;
 
- const boost::system::error_category & get_addrinfo_category();
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/error.hpp]
+[*Header: ][^boost/asio/datagram_socket_service.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -52374,70 +52170,69 @@
 
 
 
-[section:error__get_misc_category error::get_misc_category]
+[section:get_io_service datagram_socket_service::get_io_service]
 
-[indexterm1 error::get_misc_category]
 
- const boost::system::error_category & get_misc_category();
+['Inherited from io_service.]
 
+[indexterm2 get_io_service..datagram_socket_service]
+Get the [link boost_asio.reference.io_service `io_service`] object that owns the service.
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/error.hpp]
+ boost::asio::io_service & get_io_service();
 
-[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
 
-[section:error__get_netdb_category error::get_netdb_category]
-
-[indexterm1 error::get_netdb_category]
-
- const boost::system::error_category & get_netdb_category();
+[section:get_option datagram_socket_service::get_option]
 
+[indexterm2 get_option..datagram_socket_service]
+Get a socket option.
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/error.hpp]
+ template<
+ typename ``[link boost_asio.reference.GettableSocketOption GettableSocketOption]``>
+ boost::system::error_code get_option(
+ const implementation_type & impl,
+ GettableSocketOption & option,
+ boost::system::error_code & ec) const;
 
-[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
 
-[section:error__get_ssl_category error::get_ssl_category]
+[section:id datagram_socket_service::id]
 
-[indexterm1 error::get_ssl_category]
+[indexterm2 id..datagram_socket_service]
+The unique service identifier.
 
- const boost::system::error_category & get_ssl_category();
 
+ static boost::asio::io_service::id id;
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/ssl/error.hpp]
 
-[*Convenience header: ][^boost/asio/ssl.hpp]
+[endsect]
 
 
-[endsect]
 
+[section:implementation_type datagram_socket_service::implementation_type]
 
+[indexterm2 implementation_type..datagram_socket_service]
+The type of a datagram socket.
 
-[section:error__get_system_category error::get_system_category]
 
-[indexterm1 error::get_system_category]
+ typedef implementation_defined implementation_type;
 
- const boost::system::error_category & get_system_category();
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/error.hpp]
+[*Header: ][^boost/asio/datagram_socket_service.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -52445,43 +52240,34 @@
 [endsect]
 
 
-[section:error__make_error_code error::make_error_code]
 
-[indexterm1 error::make_error_code]
-
- boost::system::error_code ``[link boost_asio.reference.error__make_error_code.overload1 make_error_code]``(
- basic_errors e);
- `` [''''&raquo;''' [link boost_asio.reference.error__make_error_code.overload1 more...]]``
+[section:io_control datagram_socket_service::io_control]
 
- boost::system::error_code ``[link boost_asio.reference.error__make_error_code.overload2 make_error_code]``(
- netdb_errors e);
- `` [''''&raquo;''' [link boost_asio.reference.error__make_error_code.overload2 more...]]``
+[indexterm2 io_control..datagram_socket_service]
+Perform an IO control command on the socket.
 
- boost::system::error_code ``[link boost_asio.reference.error__make_error_code.overload3 make_error_code]``(
- addrinfo_errors e);
- `` [''''&raquo;''' [link boost_asio.reference.error__make_error_code.overload3 more...]]``
 
- boost::system::error_code ``[link boost_asio.reference.error__make_error_code.overload4 make_error_code]``(
- misc_errors e);
- `` [''''&raquo;''' [link boost_asio.reference.error__make_error_code.overload4 more...]]``
+ template<
+ typename ``[link boost_asio.reference.IoControlCommand IoControlCommand]``>
+ boost::system::error_code io_control(
+ implementation_type & impl,
+ IoControlCommand & command,
+ boost::system::error_code & ec);
 
- boost::system::error_code ``[link boost_asio.reference.error__make_error_code.overload5 make_error_code]``(
- ssl_errors e);
- `` [''''&raquo;''' [link boost_asio.reference.error__make_error_code.overload5 more...]]``
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/error.hpp]
+[endsect]
 
-[*Convenience header: ][^boost/asio.hpp]
 
 
-[section:overload1 error::make_error_code (1 of 5 overloads)]
+[section:is_open datagram_socket_service::is_open]
 
+[indexterm2 is_open..datagram_socket_service]
+Determine whether the socket is open.
 
 
- boost::system::error_code make_error_code(
- basic_errors e);
+ bool is_open(
+ const implementation_type & impl) const;
 
 
 
@@ -52489,12 +52275,15 @@
 
 
 
-[section:overload2 error::make_error_code (2 of 5 overloads)]
+[section:local_endpoint datagram_socket_service::local_endpoint]
 
+[indexterm2 local_endpoint..datagram_socket_service]
+Get the local endpoint.
 
 
- boost::system::error_code make_error_code(
- netdb_errors e);
+ endpoint_type local_endpoint(
+ const implementation_type & impl,
+ boost::system::error_code & ec) const;
 
 
 
@@ -52502,12 +52291,16 @@
 
 
 
-[section:overload3 error::make_error_code (3 of 5 overloads)]
+[section:move_assign datagram_socket_service::move_assign]
 
+[indexterm2 move_assign..datagram_socket_service]
+Move-assign from another datagram socket implementation.
 
 
- boost::system::error_code make_error_code(
- addrinfo_errors e);
+ void move_assign(
+ implementation_type & impl,
+ datagram_socket_service & other_service,
+ implementation_type & other_impl);
 
 
 
@@ -52515,12 +52308,15 @@
 
 
 
-[section:overload4 error::make_error_code (4 of 5 overloads)]
+[section:move_construct datagram_socket_service::move_construct]
 
+[indexterm2 move_construct..datagram_socket_service]
+Move-construct a new datagram socket implementation.
 
 
- boost::system::error_code make_error_code(
- misc_errors e);
+ void move_construct(
+ implementation_type & impl,
+ implementation_type & other_impl);
 
 
 
@@ -52528,31 +52324,49 @@
 
 
 
-[section:overload5 error::make_error_code (5 of 5 overloads)]
+[section:native datagram_socket_service::native]
 
+[indexterm2 native..datagram_socket_service]
+(Deprecated: Use `native_handle()`.) Get the native socket implementation.
 
 
- boost::system::error_code make_error_code(
- ssl_errors e);
+ native_type native(
+ implementation_type & impl);
 
 
 
 [endsect]
 
 
+
+[section:native_handle datagram_socket_service::native_handle]
+
+[indexterm2 native_handle..datagram_socket_service]
+Get the native socket implementation.
+
+
+ native_handle_type native_handle(
+ implementation_type & impl);
+
+
+
 [endsect]
 
 
-[section:error__misc_category error::misc_category]
 
-[indexterm1 error::misc_category]
+[section:native_handle_type datagram_socket_service::native_handle_type]
+
+[indexterm2 native_handle_type..datagram_socket_service]
+The native socket type.
+
+
+ typedef implementation_defined native_handle_type;
 
- static const boost::system::error_category & misc_category = boost::asio::error::get_misc_category();
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/error.hpp]
+[*Header: ][^boost/asio/datagram_socket_service.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -52560,65 +52374,74 @@
 [endsect]
 
 
+[section:native_non_blocking datagram_socket_service::native_non_blocking]
 
-[section:error__misc_errors error::misc_errors]
+[indexterm2 native_non_blocking..datagram_socket_service]
+Gets the non-blocking mode of the native socket implementation.
 
-[indexterm1 error::misc_errors]
 
- enum misc_errors
+ bool ``[link boost_asio.reference.datagram_socket_service.native_non_blocking.overload1 native_non_blocking]``(
+ const implementation_type & impl) const;
+ `` [''''&raquo;''' [link boost_asio.reference.datagram_socket_service.native_non_blocking.overload1 more...]]``
 
-[indexterm2 already_open..error::misc_errors]
-[indexterm2 eof..error::misc_errors]
-[indexterm2 not_found..error::misc_errors]
-[indexterm2 fd_set_failure..error::misc_errors]
 
-[heading Values]
-[variablelist
+Sets the non-blocking mode of the native socket implementation.
 
- [
- [already_open]
- [Already open. ]
- ]
 
- [
- [eof]
- [End of file or stream. ]
- ]
+ boost::system::error_code ``[link boost_asio.reference.datagram_socket_service.native_non_blocking.overload2 native_non_blocking]``(
+ implementation_type & impl,
+ bool mode,
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.datagram_socket_service.native_non_blocking.overload2 more...]]``
 
- [
- [not_found]
- [Element not found. ]
- ]
 
- [
- [fd_set_failure]
- [The descriptor cannot fit into the select system call's fd_set. ]
- ]
+[section:overload1 datagram_socket_service::native_non_blocking (1 of 2 overloads)]
 
-]
 
+Gets the non-blocking mode of the native socket implementation.
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/error.hpp]
+ bool native_non_blocking(
+ const implementation_type & impl) const;
 
-[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
 
-[section:error__netdb_category error::netdb_category]
+[section:overload2 datagram_socket_service::native_non_blocking (2 of 2 overloads)]
 
-[indexterm1 error::netdb_category]
 
- static const boost::system::error_category & netdb_category = boost::asio::error::get_netdb_category();
+Sets the non-blocking mode of the native socket implementation.
+
+
+ boost::system::error_code native_non_blocking(
+ implementation_type & impl,
+ bool mode,
+ boost::system::error_code & ec);
+
+
+
+[endsect]
+
+
+[endsect]
+
+
+[section:native_type datagram_socket_service::native_type]
+
+[indexterm2 native_type..datagram_socket_service]
+(Deprecated: Use native\_handle\_type.) The native socket type.
+
+
+ typedef implementation_defined native_type;
+
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/error.hpp]
+[*Header: ][^boost/asio/datagram_socket_service.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -52626,101 +52449,89 @@
 [endsect]
 
 
+[section:non_blocking datagram_socket_service::non_blocking]
 
-[section:error__netdb_errors error::netdb_errors]
+[indexterm2 non_blocking..datagram_socket_service]
+Gets the non-blocking mode of the socket.
 
-[indexterm1 error::netdb_errors]
 
- enum netdb_errors
+ bool ``[link boost_asio.reference.datagram_socket_service.non_blocking.overload1 non_blocking]``(
+ const implementation_type & impl) const;
+ `` [''''&raquo;''' [link boost_asio.reference.datagram_socket_service.non_blocking.overload1 more...]]``
 
-[indexterm2 host_not_found..error::netdb_errors]
-[indexterm2 host_not_found_try_again..error::netdb_errors]
-[indexterm2 no_data..error::netdb_errors]
-[indexterm2 no_recovery..error::netdb_errors]
 
-[heading Values]
-[variablelist
+Sets the non-blocking mode of the socket.
 
- [
- [host_not_found]
- [Host not found (authoritative). ]
- ]
 
- [
- [host_not_found_try_again]
- [Host not found (non-authoritative). ]
- ]
+ boost::system::error_code ``[link boost_asio.reference.datagram_socket_service.non_blocking.overload2 non_blocking]``(
+ implementation_type & impl,
+ bool mode,
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.datagram_socket_service.non_blocking.overload2 more...]]``
 
- [
- [no_data]
- [The query is valid but does not have associated address data. ]
- ]
 
- [
- [no_recovery]
- [A non-recoverable error occurred. ]
- ]
+[section:overload1 datagram_socket_service::non_blocking (1 of 2 overloads)]
 
-]
 
+Gets the non-blocking mode of the socket.
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/error.hpp]
+ bool non_blocking(
+ const implementation_type & impl) const;
 
-[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
 
-[section:error__ssl_category error::ssl_category]
-
-[indexterm1 error::ssl_category]
+[section:overload2 datagram_socket_service::non_blocking (2 of 2 overloads)]
 
- static const boost::system::error_category & ssl_category = boost::asio::error::get_ssl_category();
 
+Sets the non-blocking mode of the socket.
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/ssl/error.hpp]
+ boost::system::error_code non_blocking(
+ implementation_type & impl,
+ bool mode,
+ boost::system::error_code & ec);
 
-[*Convenience header: ][^boost/asio/ssl.hpp]
 
 
 [endsect]
 
 
+[endsect]
 
-[section:error__ssl_errors error::ssl_errors]
 
-[indexterm1 error::ssl_errors]
+[section:open datagram_socket_service::open]
 
- enum ssl_errors
+[indexterm2 open..datagram_socket_service]
 
+ boost::system::error_code open(
+ implementation_type & impl,
+ const protocol_type & protocol,
+ boost::system::error_code & ec);
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/ssl/error.hpp]
 
-[*Convenience header: ][^boost/asio/ssl.hpp]
+[endsect]
 
 
-[endsect]
 
+[section:protocol_type datagram_socket_service::protocol_type]
 
+[indexterm2 protocol_type..datagram_socket_service]
+The protocol type.
 
-[section:error__system_category error::system_category]
 
-[indexterm1 error::system_category]
+ typedef Protocol protocol_type;
 
- static const boost::system::error_category & system_category = boost::asio::error::get_system_category();
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/error.hpp]
+[*Header: ][^boost/asio/datagram_socket_service.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -52729,77 +52540,116 @@
 
 
 
-[section:has_service has_service]
+[section:receive datagram_socket_service::receive]
+
+[indexterm2 receive..datagram_socket_service]
+Receive some data from the peer.
 
-[indexterm1 has_service]
 
   template<
- typename ``[link boost_asio.reference.Service Service]``>
- bool has_service(
- io_service & ios);
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
+ std::size_t receive(
+ implementation_type & impl,
+ const MutableBufferSequence & buffers,
+ socket_base::message_flags flags,
+ boost::system::error_code & ec);
 
 
-This function is used to determine whether the [link boost_asio.reference.io_service `io_service`] contains a service object corresponding to the given service type.
 
+[endsect]
 
-[heading Parameters]
-
 
-[variablelist
-
-[[ios][The [link boost_asio.reference.io_service `io_service`] object that owns the service.]]
 
-]
+[section:receive_from datagram_socket_service::receive_from]
 
+[indexterm2 receive_from..datagram_socket_service]
+Receive a datagram with the endpoint of the sender.
 
-[heading Return Value]
-
-A boolean indicating whether the [link boost_asio.reference.io_service `io_service`] contains the service.
+
+ template<
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
+ std::size_t receive_from(
+ implementation_type & impl,
+ const MutableBufferSequence & buffers,
+ endpoint_type & sender_endpoint,
+ socket_base::message_flags flags,
+ boost::system::error_code & ec);
 
 
 
-[heading Requirements]
+[endsect]
 
-[*Header: ][^boost/asio/io_service.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
+
+[section:remote_endpoint datagram_socket_service::remote_endpoint]
+
+[indexterm2 remote_endpoint..datagram_socket_service]
+Get the remote endpoint.
+
+
+ endpoint_type remote_endpoint(
+ const implementation_type & impl,
+ boost::system::error_code & ec) const;
+
 
 
 [endsect]
 
 
-[section:invalid_service_owner invalid_service_owner]
 
+[section:send datagram_socket_service::send]
 
-Exception thrown when trying to add a service object to an [link boost_asio.reference.io_service `io_service`] where the service has a different owner.
+[indexterm2 send..datagram_socket_service]
+Send the given data to the peer.
 
 
- class invalid_service_owner
+ template<
+ typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
+ std::size_t send(
+ implementation_type & impl,
+ const ConstBufferSequence & buffers,
+ socket_base::message_flags flags,
+ boost::system::error_code & ec);
 
 
-[heading Member Functions]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.invalid_service_owner.invalid_service_owner [*invalid_service_owner]]]
- []
- ]
-
-]
+[endsect]
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/io_service.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
+[section:send_to datagram_socket_service::send_to]
 
+[indexterm2 send_to..datagram_socket_service]
+Send a datagram to the specified endpoint.
 
-[section:invalid_service_owner invalid_service_owner::invalid_service_owner]
 
-[indexterm2 invalid_service_owner..invalid_service_owner]
+ template<
+ typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
+ std::size_t send_to(
+ implementation_type & impl,
+ const ConstBufferSequence & buffers,
+ const endpoint_type & destination,
+ socket_base::message_flags flags,
+ boost::system::error_code & ec);
 
- invalid_service_owner();
+
+
+[endsect]
+
+
+
+[section:set_option datagram_socket_service::set_option]
+
+[indexterm2 set_option..datagram_socket_service]
+Set a socket option.
+
+
+ template<
+ typename ``[link boost_asio.reference.SettableSocketOption SettableSocketOption]``>
+ boost::system::error_code set_option(
+ implementation_type & impl,
+ const SettableSocketOption & option,
+ boost::system::error_code & ec);
 
 
 
@@ -52807,16 +52657,33 @@
 
 
 
+[section:shutdown datagram_socket_service::shutdown]
+
+[indexterm2 shutdown..datagram_socket_service]
+Disable sends or receives on the socket.
+
+
+ boost::system::error_code shutdown(
+ implementation_type & impl,
+ socket_base::shutdown_type what,
+ boost::system::error_code & ec);
+
+
+
 [endsect]
 
-[section:io_service io_service]
 
 
-Provides core I/O functionality.
+[endsect]
 
 
- class io_service :
- noncopyable
+[section:deadline_timer deadline_timer]
+
+[indexterm1 deadline_timer]
+Typedef for the typical usage of timer. Uses a UTC clock.
+
+
+ typedef basic_deadline_timer< boost::posix_time::ptime > deadline_timer;
 
 
 [heading Types]
@@ -52825,36 +52692,36 @@
 
   [
 
- [[link boost_asio.reference.io_service__id [*id]]]
- [Class used to uniquely identify a service. ]
+ [[link boost_asio.reference.basic_deadline_timer.duration_type [*duration_type]]]
+ [The duration type. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.io_service__service [*service]]]
- [Base class for all io_service services. ]
+ [[link boost_asio.reference.basic_deadline_timer.implementation_type [*implementation_type]]]
+ [The underlying implementation type of I/O object. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.io_service__strand [*strand]]]
- [Provides serialised handler execution. ]
+ [[link boost_asio.reference.basic_deadline_timer.service_type [*service_type]]]
+ [The type of the service that will be used to provide I/O operations. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.io_service__work [*work]]]
- [Class to inform the io_service when it has work to do. ]
+ [[link boost_asio.reference.basic_deadline_timer.time_type [*time_type]]]
+ [The time type. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.io_service.fork_event [*fork_event]]]
- [Fork-related event notifications. ]
+ [[link boost_asio.reference.basic_deadline_timer.traits_type [*traits_type]]]
+ [The time traits type. ]
   
   ]
 
@@ -52865,344 +52732,373 @@
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.io_service.dispatch [*dispatch]]]
- [Request the io_service to invoke the given handler. ]
- ]
-
- [
- [[link boost_asio.reference.io_service.io_service [*io_service]]]
- [Constructor. ]
- ]
-
- [
- [[link boost_asio.reference.io_service.notify_fork [*notify_fork]]]
- [Notify the io_service of a fork-related event. ]
- ]
-
- [
- [[link boost_asio.reference.io_service.poll [*poll]]]
- [Run the io_service object's event processing loop to execute ready handlers. ]
- ]
-
- [
- [[link boost_asio.reference.io_service.poll_one [*poll_one]]]
- [Run the io_service object's event processing loop to execute one ready handler. ]
- ]
-
- [
- [[link boost_asio.reference.io_service.post [*post]]]
- [Request the io_service to invoke the given handler and return immediately. ]
+ [[link boost_asio.reference.basic_deadline_timer.async_wait [*async_wait]]]
+ [Start an asynchronous wait on the timer. ]
   ]
   
   [
- [[link boost_asio.reference.io_service.reset [*reset]]]
- [Reset the io_service in preparation for a subsequent run() invocation. ]
+ [[link boost_asio.reference.basic_deadline_timer.basic_deadline_timer [*basic_deadline_timer]]]
+ [Constructor.
+
+ Constructor to set a particular expiry time as an absolute time.
+
+ Constructor to set a particular expiry time relative to now. ]
   ]
   
   [
- [[link boost_asio.reference.io_service.run [*run]]]
- [Run the io_service object's event processing loop. ]
+ [[link boost_asio.reference.basic_deadline_timer.cancel [*cancel]]]
+ [Cancel any asynchronous operations that are waiting on the timer. ]
   ]
   
   [
- [[link boost_asio.reference.io_service.run_one [*run_one]]]
- [Run the io_service object's event processing loop to execute at most one handler. ]
+ [[link boost_asio.reference.basic_deadline_timer.cancel_one [*cancel_one]]]
+ [Cancels one asynchronous operation that is waiting on the timer. ]
   ]
   
   [
- [[link boost_asio.reference.io_service.stop [*stop]]]
- [Stop the io_service object's event processing loop. ]
+ [[link boost_asio.reference.basic_deadline_timer.expires_at [*expires_at]]]
+ [Get the timer's expiry time as an absolute time.
+
+ Set the timer's expiry time as an absolute time. ]
   ]
   
   [
- [[link boost_asio.reference.io_service.stopped [*stopped]]]
- [Determine whether the io_service object has been stopped. ]
+ [[link boost_asio.reference.basic_deadline_timer.expires_from_now [*expires_from_now]]]
+ [Get the timer's expiry time relative to now.
+
+ Set the timer's expiry time relative to now. ]
   ]
   
   [
- [[link boost_asio.reference.io_service.wrap [*wrap]]]
- [Create a new handler that automatically dispatches the wrapped handler on the io_service. ]
+ [[link boost_asio.reference.basic_deadline_timer.get_io_service [*get_io_service]]]
+ [Get the io_service associated with the object. ]
   ]
   
   [
- [[link boost_asio.reference.io_service._io_service [*~io_service]]]
- [Destructor. ]
+ [[link boost_asio.reference.basic_deadline_timer.wait [*wait]]]
+ [Perform a blocking wait on the timer. ]
   ]
   
 ]
 
-[heading Friends]
+[heading Protected Member Functions]
 [table
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.io_service.add_service [*add_service]]]
- [Add a service object to the io_service. ]
- ]
-
- [
- [[link boost_asio.reference.io_service.has_service [*has_service]]]
- [Determine if an io_service contains a specified service type. ]
+ [[link boost_asio.reference.basic_deadline_timer.get_implementation [*get_implementation]]]
+ [Get the underlying implementation of the I/O object. ]
   ]
   
   [
- [[link boost_asio.reference.io_service.use_service [*use_service]]]
- [Obtain the service object corresponding to the given type. ]
+ [[link boost_asio.reference.basic_deadline_timer.get_service [*get_service]]]
+ [Get the service associated with the I/O object. ]
   ]
   
 ]
 
-The [link boost_asio.reference.io_service `io_service`] class provides the core I/O functionality for users of the asynchronous I/O objects, including:
+[heading Protected Data Members]
+[table
+ [[Name][Description]]
 
+ [
+ [[link boost_asio.reference.basic_deadline_timer.implementation [*implementation]]]
+ [(Deprecated: Use get_implementation().) The underlying implementation of the I/O object. ]
+ ]
 
-* `boost::asio::ip::tcp::socket`
+ [
+ [[link boost_asio.reference.basic_deadline_timer.service [*service]]]
+ [(Deprecated: Use get_service().) The service associated with the I/O object. ]
+ ]
 
-* `boost::asio::ip::tcp::acceptor`
+]
 
-* `boost::asio::ip::udp::socket`
+The [link boost_asio.reference.basic_deadline_timer `basic_deadline_timer`] class template provides the ability to perform a blocking or asynchronous wait for a timer to expire.
 
-* [link boost_asio.reference.deadline_timer `deadline_timer`].
+A deadline timer is always in one of two states: "expired" or "not expired". If the `wait()` or `async_wait()` function is called on an expired timer, the wait operation will complete immediately.
 
-The [link boost_asio.reference.io_service `io_service`] class also includes facilities intended for developers of custom asynchronous services.
+Most applications will use the [link boost_asio.reference.deadline_timer `deadline_timer`] typedef.
 
 
 [heading Thread Safety]
   
 [*Distinct] [*objects:] Safe.
 
-[*Shared] [*objects:] Safe, with the specific exceptions of the `reset()` and `notify_fork()` functions. Calling `reset()` while there are unfinished `run()`, `run_one()`, `poll()` or `poll_one()` calls results in undefined behaviour. The `notify_fork()` function should not be called while any [link boost_asio.reference.io_service `io_service`] function, or any function on an I/O object that is associated with the [link boost_asio.reference.io_service `io_service`], is being called in another thread.
-
+[*Shared] [*objects:] Unsafe.
 
 
-[heading Synchronous and asynchronous operations]
+[heading Examples]
   
+Performing a blocking wait:
 
+ // Construct a timer without setting an expiry time.
+ boost::asio::deadline_timer timer(io_service);
 
-Synchronous operations on I/O objects implicitly run the [link boost_asio.reference.io_service `io_service`] object for an individual operation. The [link boost_asio.reference.io_service `io_service`] functions `run()`, `run_one()`, `poll()` or `poll_one()` must be called for the [link boost_asio.reference.io_service `io_service`] to perform asynchronous operations on behalf of a C++ program. Notification that an asynchronous operation has completed is delivered by invocation of the associated handler. Handlers are invoked only by a thread that is currently calling any overload of `run()`, `run_one()`, `poll()` or `poll_one()` for the [link boost_asio.reference.io_service `io_service`].
-
-
-[heading Effect of exceptions thrown from handlers]
-
+ // Set an expiry time relative to now.
+ timer.expires_from_now(boost::posix_time::seconds(5));
 
+ // Wait for the timer to expire.
+ timer.wait();
 
-If an exception is thrown from a handler, the exception is allowed to propagate through the throwing thread's invocation of `run()`, `run_one()`, `poll()` or `poll_one()`. No other threads that are calling any of these functions are affected. It is then the responsibility of the application to catch the exception.
 
-After the exception has been caught, the `run()`, `run_one()`, `poll()` or `poll_one()` call may be restarted [*without] the need for an intervening call to `reset()`. This allows the thread to rejoin the [link boost_asio.reference.io_service `io_service`] object's thread pool without impacting any other threads in the pool.
 
-For example:
 
 
+Performing an asynchronous wait:
 
- boost::asio::io_service io_service;
- ...
- for (;;)
+ void handler(const boost::system::error_code& error)
    {
- try
- {
- io_service.run();
- break; // run() exited normally
- }
- catch (my_exception& e)
+ if (!error)
      {
- // Deal with exception as appropriate.
+ // Timer expired.
      }
    }
 
+ ...
 
+ // Construct a timer with an absolute expiry time.
+ boost::asio::deadline_timer timer(io_service,
+ boost::posix_time::time_from_string("2005-12-07 23:59:59.000"));
 
+ // Start an asynchronous wait.
+ timer.async_wait(handler);
 
 
-[heading Stopping the io_service from running out of work]
-
-
 
-Some applications may need to prevent an [link boost_asio.reference.io_service `io_service`] object's `run()` call from returning when there is no more work to do. For example, the [link boost_asio.reference.io_service `io_service`] may be being run in a background thread that is launched prior to the application's asynchronous operations. The `run()` call may be kept running by creating an object of type [link boost_asio.reference.io_service__work `io_service::work`]:
 
 
+[heading Changing an active deadline_timer's expiry time]
+
 
- boost::asio::io_service io_service;
- boost::asio::io_service::work work(io_service);
- ...
 
+Changing the expiry time of a timer while there are pending asynchronous waits causes those wait operations to be cancelled. To ensure that the action associated with the timer is performed only once, use something like this: used:
 
 
 
-To effect a shutdown, the application will then need to call the [link boost_asio.reference.io_service `io_service`] object's `stop()` member function. This will cause the [link boost_asio.reference.io_service `io_service`] `run()` call to return as soon as possible, abandoning unfinished operations and without permitting ready handlers to be dispatched.
+ void on_some_event()
+ {
+ if (my_timer.expires_from_now(seconds(5)) > 0)
+ {
+ // We managed to cancel the timer. Start new asynchronous wait.
+ my_timer.async_wait(on_timeout);
+ }
+ else
+ {
+ // Too late, timer has already expired!
+ }
+ }
 
-Alternatively, if the application requires that all operations and handlers be allowed to finish normally, the work object may be explicitly destroyed.
+ void on_timeout(const boost::system::error_code& e)
+ {
+ if (e != boost::asio::error::operation_aborted)
+ {
+ // Timer was not cancelled, take necessary action.
+ }
+ }
 
 
 
- boost::asio::io_service io_service;
- auto_ptr<boost::asio::io_service::work> work(
- new boost::asio::io_service::work(io_service));
- ...
- work.reset(); // Allow run() to exit.
 
 
+* The `boost::asio::basic_deadline_timer::expires_from_now()` function cancels any pending asynchronous waits, and returns the number of asynchronous waits that were cancelled. If it returns 0 then you were too late and the wait handler has already been executed, or will soon be executed. If it returns 1 then the wait handler was successfully cancelled.
 
 
+* If a wait handler is cancelled, the boost::system::error\_code passed to it contains the value `boost::asio::error::operation_aborted`.
 
-[heading The io_service class and I/O services]
-
 
 
-Class [link boost_asio.reference.io_service `io_service`] implements an extensible, type-safe, polymorphic set of I/O services, indexed by service type. An object of class [link boost_asio.reference.io_service `io_service`] must be initialised before I/O objects such as sockets, resolvers and timers can be used. These I/O objects are distinguished by having constructors that accept an `io_service&` parameter.
 
-I/O services exist to manage the logical interface to the operating system on behalf of the I/O objects. In particular, there are resources that are shared across a class of I/O objects. For example, timers may be implemented in terms of a single timer queue. The I/O services manage these shared resources.
+[heading Requirements]
 
-Access to the services of an [link boost_asio.reference.io_service `io_service`] is via three function templates, `use_service()`, `add_service()` and `has_service()`.
+[*Header: ][^boost/asio/deadline_timer.hpp]
 
-In a call to `use_service<Service>()`, the type argument chooses a service, making available all members of the named type. If `Service` is not present in an [link boost_asio.reference.io_service `io_service`], an object of type `Service` is created and added to the [link boost_asio.reference.io_service `io_service`]. A C++ program can check if an [link boost_asio.reference.io_service `io_service`] implements a particular service with the function template `has_service<Service>()`.
+[*Convenience header: ][^boost/asio.hpp]
 
-Service objects may be explicitly added to an [link boost_asio.reference.io_service `io_service`] using the function template `add_service<Service>()`. If the `Service` is already present, the [link boost_asio.reference.service_already_exists `service_already_exists`] exception is thrown. If the owner of the service is not the same object as the [link boost_asio.reference.io_service `io_service`] parameter, the [link boost_asio.reference.invalid_service_owner `invalid_service_owner`] exception is thrown.
 
-Once a service reference is obtained from an [link boost_asio.reference.io_service `io_service`] object by calling `use_service()`, that reference remains usable as long as the owning [link boost_asio.reference.io_service `io_service`] object exists.
+[endsect]
 
-All I/O service implementations have [link boost_asio.reference.io_service__service `io_service::service`] as a public base class. Custom I/O services may be implemented by deriving from this class and then added to an [link boost_asio.reference.io_service `io_service`] using the facilities described above.
 
-[heading Requirements]
+[section:deadline_timer_service deadline_timer_service]
 
-[*Header: ][^boost/asio/io_service.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
+Default service implementation for a timer.
 
 
-[section:add_service io_service::add_service]
+ template<
+ typename TimeType,
+ typename ``[link boost_asio.reference.TimeTraits TimeTraits]`` = boost::asio::time_traits<TimeType>>
+ class deadline_timer_service :
+ public io_service::service
 
-[indexterm2 add_service..io_service]
-Add a service object to the [link boost_asio.reference.io_service `io_service`].
 
+[heading Types]
+[table
+ [[Name][Description]]
 
- template<
- typename ``[link boost_asio.reference.Service Service]``>
- friend void add_service(
- io_service & ios,
- Service * svc);
+ [
 
+ [[link boost_asio.reference.deadline_timer_service.duration_type [*duration_type]]]
+ [The duration type. ]
+
+ ]
 
-This function is used to add a service to the [link boost_asio.reference.io_service `io_service`].
+ [
 
+ [[link boost_asio.reference.deadline_timer_service.implementation_type [*implementation_type]]]
+ [The implementation type of the deadline timer. ]
+
+ ]
 
-[heading Parameters]
-
+ [
 
-[variablelist
+ [[link boost_asio.reference.deadline_timer_service.time_type [*time_type]]]
+ [The time type. ]
   
-[[ios][The [link boost_asio.reference.io_service `io_service`] object that owns the service.]]
+ ]
 
-[[svc][The service object. On success, ownership of the service object is transferred to the [link boost_asio.reference.io_service `io_service`]. When the [link boost_asio.reference.io_service `io_service`] object is destroyed, it will destroy the service object by performing:
-``
- delete static_cast<io_service::service*>(svc)
-``
-]]
+ [
 
-]
+ [[link boost_asio.reference.deadline_timer_service.traits_type [*traits_type]]]
+ [The time traits type. ]
+
+ ]
 
+]
 
-[heading Exceptions]
-
+[heading Member Functions]
+[table
+ [[Name][Description]]
 
-[variablelist
+ [
+ [[link boost_asio.reference.deadline_timer_service.async_wait [*async_wait]]]
+ []
+ ]
   
-[[boost::asio::service_already_exists][Thrown if a service of the given type is already present in the [link boost_asio.reference.io_service `io_service`].]]
+ [
+ [[link boost_asio.reference.deadline_timer_service.cancel [*cancel]]]
+ [Cancel any asynchronous wait operations associated with the timer. ]
+ ]
+
+ [
+ [[link boost_asio.reference.deadline_timer_service.cancel_one [*cancel_one]]]
+ [Cancels one asynchronous wait operation associated with the timer. ]
+ ]
+
+ [
+ [[link boost_asio.reference.deadline_timer_service.construct [*construct]]]
+ [Construct a new timer implementation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.deadline_timer_service.deadline_timer_service [*deadline_timer_service]]]
+ [Construct a new timer service for the specified io_service. ]
+ ]
+
+ [
+ [[link boost_asio.reference.deadline_timer_service.destroy [*destroy]]]
+ [Destroy a timer implementation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.deadline_timer_service.expires_at [*expires_at]]]
+ [Get the expiry time for the timer as an absolute time.
 
-[[boost::asio::invalid_service_owner][Thrown if the service's owning [link boost_asio.reference.io_service `io_service`] is not the [link boost_asio.reference.io_service `io_service`] object specified by the ios parameter. ]]
+ Set the expiry time for the timer as an absolute time. ]
+ ]
+
+ [
+ [[link boost_asio.reference.deadline_timer_service.expires_from_now [*expires_from_now]]]
+ [Get the expiry time for the timer relative to now.
 
+ Set the expiry time for the timer relative to now. ]
+ ]
+
+ [
+ [[link boost_asio.reference.deadline_timer_service.get_io_service [*get_io_service]]]
+ [Get the io_service object that owns the service. ]
+ ]
+
+ [
+ [[link boost_asio.reference.deadline_timer_service.wait [*wait]]]
+ []
+ ]
+
 ]
 
+[heading Data Members]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.deadline_timer_service.id [*id]]]
+ [The unique service identifier. ]
+ ]
 
+]
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/io_service.hpp]
+[*Header: ][^boost/asio/deadline_timer_service.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
 
-[endsect]
+[section:async_wait deadline_timer_service::async_wait]
 
+[indexterm2 async_wait..deadline_timer_service]
 
+ template<
+ typename ``[link boost_asio.reference.WaitHandler WaitHandler]``>
+ void async_wait(
+ implementation_type & impl,
+ WaitHandler handler);
 
-[section:dispatch io_service::dispatch]
 
-[indexterm2 dispatch..io_service]
-Request the [link boost_asio.reference.io_service `io_service`] to invoke the given handler.
 
+[endsect]
 
- template<
- typename ``[link boost_asio.reference.CompletionHandler CompletionHandler]``>
- void dispatch(
- CompletionHandler handler);
 
 
-This function is used to ask the [link boost_asio.reference.io_service `io_service`] to execute the given handler.
+[section:cancel deadline_timer_service::cancel]
 
-The [link boost_asio.reference.io_service `io_service`] guarantees that the handler will only be called in a thread in which the `run()`, `run_one()`, `poll()` or `poll_one()` member functions is currently being invoked. The handler may be executed inside this function if the guarantee can be met.
+[indexterm2 cancel..deadline_timer_service]
+Cancel any asynchronous wait operations associated with the timer.
 
 
-[heading Parameters]
-
+ std::size_t cancel(
+ implementation_type & impl,
+ boost::system::error_code & ec);
 
-[variablelist
-
-[[handler][The handler to be called. The [link boost_asio.reference.io_service `io_service`] will make a copy of the handler object as required. The function signature of the handler must be:
-``
- void handler();
-``
-]]
 
-]
 
+[endsect]
 
-[heading Remarks]
-
-This function throws an exception only if:
 
 
-* the handler's `asio_handler_allocate` function; or
-
-
-* the handler's copy constructor
-
-throws an exception.
-
-
-[endsect]
+[section:cancel_one deadline_timer_service::cancel_one]
 
+[indexterm2 cancel_one..deadline_timer_service]
+Cancels one asynchronous wait operation associated with the timer.
 
 
-[section:fork_event io_service::fork_event]
+ std::size_t cancel_one(
+ implementation_type & impl,
+ boost::system::error_code & ec);
 
-[indexterm2 fork_event..io_service]
-Fork-related event notifications.
 
 
- enum fork_event
+[endsect]
 
-[indexterm2 fork_prepare..io_service]
-[indexterm2 fork_parent..io_service]
-[indexterm2 fork_child..io_service]
 
-[heading Values]
-[variablelist
 
- [
- [fork_prepare]
- [Notify the io_service that the process is about to fork. ]
- ]
+[section:construct deadline_timer_service::construct]
 
- [
- [fork_parent]
- [Notify the io_service that the process has forked and is the parent. ]
- ]
+[indexterm2 construct..deadline_timer_service]
+Construct a new timer implementation.
 
- [
- [fork_child]
- [Notify the io_service that the process has forked and is the child. ]
- ]
 
-]
+ void construct(
+ implementation_type & impl);
 
 
 
@@ -53210,608 +53106,678 @@
 
 
 
-[section:has_service io_service::has_service]
-
-[indexterm2 has_service..io_service]
-Determine if an [link boost_asio.reference.io_service `io_service`] contains a specified service type.
-
-
- template<
- typename ``[link boost_asio.reference.Service Service]``>
- friend bool has_service(
- io_service & ios);
+[section:deadline_timer_service deadline_timer_service::deadline_timer_service]
 
+[indexterm2 deadline_timer_service..deadline_timer_service]
+Construct a new timer service for the specified [link boost_asio.reference.io_service `io_service`].
 
-This function is used to determine whether the [link boost_asio.reference.io_service `io_service`] contains a service object corresponding to the given service type.
 
+ deadline_timer_service(
+ boost::asio::io_service & io_service);
 
-[heading Parameters]
-
 
-[variablelist
-
-[[ios][The [link boost_asio.reference.io_service `io_service`] object that owns the service.]]
 
-]
+[endsect]
 
 
-[heading Return Value]
-
-A boolean indicating whether the [link boost_asio.reference.io_service `io_service`] contains the service.
 
+[section:destroy deadline_timer_service::destroy]
 
+[indexterm2 destroy..deadline_timer_service]
+Destroy a timer implementation.
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/io_service.hpp]
+ void destroy(
+ implementation_type & impl);
 
-[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
-[section:io_service io_service::io_service]
-
-[indexterm2 io_service..io_service]
-Constructor.
-
 
- ``[link boost_asio.reference.io_service.io_service.overload1 io_service]``();
- `` [''''&raquo;''' [link boost_asio.reference.io_service.io_service.overload1 more...]]``
+[section:duration_type deadline_timer_service::duration_type]
 
- explicit ``[link boost_asio.reference.io_service.io_service.overload2 io_service]``(
- std::size_t concurrency_hint);
- `` [''''&raquo;''' [link boost_asio.reference.io_service.io_service.overload2 more...]]``
+[indexterm2 duration_type..deadline_timer_service]
+The duration type.
 
 
-[section:overload1 io_service::io_service (1 of 2 overloads)]
+ typedef traits_type::duration_type duration_type;
 
 
-Constructor.
 
+[heading Requirements]
 
- io_service();
+[*Header: ][^boost/asio/deadline_timer_service.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
+[section:expires_at deadline_timer_service::expires_at]
 
-[section:overload2 io_service::io_service (2 of 2 overloads)]
-
+[indexterm2 expires_at..deadline_timer_service]
+Get the expiry time for the timer as an absolute time.
 
-Constructor.
 
+ time_type ``[link boost_asio.reference.deadline_timer_service.expires_at.overload1 expires_at]``(
+ const implementation_type & impl) const;
+ `` [''''&raquo;''' [link boost_asio.reference.deadline_timer_service.expires_at.overload1 more...]]``
 
- io_service(
- std::size_t concurrency_hint);
 
+Set the expiry time for the timer as an absolute time.
 
-Construct with a hint about the required level of concurrency.
 
+ std::size_t ``[link boost_asio.reference.deadline_timer_service.expires_at.overload2 expires_at]``(
+ implementation_type & impl,
+ const time_type & expiry_time,
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.deadline_timer_service.expires_at.overload2 more...]]``
 
-[heading Parameters]
-
 
-[variablelist
-
-[[concurrency_hint][A suggestion to the implementation on how many threads it should allow to run simultaneously. ]]
+[section:overload1 deadline_timer_service::expires_at (1 of 2 overloads)]
 
-]
 
+Get the expiry time for the timer as an absolute time.
 
 
+ time_type expires_at(
+ const implementation_type & impl) const;
 
-[endsect]
 
 
 [endsect]
 
 
-[section:notify_fork io_service::notify_fork]
 
-[indexterm2 notify_fork..io_service]
-Notify the [link boost_asio.reference.io_service `io_service`] of a fork-related event.
+[section:overload2 deadline_timer_service::expires_at (2 of 2 overloads)]
 
 
- void notify_fork(
- boost::asio::io_service::fork_event event);
+Set the expiry time for the timer as an absolute time.
 
 
-This function is used to inform the [link boost_asio.reference.io_service `io_service`] that the process is about to fork, or has just forked. This allows the [link boost_asio.reference.io_service `io_service`], and the services it contains, to perform any necessary housekeeping to ensure correct operation following a fork.
+ std::size_t expires_at(
+ implementation_type & impl,
+ const time_type & expiry_time,
+ boost::system::error_code & ec);
 
-This function must not be called while any other [link boost_asio.reference.io_service `io_service`] function, or any function on an I/O object associated with the [link boost_asio.reference.io_service `io_service`], is being called in another thread. It is, however, safe to call this function from within a completion handler, provided no other thread is accessing the [link boost_asio.reference.io_service `io_service`].
 
 
-[heading Parameters]
-
+[endsect]
 
-[variablelist
-
-[[event][A fork-related event.]]
 
-]
+[endsect]
 
+[section:expires_from_now deadline_timer_service::expires_from_now]
 
-[heading Exceptions]
-
+[indexterm2 expires_from_now..deadline_timer_service]
+Get the expiry time for the timer relative to now.
 
-[variablelist
-
-[[boost::system::system_error][Thrown on failure. If the notification fails the [link boost_asio.reference.io_service `io_service`] object should no longer be used and should be destroyed.]]
 
-]
+ duration_type ``[link boost_asio.reference.deadline_timer_service.expires_from_now.overload1 expires_from_now]``(
+ const implementation_type & impl) const;
+ `` [''''&raquo;''' [link boost_asio.reference.deadline_timer_service.expires_from_now.overload1 more...]]``
 
 
-[heading Example]
-
-The following code illustrates how to incorporate the `notify_fork()` function:
+Set the expiry time for the timer relative to now.
 
- my_io_service.notify_fork(boost::asio::io_service::fork_prepare);
- if (fork() == 0)
- {
- // This is the child process.
- my_io_service.notify_fork(boost::asio::io_service::fork_child);
- }
- else
- {
- // This is the parent process.
- my_io_service.notify_fork(boost::asio::io_service::fork_parent);
- }
+
+ std::size_t ``[link boost_asio.reference.deadline_timer_service.expires_from_now.overload2 expires_from_now]``(
+ implementation_type & impl,
+ const duration_type & expiry_time,
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.deadline_timer_service.expires_from_now.overload2 more...]]``
 
 
+[section:overload1 deadline_timer_service::expires_from_now (1 of 2 overloads)]
 
 
+Get the expiry time for the timer relative to now.
 
-[heading Remarks]
-
-For each service object `svc` in the [link boost_asio.reference.io_service `io_service`] set, performs `svc->fork_service();`. When processing the fork\_prepare event, services are visited in reverse order of the beginning of service object lifetime. Otherwise, services are visited in order of the beginning of service object lifetime.
 
+ duration_type expires_from_now(
+ const implementation_type & impl) const;
 
 
 
 [endsect]
 
 
-[section:poll io_service::poll]
 
-[indexterm2 poll..io_service]
-Run the [link boost_asio.reference.io_service `io_service`] object's event processing loop to execute ready handlers.
+[section:overload2 deadline_timer_service::expires_from_now (2 of 2 overloads)]
 
 
- std::size_t ``[link boost_asio.reference.io_service.poll.overload1 poll]``();
- `` [''''&raquo;''' [link boost_asio.reference.io_service.poll.overload1 more...]]``
+Set the expiry time for the timer relative to now.
 
- std::size_t ``[link boost_asio.reference.io_service.poll.overload2 poll]``(
+
+ std::size_t expires_from_now(
+ implementation_type & impl,
+ const duration_type & expiry_time,
       boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.io_service.poll.overload2 more...]]``
 
 
-[section:overload1 io_service::poll (1 of 2 overloads)]
 
+[endsect]
 
-Run the [link boost_asio.reference.io_service `io_service`] object's event processing loop to execute ready handlers.
 
+[endsect]
 
- std::size_t poll();
 
+[section:get_io_service deadline_timer_service::get_io_service]
 
-The `poll()` function runs handlers that are ready to run, without blocking, until the [link boost_asio.reference.io_service `io_service`] has been stopped or there are no more ready handlers.
 
+['Inherited from io_service.]
 
-[heading Return Value]
-
-The number of handlers that were executed.
+[indexterm2 get_io_service..deadline_timer_service]
+Get the [link boost_asio.reference.io_service `io_service`] object that owns the service.
 
 
-[heading Exceptions]
-
+ boost::asio::io_service & get_io_service();
 
-[variablelist
-
-[[boost::system::system_error][Thrown on failure. ]]
 
-]
 
+[endsect]
 
 
 
-[endsect]
+[section:id deadline_timer_service::id]
 
+[indexterm2 id..deadline_timer_service]
+The unique service identifier.
 
 
-[section:overload2 io_service::poll (2 of 2 overloads)]
+ static boost::asio::io_service::id id;
 
 
-Run the [link boost_asio.reference.io_service `io_service`] object's event processing loop to execute ready handlers.
 
+[endsect]
 
- std::size_t poll(
- boost::system::error_code & ec);
 
 
-The `poll()` function runs handlers that are ready to run, without blocking, until the [link boost_asio.reference.io_service `io_service`] has been stopped or there are no more ready handlers.
+[section:implementation_type deadline_timer_service::implementation_type]
 
+[indexterm2 implementation_type..deadline_timer_service]
+The implementation type of the deadline timer.
 
-[heading Parameters]
-
 
-[variablelist
-
-[[ec][Set to indicate what error occurred, if any.]]
+ typedef implementation_defined implementation_type;
 
-]
 
 
-[heading Return Value]
-
-The number of handlers that were executed.
+[heading Requirements]
 
+[*Header: ][^boost/asio/deadline_timer_service.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
-[endsect]
-
-[section:poll_one io_service::poll_one]
 
-[indexterm2 poll_one..io_service]
-Run the [link boost_asio.reference.io_service `io_service`] object's event processing loop to execute one ready handler.
+[section:time_type deadline_timer_service::time_type]
 
+[indexterm2 time_type..deadline_timer_service]
+The time type.
 
- std::size_t ``[link boost_asio.reference.io_service.poll_one.overload1 poll_one]``();
- `` [''''&raquo;''' [link boost_asio.reference.io_service.poll_one.overload1 more...]]``
 
- std::size_t ``[link boost_asio.reference.io_service.poll_one.overload2 poll_one]``(
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.io_service.poll_one.overload2 more...]]``
+ typedef traits_type::time_type time_type;
 
 
-[section:overload1 io_service::poll_one (1 of 2 overloads)]
 
+[heading Requirements]
 
-Run the [link boost_asio.reference.io_service `io_service`] object's event processing loop to execute one ready handler.
+[*Header: ][^boost/asio/deadline_timer_service.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
- std::size_t poll_one();
 
+[endsect]
 
-The `poll_one()` function runs at most one handler that is ready to run, without blocking.
 
 
-[heading Return Value]
-
-The number of handlers that were executed.
+[section:traits_type deadline_timer_service::traits_type]
 
+[indexterm2 traits_type..deadline_timer_service]
+The time traits type.
 
-[heading Exceptions]
-
 
-[variablelist
-
-[[boost::system::system_error][Thrown on failure. ]]
+ typedef TimeTraits traits_type;
 
-]
 
 
+[heading Requirements]
 
+[*Header: ][^boost/asio/deadline_timer_service.hpp]
 
-[endsect]
+[*Convenience header: ][^boost/asio.hpp]
 
 
+[endsect]
 
-[section:overload2 io_service::poll_one (2 of 2 overloads)]
 
 
-Run the [link boost_asio.reference.io_service `io_service`] object's event processing loop to execute one ready handler.
+[section:wait deadline_timer_service::wait]
 
+[indexterm2 wait..deadline_timer_service]
 
- std::size_t poll_one(
+ void wait(
+ implementation_type & impl,
       boost::system::error_code & ec);
 
 
-The `poll_one()` function runs at most one handler that is ready to run, without blocking.
-
-
-[heading Parameters]
-
 
-[variablelist
-
-[[ec][Set to indicate what error occurred, if any.]]
+[endsect]
 
-]
 
 
-[heading Return Value]
-
-The number of handlers that were executed.
+[endsect]
 
 
+[section:error__addrinfo_category error::addrinfo_category]
 
+[indexterm1 error::addrinfo_category]
 
-[endsect]
+ static const boost::system::error_category & addrinfo_category = boost::asio::error::get_addrinfo_category();
 
 
-[endsect]
+[heading Requirements]
 
+[*Header: ][^boost/asio/error.hpp]
 
-[section:post io_service::post]
+[*Convenience header: ][^boost/asio.hpp]
 
-[indexterm2 post..io_service]
-Request the [link boost_asio.reference.io_service `io_service`] to invoke the given handler and return immediately.
 
+[endsect]
 
- template<
- typename ``[link boost_asio.reference.CompletionHandler CompletionHandler]``>
- void post(
- CompletionHandler handler);
 
 
-This function is used to ask the [link boost_asio.reference.io_service `io_service`] to execute the given handler, but without allowing the [link boost_asio.reference.io_service `io_service`] to call the handler from inside this function.
+[section:error__addrinfo_errors error::addrinfo_errors]
 
-The [link boost_asio.reference.io_service `io_service`] guarantees that the handler will only be called in a thread in which the `run()`, `run_one()`, `poll()` or `poll_one()` member functions is currently being invoked.
+[indexterm1 error::addrinfo_errors]
 
+ enum addrinfo_errors
 
-[heading Parameters]
-
+[indexterm2 service_not_found..error::addrinfo_errors]
+[indexterm2 socket_type_not_supported..error::addrinfo_errors]
 
+[heading Values]
 [variablelist
-
-[[handler][The handler to be called. The [link boost_asio.reference.io_service `io_service`] will make a copy of the handler object as required. The function signature of the handler must be:
-``
- void handler();
-``
-]]
-
-]
 
+ [
+ [service_not_found]
+ [The service is not supported for the given socket type. ]
+ ]
 
-[heading Remarks]
-
-This function throws an exception only if:
+ [
+ [socket_type_not_supported]
+ [The socket type is not supported. ]
+ ]
 
+]
 
-* the handler's `asio_handler_allocate` function; or
 
+[heading Requirements]
 
-* the handler's copy constructor
+[*Header: ][^boost/asio/error.hpp]
 
-throws an exception.
+[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
 
-[section:reset io_service::reset]
+[section:error__basic_errors error::basic_errors]
 
-[indexterm2 reset..io_service]
-Reset the [link boost_asio.reference.io_service `io_service`] in preparation for a subsequent `run()` invocation.
+[indexterm1 error::basic_errors]
 
+ enum basic_errors
 
- void reset();
+[indexterm2 access_denied..error::basic_errors]
+[indexterm2 address_family_not_supported..error::basic_errors]
+[indexterm2 address_in_use..error::basic_errors]
+[indexterm2 already_connected..error::basic_errors]
+[indexterm2 already_started..error::basic_errors]
+[indexterm2 broken_pipe..error::basic_errors]
+[indexterm2 connection_aborted..error::basic_errors]
+[indexterm2 connection_refused..error::basic_errors]
+[indexterm2 connection_reset..error::basic_errors]
+[indexterm2 bad_descriptor..error::basic_errors]
+[indexterm2 fault..error::basic_errors]
+[indexterm2 host_unreachable..error::basic_errors]
+[indexterm2 in_progress..error::basic_errors]
+[indexterm2 interrupted..error::basic_errors]
+[indexterm2 invalid_argument..error::basic_errors]
+[indexterm2 message_size..error::basic_errors]
+[indexterm2 name_too_long..error::basic_errors]
+[indexterm2 network_down..error::basic_errors]
+[indexterm2 network_reset..error::basic_errors]
+[indexterm2 network_unreachable..error::basic_errors]
+[indexterm2 no_descriptors..error::basic_errors]
+[indexterm2 no_buffer_space..error::basic_errors]
+[indexterm2 no_memory..error::basic_errors]
+[indexterm2 no_permission..error::basic_errors]
+[indexterm2 no_protocol_option..error::basic_errors]
+[indexterm2 not_connected..error::basic_errors]
+[indexterm2 not_socket..error::basic_errors]
+[indexterm2 operation_aborted..error::basic_errors]
+[indexterm2 operation_not_supported..error::basic_errors]
+[indexterm2 shut_down..error::basic_errors]
+[indexterm2 timed_out..error::basic_errors]
+[indexterm2 try_again..error::basic_errors]
+[indexterm2 would_block..error::basic_errors]
 
+[heading Values]
+[variablelist
 
-This function must be called prior to any second or later set of invocations of the `run()`, `run_one()`, `poll()` or `poll_one()` functions when a previous invocation of these functions returned due to the [link boost_asio.reference.io_service `io_service`] being stopped or running out of work. After a call to `reset()`, the [link boost_asio.reference.io_service `io_service`] object's `stopped()` function will return `false`.
+ [
+ [access_denied]
+ [Permission denied. ]
+ ]
 
-This function must not be called while there are any unfinished calls to the `run()`, `run_one()`, `poll()` or `poll_one()` functions.
+ [
+ [address_family_not_supported]
+ [Address family not supported by protocol. ]
+ ]
 
+ [
+ [address_in_use]
+ [Address already in use. ]
+ ]
 
-[endsect]
+ [
+ [already_connected]
+ [Transport endpoint is already connected. ]
+ ]
 
+ [
+ [already_started]
+ [Operation already in progress. ]
+ ]
 
-[section:run io_service::run]
+ [
+ [broken_pipe]
+ [Broken pipe. ]
+ ]
 
-[indexterm2 run..io_service]
-Run the [link boost_asio.reference.io_service `io_service`] object's event processing loop.
+ [
+ [connection_aborted]
+ [A connection has been aborted. ]
+ ]
 
+ [
+ [connection_refused]
+ [Connection refused. ]
+ ]
 
- std::size_t ``[link boost_asio.reference.io_service.run.overload1 run]``();
- `` [''''&raquo;''' [link boost_asio.reference.io_service.run.overload1 more...]]``
+ [
+ [connection_reset]
+ [Connection reset by peer. ]
+ ]
 
- std::size_t ``[link boost_asio.reference.io_service.run.overload2 run]``(
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.io_service.run.overload2 more...]]``
+ [
+ [bad_descriptor]
+ [Bad file descriptor. ]
+ ]
 
+ [
+ [fault]
+ [Bad address. ]
+ ]
 
-[section:overload1 io_service::run (1 of 2 overloads)]
+ [
+ [host_unreachable]
+ [No route to host. ]
+ ]
 
+ [
+ [in_progress]
+ [Operation now in progress. ]
+ ]
 
-Run the [link boost_asio.reference.io_service `io_service`] object's event processing loop.
+ [
+ [interrupted]
+ [Interrupted system call. ]
+ ]
 
+ [
+ [invalid_argument]
+ [Invalid argument. ]
+ ]
 
- std::size_t run();
+ [
+ [message_size]
+ [Message too long. ]
+ ]
 
+ [
+ [name_too_long]
+ [The name was too long. ]
+ ]
 
-The `run()` function blocks until all work has finished and there are no more handlers to be dispatched, or until the [link boost_asio.reference.io_service `io_service`] has been stopped.
+ [
+ [network_down]
+ [Network is down. ]
+ ]
 
-Multiple threads may call the `run()` function to set up a pool of threads from which the [link boost_asio.reference.io_service `io_service`] may execute handlers. All threads that are waiting in the pool are equivalent and the [link boost_asio.reference.io_service `io_service`] may choose any one of them to invoke a handler.
+ [
+ [network_reset]
+ [Network dropped connection on reset. ]
+ ]
 
-A normal exit from the `run()` function implies that the [link boost_asio.reference.io_service `io_service`] object is stopped (the `stopped()` function returns `true`). Subsequent calls to `run()`, `run_one()`, `poll()` or `poll_one()` will return immediately unless there is a prior call to `reset()`.
+ [
+ [network_unreachable]
+ [Network is unreachable. ]
+ ]
 
+ [
+ [no_descriptors]
+ [Too many open files. ]
+ ]
 
-[heading Return Value]
-
-The number of handlers that were executed.
+ [
+ [no_buffer_space]
+ [No buffer space available. ]
+ ]
 
+ [
+ [no_memory]
+ [Cannot allocate memory. ]
+ ]
 
-[heading Exceptions]
-
-
-[variablelist
-
-[[boost::system::system_error][Thrown on failure.]]
-
-]
-
-
-[heading Remarks]
-
-The `run()` function must not be called from a thread that is currently calling one of `run()`, `run_one()`, `poll()` or `poll_one()` on the same [link boost_asio.reference.io_service `io_service`] object.
+ [
+ [no_permission]
+ [Operation not permitted. ]
+ ]
 
-The `poll()` function may also be used to dispatch ready handlers, but without blocking.
+ [
+ [no_protocol_option]
+ [Protocol not available. ]
+ ]
 
+ [
+ [not_connected]
+ [Transport endpoint is not connected. ]
+ ]
 
-[endsect]
+ [
+ [not_socket]
+ [Socket operation on non-socket. ]
+ ]
 
+ [
+ [operation_aborted]
+ [Operation cancelled. ]
+ ]
 
+ [
+ [operation_not_supported]
+ [Operation not supported. ]
+ ]
 
-[section:overload2 io_service::run (2 of 2 overloads)]
+ [
+ [shut_down]
+ [Cannot send after transport endpoint shutdown. ]
+ ]
 
+ [
+ [timed_out]
+ [Connection timed out. ]
+ ]
 
-Run the [link boost_asio.reference.io_service `io_service`] object's event processing loop.
+ [
+ [try_again]
+ [Resource temporarily unavailable. ]
+ ]
 
+ [
+ [would_block]
+ [The socket is marked non-blocking and the requested operation would block. ]
+ ]
 
- std::size_t run(
- boost::system::error_code & ec);
+]
 
 
-The `run()` function blocks until all work has finished and there are no more handlers to be dispatched, or until the [link boost_asio.reference.io_service `io_service`] has been stopped.
+[heading Requirements]
 
-Multiple threads may call the `run()` function to set up a pool of threads from which the [link boost_asio.reference.io_service `io_service`] may execute handlers. All threads that are waiting in the pool are equivalent and the [link boost_asio.reference.io_service `io_service`] may choose any one of them to invoke a handler.
+[*Header: ][^boost/asio/error.hpp]
 
-A normal exit from the `run()` function implies that the [link boost_asio.reference.io_service `io_service`] object is stopped (the `stopped()` function returns `true`). Subsequent calls to `run()`, `run_one()`, `poll()` or `poll_one()` will return immediately unless there is a prior call to `reset()`.
+[*Convenience header: ][^boost/asio.hpp]
 
 
-[heading Parameters]
-
+[endsect]
 
-[variablelist
-
-[[ec][Set to indicate what error occurred, if any.]]
 
-]
 
+[section:error__get_addrinfo_category error::get_addrinfo_category]
 
-[heading Return Value]
-
-The number of handlers that were executed.
+[indexterm1 error::get_addrinfo_category]
 
+ const boost::system::error_category & get_addrinfo_category();
 
-[heading Remarks]
-
-The `run()` function must not be called from a thread that is currently calling one of `run()`, `run_one()`, `poll()` or `poll_one()` on the same [link boost_asio.reference.io_service `io_service`] object.
 
-The `poll()` function may also be used to dispatch ready handlers, but without blocking.
+[heading Requirements]
 
+[*Header: ][^boost/asio/error.hpp]
 
-[endsect]
+[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
-[section:run_one io_service::run_one]
-
-[indexterm2 run_one..io_service]
-Run the [link boost_asio.reference.io_service `io_service`] object's event processing loop to execute at most one handler.
 
 
- std::size_t ``[link boost_asio.reference.io_service.run_one.overload1 run_one]``();
- `` [''''&raquo;''' [link boost_asio.reference.io_service.run_one.overload1 more...]]``
+[section:error__get_misc_category error::get_misc_category]
 
- std::size_t ``[link boost_asio.reference.io_service.run_one.overload2 run_one]``(
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.io_service.run_one.overload2 more...]]``
+[indexterm1 error::get_misc_category]
 
+ const boost::system::error_category & get_misc_category();
 
-[section:overload1 io_service::run_one (1 of 2 overloads)]
 
+[heading Requirements]
 
-Run the [link boost_asio.reference.io_service `io_service`] object's event processing loop to execute at most one handler.
+[*Header: ][^boost/asio/error.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
- std::size_t run_one();
 
+[endsect]
 
-The `run_one()` function blocks until one handler has been dispatched, or until the [link boost_asio.reference.io_service `io_service`] has been stopped.
 
 
-[heading Return Value]
-
-The number of handlers that were executed. A zero return value implies that the [link boost_asio.reference.io_service `io_service`] object is stopped (the `stopped()` function returns `true`). Subsequent calls to `run()`, `run_one()`, `poll()` or `poll_one()` will return immediately unless there is a prior call to `reset()`.
+[section:error__get_netdb_category error::get_netdb_category]
 
+[indexterm1 error::get_netdb_category]
 
-[heading Exceptions]
-
+ const boost::system::error_category & get_netdb_category();
 
-[variablelist
-
-[[boost::system::system_error][Thrown on failure. ]]
 
-]
+[heading Requirements]
 
+[*Header: ][^boost/asio/error.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
 
-[section:overload2 io_service::run_one (2 of 2 overloads)]
-
+[section:error__get_ssl_category error::get_ssl_category]
 
-Run the [link boost_asio.reference.io_service `io_service`] object's event processing loop to execute at most one handler.
+[indexterm1 error::get_ssl_category]
 
+ const boost::system::error_category & get_ssl_category();
 
- std::size_t run_one(
- boost::system::error_code & ec);
 
+[heading Requirements]
 
-The `run_one()` function blocks until one handler has been dispatched, or until the [link boost_asio.reference.io_service `io_service`] has been stopped.
+[*Header: ][^boost/asio/ssl/error.hpp]
 
+[*Convenience header: ][^boost/asio/ssl.hpp]
 
-[heading Return Value]
-
-The number of handlers that were executed. A zero return value implies that the [link boost_asio.reference.io_service `io_service`] object is stopped (the `stopped()` function returns `true`). Subsequent calls to `run()`, `run_one()`, `poll()` or `poll_one()` will return immediately unless there is a prior call to `reset()`.
 
-The number of handlers that were executed.
+[endsect]
 
 
 
+[section:error__get_system_category error::get_system_category]
 
-[endsect]
+[indexterm1 error::get_system_category]
 
+ const boost::system::error_category & get_system_category();
 
-[endsect]
 
+[heading Requirements]
 
-[section:stop io_service::stop]
+[*Header: ][^boost/asio/error.hpp]
 
-[indexterm2 stop..io_service]
-Stop the [link boost_asio.reference.io_service `io_service`] object's event processing loop.
+[*Convenience header: ][^boost/asio.hpp]
 
 
- void stop();
+[endsect]
 
 
-This function does not block, but instead simply signals the [link boost_asio.reference.io_service `io_service`] to stop. All invocations of its `run()` or `run_one()` member functions should return as soon as possible. Subsequent calls to `run()`, `run_one()`, `poll()` or `poll_one()` will return immediately until `reset()` is called.
+[section:error__make_error_code error::make_error_code]
 
+[indexterm1 error::make_error_code]
+
+ boost::system::error_code ``[link boost_asio.reference.error__make_error_code.overload1 make_error_code]``(
+ basic_errors e);
+ `` [''''&raquo;''' [link boost_asio.reference.error__make_error_code.overload1 more...]]``
 
-[endsect]
+ boost::system::error_code ``[link boost_asio.reference.error__make_error_code.overload2 make_error_code]``(
+ netdb_errors e);
+ `` [''''&raquo;''' [link boost_asio.reference.error__make_error_code.overload2 more...]]``
 
+ boost::system::error_code ``[link boost_asio.reference.error__make_error_code.overload3 make_error_code]``(
+ addrinfo_errors e);
+ `` [''''&raquo;''' [link boost_asio.reference.error__make_error_code.overload3 more...]]``
 
+ boost::system::error_code ``[link boost_asio.reference.error__make_error_code.overload4 make_error_code]``(
+ misc_errors e);
+ `` [''''&raquo;''' [link boost_asio.reference.error__make_error_code.overload4 more...]]``
 
-[section:stopped io_service::stopped]
+ boost::system::error_code ``[link boost_asio.reference.error__make_error_code.overload5 make_error_code]``(
+ ssl_errors e);
+ `` [''''&raquo;''' [link boost_asio.reference.error__make_error_code.overload5 more...]]``
 
-[indexterm2 stopped..io_service]
-Determine whether the [link boost_asio.reference.io_service `io_service`] object has been stopped.
+[heading Requirements]
 
+[*Header: ][^boost/asio/error.hpp]
 
- bool stopped() const;
+[*Convenience header: ][^boost/asio.hpp]
 
 
-This function is used to determine whether an [link boost_asio.reference.io_service `io_service`] object has been stopped, either through an explicit call to `stop()`, or due to running out of work. When an [link boost_asio.reference.io_service `io_service`] object is stopped, calls to `run()`, `run_one()`, `poll()` or `poll_one()` will return immediately without invoking any handlers.
+[section:overload1 error::make_error_code (1 of 5 overloads)]
 
 
-[heading Return Value]
-
-`true` if the [link boost_asio.reference.io_service `io_service`] object is stopped, otherwise `false`.
 
+ boost::system::error_code make_error_code(
+ basic_errors e);
 
 
 
@@ -53819,275 +53785,257 @@
 
 
 
-[section:use_service io_service::use_service]
+[section:overload2 error::make_error_code (2 of 5 overloads)]
 
-[indexterm2 use_service..io_service]
-Obtain the service object corresponding to the given type.
 
 
- template<
- typename ``[link boost_asio.reference.Service Service]``>
- friend Service & use_service(
- io_service & ios);
+ boost::system::error_code make_error_code(
+ netdb_errors e);
 
 
-This function is used to locate a service object that corresponds to the given service type. If there is no existing implementation of the service, then the [link boost_asio.reference.io_service `io_service`] will create a new instance of the service.
 
+[endsect]
 
-[heading Parameters]
-
 
-[variablelist
-
-[[ios][The [link boost_asio.reference.io_service `io_service`] object that owns the service.]]
 
-]
+[section:overload3 error::make_error_code (3 of 5 overloads)]
 
 
-[heading Return Value]
-
-The service interface implementing the specified service type. Ownership of the service interface is not transferred to the caller.
 
+ boost::system::error_code make_error_code(
+ addrinfo_errors e);
 
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/io_service.hpp]
+[endsect]
 
-[*Convenience header: ][^boost/asio.hpp]
 
 
-[endsect]
+[section:overload4 error::make_error_code (4 of 5 overloads)]
 
 
 
-[section:wrap io_service::wrap]
+ boost::system::error_code make_error_code(
+ misc_errors e);
 
-[indexterm2 wrap..io_service]
-Create a new handler that automatically dispatches the wrapped handler on the [link boost_asio.reference.io_service `io_service`].
 
 
- template<
- typename ``[link boost_asio.reference.Handler Handler]``>
- unspecified wrap(
- Handler handler);
+[endsect]
 
 
-This function is used to create a new handler function object that, when invoked, will automatically pass the wrapped handler to the [link boost_asio.reference.io_service `io_service`] object's dispatch function.
 
+[section:overload5 error::make_error_code (5 of 5 overloads)]
 
-[heading Parameters]
-
 
-[variablelist
-
-[[handler][The handler to be wrapped. The [link boost_asio.reference.io_service `io_service`] will make a copy of the handler object as required. The function signature of the handler must be:
-``
- void handler(A1 a1, ... An an);
-``
-]]
 
-]
+ boost::system::error_code make_error_code(
+ ssl_errors e);
 
 
-[heading Return Value]
-
-A function object that, when invoked, passes the wrapped handler to the [link boost_asio.reference.io_service `io_service`] object's dispatch function. Given a function object with the signature:
 
- R f(A1 a1, ... An an);
+[endsect]
 
 
-If this function object is passed to the wrap function like so:
+[endsect]
 
- io_service.wrap(f);
 
+[section:error__misc_category error::misc_category]
 
-then the return value is a function object with the signature
+[indexterm1 error::misc_category]
 
- void g(A1 a1, ... An an);
+ static const boost::system::error_category & misc_category = boost::asio::error::get_misc_category();
 
 
-that, when invoked, executes code equivalent to:
+[heading Requirements]
 
- io_service.dispatch(boost::bind(f, a1, ... an));
+[*Header: ][^boost/asio/error.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
 
+[endsect]
 
 
 
+[section:error__misc_errors error::misc_errors]
 
-[endsect]
+[indexterm1 error::misc_errors]
 
+ enum misc_errors
 
+[indexterm2 already_open..error::misc_errors]
+[indexterm2 eof..error::misc_errors]
+[indexterm2 not_found..error::misc_errors]
+[indexterm2 fd_set_failure..error::misc_errors]
 
-[section:_io_service io_service::~io_service]
+[heading Values]
+[variablelist
 
-[indexterm2 ~io_service..io_service]
-Destructor.
+ [
+ [already_open]
+ [Already open. ]
+ ]
 
+ [
+ [eof]
+ [End of file or stream. ]
+ ]
 
- ~io_service();
+ [
+ [not_found]
+ [Element not found. ]
+ ]
+
+ [
+ [fd_set_failure]
+ [The descriptor cannot fit into the select system call's fd_set. ]
+ ]
 
+]
 
-On destruction, the [link boost_asio.reference.io_service `io_service`] performs the following sequence of operations:
 
+[heading Requirements]
 
-* For each service object `svc` in the [link boost_asio.reference.io_service `io_service`] set, in reverse order of the beginning of service object lifetime, performs `svc->shutdown_service()`.
+[*Header: ][^boost/asio/error.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
-* Uninvoked handler objects that were scheduled for deferred invocation on the [link boost_asio.reference.io_service `io_service`], or any associated strand, are destroyed.
 
+[endsect]
 
-* For each service object `svc` in the [link boost_asio.reference.io_service `io_service`] set, in reverse order of the beginning of service object lifetime, performs `delete static_cast<io_service::service*>(svc)`.
 
 
-[heading Remarks]
-
-The destruction sequence described above permits programs to simplify their resource management by using `shared_ptr<>`. Where an object's lifetime is tied to the lifetime of a connection (or some other sequence of asynchronous operations), a `shared_ptr` to the object would be bound into the handlers for all asynchronous operations associated with it. This works as follows:
+[section:error__netdb_category error::netdb_category]
 
+[indexterm1 error::netdb_category]
 
-* When a single connection ends, all associated asynchronous operations complete. The corresponding handler objects are destroyed, and all `shared_ptr` references to the objects are destroyed.
+ static const boost::system::error_category & netdb_category = boost::asio::error::get_netdb_category();
 
 
-* To shut down the whole program, the [link boost_asio.reference.io_service `io_service`] function `stop()` is called to terminate any `run()` calls as soon as possible. The [link boost_asio.reference.io_service `io_service`] destructor defined above destroys all handlers, causing all `shared_ptr` references to all connection objects to be destroyed.
+[heading Requirements]
 
+[*Header: ][^boost/asio/error.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
 
-[endsect]
+[section:error__netdb_errors error::netdb_errors]
 
-[section:io_service__id io_service::id]
+[indexterm1 error::netdb_errors]
 
+ enum netdb_errors
 
-Class used to uniquely identify a service.
+[indexterm2 host_not_found..error::netdb_errors]
+[indexterm2 host_not_found_try_again..error::netdb_errors]
+[indexterm2 no_data..error::netdb_errors]
+[indexterm2 no_recovery..error::netdb_errors]
 
+[heading Values]
+[variablelist
 
- class id :
- noncopyable
+ [
+ [host_not_found]
+ [Host not found (authoritative). ]
+ ]
 
+ [
+ [host_not_found_try_again]
+ [Host not found (non-authoritative). ]
+ ]
 
-[heading Member Functions]
-[table
- [[Name][Description]]
+ [
+ [no_data]
+ [The query is valid but does not have associated address data. ]
+ ]
 
   [
- [[link boost_asio.reference.io_service__id.id [*id]]]
- [Constructor. ]
+ [no_recovery]
+ [A non-recoverable error occurred. ]
   ]
-
+
 ]
 
+
 [heading Requirements]
 
-[*Header: ][^boost/asio/io_service.hpp]
+[*Header: ][^boost/asio/error.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
 
-[section:id io_service::id::id]
+[endsect]
 
-[indexterm2 id..io_service::id]
-Constructor.
 
 
- id();
+[section:error__ssl_category error::ssl_category]
 
+[indexterm1 error::ssl_category]
 
+ static const boost::system::error_category & ssl_category = boost::asio::error::get_ssl_category();
 
-[endsect]
 
+[heading Requirements]
 
+[*Header: ][^boost/asio/ssl/error.hpp]
 
-[endsect]
+[*Convenience header: ][^boost/asio/ssl.hpp]
 
-[section:io_service__service io_service::service]
 
+[endsect]
 
-Base class for all [link boost_asio.reference.io_service `io_service`] services.
 
 
- class service :
- noncopyable
+[section:error__ssl_errors error::ssl_errors]
 
+[indexterm1 error::ssl_errors]
 
-[heading Member Functions]
-[table
- [[Name][Description]]
+ enum ssl_errors
 
- [
- [[link boost_asio.reference.io_service__service.get_io_service [*get_io_service]]]
- [Get the io_service object that owns the service. ]
- ]
-
-]
 
-[heading Protected Member Functions]
-[table
- [[Name][Description]]
+[heading Requirements]
 
- [
- [[link boost_asio.reference.io_service__service.service [*service]]]
- [Constructor. ]
- ]
-
- [
- [[link boost_asio.reference.io_service__service._service [*~service]]]
- [Destructor. ]
- ]
-
-]
+[*Header: ][^boost/asio/ssl/error.hpp]
 
-[heading Private Member Functions]
-[table
- [[Name][Description]]
+[*Convenience header: ][^boost/asio/ssl.hpp]
 
- [
- [[link boost_asio.reference.io_service__service.fork_service [*fork_service]]]
- [Handle notification of a fork-related event to perform any necessary housekeeping. ]
- ]
-
- [
- [[link boost_asio.reference.io_service__service.shutdown_service [*shutdown_service]]]
- [Destroy all user-defined handler objects owned by the service. ]
- ]
-
-]
 
-[heading Requirements]
+[endsect]
 
-[*Header: ][^boost/asio/io_service.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
 
+[section:error__system_category error::system_category]
 
-[section:get_io_service io_service::service::get_io_service]
+[indexterm1 error::system_category]
 
-[indexterm2 get_io_service..io_service::service]
-Get the [link boost_asio.reference.io_service `io_service`] object that owns the service.
+ static const boost::system::error_category & system_category = boost::asio::error::get_system_category();
 
 
- boost::asio::io_service & get_io_service();
+[heading Requirements]
 
+[*Header: ][^boost/asio/error.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
 
-[section:service io_service::service::service]
+[section:has_service has_service]
 
-[indexterm2 service..io_service::service]
-Constructor.
+[indexterm1 has_service]
 
+ template<
+ typename ``[link boost_asio.reference.Service Service]``>
+ bool has_service(
+ io_service & ios);
 
- service(
- boost::asio::io_service & owner);
 
+This function is used to determine whether the [link boost_asio.reference.io_service `io_service`] contains a service object corresponding to the given service type.
 
 
 [heading Parameters]
@@ -54095,694 +54043,792 @@
 
 [variablelist
   
-[[owner][The [link boost_asio.reference.io_service `io_service`] object that owns the service. ]]
+[[ios][The [link boost_asio.reference.io_service `io_service`] object that owns the service.]]
 
 ]
 
 
+[heading Return Value]
+
+A boolean indicating whether the [link boost_asio.reference.io_service `io_service`] contains the service.
 
 
-[endsect]
-
-
-
-[section:_service io_service::service::~service]
-
-[indexterm2 ~service..io_service::service]
-Destructor.
 
+[heading Requirements]
 
- virtual ~service();
+[*Header: ][^boost/asio/io_service.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
 
-[section:fork_service io_service::service::fork_service]
-
-[indexterm2 fork_service..io_service::service]
-Handle notification of a fork-related event to perform any necessary housekeeping.
-
-
- virtual void fork_service(
- boost::asio::io_service::fork_event event);
-
-
-This function is not a pure virtual so that services only have to implement it if necessary. The default implementation does nothing.
-
-
-[endsect]
+[section:high_resolution_timer high_resolution_timer]
 
+[indexterm1 high_resolution_timer]
+Typedef for a timer based on the high resolution clock.
 
 
-[section:shutdown_service io_service::service::shutdown_service]
+ typedef basic_waitable_timer< chrono::high_resolution_clock > high_resolution_timer;
 
-[indexterm2 shutdown_service..io_service::service]
-Destroy all user-defined handler objects owned by the service.
 
+[heading Types]
+[table
+ [[Name][Description]]
 
- void shutdown_service();
+ [
 
+ [[link boost_asio.reference.basic_waitable_timer.clock_type [*clock_type]]]
+ [The clock type. ]
+
+ ]
 
+ [
 
-[endsect]
+ [[link boost_asio.reference.basic_waitable_timer.duration [*duration]]]
+ [The duration type of the clock. ]
+
+ ]
 
+ [
 
+ [[link boost_asio.reference.basic_waitable_timer.implementation_type [*implementation_type]]]
+ [The underlying implementation type of I/O object. ]
+
+ ]
 
-[endsect]
+ [
 
-[section:io_service__strand io_service::strand]
+ [[link boost_asio.reference.basic_waitable_timer.service_type [*service_type]]]
+ [The type of the service that will be used to provide I/O operations. ]
+
+ ]
 
+ [
 
-Provides serialised handler execution.
+ [[link boost_asio.reference.basic_waitable_timer.time_point [*time_point]]]
+ [The time point type of the clock. ]
+
+ ]
 
+ [
 
- class strand
+ [[link boost_asio.reference.basic_waitable_timer.traits_type [*traits_type]]]
+ [The wait traits type. ]
+
+ ]
 
+]
 
 [heading Member Functions]
 [table
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.io_service__strand.dispatch [*dispatch]]]
- [Request the strand to invoke the given handler. ]
+ [[link boost_asio.reference.basic_waitable_timer.async_wait [*async_wait]]]
+ [Start an asynchronous wait on the timer. ]
   ]
   
   [
- [[link boost_asio.reference.io_service__strand.get_io_service [*get_io_service]]]
- [Get the io_service associated with the strand. ]
+ [[link boost_asio.reference.basic_waitable_timer.basic_waitable_timer [*basic_waitable_timer]]]
+ [Constructor.
+
+ Constructor to set a particular expiry time as an absolute time.
+
+ Constructor to set a particular expiry time relative to now. ]
   ]
   
   [
- [[link boost_asio.reference.io_service__strand.post [*post]]]
- [Request the strand to invoke the given handler and return immediately. ]
+ [[link boost_asio.reference.basic_waitable_timer.cancel [*cancel]]]
+ [Cancel any asynchronous operations that are waiting on the timer. ]
   ]
   
   [
- [[link boost_asio.reference.io_service__strand.strand [*strand]]]
- [Constructor. ]
+ [[link boost_asio.reference.basic_waitable_timer.cancel_one [*cancel_one]]]
+ [Cancels one asynchronous operation that is waiting on the timer. ]
   ]
   
   [
- [[link boost_asio.reference.io_service__strand.wrap [*wrap]]]
- [Create a new handler that automatically dispatches the wrapped handler on the strand. ]
+ [[link boost_asio.reference.basic_waitable_timer.expires_at [*expires_at]]]
+ [Get the timer's expiry time as an absolute time.
+
+ Set the timer's expiry time as an absolute time. ]
   ]
   
   [
- [[link boost_asio.reference.io_service__strand._strand [*~strand]]]
- [Destructor. ]
+ [[link boost_asio.reference.basic_waitable_timer.expires_from_now [*expires_from_now]]]
+ [Get the timer's expiry time relative to now.
+
+ Set the timer's expiry time relative to now. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_waitable_timer.get_io_service [*get_io_service]]]
+ [Get the io_service associated with the object. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_waitable_timer.wait [*wait]]]
+ [Perform a blocking wait on the timer. ]
   ]
   
 ]
 
-The [link boost_asio.reference.io_service__strand `io_service::strand`] class provides the ability to post and dispatch handlers with the guarantee that none of those handlers will execute concurrently.
-
+[heading Protected Member Functions]
+[table
+ [[Name][Description]]
 
-[heading Order of handler invocation]
+ [
+ [[link boost_asio.reference.basic_waitable_timer.get_implementation [*get_implementation]]]
+ [Get the underlying implementation of the I/O object. ]
+ ]
   
-Given:
-
-
-* a strand object `s`
+ [
+ [[link boost_asio.reference.basic_waitable_timer.get_service [*get_service]]]
+ [Get the service associated with the I/O object. ]
+ ]
+
+]
 
+[heading Protected Data Members]
+[table
+ [[Name][Description]]
 
-* an object `a` meeting completion handler requirements
+ [
+ [[link boost_asio.reference.basic_waitable_timer.implementation [*implementation]]]
+ [(Deprecated: Use get_implementation().) The underlying implementation of the I/O object. ]
+ ]
 
+ [
+ [[link boost_asio.reference.basic_waitable_timer.service [*service]]]
+ [(Deprecated: Use get_service().) The service associated with the I/O object. ]
+ ]
 
-* an object `a1` which is an arbitrary copy of `a` made by the implementation
+]
 
+The [link boost_asio.reference.basic_waitable_timer `basic_waitable_timer`] class template provides the ability to perform a blocking or asynchronous wait for a timer to expire.
 
-* an object `b` meeting completion handler requirements
+A waitable timer is always in one of two states: "expired" or "not expired". If the `wait()` or `async_wait()` function is called on an expired timer, the wait operation will complete immediately.
 
+Most applications will use the boost::asio::waitable\_timer typedef.
 
-* an object `b1` which is an arbitrary copy of `b` made by the implementation
 
-if any of the following conditions are true:
+[heading Remarks]
+
+This waitable timer functionality is for use with the C++11 standard library's `<chrono>` facility, or with the Boost.Chrono library.
 
 
-* `s.post(a)` happens-before `s.post(b)`
+[heading Thread Safety]
+
+[*Distinct] [*objects:] Safe.
 
+[*Shared] [*objects:] Unsafe.
 
-* `s.post(a)` happens-before `s.dispatch(b)`, where the latter is performed outside the strand
 
+[heading Examples]
+
+Performing a blocking wait:
 
-* `s.dispatch(a)` happens-before `s.post(b)`, where the former is performed outside the strand
+ // Construct a timer without setting an expiry time.
+ boost::asio::waitable_timer timer(io_service);
 
+ // Set an expiry time relative to now.
+ timer.expires_from_now(boost::posix_time::seconds(5));
 
-* `s.dispatch(a)` happens-before `s.dispatch(b)`, where both are performed outside the strand
+ // Wait for the timer to expire.
+ timer.wait();
 
-then `asio_handler_invoke(a1, &a1)` happens-before `asio_handler_invoke(b1, &b1)`.
 
-Note that in the following case:
 
- async_op_1(..., s.wrap(a));
- async_op_2(..., s.wrap(b));
 
 
-the completion of the first async operation will perform `s.dispatch(a)`, and the second will perform `s.dispatch(b)`, but the order in which those are performed is unspecified. That is, you cannot state whether one happens-before the other. Therefore none of the above conditions are met and no ordering guarantee is made.
+Performing an asynchronous wait:
 
+ void handler(const boost::system::error_code& error)
+ {
+ if (!error)
+ {
+ // Timer expired.
+ }
+ }
 
-[heading Thread Safety]
-
-[*Distinct] [*objects:] Safe.
+ ...
 
-[*Shared] [*objects:] Safe.
+ // Construct a timer with an absolute expiry time.
+ boost::asio::waitable_timer timer(io_service,
+ boost::posix_time::time_from_string("2005-12-07 23:59:59.000"));
 
+ // Start an asynchronous wait.
+ timer.async_wait(handler);
 
 
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/strand.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
+[heading Changing an active waitable_timer's expiry time]
+
 
 
-[section:dispatch io_service::strand::dispatch]
+Changing the expiry time of a timer while there are pending asynchronous waits causes those wait operations to be cancelled. To ensure that the action associated with the timer is performed only once, use something like this: used:
 
-[indexterm2 dispatch..io_service::strand]
-Request the strand to invoke the given handler.
 
 
- template<
- typename ``[link boost_asio.reference.CompletionHandler CompletionHandler]``>
- void dispatch(
- CompletionHandler handler);
+ void on_some_event()
+ {
+ if (my_timer.expires_from_now(seconds(5)) > 0)
+ {
+ // We managed to cancel the timer. Start new asynchronous wait.
+ my_timer.async_wait(on_timeout);
+ }
+ else
+ {
+ // Too late, timer has already expired!
+ }
+ }
 
+ void on_timeout(const boost::system::error_code& e)
+ {
+ if (e != boost::asio::error::operation_aborted)
+ {
+ // Timer was not cancelled, take necessary action.
+ }
+ }
 
-This function is used to ask the strand to execute the given handler.
 
-The strand object guarantees that handlers posted or dispatched through the strand will not be executed concurrently. The handler may be executed inside this function if the guarantee can be met. If this function is called from within a handler that was posted or dispatched through the same strand, then the new handler will be executed immediately.
 
-The strand's guarantee is in addition to the guarantee provided by the underlying [link boost_asio.reference.io_service `io_service`]. The [link boost_asio.reference.io_service `io_service`] guarantees that the handler will only be called in a thread in which the io\_service's run member function is currently being invoked.
 
 
-[heading Parameters]
-
+* The `boost::asio::basic_waitable_timer::expires_from_now()` function cancels any pending asynchronous waits, and returns the number of asynchronous waits that were cancelled. If it returns 0 then you were too late and the wait handler has already been executed, or will soon be executed. If it returns 1 then the wait handler was successfully cancelled.
 
-[variablelist
-
-[[handler][The handler to be called. The strand will make a copy of the handler object as required. The function signature of the handler must be:
-``
- void handler();
-``
-]]
 
-]
+* If a wait handler is cancelled, the boost::system::error\_code passed to it contains the value `boost::asio::error::operation_aborted`.
 
 
 
 
-[endsect]
+This typedef uses the C++11 `<chrono>` standard library facility, if available. Otherwise, it may use the Boost.Chrono library. To explicitly utilise Boost.Chrono, use the [link boost_asio.reference.basic_waitable_timer `basic_waitable_timer`] template directly:
 
+ typedef basic_waitable_timer<boost::chrono::high_resolution_clock> timer;
 
 
-[section:get_io_service io_service::strand::get_io_service]
 
-[indexterm2 get_io_service..io_service::strand]
-Get the [link boost_asio.reference.io_service `io_service`] associated with the strand.
 
+[heading Requirements]
 
- boost::asio::io_service & get_io_service();
+[*Header: ][^boost/asio/high_resolution_timer.hpp]
 
+[*Convenience header: ]None
 
-This function may be used to obtain the [link boost_asio.reference.io_service `io_service`] object that the strand uses to dispatch handlers for asynchronous operations.
 
+[endsect]
 
-[heading Return Value]
-
-A reference to the [link boost_asio.reference.io_service `io_service`] object that the strand will use to dispatch handlers. Ownership is not transferred to the caller.
 
+[section:invalid_service_owner invalid_service_owner]
 
 
+Exception thrown when trying to add a service object to an [link boost_asio.reference.io_service `io_service`] where the service has a different owner.
 
-[endsect]
 
+ class invalid_service_owner
 
 
-[section:post io_service::strand::post]
+[heading Member Functions]
+[table
+ [[Name][Description]]
 
-[indexterm2 post..io_service::strand]
-Request the strand to invoke the given handler and return immediately.
+ [
+ [[link boost_asio.reference.invalid_service_owner.invalid_service_owner [*invalid_service_owner]]]
+ []
+ ]
+
+]
 
+[heading Requirements]
 
- template<
- typename ``[link boost_asio.reference.CompletionHandler CompletionHandler]``>
- void post(
- CompletionHandler handler);
+[*Header: ][^boost/asio/io_service.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
-This function is used to ask the strand to execute the given handler, but without allowing the strand to call the handler from inside this function.
 
-The strand object guarantees that handlers posted or dispatched through the strand will not be executed concurrently. The strand's guarantee is in addition to the guarantee provided by the underlying [link boost_asio.reference.io_service `io_service`]. The [link boost_asio.reference.io_service `io_service`] guarantees that the handler will only be called in a thread in which the io\_service's run member function is currently being invoked.
+[section:invalid_service_owner invalid_service_owner::invalid_service_owner]
 
+[indexterm2 invalid_service_owner..invalid_service_owner]
 
-[heading Parameters]
-
+ invalid_service_owner();
 
-[variablelist
-
-[[handler][The handler to be called. The strand will make a copy of the handler object as required. The function signature of the handler must be:
-``
- void handler();
-``
-]]
 
-]
 
+[endsect]
 
 
 
 [endsect]
 
+[section:io_service io_service]
 
 
-[section:strand io_service::strand::strand]
+Provides core I/O functionality.
 
-[indexterm2 strand..io_service::strand]
-Constructor.
 
+ class io_service :
+ noncopyable
 
- strand(
- boost::asio::io_service & io_service);
 
+[heading Types]
+[table
+ [[Name][Description]]
 
-Constructs the strand.
+ [
 
+ [[link boost_asio.reference.io_service__id [*id]]]
+ [Class used to uniquely identify a service. ]
+
+ ]
 
-[heading Parameters]
-
+ [
 
-[variablelist
+ [[link boost_asio.reference.io_service__service [*service]]]
+ [Base class for all io_service services. ]
   
-[[io_service][The [link boost_asio.reference.io_service `io_service`] object that the strand will use to dispatch handlers that are ready to be run. ]]
-
-]
+ ]
 
+ [
 
+ [[link boost_asio.reference.io_service__strand [*strand]]]
+ [Provides serialised handler execution. ]
+
+ ]
 
+ [
 
-[endsect]
+ [[link boost_asio.reference.io_service__work [*work]]]
+ [Class to inform the io_service when it has work to do. ]
+
+ ]
 
+ [
 
+ [[link boost_asio.reference.io_service.fork_event [*fork_event]]]
+ [Fork-related event notifications. ]
+
+ ]
 
-[section:wrap io_service::strand::wrap]
+]
 
-[indexterm2 wrap..io_service::strand]
-Create a new handler that automatically dispatches the wrapped handler on the strand.
+[heading Member Functions]
+[table
+ [[Name][Description]]
 
+ [
+ [[link boost_asio.reference.io_service.dispatch [*dispatch]]]
+ [Request the io_service to invoke the given handler. ]
+ ]
+
+ [
+ [[link boost_asio.reference.io_service.io_service [*io_service]]]
+ [Constructor. ]
+ ]
+
+ [
+ [[link boost_asio.reference.io_service.notify_fork [*notify_fork]]]
+ [Notify the io_service of a fork-related event. ]
+ ]
+
+ [
+ [[link boost_asio.reference.io_service.poll [*poll]]]
+ [Run the io_service object's event processing loop to execute ready handlers. ]
+ ]
+
+ [
+ [[link boost_asio.reference.io_service.poll_one [*poll_one]]]
+ [Run the io_service object's event processing loop to execute one ready handler. ]
+ ]
+
+ [
+ [[link boost_asio.reference.io_service.post [*post]]]
+ [Request the io_service to invoke the given handler and return immediately. ]
+ ]
+
+ [
+ [[link boost_asio.reference.io_service.reset [*reset]]]
+ [Reset the io_service in preparation for a subsequent run() invocation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.io_service.run [*run]]]
+ [Run the io_service object's event processing loop. ]
+ ]
+
+ [
+ [[link boost_asio.reference.io_service.run_one [*run_one]]]
+ [Run the io_service object's event processing loop to execute at most one handler. ]
+ ]
+
+ [
+ [[link boost_asio.reference.io_service.stop [*stop]]]
+ [Stop the io_service object's event processing loop. ]
+ ]
+
+ [
+ [[link boost_asio.reference.io_service.stopped [*stopped]]]
+ [Determine whether the io_service object has been stopped. ]
+ ]
+
+ [
+ [[link boost_asio.reference.io_service.wrap [*wrap]]]
+ [Create a new handler that automatically dispatches the wrapped handler on the io_service. ]
+ ]
+
+ [
+ [[link boost_asio.reference.io_service._io_service [*~io_service]]]
+ [Destructor. ]
+ ]
+
+]
 
- template<
- typename ``[link boost_asio.reference.Handler Handler]``>
- unspecified wrap(
- Handler handler);
+[heading Friends]
+[table
+ [[Name][Description]]
 
+ [
+ [[link boost_asio.reference.io_service.add_service [*add_service]]]
+ [Add a service object to the io_service. ]
+ ]
+
+ [
+ [[link boost_asio.reference.io_service.has_service [*has_service]]]
+ [Determine if an io_service contains a specified service type. ]
+ ]
+
+ [
+ [[link boost_asio.reference.io_service.use_service [*use_service]]]
+ [Obtain the service object corresponding to the given type. ]
+ ]
+
+]
 
-This function is used to create a new handler function object that, when invoked, will automatically pass the wrapped handler to the strand's dispatch function.
+The [link boost_asio.reference.io_service `io_service`] class provides the core I/O functionality for users of the asynchronous I/O objects, including:
 
 
-[heading Parameters]
-
+* `boost::asio::ip::tcp::socket`
 
-[variablelist
-
-[[handler][The handler to be wrapped. The strand will make a copy of the handler object as required. The function signature of the handler must be:
-``
- void handler(A1 a1, ... An an);
-``
-]]
+* `boost::asio::ip::tcp::acceptor`
 
-]
+* `boost::asio::ip::udp::socket`
 
+* [link boost_asio.reference.deadline_timer `deadline_timer`].
 
-[heading Return Value]
-
-A function object that, when invoked, passes the wrapped handler to the strand's dispatch function. Given a function object with the signature:
+The [link boost_asio.reference.io_service `io_service`] class also includes facilities intended for developers of custom asynchronous services.
 
- R f(A1 a1, ... An an);
 
+[heading Thread Safety]
+
+[*Distinct] [*objects:] Safe.
 
-If this function object is passed to the wrap function like so:
+[*Shared] [*objects:] Safe, with the specific exceptions of the `reset()` and `notify_fork()` functions. Calling `reset()` while there are unfinished `run()`, `run_one()`, `poll()` or `poll_one()` calls results in undefined behaviour. The `notify_fork()` function should not be called while any [link boost_asio.reference.io_service `io_service`] function, or any function on an I/O object that is associated with the [link boost_asio.reference.io_service `io_service`], is being called in another thread.
 
- strand.wrap(f);
 
 
-then the return value is a function object with the signature
+[heading Synchronous and asynchronous operations]
+
 
- void g(A1 a1, ... An an);
 
+Synchronous operations on I/O objects implicitly run the [link boost_asio.reference.io_service `io_service`] object for an individual operation. The [link boost_asio.reference.io_service `io_service`] functions `run()`, `run_one()`, `poll()` or `poll_one()` must be called for the [link boost_asio.reference.io_service `io_service`] to perform asynchronous operations on behalf of a C++ program. Notification that an asynchronous operation has completed is delivered by invocation of the associated handler. Handlers are invoked only by a thread that is currently calling any overload of `run()`, `run_one()`, `poll()` or `poll_one()` for the [link boost_asio.reference.io_service `io_service`].
 
-that, when invoked, executes code equivalent to:
 
- strand.dispatch(boost::bind(f, a1, ... an));
+[heading Effect of exceptions thrown from handlers]
+
 
 
+If an exception is thrown from a handler, the exception is allowed to propagate through the throwing thread's invocation of `run()`, `run_one()`, `poll()` or `poll_one()`. No other threads that are calling any of these functions are affected. It is then the responsibility of the application to catch the exception.
 
+After the exception has been caught, the `run()`, `run_one()`, `poll()` or `poll_one()` call may be restarted [*without] the need for an intervening call to `reset()`. This allows the thread to rejoin the [link boost_asio.reference.io_service `io_service`] object's thread pool without impacting any other threads in the pool.
 
+For example:
 
 
 
-[endsect]
+ boost::asio::io_service io_service;
+ ...
+ for (;;)
+ {
+ try
+ {
+ io_service.run();
+ break; // run() exited normally
+ }
+ catch (my_exception& e)
+ {
+ // Deal with exception as appropriate.
+ }
+ }
 
 
 
-[section:_strand io_service::strand::~strand]
 
-[indexterm2 ~strand..io_service::strand]
-Destructor.
 
+[heading Stopping the io_service from running out of work]
+
 
- ~strand();
 
+Some applications may need to prevent an [link boost_asio.reference.io_service `io_service`] object's `run()` call from returning when there is no more work to do. For example, the [link boost_asio.reference.io_service `io_service`] may be being run in a background thread that is launched prior to the application's asynchronous operations. The `run()` call may be kept running by creating an object of type [link boost_asio.reference.io_service__work `io_service::work`]:
 
-Destroys a strand.
 
-Handlers posted through the strand that have not yet been invoked will still be dispatched in a way that meets the guarantee of non-concurrency.
 
+ boost::asio::io_service io_service;
+ boost::asio::io_service::work work(io_service);
+ ...
 
-[endsect]
 
 
 
-[endsect]
+To effect a shutdown, the application will then need to call the [link boost_asio.reference.io_service `io_service`] object's `stop()` member function. This will cause the [link boost_asio.reference.io_service `io_service`] `run()` call to return as soon as possible, abandoning unfinished operations and without permitting ready handlers to be dispatched.
 
-[section:io_service__work io_service::work]
+Alternatively, if the application requires that all operations and handlers be allowed to finish normally, the work object may be explicitly destroyed.
 
 
-Class to inform the [link boost_asio.reference.io_service `io_service`] when it has work to do.
 
+ boost::asio::io_service io_service;
+ auto_ptr<boost::asio::io_service::work> work(
+ new boost::asio::io_service::work(io_service));
+ ...
+ work.reset(); // Allow run() to exit.
 
- class work
 
 
-[heading Member Functions]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.io_service__work.get_io_service [*get_io_service]]]
- [Get the io_service associated with the work. ]
- ]
-
- [
- [[link boost_asio.reference.io_service__work.work [*work]]]
- [Constructor notifies the io_service that work is starting.
 
- Copy constructor notifies the io_service that work is starting. ]
- ]
-
- [
- [[link boost_asio.reference.io_service__work._work [*~work]]]
- [Destructor notifies the io_service that the work is complete. ]
- ]
+[heading The io_service class and I/O services]
   
-]
 
-The work class is used to inform the [link boost_asio.reference.io_service `io_service`] when work starts and finishes. This ensures that the [link boost_asio.reference.io_service `io_service`] object's `run()` function will not exit while work is underway, and that it does exit when there is no unfinished work remaining.
 
-The work class is copy-constructible so that it may be used as a data member in a handler class. It is not assignable.
+Class [link boost_asio.reference.io_service `io_service`] implements an extensible, type-safe, polymorphic set of I/O services, indexed by service type. An object of class [link boost_asio.reference.io_service `io_service`] must be initialised before I/O objects such as sockets, resolvers and timers can be used. These I/O objects are distinguished by having constructors that accept an `io_service&` parameter.
 
-[heading Requirements]
+I/O services exist to manage the logical interface to the operating system on behalf of the I/O objects. In particular, there are resources that are shared across a class of I/O objects. For example, timers may be implemented in terms of a single timer queue. The I/O services manage these shared resources.
 
-[*Header: ][^boost/asio/io_service.hpp]
+Access to the services of an [link boost_asio.reference.io_service `io_service`] is via three function templates, `use_service()`, `add_service()` and `has_service()`.
 
-[*Convenience header: ][^boost/asio.hpp]
+In a call to `use_service<Service>()`, the type argument chooses a service, making available all members of the named type. If `Service` is not present in an [link boost_asio.reference.io_service `io_service`], an object of type `Service` is created and added to the [link boost_asio.reference.io_service `io_service`]. A C++ program can check if an [link boost_asio.reference.io_service `io_service`] implements a particular service with the function template `has_service<Service>()`.
 
+Service objects may be explicitly added to an [link boost_asio.reference.io_service `io_service`] using the function template `add_service<Service>()`. If the `Service` is already present, the [link boost_asio.reference.service_already_exists `service_already_exists`] exception is thrown. If the owner of the service is not the same object as the [link boost_asio.reference.io_service `io_service`] parameter, the [link boost_asio.reference.invalid_service_owner `invalid_service_owner`] exception is thrown.
 
-[section:get_io_service io_service::work::get_io_service]
+Once a service reference is obtained from an [link boost_asio.reference.io_service `io_service`] object by calling `use_service()`, that reference remains usable as long as the owning [link boost_asio.reference.io_service `io_service`] object exists.
 
-[indexterm2 get_io_service..io_service::work]
-Get the [link boost_asio.reference.io_service `io_service`] associated with the work.
+All I/O service implementations have [link boost_asio.reference.io_service__service `io_service::service`] as a public base class. Custom I/O services may be implemented by deriving from this class and then added to an [link boost_asio.reference.io_service `io_service`] using the facilities described above.
 
+[heading Requirements]
 
- boost::asio::io_service & get_io_service();
+[*Header: ][^boost/asio/io_service.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
 
-[endsect]
+[section:add_service io_service::add_service]
 
+[indexterm2 add_service..io_service]
+Add a service object to the [link boost_asio.reference.io_service `io_service`].
 
-[section:work io_service::work::work]
 
-[indexterm2 work..io_service::work]
-Constructor notifies the [link boost_asio.reference.io_service `io_service`] that work is starting.
+ template<
+ typename ``[link boost_asio.reference.Service Service]``>
+ friend void add_service(
+ io_service & ios,
+ Service * svc);
 
 
- explicit ``[link boost_asio.reference.io_service__work.work.overload1 work]``(
- boost::asio::io_service & io_service);
- `` [''''&raquo;''' [link boost_asio.reference.io_service__work.work.overload1 more...]]``
+This function is used to add a service to the [link boost_asio.reference.io_service `io_service`].
 
 
-Copy constructor notifies the [link boost_asio.reference.io_service `io_service`] that work is starting.
+[heading Parameters]
+
 
+[variablelist
+
+[[ios][The [link boost_asio.reference.io_service `io_service`] object that owns the service.]]
 
- ``[link boost_asio.reference.io_service__work.work.overload2 work]``(
- const work & other);
- `` [''''&raquo;''' [link boost_asio.reference.io_service__work.work.overload2 more...]]``
+[[svc][The service object. On success, ownership of the service object is transferred to the [link boost_asio.reference.io_service `io_service`]. When the [link boost_asio.reference.io_service `io_service`] object is destroyed, it will destroy the service object by performing:
+``
+ delete static_cast<io_service::service*>(svc)
+``
+]]
 
+]
 
-[section:overload1 io_service::work::work (1 of 2 overloads)]
 
+[heading Exceptions]
+
 
-Constructor notifies the [link boost_asio.reference.io_service `io_service`] that work is starting.
+[variablelist
+
+[[boost::asio::service_already_exists][Thrown if a service of the given type is already present in the [link boost_asio.reference.io_service `io_service`].]]
 
+[[boost::asio::invalid_service_owner][Thrown if the service's owning [link boost_asio.reference.io_service `io_service`] is not the [link boost_asio.reference.io_service `io_service`] object specified by the ios parameter. ]]
 
- work(
- boost::asio::io_service & io_service);
+]
 
 
-The constructor is used to inform the [link boost_asio.reference.io_service `io_service`] that some work has begun. This ensures that the [link boost_asio.reference.io_service `io_service`] object's `run()` function will not exit while the work is underway.
 
+[heading Requirements]
 
-[endsect]
+[*Header: ][^boost/asio/io_service.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
 
-[section:overload2 io_service::work::work (2 of 2 overloads)]
+[endsect]
 
 
-Copy constructor notifies the [link boost_asio.reference.io_service `io_service`] that work is starting.
 
+[section:dispatch io_service::dispatch]
 
- work(
- const work & other);
+[indexterm2 dispatch..io_service]
+Request the [link boost_asio.reference.io_service `io_service`] to invoke the given handler.
 
 
-The constructor is used to inform the [link boost_asio.reference.io_service `io_service`] that some work has begun. This ensures that the [link boost_asio.reference.io_service `io_service`] object's `run()` function will not exit while the work is underway.
+ template<
+ typename ``[link boost_asio.reference.CompletionHandler CompletionHandler]``>
+ void dispatch(
+ CompletionHandler handler);
 
 
-[endsect]
+This function is used to ask the [link boost_asio.reference.io_service `io_service`] to execute the given handler.
 
+The [link boost_asio.reference.io_service `io_service`] guarantees that the handler will only be called in a thread in which the `run()`, `run_one()`, `poll()` or `poll_one()` member functions is currently being invoked. The handler may be executed inside this function if the guarantee can be met.
 
-[endsect]
 
+[heading Parameters]
+
 
-[section:_work io_service::work::~work]
+[variablelist
+
+[[handler][The handler to be called. The [link boost_asio.reference.io_service `io_service`] will make a copy of the handler object as required. The function signature of the handler must be:
+``
+ void handler();
+``
+]]
 
-[indexterm2 ~work..io_service::work]
-Destructor notifies the [link boost_asio.reference.io_service `io_service`] that the work is complete.
+]
 
 
- ~work();
+[heading Remarks]
+
+This function throws an exception only if:
 
 
-The destructor is used to inform the [link boost_asio.reference.io_service `io_service`] that some work has finished. Once the count of unfinished work reaches zero, the [link boost_asio.reference.io_service `io_service`] object's `run()` function is permitted to exit.
+* the handler's `asio_handler_allocate` function; or
 
 
-[endsect]
+* the handler's copy constructor
 
+throws an exception.
 
 
 [endsect]
 
-[section:ip__address ip::address]
-
-
-Implements version-independent IP addresses.
 
 
- class address
+[section:fork_event io_service::fork_event]
 
+[indexterm2 fork_event..io_service]
+Fork-related event notifications.
 
-[heading Member Functions]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.ip__address.address [*address]]]
- [Default constructor.
+ enum fork_event
 
- Construct an address from an IPv4 address.
+[indexterm2 fork_prepare..io_service]
+[indexterm2 fork_parent..io_service]
+[indexterm2 fork_child..io_service]
 
- Construct an address from an IPv6 address.
+[heading Values]
+[variablelist
 
- Copy constructor. ]
- ]
-
- [
- [[link boost_asio.reference.ip__address.from_string [*from_string]]]
- [Create an address from an IPv4 address string in dotted decimal form, or from an IPv6 address in hexadecimal notation. ]
- ]
-
- [
- [[link boost_asio.reference.ip__address.is_loopback [*is_loopback]]]
- [Determine whether the address is a loopback address. ]
- ]
-
- [
- [[link boost_asio.reference.ip__address.is_multicast [*is_multicast]]]
- [Determine whether the address is a multicast address. ]
- ]
-
- [
- [[link boost_asio.reference.ip__address.is_unspecified [*is_unspecified]]]
- [Determine whether the address is unspecified. ]
- ]
-
- [
- [[link boost_asio.reference.ip__address.is_v4 [*is_v4]]]
- [Get whether the address is an IP version 4 address. ]
- ]
-
   [
- [[link boost_asio.reference.ip__address.is_v6 [*is_v6]]]
- [Get whether the address is an IP version 6 address. ]
+ [fork_prepare]
+ [Notify the io_service that the process is about to fork. ]
   ]
-
- [
- [[link boost_asio.reference.ip__address.operator_eq_ [*operator=]]]
- [Assign from another address.
-
- Assign from an IPv4 address.
 
- Assign from an IPv6 address. ]
- ]
-
- [
- [[link boost_asio.reference.ip__address.to_string [*to_string]]]
- [Get the address as a string in dotted decimal format. ]
- ]
-
   [
- [[link boost_asio.reference.ip__address.to_v4 [*to_v4]]]
- [Get the address as an IP version 4 address. ]
+ [fork_parent]
+ [Notify the io_service that the process has forked and is the parent. ]
   ]
-
+
   [
- [[link boost_asio.reference.ip__address.to_v6 [*to_v6]]]
- [Get the address as an IP version 6 address. ]
+ [fork_child]
+ [Notify the io_service that the process has forked and is the child. ]
   ]
-
+
 ]
 
-[heading Friends]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.ip__address.operator_not__eq_ [*operator!=]]]
- [Compare two addresses for inequality. ]
- ]
-
- [
- [[link boost_asio.reference.ip__address.operator_lt_ [*operator<]]]
- [Compare addresses for ordering. ]
- ]
-
- [
- [[link boost_asio.reference.ip__address.operator_lt__eq_ [*operator<=]]]
- [Compare addresses for ordering. ]
- ]
-
- [
- [[link boost_asio.reference.ip__address.operator_eq__eq_ [*operator==]]]
- [Compare two addresses for equality. ]
- ]
-
- [
- [[link boost_asio.reference.ip__address.operator_gt_ [*operator>]]]
- [Compare addresses for ordering. ]
- ]
-
- [
- [[link boost_asio.reference.ip__address.operator_gt__eq_ [*operator>=]]]
- [Compare addresses for ordering. ]
- ]
-
-]
 
-[heading Related Functions]
-[table
- [[Name][Description]]
+[endsect]
 
- [
- [[link boost_asio.reference.ip__address.operator_lt__lt_ [*operator<<]]]
- [Output an address as a string. ]
- ]
-
-]
 
-The [link boost_asio.reference.ip__address `ip::address`] class provides the ability to use either IP version 4 or version 6 addresses.
 
+[section:has_service io_service::has_service]
 
-[heading Thread Safety]
-
-[*Distinct] [*objects:] Safe.
+[indexterm2 has_service..io_service]
+Determine if an [link boost_asio.reference.io_service `io_service`] contains a specified service type.
 
-[*Shared] [*objects:] Unsafe.
 
+ template<
+ typename ``[link boost_asio.reference.Service Service]``>
+ friend bool has_service(
+ io_service & ios);
 
 
-[heading Requirements]
+This function is used to determine whether the [link boost_asio.reference.io_service `io_service`] contains a service object corresponding to the given service type.
 
-[*Header: ][^boost/asio/ip/address.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
+[heading Parameters]
+
 
-[section:address ip::address::address]
+[variablelist
+
+[[ios][The [link boost_asio.reference.io_service `io_service`] object that owns the service.]]
 
-[indexterm2 address..ip::address]
-Default constructor.
+]
 
 
- ``[link boost_asio.reference.ip__address.address.overload1 address]``();
- `` [''''&raquo;''' [link boost_asio.reference.ip__address.address.overload1 more...]]``
+[heading Return Value]
+
+A boolean indicating whether the [link boost_asio.reference.io_service `io_service`] contains the service.
 
 
-Construct an address from an IPv4 address.
 
+[heading Requirements]
 
- ``[link boost_asio.reference.ip__address.address.overload2 address]``(
- const boost::asio::ip::address_v4 & ipv4_address);
- `` [''''&raquo;''' [link boost_asio.reference.ip__address.address.overload2 more...]]``
+[*Header: ][^boost/asio/io_service.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
-Construct an address from an IPv6 address.
 
+[endsect]
 
- ``[link boost_asio.reference.ip__address.address.overload3 address]``(
- const boost::asio::ip::address_v6 & ipv6_address);
- `` [''''&raquo;''' [link boost_asio.reference.ip__address.address.overload3 more...]]``
 
+[section:io_service io_service::io_service]
 
-Copy constructor.
+[indexterm2 io_service..io_service]
+Constructor.
 
 
- ``[link boost_asio.reference.ip__address.address.overload4 address]``(
- const address & other);
- `` [''''&raquo;''' [link boost_asio.reference.ip__address.address.overload4 more...]]``
+ ``[link boost_asio.reference.io_service.io_service.overload1 io_service]``();
+ `` [''''&raquo;''' [link boost_asio.reference.io_service.io_service.overload1 more...]]``
+
+ explicit ``[link boost_asio.reference.io_service.io_service.overload2 io_service]``(
+ std::size_t concurrency_hint);
+ `` [''''&raquo;''' [link boost_asio.reference.io_service.io_service.overload2 more...]]``
 
 
-[section:overload1 ip::address::address (1 of 4 overloads)]
+[section:overload1 io_service::io_service (1 of 2 overloads)]
 
 
-Default constructor.
+Constructor.
 
 
- address();
+ io_service();
 
 
 
@@ -54790,204 +54836,224 @@
 
 
 
-[section:overload2 ip::address::address (2 of 4 overloads)]
-
+[section:overload2 io_service::io_service (2 of 2 overloads)]
 
-Construct an address from an IPv4 address.
 
+Constructor.
 
- address(
- const boost::asio::ip::address_v4 & ipv4_address);
 
+ io_service(
+ std::size_t concurrency_hint);
 
 
-[endsect]
+Construct with a hint about the required level of concurrency.
 
 
+[heading Parameters]
+
 
-[section:overload3 ip::address::address (3 of 4 overloads)]
+[variablelist
+
+[[concurrency_hint][A suggestion to the implementation on how many threads it should allow to run simultaneously. ]]
 
+]
 
-Construct an address from an IPv6 address.
 
 
- address(
- const boost::asio::ip::address_v6 & ipv6_address);
 
+[endsect]
 
 
 [endsect]
 
 
+[section:notify_fork io_service::notify_fork]
 
-[section:overload4 ip::address::address (4 of 4 overloads)]
+[indexterm2 notify_fork..io_service]
+Notify the [link boost_asio.reference.io_service `io_service`] of a fork-related event.
 
 
-Copy constructor.
+ void notify_fork(
+ boost::asio::io_service::fork_event event);
 
 
- address(
- const address & other);
+This function is used to inform the [link boost_asio.reference.io_service `io_service`] that the process is about to fork, or has just forked. This allows the [link boost_asio.reference.io_service `io_service`], and the services it contains, to perform any necessary housekeeping to ensure correct operation following a fork.
 
+This function must not be called while any other [link boost_asio.reference.io_service `io_service`] function, or any function on an I/O object associated with the [link boost_asio.reference.io_service `io_service`], is being called in another thread. It is, however, safe to call this function from within a completion handler, provided no other thread is accessing the [link boost_asio.reference.io_service `io_service`].
 
 
-[endsect]
+[heading Parameters]
+
 
+[variablelist
+
+[[event][A fork-related event.]]
 
-[endsect]
+]
 
-[section:from_string ip::address::from_string]
 
-[indexterm2 from_string..ip::address]
-Create an address from an IPv4 address string in dotted decimal form, or from an IPv6 address in hexadecimal notation.
+[heading Exceptions]
+
 
+[variablelist
+
+[[boost::system::system_error][Thrown on failure. If the notification fails the [link boost_asio.reference.io_service `io_service`] object should no longer be used and should be destroyed.]]
 
- static address ``[link boost_asio.reference.ip__address.from_string.overload1 from_string]``(
- const char * str);
- `` [''''&raquo;''' [link boost_asio.reference.ip__address.from_string.overload1 more...]]``
+]
 
- static address ``[link boost_asio.reference.ip__address.from_string.overload2 from_string]``(
- const char * str,
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.ip__address.from_string.overload2 more...]]``
 
- static address ``[link boost_asio.reference.ip__address.from_string.overload3 from_string]``(
- const std::string & str);
- `` [''''&raquo;''' [link boost_asio.reference.ip__address.from_string.overload3 more...]]``
+[heading Example]
+
+The following code illustrates how to incorporate the `notify_fork()` function:
 
- static address ``[link boost_asio.reference.ip__address.from_string.overload4 from_string]``(
- const std::string & str,
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.ip__address.from_string.overload4 more...]]``
+ my_io_service.notify_fork(boost::asio::io_service::fork_prepare);
+ if (fork() == 0)
+ {
+ // This is the child process.
+ my_io_service.notify_fork(boost::asio::io_service::fork_child);
+ }
+ else
+ {
+ // This is the parent process.
+ my_io_service.notify_fork(boost::asio::io_service::fork_parent);
+ }
 
 
-[section:overload1 ip::address::from_string (1 of 4 overloads)]
 
 
-Create an address from an IPv4 address string in dotted decimal form, or from an IPv6 address in hexadecimal notation.
 
+[heading Remarks]
+
+For each service object `svc` in the [link boost_asio.reference.io_service `io_service`] set, performs `svc->fork_service();`. When processing the fork\_prepare event, services are visited in reverse order of the beginning of service object lifetime. Otherwise, services are visited in order of the beginning of service object lifetime.
 
- static address from_string(
- const char * str);
 
 
 
 [endsect]
 
 
+[section:poll io_service::poll]
 
-[section:overload2 ip::address::from_string (2 of 4 overloads)]
-
+[indexterm2 poll..io_service]
+Run the [link boost_asio.reference.io_service `io_service`] object's event processing loop to execute ready handlers.
 
-Create an address from an IPv4 address string in dotted decimal form, or from an IPv6 address in hexadecimal notation.
 
+ std::size_t ``[link boost_asio.reference.io_service.poll.overload1 poll]``();
+ `` [''''&raquo;''' [link boost_asio.reference.io_service.poll.overload1 more...]]``
 
- static address from_string(
- const char * str,
+ std::size_t ``[link boost_asio.reference.io_service.poll.overload2 poll]``(
       boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.io_service.poll.overload2 more...]]``
 
 
+[section:overload1 io_service::poll (1 of 2 overloads)]
 
-[endsect]
-
-
-
-[section:overload3 ip::address::from_string (3 of 4 overloads)]
-
-
-Create an address from an IPv4 address string in dotted decimal form, or from an IPv6 address in hexadecimal notation.
 
+Run the [link boost_asio.reference.io_service `io_service`] object's event processing loop to execute ready handlers.
 
- static address from_string(
- const std::string & str);
 
+ std::size_t poll();
 
 
-[endsect]
+The `poll()` function runs handlers that are ready to run, without blocking, until the [link boost_asio.reference.io_service `io_service`] has been stopped or there are no more ready handlers.
 
 
+[heading Return Value]
+
+The number of handlers that were executed.
 
-[section:overload4 ip::address::from_string (4 of 4 overloads)]
 
+[heading Exceptions]
+
 
-Create an address from an IPv4 address string in dotted decimal form, or from an IPv6 address in hexadecimal notation.
+[variablelist
+
+[[boost::system::system_error][Thrown on failure. ]]
 
+]
 
- static address from_string(
- const std::string & str,
- boost::system::error_code & ec);
 
 
 
 [endsect]
 
 
-[endsect]
 
+[section:overload2 io_service::poll (2 of 2 overloads)]
 
-[section:is_loopback ip::address::is_loopback]
 
-[indexterm2 is_loopback..ip::address]
-Determine whether the address is a loopback address.
+Run the [link boost_asio.reference.io_service `io_service`] object's event processing loop to execute ready handlers.
 
 
- bool is_loopback() const;
+ std::size_t poll(
+ boost::system::error_code & ec);
 
 
+The `poll()` function runs handlers that are ready to run, without blocking, until the [link boost_asio.reference.io_service `io_service`] has been stopped or there are no more ready handlers.
 
-[endsect]
 
+[heading Parameters]
+
 
+[variablelist
+
+[[ec][Set to indicate what error occurred, if any.]]
 
-[section:is_multicast ip::address::is_multicast]
+]
 
-[indexterm2 is_multicast..ip::address]
-Determine whether the address is a multicast address.
 
+[heading Return Value]
+
+The number of handlers that were executed.
 
- bool is_multicast() const;
 
 
 
 [endsect]
 
 
+[endsect]
 
-[section:is_unspecified ip::address::is_unspecified]
-
-[indexterm2 is_unspecified..ip::address]
-Determine whether the address is unspecified.
-
+[section:poll_one io_service::poll_one]
 
- bool is_unspecified() const;
+[indexterm2 poll_one..io_service]
+Run the [link boost_asio.reference.io_service `io_service`] object's event processing loop to execute one ready handler.
 
 
+ std::size_t ``[link boost_asio.reference.io_service.poll_one.overload1 poll_one]``();
+ `` [''''&raquo;''' [link boost_asio.reference.io_service.poll_one.overload1 more...]]``
 
-[endsect]
+ std::size_t ``[link boost_asio.reference.io_service.poll_one.overload2 poll_one]``(
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.io_service.poll_one.overload2 more...]]``
 
 
+[section:overload1 io_service::poll_one (1 of 2 overloads)]
 
-[section:is_v4 ip::address::is_v4]
 
-[indexterm2 is_v4..ip::address]
-Get whether the address is an IP version 4 address.
+Run the [link boost_asio.reference.io_service `io_service`] object's event processing loop to execute one ready handler.
 
 
- bool is_v4() const;
+ std::size_t poll_one();
 
 
+The `poll_one()` function runs at most one handler that is ready to run, without blocking.
 
-[endsect]
 
+[heading Return Value]
+
+The number of handlers that were executed.
 
 
-[section:is_v6 ip::address::is_v6]
+[heading Exceptions]
+
 
-[indexterm2 is_v6..ip::address]
-Get whether the address is an IP version 6 address.
+[variablelist
+
+[[boost::system::system_error][Thrown on failure. ]]
 
+]
 
- bool is_v6() const;
 
 
 
@@ -54995,65 +55061,57 @@
 
 
 
-[section:operator_not__eq_ ip::address::operator!=]
-
-[indexterm2 operator!=..ip::address]
-Compare two addresses for inequality.
-
-
- friend bool operator!=(
- const address & a1,
- const address & a2);
+[section:overload2 io_service::poll_one (2 of 2 overloads)]
 
 
-[heading Requirements]
+Run the [link boost_asio.reference.io_service `io_service`] object's event processing loop to execute one ready handler.
 
-[*Header: ][^boost/asio/ip/address.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
+ std::size_t poll_one(
+ boost::system::error_code & ec);
 
 
-[endsect]
+The `poll_one()` function runs at most one handler that is ready to run, without blocking.
 
 
+[heading Parameters]
+
 
-[section:operator_lt_ ip::address::operator<]
+[variablelist
+
+[[ec][Set to indicate what error occurred, if any.]]
 
-[indexterm2 operator<..ip::address]
-Compare addresses for ordering.
+]
 
 
- friend bool operator<(
- const address & a1,
- const address & a2);
+[heading Return Value]
+
+The number of handlers that were executed.
 
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/ip/address.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
+[endsect]
 
 
 [endsect]
 
 
+[section:post io_service::post]
 
-[section:operator_lt__lt_ ip::address::operator<<]
-
-[indexterm2 operator<<..ip::address]
-Output an address as a string.
+[indexterm2 post..io_service]
+Request the [link boost_asio.reference.io_service `io_service`] to invoke the given handler and return immediately.
 
 
   template<
- typename Elem,
- typename Traits>
- std::basic_ostream< Elem, Traits > & operator<<(
- std::basic_ostream< Elem, Traits > & os,
- const address & addr);
+ typename ``[link boost_asio.reference.CompletionHandler CompletionHandler]``>
+ void post(
+ CompletionHandler handler);
 
 
-Used to output a human-readable string for a specified address.
+This function is used to ask the [link boost_asio.reference.io_service `io_service`] to execute the given handler, but without allowing the [link boost_asio.reference.io_service `io_service`] to call the handler from inside this function.
+
+The [link boost_asio.reference.io_service `io_service`] guarantees that the handler will only be called in a thread in which the `run()`, `run_one()`, `poll()` or `poll_one()` member functions is currently being invoked.
 
 
 [heading Parameters]
@@ -55061,250 +55119,256 @@
 
 [variablelist
   
-[[os][The output stream to which the string will be written.]]
-
-[[addr][The address to be written.]]
+[[handler][The handler to be called. The [link boost_asio.reference.io_service `io_service`] will make a copy of the handler object as required. The function signature of the handler must be:
+``
+ void handler();
+``
+]]
 
 ]
 
 
-[heading Return Value]
+[heading Remarks]
       
-The output stream.
+This function throws an exception only if:
 
 
+* the handler's `asio_handler_allocate` function; or
 
 
-[endsect]
+* the handler's copy constructor
 
+throws an exception.
 
 
-[section:operator_lt__eq_ ip::address::operator<=]
+[endsect]
 
-[indexterm2 operator<=..ip::address]
-Compare addresses for ordering.
 
 
- friend bool operator<=(
- const address & a1,
- const address & a2);
+[section:reset io_service::reset]
 
+[indexterm2 reset..io_service]
+Reset the [link boost_asio.reference.io_service `io_service`] in preparation for a subsequent `run()` invocation.
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/ip/address.hpp]
+ void reset();
 
-[*Convenience header: ][^boost/asio.hpp]
 
+This function must be called prior to any second or later set of invocations of the `run()`, `run_one()`, `poll()` or `poll_one()` functions when a previous invocation of these functions returned due to the [link boost_asio.reference.io_service `io_service`] being stopped or running out of work. After a call to `reset()`, the [link boost_asio.reference.io_service `io_service`] object's `stopped()` function will return `false`.
 
-[endsect]
+This function must not be called while there are any unfinished calls to the `run()`, `run_one()`, `poll()` or `poll_one()` functions.
 
 
-[section:operator_eq_ ip::address::operator=]
+[endsect]
 
-[indexterm2 operator=..ip::address]
-Assign from another address.
 
+[section:run io_service::run]
 
- address & ``[link boost_asio.reference.ip__address.operator_eq_.overload1 operator=]``(
- const address & other);
- `` [''''&raquo;''' [link boost_asio.reference.ip__address.operator_eq_.overload1 more...]]``
+[indexterm2 run..io_service]
+Run the [link boost_asio.reference.io_service `io_service`] object's event processing loop.
 
 
-Assign from an IPv4 address.
+ std::size_t ``[link boost_asio.reference.io_service.run.overload1 run]``();
+ `` [''''&raquo;''' [link boost_asio.reference.io_service.run.overload1 more...]]``
 
+ std::size_t ``[link boost_asio.reference.io_service.run.overload2 run]``(
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.io_service.run.overload2 more...]]``
 
- address & ``[link boost_asio.reference.ip__address.operator_eq_.overload2 operator=]``(
- const boost::asio::ip::address_v4 & ipv4_address);
- `` [''''&raquo;''' [link boost_asio.reference.ip__address.operator_eq_.overload2 more...]]``
 
+[section:overload1 io_service::run (1 of 2 overloads)]
 
-Assign from an IPv6 address.
 
+Run the [link boost_asio.reference.io_service `io_service`] object's event processing loop.
 
- address & ``[link boost_asio.reference.ip__address.operator_eq_.overload3 operator=]``(
- const boost::asio::ip::address_v6 & ipv6_address);
- `` [''''&raquo;''' [link boost_asio.reference.ip__address.operator_eq_.overload3 more...]]``
 
+ std::size_t run();
 
-[section:overload1 ip::address::operator= (1 of 3 overloads)]
 
+The `run()` function blocks until all work has finished and there are no more handlers to be dispatched, or until the [link boost_asio.reference.io_service `io_service`] has been stopped.
 
-Assign from another address.
-
-
- address & operator=(
- const address & other);
-
+Multiple threads may call the `run()` function to set up a pool of threads from which the [link boost_asio.reference.io_service `io_service`] may execute handlers. All threads that are waiting in the pool are equivalent and the [link boost_asio.reference.io_service `io_service`] may choose any one of them to invoke a handler.
 
+A normal exit from the `run()` function implies that the [link boost_asio.reference.io_service `io_service`] object is stopped (the `stopped()` function returns `true`). Subsequent calls to `run()`, `run_one()`, `poll()` or `poll_one()` will return immediately unless there is a prior call to `reset()`.
 
-[endsect]
 
+[heading Return Value]
+
+The number of handlers that were executed.
 
 
-[section:overload2 ip::address::operator= (2 of 3 overloads)]
+[heading Exceptions]
+
 
+[variablelist
+
+[[boost::system::system_error][Thrown on failure.]]
 
-Assign from an IPv4 address.
+]
 
 
- address & operator=(
- const boost::asio::ip::address_v4 & ipv4_address);
+[heading Remarks]
+
+The `run()` function must not be called from a thread that is currently calling one of `run()`, `run_one()`, `poll()` or `poll_one()` on the same [link boost_asio.reference.io_service `io_service`] object.
 
+The `poll()` function may also be used to dispatch ready handlers, but without blocking.
 
 
 [endsect]
 
 
 
-[section:overload3 ip::address::operator= (3 of 3 overloads)]
-
+[section:overload2 io_service::run (2 of 2 overloads)]
 
-Assign from an IPv6 address.
 
+Run the [link boost_asio.reference.io_service `io_service`] object's event processing loop.
 
- address & operator=(
- const boost::asio::ip::address_v6 & ipv6_address);
 
+ std::size_t run(
+ boost::system::error_code & ec);
 
 
-[endsect]
+The `run()` function blocks until all work has finished and there are no more handlers to be dispatched, or until the [link boost_asio.reference.io_service `io_service`] has been stopped.
 
+Multiple threads may call the `run()` function to set up a pool of threads from which the [link boost_asio.reference.io_service `io_service`] may execute handlers. All threads that are waiting in the pool are equivalent and the [link boost_asio.reference.io_service `io_service`] may choose any one of them to invoke a handler.
 
-[endsect]
+A normal exit from the `run()` function implies that the [link boost_asio.reference.io_service `io_service`] object is stopped (the `stopped()` function returns `true`). Subsequent calls to `run()`, `run_one()`, `poll()` or `poll_one()` will return immediately unless there is a prior call to `reset()`.
 
 
-[section:operator_eq__eq_ ip::address::operator==]
+[heading Parameters]
+
 
-[indexterm2 operator==..ip::address]
-Compare two addresses for equality.
+[variablelist
+
+[[ec][Set to indicate what error occurred, if any.]]
 
+]
 
- friend bool operator==(
- const address & a1,
- const address & a2);
 
+[heading Return Value]
+
+The number of handlers that were executed.
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/ip/address.hpp]
+[heading Remarks]
+
+The `run()` function must not be called from a thread that is currently calling one of `run()`, `run_one()`, `poll()` or `poll_one()` on the same [link boost_asio.reference.io_service `io_service`] object.
 
-[*Convenience header: ][^boost/asio.hpp]
+The `poll()` function may also be used to dispatch ready handlers, but without blocking.
 
 
 [endsect]
 
 
+[endsect]
 
-[section:operator_gt_ ip::address::operator>]
+[section:run_one io_service::run_one]
 
-[indexterm2 operator>..ip::address]
-Compare addresses for ordering.
+[indexterm2 run_one..io_service]
+Run the [link boost_asio.reference.io_service `io_service`] object's event processing loop to execute at most one handler.
 
 
- friend bool operator>(
- const address & a1,
- const address & a2);
+ std::size_t ``[link boost_asio.reference.io_service.run_one.overload1 run_one]``();
+ `` [''''&raquo;''' [link boost_asio.reference.io_service.run_one.overload1 more...]]``
 
+ std::size_t ``[link boost_asio.reference.io_service.run_one.overload2 run_one]``(
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.io_service.run_one.overload2 more...]]``
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/ip/address.hpp]
+[section:overload1 io_service::run_one (1 of 2 overloads)]
 
-[*Convenience header: ][^boost/asio.hpp]
 
+Run the [link boost_asio.reference.io_service `io_service`] object's event processing loop to execute at most one handler.
 
-[endsect]
 
+ std::size_t run_one();
 
 
-[section:operator_gt__eq_ ip::address::operator>=]
+The `run_one()` function blocks until one handler has been dispatched, or until the [link boost_asio.reference.io_service `io_service`] has been stopped.
 
-[indexterm2 operator>=..ip::address]
-Compare addresses for ordering.
 
+[heading Return Value]
+
+The number of handlers that were executed. A zero return value implies that the [link boost_asio.reference.io_service `io_service`] object is stopped (the `stopped()` function returns `true`). Subsequent calls to `run()`, `run_one()`, `poll()` or `poll_one()` will return immediately unless there is a prior call to `reset()`.
 
- friend bool operator>=(
- const address & a1,
- const address & a2);
 
+[heading Exceptions]
+
 
-[heading Requirements]
+[variablelist
+
+[[boost::system::system_error][Thrown on failure. ]]
+
+]
 
-[*Header: ][^boost/asio/ip/address.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
-[section:to_string ip::address::to_string]
 
-[indexterm2 to_string..ip::address]
-Get the address as a string in dotted decimal format.
+[section:overload2 io_service::run_one (2 of 2 overloads)]
 
 
- std::string ``[link boost_asio.reference.ip__address.to_string.overload1 to_string]``() const;
- `` [''''&raquo;''' [link boost_asio.reference.ip__address.to_string.overload1 more...]]``
+Run the [link boost_asio.reference.io_service `io_service`] object's event processing loop to execute at most one handler.
 
- std::string ``[link boost_asio.reference.ip__address.to_string.overload2 to_string]``(
- boost::system::error_code & ec) const;
- `` [''''&raquo;''' [link boost_asio.reference.ip__address.to_string.overload2 more...]]``
 
+ std::size_t run_one(
+ boost::system::error_code & ec);
 
-[section:overload1 ip::address::to_string (1 of 2 overloads)]
+
+The `run_one()` function blocks until one handler has been dispatched, or until the [link boost_asio.reference.io_service `io_service`] has been stopped.
 
 
-Get the address as a string in dotted decimal format.
+[heading Return Value]
+
+The number of handlers that were executed. A zero return value implies that the [link boost_asio.reference.io_service `io_service`] object is stopped (the `stopped()` function returns `true`). Subsequent calls to `run()`, `run_one()`, `poll()` or `poll_one()` will return immediately unless there is a prior call to `reset()`.
 
+The number of handlers that were executed.
 
- std::string to_string() const;
 
 
 
 [endsect]
 
 
-
-[section:overload2 ip::address::to_string (2 of 2 overloads)]
+[endsect]
 
 
-Get the address as a string in dotted decimal format.
+[section:stop io_service::stop]
 
+[indexterm2 stop..io_service]
+Stop the [link boost_asio.reference.io_service `io_service`] object's event processing loop.
 
- std::string to_string(
- boost::system::error_code & ec) const;
 
+ void stop();
 
 
-[endsect]
+This function does not block, but instead simply signals the [link boost_asio.reference.io_service `io_service`] to stop. All invocations of its `run()` or `run_one()` member functions should return as soon as possible. Subsequent calls to `run()`, `run_one()`, `poll()` or `poll_one()` will return immediately until `reset()` is called.
 
 
 [endsect]
 
 
-[section:to_v4 ip::address::to_v4]
-
-[indexterm2 to_v4..ip::address]
-Get the address as an IP version 4 address.
-
-
- boost::asio::ip::address_v4 to_v4() const;
 
+[section:stopped io_service::stopped]
 
+[indexterm2 stopped..io_service]
+Determine whether the [link boost_asio.reference.io_service `io_service`] object has been stopped.
 
-[endsect]
 
+ bool stopped() const;
 
 
-[section:to_v6 ip::address::to_v6]
+This function is used to determine whether an [link boost_asio.reference.io_service `io_service`] object has been stopped, either through an explicit call to `stop()`, or due to running out of work. When an [link boost_asio.reference.io_service `io_service`] object is stopped, calls to `run()`, `run_one()`, `poll()` or `poll_one()` will return immediately without invoking any handlers.
 
-[indexterm2 to_v6..ip::address]
-Get the address as an IP version 6 address.
 
+[heading Return Value]
+
+`true` if the [link boost_asio.reference.io_service `io_service`] object is stopped, otherwise `false`.
 
- boost::asio::ip::address_v6 to_v6() const;
 
 
 
@@ -55312,259 +55376,139 @@
 
 
 
-[endsect]
-
-[section:ip__address_v4 ip::address_v4]
+[section:use_service io_service::use_service]
 
+[indexterm2 use_service..io_service]
+Obtain the service object corresponding to the given type.
 
-Implements IP version 4 style addresses.
 
+ template<
+ typename ``[link boost_asio.reference.Service Service]``>
+ friend Service & use_service(
+ io_service & ios);
 
- class address_v4
 
+This function is used to locate a service object that corresponds to the given service type. If there is no existing implementation of the service, then the [link boost_asio.reference.io_service `io_service`] will create a new instance of the service.
 
-[heading Types]
-[table
- [[Name][Description]]
 
- [
+[heading Parameters]
+
 
- [[link boost_asio.reference.ip__address_v4.bytes_type [*bytes_type]]]
- [The type used to represent an address as an array of bytes. ]
+[variablelist
   
- ]
+[[ios][The [link boost_asio.reference.io_service `io_service`] object that owns the service.]]
 
 ]
 
-[heading Member Functions]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.ip__address_v4.address_v4 [*address_v4]]]
- [Default constructor.
+[heading Return Value]
+
+The service interface implementing the specified service type. Ownership of the service interface is not transferred to the caller.
 
- Construct an address from raw bytes.
 
- Construct an address from a unsigned long in host byte order.
 
- Copy constructor. ]
- ]
-
- [
- [[link boost_asio.reference.ip__address_v4.any [*any]]]
- [Obtain an address object that represents any address. ]
- ]
-
- [
- [[link boost_asio.reference.ip__address_v4.broadcast [*broadcast]]]
- [Obtain an address object that represents the broadcast address.
+[heading Requirements]
 
- Obtain an address object that represents the broadcast address that corresponds to the specified address and netmask. ]
- ]
-
- [
- [[link boost_asio.reference.ip__address_v4.from_string [*from_string]]]
- [Create an address from an IP address string in dotted decimal form. ]
- ]
-
- [
- [[link boost_asio.reference.ip__address_v4.is_class_a [*is_class_a]]]
- [Determine whether the address is a class A address. ]
- ]
-
- [
- [[link boost_asio.reference.ip__address_v4.is_class_b [*is_class_b]]]
- [Determine whether the address is a class B address. ]
- ]
-
- [
- [[link boost_asio.reference.ip__address_v4.is_class_c [*is_class_c]]]
- [Determine whether the address is a class C address. ]
- ]
-
- [
- [[link boost_asio.reference.ip__address_v4.is_loopback [*is_loopback]]]
- [Determine whether the address is a loopback address. ]
- ]
-
- [
- [[link boost_asio.reference.ip__address_v4.is_multicast [*is_multicast]]]
- [Determine whether the address is a multicast address. ]
- ]
-
- [
- [[link boost_asio.reference.ip__address_v4.is_unspecified [*is_unspecified]]]
- [Determine whether the address is unspecified. ]
- ]
-
- [
- [[link boost_asio.reference.ip__address_v4.loopback [*loopback]]]
- [Obtain an address object that represents the loopback address. ]
- ]
-
- [
- [[link boost_asio.reference.ip__address_v4.netmask [*netmask]]]
- [Obtain the netmask that corresponds to the address, based on its address class. ]
- ]
-
- [
- [[link boost_asio.reference.ip__address_v4.operator_eq_ [*operator=]]]
- [Assign from another address. ]
- ]
-
- [
- [[link boost_asio.reference.ip__address_v4.to_bytes [*to_bytes]]]
- [Get the address in bytes, in network byte order. ]
- ]
-
- [
- [[link boost_asio.reference.ip__address_v4.to_string [*to_string]]]
- [Get the address as a string in dotted decimal format. ]
- ]
-
- [
- [[link boost_asio.reference.ip__address_v4.to_ulong [*to_ulong]]]
- [Get the address as an unsigned long in host byte order. ]
- ]
-
-]
+[*Header: ][^boost/asio/io_service.hpp]
 
-[heading Friends]
-[table
- [[Name][Description]]
+[*Convenience header: ][^boost/asio.hpp]
 
- [
- [[link boost_asio.reference.ip__address_v4.operator_not__eq_ [*operator!=]]]
- [Compare two addresses for inequality. ]
- ]
-
- [
- [[link boost_asio.reference.ip__address_v4.operator_lt_ [*operator<]]]
- [Compare addresses for ordering. ]
- ]
-
- [
- [[link boost_asio.reference.ip__address_v4.operator_lt__eq_ [*operator<=]]]
- [Compare addresses for ordering. ]
- ]
-
- [
- [[link boost_asio.reference.ip__address_v4.operator_eq__eq_ [*operator==]]]
- [Compare two addresses for equality. ]
- ]
-
- [
- [[link boost_asio.reference.ip__address_v4.operator_gt_ [*operator>]]]
- [Compare addresses for ordering. ]
- ]
-
- [
- [[link boost_asio.reference.ip__address_v4.operator_gt__eq_ [*operator>=]]]
- [Compare addresses for ordering. ]
- ]
-
-]
 
-[heading Related Functions]
-[table
- [[Name][Description]]
+[endsect]
 
- [
- [[link boost_asio.reference.ip__address_v4.operator_lt__lt_ [*operator<<]]]
- [Output an address as a string. ]
- ]
-
-]
 
-The [link boost_asio.reference.ip__address_v4 `ip::address_v4`] class provides the ability to use and manipulate IP version 4 addresses.
 
+[section:wrap io_service::wrap]
 
-[heading Thread Safety]
-
-[*Distinct] [*objects:] Safe.
+[indexterm2 wrap..io_service]
+Create a new handler that automatically dispatches the wrapped handler on the [link boost_asio.reference.io_service `io_service`].
 
-[*Shared] [*objects:] Unsafe.
 
+ template<
+ typename ``[link boost_asio.reference.Handler Handler]``>
+ unspecified wrap(
+ Handler handler);
 
 
-[heading Requirements]
+This function is used to create a new handler function object that, when invoked, will automatically pass the wrapped handler to the [link boost_asio.reference.io_service `io_service`] object's dispatch function.
 
-[*Header: ][^boost/asio/ip/address_v4.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
+[heading Parameters]
+
 
-[section:address_v4 ip::address_v4::address_v4]
+[variablelist
+
+[[handler][The handler to be wrapped. The [link boost_asio.reference.io_service `io_service`] will make a copy of the handler object as required. The function signature of the handler must be:
+``
+ void handler(A1 a1, ... An an);
+``
+]]
 
-[indexterm2 address_v4..ip::address_v4]
-Default constructor.
+]
 
 
- ``[link boost_asio.reference.ip__address_v4.address_v4.overload1 address_v4]``();
- `` [''''&raquo;''' [link boost_asio.reference.ip__address_v4.address_v4.overload1 more...]]``
+[heading Return Value]
+
+A function object that, when invoked, passes the wrapped handler to the [link boost_asio.reference.io_service `io_service`] object's dispatch function. Given a function object with the signature:
 
+ R f(A1 a1, ... An an);
 
-Construct an address from raw bytes.
 
+If this function object is passed to the wrap function like so:
 
- explicit ``[link boost_asio.reference.ip__address_v4.address_v4.overload2 address_v4]``(
- const bytes_type & bytes);
- `` [''''&raquo;''' [link boost_asio.reference.ip__address_v4.address_v4.overload2 more...]]``
+ io_service.wrap(f);
 
 
-Construct an address from a unsigned long in host byte order.
+then the return value is a function object with the signature
 
+ void g(A1 a1, ... An an);
 
- explicit ``[link boost_asio.reference.ip__address_v4.address_v4.overload3 address_v4]``(
- unsigned long addr);
- `` [''''&raquo;''' [link boost_asio.reference.ip__address_v4.address_v4.overload3 more...]]``
 
+that, when invoked, executes code equivalent to:
 
-Copy constructor.
+ io_service.dispatch(boost::bind(f, a1, ... an));
 
 
- ``[link boost_asio.reference.ip__address_v4.address_v4.overload4 address_v4]``(
- const address_v4 & other);
- `` [''''&raquo;''' [link boost_asio.reference.ip__address_v4.address_v4.overload4 more...]]``
 
 
-[section:overload1 ip::address_v4::address_v4 (1 of 4 overloads)]
 
 
-Default constructor.
 
+[endsect]
 
- address_v4();
 
 
+[section:_io_service io_service::~io_service]
 
-[endsect]
+[indexterm2 ~io_service..io_service]
+Destructor.
 
 
+ ~io_service();
 
-[section:overload2 ip::address_v4::address_v4 (2 of 4 overloads)]
 
+On destruction, the [link boost_asio.reference.io_service `io_service`] performs the following sequence of operations:
 
-Construct an address from raw bytes.
 
+* For each service object `svc` in the [link boost_asio.reference.io_service `io_service`] set, in reverse order of the beginning of service object lifetime, performs `svc->shutdown_service()`.
 
- address_v4(
- const bytes_type & bytes);
 
+* Uninvoked handler objects that were scheduled for deferred invocation on the [link boost_asio.reference.io_service `io_service`], or any associated strand, are destroyed.
 
 
-[endsect]
+* For each service object `svc` in the [link boost_asio.reference.io_service `io_service`] set, in reverse order of the beginning of service object lifetime, performs `delete static_cast<io_service::service*>(svc)`.
 
 
+[heading Remarks]
+
+The destruction sequence described above permits programs to simplify their resource management by using `shared_ptr<>`. Where an object's lifetime is tied to the lifetime of a connection (or some other sequence of asynchronous operations), a `shared_ptr` to the object would be bound into the handlers for all asynchronous operations associated with it. This works as follows:
 
-[section:overload3 ip::address_v4::address_v4 (3 of 4 overloads)]
 
+* When a single connection ends, all associated asynchronous operations complete. The corresponding handler objects are destroyed, and all `shared_ptr` references to the objects are destroyed.
 
-Construct an address from a unsigned long in host byte order.
 
+* To shut down the whole program, the [link boost_asio.reference.io_service `io_service`] function `stop()` is called to terminate any `run()` calls as soon as possible. The [link boost_asio.reference.io_service `io_service`] destructor defined above destroys all handlers, causing all `shared_ptr` references to all connection objects to be destroyed.
 
- address_v4(
- unsigned long addr);
 
 
 
@@ -55572,163 +55516,191 @@
 
 
 
-[section:overload4 ip::address_v4::address_v4 (4 of 4 overloads)]
+[endsect]
 
+[section:io_service__id io_service::id]
 
-Copy constructor.
 
+Class used to uniquely identify a service.
 
- address_v4(
- const address_v4 & other);
 
+ class id :
+ noncopyable
 
 
-[endsect]
+[heading Member Functions]
+[table
+ [[Name][Description]]
 
+ [
+ [[link boost_asio.reference.io_service__id.id [*id]]]
+ [Constructor. ]
+ ]
+
+]
 
-[endsect]
+[heading Requirements]
 
+[*Header: ][^boost/asio/io_service.hpp]
 
-[section:any ip::address_v4::any]
+[*Convenience header: ][^boost/asio.hpp]
 
-[indexterm2 any..ip::address_v4]
-Obtain an address object that represents any address.
 
+[section:id io_service::id::id]
 
- static address_v4 any();
+[indexterm2 id..io_service::id]
+Constructor.
 
 
+ id();
 
-[endsect]
 
 
-[section:broadcast ip::address_v4::broadcast]
+[endsect]
 
-[indexterm2 broadcast..ip::address_v4]
-Obtain an address object that represents the broadcast address.
 
 
- static address_v4 ``[link boost_asio.reference.ip__address_v4.broadcast.overload1 broadcast]``();
- `` [''''&raquo;''' [link boost_asio.reference.ip__address_v4.broadcast.overload1 more...]]``
+[endsect]
 
+[section:io_service__service io_service::service]
 
-Obtain an address object that represents the broadcast address that corresponds to the specified address and netmask.
 
+Base class for all [link boost_asio.reference.io_service `io_service`] services.
 
- static address_v4 ``[link boost_asio.reference.ip__address_v4.broadcast.overload2 broadcast]``(
- const address_v4 & addr,
- const address_v4 & mask);
- `` [''''&raquo;''' [link boost_asio.reference.ip__address_v4.broadcast.overload2 more...]]``
 
+ class service :
+ noncopyable
 
-[section:overload1 ip::address_v4::broadcast (1 of 2 overloads)]
 
+[heading Member Functions]
+[table
+ [[Name][Description]]
 
-Obtain an address object that represents the broadcast address.
+ [
+ [[link boost_asio.reference.io_service__service.get_io_service [*get_io_service]]]
+ [Get the io_service object that owns the service. ]
+ ]
+
+]
 
+[heading Protected Member Functions]
+[table
+ [[Name][Description]]
 
- static address_v4 broadcast();
+ [
+ [[link boost_asio.reference.io_service__service.service [*service]]]
+ [Constructor. ]
+ ]
+
+ [
+ [[link boost_asio.reference.io_service__service._service [*~service]]]
+ [Destructor. ]
+ ]
+
+]
 
+[heading Private Member Functions]
+[table
+ [[Name][Description]]
 
+ [
+ [[link boost_asio.reference.io_service__service.fork_service [*fork_service]]]
+ [Handle notification of a fork-related event to perform any necessary housekeeping. ]
+ ]
+
+ [
+ [[link boost_asio.reference.io_service__service.shutdown_service [*shutdown_service]]]
+ [Destroy all user-defined handler objects owned by the service. ]
+ ]
+
+]
 
-[endsect]
+[heading Requirements]
 
+[*Header: ][^boost/asio/io_service.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
-[section:overload2 ip::address_v4::broadcast (2 of 2 overloads)]
 
+[section:get_io_service io_service::service::get_io_service]
 
-Obtain an address object that represents the broadcast address that corresponds to the specified address and netmask.
+[indexterm2 get_io_service..io_service::service]
+Get the [link boost_asio.reference.io_service `io_service`] object that owns the service.
 
 
- static address_v4 broadcast(
- const address_v4 & addr,
- const address_v4 & mask);
+ boost::asio::io_service & get_io_service();
 
 
 
 [endsect]
 
 
-[endsect]
-
 
-[section:bytes_type ip::address_v4::bytes_type]
+[section:service io_service::service::service]
 
-[indexterm2 bytes_type..ip::address_v4]
-The type used to represent an address as an array of bytes.
+[indexterm2 service..io_service::service]
+Constructor.
 
 
- typedef array< unsigned char, 4 > bytes_type;
+ service(
+ boost::asio::io_service & owner);
 
 
 
+[heading Parameters]
+
 
-[heading Remarks]
-
-This type is defined in terms of the C++0x template `std::array` when it is available. Otherwise, it uses `boost:array`.
+[variablelist
+
+[[owner][The [link boost_asio.reference.io_service `io_service`] object that owns the service. ]]
 
+]
 
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/ip/address_v4.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
+[endsect]
 
 
-[endsect]
 
+[section:_service io_service::service::~service]
 
-[section:from_string ip::address_v4::from_string]
+[indexterm2 ~service..io_service::service]
+Destructor.
 
-[indexterm2 from_string..ip::address_v4]
-Create an address from an IP address string in dotted decimal form.
 
+ virtual ~service();
 
- static address_v4 ``[link boost_asio.reference.ip__address_v4.from_string.overload1 from_string]``(
- const char * str);
- `` [''''&raquo;''' [link boost_asio.reference.ip__address_v4.from_string.overload1 more...]]``
 
- static address_v4 ``[link boost_asio.reference.ip__address_v4.from_string.overload2 from_string]``(
- const char * str,
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.ip__address_v4.from_string.overload2 more...]]``
 
- static address_v4 ``[link boost_asio.reference.ip__address_v4.from_string.overload3 from_string]``(
- const std::string & str);
- `` [''''&raquo;''' [link boost_asio.reference.ip__address_v4.from_string.overload3 more...]]``
+[endsect]
 
- static address_v4 ``[link boost_asio.reference.ip__address_v4.from_string.overload4 from_string]``(
- const std::string & str,
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.ip__address_v4.from_string.overload4 more...]]``
 
 
-[section:overload1 ip::address_v4::from_string (1 of 4 overloads)]
+[section:fork_service io_service::service::fork_service]
 
+[indexterm2 fork_service..io_service::service]
+Handle notification of a fork-related event to perform any necessary housekeeping.
 
-Create an address from an IP address string in dotted decimal form.
 
+ virtual void fork_service(
+ boost::asio::io_service::fork_event event);
 
- static address_v4 from_string(
- const char * str);
 
+This function is not a pure virtual so that services only have to implement it if necessary. The default implementation does nothing.
 
 
 [endsect]
 
 
 
-[section:overload2 ip::address_v4::from_string (2 of 4 overloads)]
-
+[section:shutdown_service io_service::service::shutdown_service]
 
-Create an address from an IP address string in dotted decimal form.
+[indexterm2 shutdown_service..io_service::service]
+Destroy all user-defined handler objects owned by the service.
 
 
- static address_v4 from_string(
- const char * str,
- boost::system::error_code & ec);
+ void shutdown_service();
 
 
 
@@ -55736,102 +55708,148 @@
 
 
 
-[section:overload3 ip::address_v4::from_string (3 of 4 overloads)]
-
-
-Create an address from an IP address string in dotted decimal form.
+[endsect]
 
+[section:io_service__strand io_service::strand]
 
- static address_v4 from_string(
- const std::string & str);
 
+Provides serialised handler execution.
 
 
-[endsect]
+ class strand
 
 
+[heading Member Functions]
+[table
+ [[Name][Description]]
 
-[section:overload4 ip::address_v4::from_string (4 of 4 overloads)]
+ [
+ [[link boost_asio.reference.io_service__strand.dispatch [*dispatch]]]
+ [Request the strand to invoke the given handler. ]
+ ]
+
+ [
+ [[link boost_asio.reference.io_service__strand.get_io_service [*get_io_service]]]
+ [Get the io_service associated with the strand. ]
+ ]
+
+ [
+ [[link boost_asio.reference.io_service__strand.post [*post]]]
+ [Request the strand to invoke the given handler and return immediately. ]
+ ]
+
+ [
+ [[link boost_asio.reference.io_service__strand.strand [*strand]]]
+ [Constructor. ]
+ ]
+
+ [
+ [[link boost_asio.reference.io_service__strand.wrap [*wrap]]]
+ [Create a new handler that automatically dispatches the wrapped handler on the strand. ]
+ ]
+
+ [
+ [[link boost_asio.reference.io_service__strand._strand [*~strand]]]
+ [Destructor. ]
+ ]
+
+]
 
+The [link boost_asio.reference.io_service__strand `io_service::strand`] class provides the ability to post and dispatch handlers with the guarantee that none of those handlers will execute concurrently.
 
-Create an address from an IP address string in dotted decimal form.
 
+[heading Order of handler invocation]
+
+Given:
 
- static address_v4 from_string(
- const std::string & str,
- boost::system::error_code & ec);
 
+* a strand object `s`
 
 
-[endsect]
+* an object `a` meeting completion handler requirements
 
 
-[endsect]
+* an object `a1` which is an arbitrary copy of `a` made by the implementation
 
 
-[section:is_class_a ip::address_v4::is_class_a]
+* an object `b` meeting completion handler requirements
 
-[indexterm2 is_class_a..ip::address_v4]
-Determine whether the address is a class A address.
 
+* an object `b1` which is an arbitrary copy of `b` made by the implementation
 
- bool is_class_a() const;
+if any of the following conditions are true:
 
 
+* `s.post(a)` happens-before `s.post(b)`
 
-[endsect]
 
+* `s.post(a)` happens-before `s.dispatch(b)`, where the latter is performed outside the strand
 
 
-[section:is_class_b ip::address_v4::is_class_b]
+* `s.dispatch(a)` happens-before `s.post(b)`, where the former is performed outside the strand
 
-[indexterm2 is_class_b..ip::address_v4]
-Determine whether the address is a class B address.
 
+* `s.dispatch(a)` happens-before `s.dispatch(b)`, where both are performed outside the strand
 
- bool is_class_b() const;
+then `asio_handler_invoke(a1, &a1)` happens-before `asio_handler_invoke(b1, &b1)`.
 
+Note that in the following case:
 
+ async_op_1(..., s.wrap(a));
+ async_op_2(..., s.wrap(b));
 
-[endsect]
 
+the completion of the first async operation will perform `s.dispatch(a)`, and the second will perform `s.dispatch(b)`, but the order in which those are performed is unspecified. That is, you cannot state whether one happens-before the other. Therefore none of the above conditions are met and no ordering guarantee is made.
 
 
-[section:is_class_c ip::address_v4::is_class_c]
+[heading Thread Safety]
+
+[*Distinct] [*objects:] Safe.
 
-[indexterm2 is_class_c..ip::address_v4]
-Determine whether the address is a class C address.
+[*Shared] [*objects:] Safe.
 
 
- bool is_class_c() const;
 
 
+[heading Requirements]
 
-[endsect]
+[*Header: ][^boost/asio/strand.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
 
-[section:is_loopback ip::address_v4::is_loopback]
+[section:dispatch io_service::strand::dispatch]
 
-[indexterm2 is_loopback..ip::address_v4]
-Determine whether the address is a loopback address.
+[indexterm2 dispatch..io_service::strand]
+Request the strand to invoke the given handler.
 
 
- bool is_loopback() const;
+ template<
+ typename ``[link boost_asio.reference.CompletionHandler CompletionHandler]``>
+ void dispatch(
+ CompletionHandler handler);
 
 
+This function is used to ask the strand to execute the given handler.
 
-[endsect]
+The strand object guarantees that handlers posted or dispatched through the strand will not be executed concurrently. The handler may be executed inside this function if the guarantee can be met. If this function is called from within a handler that was posted or dispatched through the same strand, then the new handler will be executed immediately.
 
+The strand's guarantee is in addition to the guarantee provided by the underlying [link boost_asio.reference.io_service `io_service`]. The [link boost_asio.reference.io_service `io_service`] guarantees that the handler will only be called in a thread in which the io\_service's run member function is currently being invoked.
 
 
-[section:is_multicast ip::address_v4::is_multicast]
+[heading Parameters]
+
 
-[indexterm2 is_multicast..ip::address_v4]
-Determine whether the address is a multicast address.
+[variablelist
+
+[[handler][The handler to be called. The strand will make a copy of the handler object as required. The function signature of the handler must be:
+``
+ void handler();
+``
+]]
 
+]
 
- bool is_multicast() const;
 
 
 
@@ -55839,27 +55857,22 @@
 
 
 
-[section:is_unspecified ip::address_v4::is_unspecified]
-
-[indexterm2 is_unspecified..ip::address_v4]
-Determine whether the address is unspecified.
-
-
- bool is_unspecified() const;
-
+[section:get_io_service io_service::strand::get_io_service]
 
+[indexterm2 get_io_service..io_service::strand]
+Get the [link boost_asio.reference.io_service `io_service`] associated with the strand.
 
-[endsect]
 
+ boost::asio::io_service & get_io_service();
 
 
-[section:loopback ip::address_v4::loopback]
+This function may be used to obtain the [link boost_asio.reference.io_service `io_service`] object that the strand uses to dispatch handlers for asynchronous operations.
 
-[indexterm2 loopback..ip::address_v4]
-Obtain an address object that represents the loopback address.
 
+[heading Return Value]
+
+A reference to the [link boost_asio.reference.io_service `io_service`] object that the strand will use to dispatch handlers. Ownership is not transferred to the caller.
 
- static address_v4 loopback();
 
 
 
@@ -55867,80 +55880,85 @@
 
 
 
-[section:netmask ip::address_v4::netmask]
+[section:post io_service::strand::post]
 
-[indexterm2 netmask..ip::address_v4]
-Obtain the netmask that corresponds to the address, based on its address class.
+[indexterm2 post..io_service::strand]
+Request the strand to invoke the given handler and return immediately.
 
 
- static address_v4 netmask(
- const address_v4 & addr);
+ template<
+ typename ``[link boost_asio.reference.CompletionHandler CompletionHandler]``>
+ void post(
+ CompletionHandler handler);
 
 
+This function is used to ask the strand to execute the given handler, but without allowing the strand to call the handler from inside this function.
 
-[endsect]
+The strand object guarantees that handlers posted or dispatched through the strand will not be executed concurrently. The strand's guarantee is in addition to the guarantee provided by the underlying [link boost_asio.reference.io_service `io_service`]. The [link boost_asio.reference.io_service `io_service`] guarantees that the handler will only be called in a thread in which the io\_service's run member function is currently being invoked.
 
 
+[heading Parameters]
+
 
-[section:operator_not__eq_ ip::address_v4::operator!=]
+[variablelist
+
+[[handler][The handler to be called. The strand will make a copy of the handler object as required. The function signature of the handler must be:
+``
+ void handler();
+``
+]]
 
-[indexterm2 operator!=..ip::address_v4]
-Compare two addresses for inequality.
+]
 
 
- friend bool operator!=(
- const address_v4 & a1,
- const address_v4 & a2);
 
 
-[heading Requirements]
+[endsect]
 
-[*Header: ][^boost/asio/ip/address_v4.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
 
+[section:strand io_service::strand::strand]
 
-[endsect]
+[indexterm2 strand..io_service::strand]
+Constructor.
 
 
+ strand(
+ boost::asio::io_service & io_service);
 
-[section:operator_lt_ ip::address_v4::operator<]
 
-[indexterm2 operator<..ip::address_v4]
-Compare addresses for ordering.
+Constructs the strand.
 
 
- friend bool operator<(
- const address_v4 & a1,
- const address_v4 & a2);
+[heading Parameters]
+
 
+[variablelist
+
+[[io_service][The [link boost_asio.reference.io_service `io_service`] object that the strand will use to dispatch handlers that are ready to be run. ]]
 
-[heading Requirements]
+]
 
-[*Header: ][^boost/asio/ip/address_v4.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
 
-[section:operator_lt__lt_ ip::address_v4::operator<<]
+[section:wrap io_service::strand::wrap]
 
-[indexterm2 operator<<..ip::address_v4]
-Output an address as a string.
+[indexterm2 wrap..io_service::strand]
+Create a new handler that automatically dispatches the wrapped handler on the strand.
 
 
   template<
- typename Elem,
- typename Traits>
- std::basic_ostream< Elem, Traits > & operator<<(
- std::basic_ostream< Elem, Traits > & os,
- const address_v4 & addr);
+ typename ``[link boost_asio.reference.Handler Handler]``>
+ unspecified wrap(
+ Handler handler);
 
 
-Used to output a human-readable string for a specified address.
+This function is used to create a new handler function object that, when invoked, will automatically pass the wrapped handler to the strand's dispatch function.
 
 
 [heading Parameters]
@@ -55948,54 +55966,39 @@
 
 [variablelist
   
-[[os][The output stream to which the string will be written.]]
-
-[[addr][The address to be written.]]
+[[handler][The handler to be wrapped. The strand will make a copy of the handler object as required. The function signature of the handler must be:
+``
+ void handler(A1 a1, ... An an);
+``
+]]
 
 ]
 
 
 [heading Return Value]
       
-The output stream.
-
-
-
-
-[endsect]
-
-
-
-[section:operator_lt__eq_ ip::address_v4::operator<=]
-
-[indexterm2 operator<=..ip::address_v4]
-Compare addresses for ordering.
+A function object that, when invoked, passes the wrapped handler to the strand's dispatch function. Given a function object with the signature:
 
+ R f(A1 a1, ... An an);
 
- friend bool operator<=(
- const address_v4 & a1,
- const address_v4 & a2);
 
+If this function object is passed to the wrap function like so:
 
-[heading Requirements]
+ strand.wrap(f);
 
-[*Header: ][^boost/asio/ip/address_v4.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
+then the return value is a function object with the signature
 
+ void g(A1 a1, ... An an);
 
-[endsect]
 
+that, when invoked, executes code equivalent to:
 
+ strand.dispatch(boost::bind(f, a1, ... an));
 
-[section:operator_eq_ ip::address_v4::operator=]
 
-[indexterm2 operator=..ip::address_v4]
-Assign from another address.
 
 
- address_v4 & operator=(
- const address_v4 & other);
 
 
 
@@ -56003,324 +56006,266 @@
 
 
 
-[section:operator_eq__eq_ ip::address_v4::operator==]
-
-[indexterm2 operator==..ip::address_v4]
-Compare two addresses for equality.
+[section:_strand io_service::strand::~strand]
 
+[indexterm2 ~strand..io_service::strand]
+Destructor.
 
- friend bool operator==(
- const address_v4 & a1,
- const address_v4 & a2);
 
+ ~strand();
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/ip/address_v4.hpp]
+Destroys a strand.
 
-[*Convenience header: ][^boost/asio.hpp]
+Handlers posted through the strand that have not yet been invoked will still be dispatched in a way that meets the guarantee of non-concurrency.
 
 
 [endsect]
 
 
 
-[section:operator_gt_ ip::address_v4::operator>]
-
-[indexterm2 operator>..ip::address_v4]
-Compare addresses for ordering.
-
-
- friend bool operator>(
- const address_v4 & a1,
- const address_v4 & a2);
-
-
-[heading Requirements]
+[endsect]
 
-[*Header: ][^boost/asio/ip/address_v4.hpp]
+[section:io_service__work io_service::work]
 
-[*Convenience header: ][^boost/asio.hpp]
 
+Class to inform the [link boost_asio.reference.io_service `io_service`] when it has work to do.
 
-[endsect]
 
+ class work
 
 
-[section:operator_gt__eq_ ip::address_v4::operator>=]
+[heading Member Functions]
+[table
+ [[Name][Description]]
 
-[indexterm2 operator>=..ip::address_v4]
-Compare addresses for ordering.
+ [
+ [[link boost_asio.reference.io_service__work.get_io_service [*get_io_service]]]
+ [Get the io_service associated with the work. ]
+ ]
+
+ [
+ [[link boost_asio.reference.io_service__work.work [*work]]]
+ [Constructor notifies the io_service that work is starting.
 
+ Copy constructor notifies the io_service that work is starting. ]
+ ]
+
+ [
+ [[link boost_asio.reference.io_service__work._work [*~work]]]
+ [Destructor notifies the io_service that the work is complete. ]
+ ]
+
+]
 
- friend bool operator>=(
- const address_v4 & a1,
- const address_v4 & a2);
+The work class is used to inform the [link boost_asio.reference.io_service `io_service`] when work starts and finishes. This ensures that the [link boost_asio.reference.io_service `io_service`] object's `run()` function will not exit while work is underway, and that it does exit when there is no unfinished work remaining.
 
+The work class is copy-constructible so that it may be used as a data member in a handler class. It is not assignable.
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/ip/address_v4.hpp]
+[*Header: ][^boost/asio/io_service.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
 
-[endsect]
+[section:get_io_service io_service::work::get_io_service]
 
+[indexterm2 get_io_service..io_service::work]
+Get the [link boost_asio.reference.io_service `io_service`] associated with the work.
 
 
-[section:to_bytes ip::address_v4::to_bytes]
+ boost::asio::io_service & get_io_service();
 
-[indexterm2 to_bytes..ip::address_v4]
-Get the address in bytes, in network byte order.
 
 
- bytes_type to_bytes() const;
+[endsect]
 
 
+[section:work io_service::work::work]
 
-[endsect]
+[indexterm2 work..io_service::work]
+Constructor notifies the [link boost_asio.reference.io_service `io_service`] that work is starting.
 
 
-[section:to_string ip::address_v4::to_string]
+ explicit ``[link boost_asio.reference.io_service__work.work.overload1 work]``(
+ boost::asio::io_service & io_service);
+ `` [''''&raquo;''' [link boost_asio.reference.io_service__work.work.overload1 more...]]``
 
-[indexterm2 to_string..ip::address_v4]
-Get the address as a string in dotted decimal format.
 
+Copy constructor notifies the [link boost_asio.reference.io_service `io_service`] that work is starting.
 
- std::string ``[link boost_asio.reference.ip__address_v4.to_string.overload1 to_string]``() const;
- `` [''''&raquo;''' [link boost_asio.reference.ip__address_v4.to_string.overload1 more...]]``
 
- std::string ``[link boost_asio.reference.ip__address_v4.to_string.overload2 to_string]``(
- boost::system::error_code & ec) const;
- `` [''''&raquo;''' [link boost_asio.reference.ip__address_v4.to_string.overload2 more...]]``
+ ``[link boost_asio.reference.io_service__work.work.overload2 work]``(
+ const work & other);
+ `` [''''&raquo;''' [link boost_asio.reference.io_service__work.work.overload2 more...]]``
 
 
-[section:overload1 ip::address_v4::to_string (1 of 2 overloads)]
+[section:overload1 io_service::work::work (1 of 2 overloads)]
 
 
-Get the address as a string in dotted decimal format.
+Constructor notifies the [link boost_asio.reference.io_service `io_service`] that work is starting.
 
 
- std::string to_string() const;
+ work(
+ boost::asio::io_service & io_service);
+
 
+The constructor is used to inform the [link boost_asio.reference.io_service `io_service`] that some work has begun. This ensures that the [link boost_asio.reference.io_service `io_service`] object's `run()` function will not exit while the work is underway.
 
 
 [endsect]
 
 
 
-[section:overload2 ip::address_v4::to_string (2 of 2 overloads)]
-
+[section:overload2 io_service::work::work (2 of 2 overloads)]
 
-Get the address as a string in dotted decimal format.
 
+Copy constructor notifies the [link boost_asio.reference.io_service `io_service`] that work is starting.
 
- std::string to_string(
- boost::system::error_code & ec) const;
 
+ work(
+ const work & other);
 
 
-[endsect]
+The constructor is used to inform the [link boost_asio.reference.io_service `io_service`] that some work has begun. This ensures that the [link boost_asio.reference.io_service `io_service`] object's `run()` function will not exit while the work is underway.
 
 
 [endsect]
 
 
-[section:to_ulong ip::address_v4::to_ulong]
+[endsect]
 
-[indexterm2 to_ulong..ip::address_v4]
-Get the address as an unsigned long in host byte order.
 
+[section:_work io_service::work::~work]
 
- unsigned long to_ulong() const;
+[indexterm2 ~work..io_service::work]
+Destructor notifies the [link boost_asio.reference.io_service `io_service`] that the work is complete.
 
 
+ ~work();
 
-[endsect]
 
+The destructor is used to inform the [link boost_asio.reference.io_service `io_service`] that some work has finished. Once the count of unfinished work reaches zero, the [link boost_asio.reference.io_service `io_service`] object's `run()` function is permitted to exit.
 
 
 [endsect]
 
-[section:ip__address_v6 ip::address_v6]
-
 
-Implements IP version 6 style addresses.
 
+[endsect]
 
- class address_v6
+[section:ip__address ip::address]
 
 
-[heading Types]
-[table
- [[Name][Description]]
+Implements version-independent IP addresses.
 
- [
 
- [[link boost_asio.reference.ip__address_v6.bytes_type [*bytes_type]]]
- [The type used to represent an address as an array of bytes. ]
-
- ]
+ class address
 
-]
 
 [heading Member Functions]
 [table
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.ip__address_v6.address_v6 [*address_v6]]]
+ [[link boost_asio.reference.ip__address.address [*address]]]
     [Default constructor.
 
- Construct an address from raw bytes and scope ID.
+ Construct an address from an IPv4 address.
+
+ Construct an address from an IPv6 address.
 
      Copy constructor. ]
   ]
   
   [
- [[link boost_asio.reference.ip__address_v6.any [*any]]]
- [Obtain an address object that represents any address. ]
+ [[link boost_asio.reference.ip__address.from_string [*from_string]]]
+ [Create an address from an IPv4 address string in dotted decimal form, or from an IPv6 address in hexadecimal notation. ]
   ]
   
   [
- [[link boost_asio.reference.ip__address_v6.from_string [*from_string]]]
- [Create an address from an IP address string. ]
+ [[link boost_asio.reference.ip__address.is_loopback [*is_loopback]]]
+ [Determine whether the address is a loopback address. ]
   ]
   
   [
- [[link boost_asio.reference.ip__address_v6.is_link_local [*is_link_local]]]
- [Determine whether the address is link local. ]
+ [[link boost_asio.reference.ip__address.is_multicast [*is_multicast]]]
+ [Determine whether the address is a multicast address. ]
   ]
   
   [
- [[link boost_asio.reference.ip__address_v6.is_loopback [*is_loopback]]]
- [Determine whether the address is a loopback address. ]
+ [[link boost_asio.reference.ip__address.is_unspecified [*is_unspecified]]]
+ [Determine whether the address is unspecified. ]
   ]
   
   [
- [[link boost_asio.reference.ip__address_v6.is_multicast [*is_multicast]]]
- [Determine whether the address is a multicast address. ]
+ [[link boost_asio.reference.ip__address.is_v4 [*is_v4]]]
+ [Get whether the address is an IP version 4 address. ]
   ]
   
   [
- [[link boost_asio.reference.ip__address_v6.is_multicast_global [*is_multicast_global]]]
- [Determine whether the address is a global multicast address. ]
+ [[link boost_asio.reference.ip__address.is_v6 [*is_v6]]]
+ [Get whether the address is an IP version 6 address. ]
   ]
   
   [
- [[link boost_asio.reference.ip__address_v6.is_multicast_link_local [*is_multicast_link_local]]]
- [Determine whether the address is a link-local multicast address. ]
+ [[link boost_asio.reference.ip__address.operator_eq_ [*operator=]]]
+ [Assign from another address.
+
+ Assign from an IPv4 address.
+
+ Assign from an IPv6 address. ]
   ]
   
   [
- [[link boost_asio.reference.ip__address_v6.is_multicast_node_local [*is_multicast_node_local]]]
- [Determine whether the address is a node-local multicast address. ]
+ [[link boost_asio.reference.ip__address.to_string [*to_string]]]
+ [Get the address as a string in dotted decimal format. ]
   ]
   
   [
- [[link boost_asio.reference.ip__address_v6.is_multicast_org_local [*is_multicast_org_local]]]
- [Determine whether the address is a org-local multicast address. ]
+ [[link boost_asio.reference.ip__address.to_v4 [*to_v4]]]
+ [Get the address as an IP version 4 address. ]
   ]
   
   [
- [[link boost_asio.reference.ip__address_v6.is_multicast_site_local [*is_multicast_site_local]]]
- [Determine whether the address is a site-local multicast address. ]
+ [[link boost_asio.reference.ip__address.to_v6 [*to_v6]]]
+ [Get the address as an IP version 6 address. ]
   ]
   
+]
+
+[heading Friends]
+[table
+ [[Name][Description]]
+
   [
- [[link boost_asio.reference.ip__address_v6.is_site_local [*is_site_local]]]
- [Determine whether the address is site local. ]
+ [[link boost_asio.reference.ip__address.operator_not__eq_ [*operator!=]]]
+ [Compare two addresses for inequality. ]
   ]
   
   [
- [[link boost_asio.reference.ip__address_v6.is_unspecified [*is_unspecified]]]
- [Determine whether the address is unspecified. ]
- ]
-
- [
- [[link boost_asio.reference.ip__address_v6.is_v4_compatible [*is_v4_compatible]]]
- [Determine whether the address is an IPv4-compatible address. ]
- ]
-
- [
- [[link boost_asio.reference.ip__address_v6.is_v4_mapped [*is_v4_mapped]]]
- [Determine whether the address is a mapped IPv4 address. ]
- ]
-
- [
- [[link boost_asio.reference.ip__address_v6.loopback [*loopback]]]
- [Obtain an address object that represents the loopback address. ]
- ]
-
- [
- [[link boost_asio.reference.ip__address_v6.operator_eq_ [*operator=]]]
- [Assign from another address. ]
- ]
-
- [
- [[link boost_asio.reference.ip__address_v6.scope_id [*scope_id]]]
- [The scope ID of the address. ]
- ]
-
- [
- [[link boost_asio.reference.ip__address_v6.to_bytes [*to_bytes]]]
- [Get the address in bytes, in network byte order. ]
- ]
-
- [
- [[link boost_asio.reference.ip__address_v6.to_string [*to_string]]]
- [Get the address as a string. ]
- ]
-
- [
- [[link boost_asio.reference.ip__address_v6.to_v4 [*to_v4]]]
- [Converts an IPv4-mapped or IPv4-compatible address to an IPv4 address. ]
- ]
-
- [
- [[link boost_asio.reference.ip__address_v6.v4_compatible [*v4_compatible]]]
- [Create an IPv4-compatible IPv6 address. ]
- ]
-
- [
- [[link boost_asio.reference.ip__address_v6.v4_mapped [*v4_mapped]]]
- [Create an IPv4-mapped IPv6 address. ]
- ]
-
-]
-
-[heading Friends]
-[table
- [[Name][Description]]
-
- [
- [[link boost_asio.reference.ip__address_v6.operator_not__eq_ [*operator!=]]]
- [Compare two addresses for inequality. ]
- ]
-
- [
- [[link boost_asio.reference.ip__address_v6.operator_lt_ [*operator<]]]
+ [[link boost_asio.reference.ip__address.operator_lt_ [*operator<]]]
     [Compare addresses for ordering. ]
   ]
   
   [
- [[link boost_asio.reference.ip__address_v6.operator_lt__eq_ [*operator<=]]]
+ [[link boost_asio.reference.ip__address.operator_lt__eq_ [*operator<=]]]
     [Compare addresses for ordering. ]
   ]
   
   [
- [[link boost_asio.reference.ip__address_v6.operator_eq__eq_ [*operator==]]]
+ [[link boost_asio.reference.ip__address.operator_eq__eq_ [*operator==]]]
     [Compare two addresses for equality. ]
   ]
   
   [
- [[link boost_asio.reference.ip__address_v6.operator_gt_ [*operator>]]]
+ [[link boost_asio.reference.ip__address.operator_gt_ [*operator>]]]
     [Compare addresses for ordering. ]
   ]
   
   [
- [[link boost_asio.reference.ip__address_v6.operator_gt__eq_ [*operator>=]]]
+ [[link boost_asio.reference.ip__address.operator_gt__eq_ [*operator>=]]]
     [Compare addresses for ordering. ]
   ]
   
@@ -56331,13 +56276,13 @@
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.ip__address_v6.operator_lt__lt_ [*operator<<]]]
+ [[link boost_asio.reference.ip__address.operator_lt__lt_ [*operator<<]]]
     [Output an address as a string. ]
   ]
   
 ]
 
-The [link boost_asio.reference.ip__address_v6 `ip::address_v6`] class provides the ability to use and manipulate IP version 6 addresses.
+The [link boost_asio.reference.ip__address `ip::address`] class provides the ability to use either IP version 4 or version 6 addresses.
 
 
 [heading Thread Safety]
@@ -56350,60 +56295,51 @@
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/ip/address_v6.hpp]
+[*Header: ][^boost/asio/ip/address.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
-[section:address_v6 ip::address_v6::address_v6]
+[section:address ip::address::address]
 
-[indexterm2 address_v6..ip::address_v6]
+[indexterm2 address..ip::address]
 Default constructor.
 
 
- ``[link boost_asio.reference.ip__address_v6.address_v6.overload1 address_v6]``();
- `` [''''&raquo;''' [link boost_asio.reference.ip__address_v6.address_v6.overload1 more...]]``
-
-
-Construct an address from raw bytes and scope ID.
-
-
- explicit ``[link boost_asio.reference.ip__address_v6.address_v6.overload2 address_v6]``(
- const bytes_type & bytes,
- unsigned long scope_id = 0);
- `` [''''&raquo;''' [link boost_asio.reference.ip__address_v6.address_v6.overload2 more...]]``
-
-
-Copy constructor.
+ ``[link boost_asio.reference.ip__address.address.overload1 address]``();
+ `` [''''&raquo;''' [link boost_asio.reference.ip__address.address.overload1 more...]]``
 
 
- ``[link boost_asio.reference.ip__address_v6.address_v6.overload3 address_v6]``(
- const address_v6 & other);
- `` [''''&raquo;''' [link boost_asio.reference.ip__address_v6.address_v6.overload3 more...]]``
+Construct an address from an IPv4 address.
 
 
-[section:overload1 ip::address_v6::address_v6 (1 of 3 overloads)]
+ ``[link boost_asio.reference.ip__address.address.overload2 address]``(
+ const boost::asio::ip::address_v4 & ipv4_address);
+ `` [''''&raquo;''' [link boost_asio.reference.ip__address.address.overload2 more...]]``
 
 
-Default constructor.
+Construct an address from an IPv6 address.
 
 
- address_v6();
+ ``[link boost_asio.reference.ip__address.address.overload3 address]``(
+ const boost::asio::ip::address_v6 & ipv6_address);
+ `` [''''&raquo;''' [link boost_asio.reference.ip__address.address.overload3 more...]]``
 
 
+Copy constructor.
 
-[endsect]
 
+ ``[link boost_asio.reference.ip__address.address.overload4 address]``(
+ const address & other);
+ `` [''''&raquo;''' [link boost_asio.reference.ip__address.address.overload4 more...]]``
 
 
-[section:overload2 ip::address_v6::address_v6 (2 of 3 overloads)]
+[section:overload1 ip::address::address (1 of 4 overloads)]
 
 
-Construct an address from raw bytes and scope ID.
+Default constructor.
 
 
- address_v6(
- const bytes_type & bytes,
- unsigned long scope_id = 0);
+ address();
 
 
 
@@ -56411,30 +56347,29 @@
 
 
 
-[section:overload3 ip::address_v6::address_v6 (3 of 3 overloads)]
+[section:overload2 ip::address::address (2 of 4 overloads)]
 
 
-Copy constructor.
+Construct an address from an IPv4 address.
 
 
- address_v6(
- const address_v6 & other);
+ address(
+ const boost::asio::ip::address_v4 & ipv4_address);
 
 
 
 [endsect]
 
 
-[endsect]
 
+[section:overload3 ip::address::address (3 of 4 overloads)]
 
-[section:any ip::address_v6::any]
 
-[indexterm2 any..ip::address_v6]
-Obtain an address object that represents any address.
+Construct an address from an IPv6 address.
 
 
- static address_v6 any();
+ address(
+ const boost::asio::ip::address_v6 & ipv6_address);
 
 
 
@@ -56442,65 +56377,54 @@
 
 
 
-[section:bytes_type ip::address_v6::bytes_type]
-
-[indexterm2 bytes_type..ip::address_v6]
-The type used to represent an address as an array of bytes.
-
-
- typedef array< unsigned char, 16 > bytes_type;
-
-
+[section:overload4 ip::address::address (4 of 4 overloads)]
 
 
-[heading Remarks]
-
-This type is defined in terms of the C++0x template `std::array` when it is available. Otherwise, it uses `boost:array`.
+Copy constructor.
 
 
+ address(
+ const address & other);
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/ip/address_v6.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
+[endsect]
 
 
 [endsect]
 
+[section:from_string ip::address::from_string]
 
-[section:from_string ip::address_v6::from_string]
-
-[indexterm2 from_string..ip::address_v6]
-Create an address from an IP address string.
+[indexterm2 from_string..ip::address]
+Create an address from an IPv4 address string in dotted decimal form, or from an IPv6 address in hexadecimal notation.
 
 
- static address_v6 ``[link boost_asio.reference.ip__address_v6.from_string.overload1 from_string]``(
+ static address ``[link boost_asio.reference.ip__address.from_string.overload1 from_string]``(
       const char * str);
- `` [''''&raquo;''' [link boost_asio.reference.ip__address_v6.from_string.overload1 more...]]``
+ `` [''''&raquo;''' [link boost_asio.reference.ip__address.from_string.overload1 more...]]``
 
- static address_v6 ``[link boost_asio.reference.ip__address_v6.from_string.overload2 from_string]``(
+ static address ``[link boost_asio.reference.ip__address.from_string.overload2 from_string]``(
       const char * str,
       boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.ip__address_v6.from_string.overload2 more...]]``
+ `` [''''&raquo;''' [link boost_asio.reference.ip__address.from_string.overload2 more...]]``
 
- static address_v6 ``[link boost_asio.reference.ip__address_v6.from_string.overload3 from_string]``(
+ static address ``[link boost_asio.reference.ip__address.from_string.overload3 from_string]``(
       const std::string & str);
- `` [''''&raquo;''' [link boost_asio.reference.ip__address_v6.from_string.overload3 more...]]``
+ `` [''''&raquo;''' [link boost_asio.reference.ip__address.from_string.overload3 more...]]``
 
- static address_v6 ``[link boost_asio.reference.ip__address_v6.from_string.overload4 from_string]``(
+ static address ``[link boost_asio.reference.ip__address.from_string.overload4 from_string]``(
       const std::string & str,
       boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.ip__address_v6.from_string.overload4 more...]]``
+ `` [''''&raquo;''' [link boost_asio.reference.ip__address.from_string.overload4 more...]]``
 
 
-[section:overload1 ip::address_v6::from_string (1 of 4 overloads)]
+[section:overload1 ip::address::from_string (1 of 4 overloads)]
 
 
-Create an address from an IP address string.
+Create an address from an IPv4 address string in dotted decimal form, or from an IPv6 address in hexadecimal notation.
 
 
- static address_v6 from_string(
+ static address from_string(
       const char * str);
 
 
@@ -56509,13 +56433,13 @@
 
 
 
-[section:overload2 ip::address_v6::from_string (2 of 4 overloads)]
+[section:overload2 ip::address::from_string (2 of 4 overloads)]
 
 
-Create an address from an IP address string.
+Create an address from an IPv4 address string in dotted decimal form, or from an IPv6 address in hexadecimal notation.
 
 
- static address_v6 from_string(
+ static address from_string(
       const char * str,
       boost::system::error_code & ec);
 
@@ -56525,13 +56449,13 @@
 
 
 
-[section:overload3 ip::address_v6::from_string (3 of 4 overloads)]
+[section:overload3 ip::address::from_string (3 of 4 overloads)]
 
 
-Create an address from an IP address string.
+Create an address from an IPv4 address string in dotted decimal form, or from an IPv6 address in hexadecimal notation.
 
 
- static address_v6 from_string(
+ static address from_string(
       const std::string & str);
 
 
@@ -56540,13 +56464,13 @@
 
 
 
-[section:overload4 ip::address_v6::from_string (4 of 4 overloads)]
+[section:overload4 ip::address::from_string (4 of 4 overloads)]
 
 
-Create an address from an IP address string.
+Create an address from an IPv4 address string in dotted decimal form, or from an IPv6 address in hexadecimal notation.
 
 
- static address_v6 from_string(
+ static address from_string(
       const std::string & str,
       boost::system::error_code & ec);
 
@@ -56558,23 +56482,9 @@
 [endsect]
 
 
-[section:is_link_local ip::address_v6::is_link_local]
-
-[indexterm2 is_link_local..ip::address_v6]
-Determine whether the address is link local.
-
-
- bool is_link_local() const;
-
-
-
-[endsect]
-
-
-
-[section:is_loopback ip::address_v6::is_loopback]
+[section:is_loopback ip::address::is_loopback]
 
-[indexterm2 is_loopback..ip::address_v6]
+[indexterm2 is_loopback..ip::address]
 Determine whether the address is a loopback address.
 
 
@@ -56586,9 +56496,9 @@
 
 
 
-[section:is_multicast ip::address_v6::is_multicast]
+[section:is_multicast ip::address::is_multicast]
 
-[indexterm2 is_multicast..ip::address_v6]
+[indexterm2 is_multicast..ip::address]
 Determine whether the address is a multicast address.
 
 
@@ -56600,13 +56510,13 @@
 
 
 
-[section:is_multicast_global ip::address_v6::is_multicast_global]
+[section:is_unspecified ip::address::is_unspecified]
 
-[indexterm2 is_multicast_global..ip::address_v6]
-Determine whether the address is a global multicast address.
+[indexterm2 is_unspecified..ip::address]
+Determine whether the address is unspecified.
 
 
- bool is_multicast_global() const;
+ bool is_unspecified() const;
 
 
 
@@ -56614,13 +56524,13 @@
 
 
 
-[section:is_multicast_link_local ip::address_v6::is_multicast_link_local]
+[section:is_v4 ip::address::is_v4]
 
-[indexterm2 is_multicast_link_local..ip::address_v6]
-Determine whether the address is a link-local multicast address.
+[indexterm2 is_v4..ip::address]
+Get whether the address is an IP version 4 address.
 
 
- bool is_multicast_link_local() const;
+ bool is_v4() const;
 
 
 
@@ -56628,13 +56538,13 @@
 
 
 
-[section:is_multicast_node_local ip::address_v6::is_multicast_node_local]
+[section:is_v6 ip::address::is_v6]
 
-[indexterm2 is_multicast_node_local..ip::address_v6]
-Determine whether the address is a node-local multicast address.
+[indexterm2 is_v6..ip::address]
+Get whether the address is an IP version 6 address.
 
 
- bool is_multicast_node_local() const;
+ bool is_v6() const;
 
 
 
@@ -56642,97 +56552,83 @@
 
 
 
-[section:is_multicast_org_local ip::address_v6::is_multicast_org_local]
-
-[indexterm2 is_multicast_org_local..ip::address_v6]
-Determine whether the address is a org-local multicast address.
-
-
- bool is_multicast_org_local() const;
-
-
-
-[endsect]
+[section:operator_not__eq_ ip::address::operator!=]
 
+[indexterm2 operator!=..ip::address]
+Compare two addresses for inequality.
 
 
-[section:is_multicast_site_local ip::address_v6::is_multicast_site_local]
+ friend bool operator!=(
+ const address & a1,
+ const address & a2);
 
-[indexterm2 is_multicast_site_local..ip::address_v6]
-Determine whether the address is a site-local multicast address.
 
+[heading Requirements]
 
- bool is_multicast_site_local() const;
+[*Header: ][^boost/asio/ip/address.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
 
-[section:is_site_local ip::address_v6::is_site_local]
-
-[indexterm2 is_site_local..ip::address_v6]
-Determine whether the address is site local.
-
-
- bool is_site_local() const;
-
-
-
-[endsect]
+[section:operator_lt_ ip::address::operator<]
 
+[indexterm2 operator<..ip::address]
+Compare addresses for ordering.
 
 
-[section:is_unspecified ip::address_v6::is_unspecified]
+ friend bool operator<(
+ const address & a1,
+ const address & a2);
 
-[indexterm2 is_unspecified..ip::address_v6]
-Determine whether the address is unspecified.
 
+[heading Requirements]
 
- bool is_unspecified() const;
+[*Header: ][^boost/asio/ip/address.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
 
-[section:is_v4_compatible ip::address_v6::is_v4_compatible]
-
-[indexterm2 is_v4_compatible..ip::address_v6]
-Determine whether the address is an IPv4-compatible address.
-
-
- bool is_v4_compatible() const;
-
-
-
-[endsect]
-
-
+[section:operator_lt__lt_ ip::address::operator<<]
 
-[section:is_v4_mapped ip::address_v6::is_v4_mapped]
+[indexterm2 operator<<..ip::address]
+Output an address as a string.
 
-[indexterm2 is_v4_mapped..ip::address_v6]
-Determine whether the address is a mapped IPv4 address.
 
+ template<
+ typename Elem,
+ typename Traits>
+ std::basic_ostream< Elem, Traits > & operator<<(
+ std::basic_ostream< Elem, Traits > & os,
+ const address & addr);
 
- bool is_v4_mapped() const;
 
+Used to output a human-readable string for a specified address.
 
 
-[endsect]
+[heading Parameters]
+
 
+[variablelist
+
+[[os][The output stream to which the string will be written.]]
 
+[[addr][The address to be written.]]
 
-[section:loopback ip::address_v6::loopback]
+]
 
-[indexterm2 loopback..ip::address_v6]
-Obtain an address object that represents the loopback address.
 
+[heading Return Value]
+
+The output stream.
 
- static address_v6 loopback();
 
 
 
@@ -56740,20 +56636,20 @@
 
 
 
-[section:operator_not__eq_ ip::address_v6::operator!=]
+[section:operator_lt__eq_ ip::address::operator<=]
 
-[indexterm2 operator!=..ip::address_v6]
-Compare two addresses for inequality.
+[indexterm2 operator<=..ip::address]
+Compare addresses for ordering.
 
 
- friend bool operator!=(
- const address_v6 & a1,
- const address_v6 & a2);
+ friend bool operator<=(
+ const address & a1,
+ const address & a2);
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/ip/address_v6.hpp]
+[*Header: ][^boost/asio/ip/address.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -56761,120 +56657,94 @@
 [endsect]
 
 
+[section:operator_eq_ ip::address::operator=]
 
-[section:operator_lt_ ip::address_v6::operator<]
-
-[indexterm2 operator<..ip::address_v6]
-Compare addresses for ordering.
+[indexterm2 operator=..ip::address]
+Assign from another address.
 
 
- friend bool operator<(
- const address_v6 & a1,
- const address_v6 & a2);
+ address & ``[link boost_asio.reference.ip__address.operator_eq_.overload1 operator=]``(
+ const address & other);
+ `` [''''&raquo;''' [link boost_asio.reference.ip__address.operator_eq_.overload1 more...]]``
 
 
-[heading Requirements]
+Assign from an IPv4 address.
 
-[*Header: ][^boost/asio/ip/address_v6.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
+ address & ``[link boost_asio.reference.ip__address.operator_eq_.overload2 operator=]``(
+ const boost::asio::ip::address_v4 & ipv4_address);
+ `` [''''&raquo;''' [link boost_asio.reference.ip__address.operator_eq_.overload2 more...]]``
 
 
-[endsect]
+Assign from an IPv6 address.
 
 
+ address & ``[link boost_asio.reference.ip__address.operator_eq_.overload3 operator=]``(
+ const boost::asio::ip::address_v6 & ipv6_address);
+ `` [''''&raquo;''' [link boost_asio.reference.ip__address.operator_eq_.overload3 more...]]``
 
-[section:operator_lt__lt_ ip::address_v6::operator<<]
 
-[indexterm2 operator<<..ip::address_v6]
-Output an address as a string.
+[section:overload1 ip::address::operator= (1 of 3 overloads)]
 
 
- template<
- typename Elem,
- typename Traits>
- std::basic_ostream< Elem, Traits > & operator<<(
- std::basic_ostream< Elem, Traits > & os,
- const address_v6 & addr);
+Assign from another address.
 
 
-Used to output a human-readable string for a specified address.
+ address & operator=(
+ const address & other);
 
 
-[heading Parameters]
-
 
-[variablelist
-
-[[os][The output stream to which the string will be written.]]
+[endsect]
 
-[[addr][The address to be written.]]
 
-]
 
+[section:overload2 ip::address::operator= (2 of 3 overloads)]
 
-[heading Return Value]
-
-The output stream.
 
+Assign from an IPv4 address.
 
 
+ address & operator=(
+ const boost::asio::ip::address_v4 & ipv4_address);
 
-[endsect]
 
 
+[endsect]
 
-[section:operator_lt__eq_ ip::address_v6::operator<=]
 
-[indexterm2 operator<=..ip::address_v6]
-Compare addresses for ordering.
 
+[section:overload3 ip::address::operator= (3 of 3 overloads)]
 
- friend bool operator<=(
- const address_v6 & a1,
- const address_v6 & a2);
 
+Assign from an IPv6 address.
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/ip/address_v6.hpp]
+ address & operator=(
+ const boost::asio::ip::address_v6 & ipv6_address);
 
-[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
-
-[section:operator_eq_ ip::address_v6::operator=]
-
-[indexterm2 operator=..ip::address_v6]
-Assign from another address.
-
-
- address_v6 & operator=(
- const address_v6 & other);
-
-
-
 [endsect]
 
 
+[section:operator_eq__eq_ ip::address::operator==]
 
-[section:operator_eq__eq_ ip::address_v6::operator==]
-
-[indexterm2 operator==..ip::address_v6]
+[indexterm2 operator==..ip::address]
 Compare two addresses for equality.
 
 
   friend bool operator==(
- const address_v6 & a1,
- const address_v6 & a2);
+ const address & a1,
+ const address & a2);
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/ip/address_v6.hpp]
+[*Header: ][^boost/asio/ip/address.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -56883,20 +56753,20 @@
 
 
 
-[section:operator_gt_ ip::address_v6::operator>]
+[section:operator_gt_ ip::address::operator>]
 
-[indexterm2 operator>..ip::address_v6]
+[indexterm2 operator>..ip::address]
 Compare addresses for ordering.
 
 
   friend bool operator>(
- const address_v6 & a1,
- const address_v6 & a2);
+ const address & a1,
+ const address & a2);
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/ip/address_v6.hpp]
+[*Header: ][^boost/asio/ip/address.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -56905,20 +56775,20 @@
 
 
 
-[section:operator_gt__eq_ ip::address_v6::operator>=]
+[section:operator_gt__eq_ ip::address::operator>=]
 
-[indexterm2 operator>=..ip::address_v6]
+[indexterm2 operator>=..ip::address]
 Compare addresses for ordering.
 
 
   friend bool operator>=(
- const address_v6 & a1,
- const address_v6 & a2);
+ const address & a1,
+ const address & a2);
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/ip/address_v6.hpp]
+[*Header: ][^boost/asio/ip/address.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -56926,47 +56796,43 @@
 [endsect]
 
 
-[section:scope_id ip::address_v6::scope_id]
-
-[indexterm2 scope_id..ip::address_v6]
-The scope ID of the address.
+[section:to_string ip::address::to_string]
 
+[indexterm2 to_string..ip::address]
+Get the address as a string in dotted decimal format.
 
- unsigned long ``[link boost_asio.reference.ip__address_v6.scope_id.overload1 scope_id]``() const;
- `` [''''&raquo;''' [link boost_asio.reference.ip__address_v6.scope_id.overload1 more...]]``
 
- void ``[link boost_asio.reference.ip__address_v6.scope_id.overload2 scope_id]``(
- unsigned long id);
- `` [''''&raquo;''' [link boost_asio.reference.ip__address_v6.scope_id.overload2 more...]]``
+ std::string ``[link boost_asio.reference.ip__address.to_string.overload1 to_string]``() const;
+ `` [''''&raquo;''' [link boost_asio.reference.ip__address.to_string.overload1 more...]]``
 
+ std::string ``[link boost_asio.reference.ip__address.to_string.overload2 to_string]``(
+ boost::system::error_code & ec) const;
+ `` [''''&raquo;''' [link boost_asio.reference.ip__address.to_string.overload2 more...]]``
 
-[section:overload1 ip::address_v6::scope_id (1 of 2 overloads)]
 
+[section:overload1 ip::address::to_string (1 of 2 overloads)]
 
-The scope ID of the address.
 
+Get the address as a string in dotted decimal format.
 
- unsigned long scope_id() const;
 
+ std::string to_string() const;
 
-Returns the scope ID associated with the IPv6 address.
 
 
 [endsect]
 
 
 
-[section:overload2 ip::address_v6::scope_id (2 of 2 overloads)]
-
+[section:overload2 ip::address::to_string (2 of 2 overloads)]
 
-The scope ID of the address.
 
+Get the address as a string in dotted decimal format.
 
- void scope_id(
- unsigned long id);
 
+ std::string to_string(
+ boost::system::error_code & ec) const;
 
-Modifies the scope ID associated with the IPv6 address.
 
 
 [endsect]
@@ -56975,86 +56841,13 @@
 [endsect]
 
 
-[section:to_bytes ip::address_v6::to_bytes]
+[section:to_v4 ip::address::to_v4]
 
-[indexterm2 to_bytes..ip::address_v6]
-Get the address in bytes, in network byte order.
-
-
- bytes_type to_bytes() const;
-
-
-
-[endsect]
-
-
-[section:to_string ip::address_v6::to_string]
-
-[indexterm2 to_string..ip::address_v6]
-Get the address as a string.
-
-
- std::string ``[link boost_asio.reference.ip__address_v6.to_string.overload1 to_string]``() const;
- `` [''''&raquo;''' [link boost_asio.reference.ip__address_v6.to_string.overload1 more...]]``
-
- std::string ``[link boost_asio.reference.ip__address_v6.to_string.overload2 to_string]``(
- boost::system::error_code & ec) const;
- `` [''''&raquo;''' [link boost_asio.reference.ip__address_v6.to_string.overload2 more...]]``
-
-
-[section:overload1 ip::address_v6::to_string (1 of 2 overloads)]
-
-
-Get the address as a string.
-
-
- std::string to_string() const;
-
-
-
-[endsect]
-
-
-
-[section:overload2 ip::address_v6::to_string (2 of 2 overloads)]
-
-
-Get the address as a string.
-
-
- std::string to_string(
- boost::system::error_code & ec) const;
-
-
-
-[endsect]
-
-
-[endsect]
-
-
-[section:to_v4 ip::address_v6::to_v4]
-
-[indexterm2 to_v4..ip::address_v6]
-Converts an IPv4-mapped or IPv4-compatible address to an IPv4 address.
-
-
- address_v4 to_v4() const;
-
-
-
-[endsect]
-
-
-
-[section:v4_compatible ip::address_v6::v4_compatible]
-
-[indexterm2 v4_compatible..ip::address_v6]
-Create an IPv4-compatible IPv6 address.
+[indexterm2 to_v4..ip::address]
+Get the address as an IP version 4 address.
 
 
- static address_v6 v4_compatible(
- const address_v4 & addr);
+ boost::asio::ip::address_v4 to_v4() const;
 
 
 
@@ -57062,14 +56855,13 @@
 
 
 
-[section:v4_mapped ip::address_v6::v4_mapped]
+[section:to_v6 ip::address::to_v6]
 
-[indexterm2 v4_mapped..ip::address_v6]
-Create an IPv4-mapped IPv6 address.
+[indexterm2 to_v6..ip::address]
+Get the address as an IP version 6 address.
 
 
- static address_v6 v4_mapped(
- const address_v4 & addr);
+ boost::asio::ip::address_v6 to_v6() const;
 
 
 
@@ -57079,15 +56871,13 @@
 
 [endsect]
 
-[section:ip__basic_endpoint ip::basic_endpoint]
+[section:ip__address_v4 ip::address_v4]
 
 
-Describes an endpoint for a version-independent IP socket.
+Implements IP version 4 style addresses.
 
 
- template<
- typename ``[link boost_asio.reference.InternetProtocol InternetProtocol]``>
- class basic_endpoint
+ class address_v4
 
 
 [heading Types]
@@ -57096,15 +56886,8 @@
 
   [
 
- [[link boost_asio.reference.ip__basic_endpoint.data_type [*data_type]]]
- [The type of the endpoint structure. This type is dependent on the underlying implementation of the socket layer. ]
-
- ]
-
- [
-
- [[link boost_asio.reference.ip__basic_endpoint.protocol_type [*protocol_type]]]
- [The protocol type associated with the endpoint. ]
+ [[link boost_asio.reference.ip__address_v4.bytes_type [*bytes_type]]]
+ [The type used to represent an address as an array of bytes. ]
   
   ]
 
@@ -57115,58 +56898,91 @@
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.ip__basic_endpoint.address [*address]]]
- [Get the IP address associated with the endpoint.
-
- Set the IP address associated with the endpoint. ]
- ]
-
- [
- [[link boost_asio.reference.ip__basic_endpoint.basic_endpoint [*basic_endpoint]]]
+ [[link boost_asio.reference.ip__address_v4.address_v4 [*address_v4]]]
     [Default constructor.
 
- Construct an endpoint using a port number, specified in the host's byte order. The IP address will be the any address (i.e. INADDR_ANY or in6addr_any). This constructor would typically be used for accepting new connections.
+ Construct an address from raw bytes.
 
- Construct an endpoint using a port number and an IP address. This constructor may be used for accepting connections on a specific interface or for making a connection to a remote endpoint.
+ Construct an address from a unsigned long in host byte order.
 
      Copy constructor. ]
   ]
   
   [
- [[link boost_asio.reference.ip__basic_endpoint.capacity [*capacity]]]
- [Get the capacity of the endpoint in the native type. ]
+ [[link boost_asio.reference.ip__address_v4.any [*any]]]
+ [Obtain an address object that represents any address. ]
   ]
   
   [
- [[link boost_asio.reference.ip__basic_endpoint.data [*data]]]
- [Get the underlying endpoint in the native type. ]
+ [[link boost_asio.reference.ip__address_v4.broadcast [*broadcast]]]
+ [Obtain an address object that represents the broadcast address.
+
+ Obtain an address object that represents the broadcast address that corresponds to the specified address and netmask. ]
   ]
   
   [
- [[link boost_asio.reference.ip__basic_endpoint.operator_eq_ [*operator=]]]
- [Assign from another endpoint. ]
+ [[link boost_asio.reference.ip__address_v4.from_string [*from_string]]]
+ [Create an address from an IP address string in dotted decimal form. ]
   ]
   
   [
- [[link boost_asio.reference.ip__basic_endpoint.port [*port]]]
- [Get the port associated with the endpoint. The port number is always in the host's byte order.
-
- Set the port associated with the endpoint. The port number is always in the host's byte order. ]
+ [[link boost_asio.reference.ip__address_v4.is_class_a [*is_class_a]]]
+ [Determine whether the address is a class A address. ]
   ]
   
   [
- [[link boost_asio.reference.ip__basic_endpoint.protocol [*protocol]]]
- [The protocol associated with the endpoint. ]
+ [[link boost_asio.reference.ip__address_v4.is_class_b [*is_class_b]]]
+ [Determine whether the address is a class B address. ]
   ]
   
   [
- [[link boost_asio.reference.ip__basic_endpoint.resize [*resize]]]
- [Set the underlying size of the endpoint in the native type. ]
+ [[link boost_asio.reference.ip__address_v4.is_class_c [*is_class_c]]]
+ [Determine whether the address is a class C address. ]
   ]
   
   [
- [[link boost_asio.reference.ip__basic_endpoint.size [*size]]]
- [Get the underlying size of the endpoint in the native type. ]
+ [[link boost_asio.reference.ip__address_v4.is_loopback [*is_loopback]]]
+ [Determine whether the address is a loopback address. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__address_v4.is_multicast [*is_multicast]]]
+ [Determine whether the address is a multicast address. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__address_v4.is_unspecified [*is_unspecified]]]
+ [Determine whether the address is unspecified. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__address_v4.loopback [*loopback]]]
+ [Obtain an address object that represents the loopback address. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__address_v4.netmask [*netmask]]]
+ [Obtain the netmask that corresponds to the address, based on its address class. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__address_v4.operator_eq_ [*operator=]]]
+ [Assign from another address. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__address_v4.to_bytes [*to_bytes]]]
+ [Get the address in bytes, in network byte order. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__address_v4.to_string [*to_string]]]
+ [Get the address as a string in dotted decimal format. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__address_v4.to_ulong [*to_ulong]]]
+ [Get the address as an unsigned long in host byte order. ]
   ]
   
 ]
@@ -57176,33 +56992,33 @@
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.ip__basic_endpoint.operator_not__eq_ [*operator!=]]]
- [Compare two endpoints for inequality. ]
+ [[link boost_asio.reference.ip__address_v4.operator_not__eq_ [*operator!=]]]
+ [Compare two addresses for inequality. ]
   ]
   
   [
- [[link boost_asio.reference.ip__basic_endpoint.operator_lt_ [*operator<]]]
- [Compare endpoints for ordering. ]
+ [[link boost_asio.reference.ip__address_v4.operator_lt_ [*operator<]]]
+ [Compare addresses for ordering. ]
   ]
   
   [
- [[link boost_asio.reference.ip__basic_endpoint.operator_lt__eq_ [*operator<=]]]
- [Compare endpoints for ordering. ]
+ [[link boost_asio.reference.ip__address_v4.operator_lt__eq_ [*operator<=]]]
+ [Compare addresses for ordering. ]
   ]
   
   [
- [[link boost_asio.reference.ip__basic_endpoint.operator_eq__eq_ [*operator==]]]
- [Compare two endpoints for equality. ]
+ [[link boost_asio.reference.ip__address_v4.operator_eq__eq_ [*operator==]]]
+ [Compare two addresses for equality. ]
   ]
   
   [
- [[link boost_asio.reference.ip__basic_endpoint.operator_gt_ [*operator>]]]
- [Compare endpoints for ordering. ]
+ [[link boost_asio.reference.ip__address_v4.operator_gt_ [*operator>]]]
+ [Compare addresses for ordering. ]
   ]
   
   [
- [[link boost_asio.reference.ip__basic_endpoint.operator_gt__eq_ [*operator>=]]]
- [Compare endpoints for ordering. ]
+ [[link boost_asio.reference.ip__address_v4.operator_gt__eq_ [*operator>=]]]
+ [Compare addresses for ordering. ]
   ]
   
 ]
@@ -57212,170 +57028,163 @@
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.ip__basic_endpoint.operator_lt__lt_ [*operator<<]]]
- [Output an endpoint as a string. ]
+ [[link boost_asio.reference.ip__address_v4.operator_lt__lt_ [*operator<<]]]
+ [Output an address as a string. ]
   ]
   
 ]
 
-The [link boost_asio.reference.ip__basic_endpoint `ip::basic_endpoint`] class template describes an endpoint that may be associated with a particular socket.
+The [link boost_asio.reference.ip__address_v4 `ip::address_v4`] class provides the ability to use and manipulate IP version 4 addresses.
 
 
 [heading Thread Safety]
   
 [*Distinct] [*objects:] Safe.
 
-[*Shared] [*objects:] Unsafe.
-
+[*Shared] [*objects:] Unsafe.
 
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/ip/basic_endpoint.hpp]
+[*Header: ][^boost/asio/ip/address_v4.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
-[section:address ip::basic_endpoint::address]
-
-[indexterm2 address..ip::basic_endpoint]
-Get the IP address associated with the endpoint.
-
+[section:address_v4 ip::address_v4::address_v4]
 
- boost::asio::ip::address ``[link boost_asio.reference.ip__basic_endpoint.address.overload1 address]``() const;
- `` [''''&raquo;''' [link boost_asio.reference.ip__basic_endpoint.address.overload1 more...]]``
+[indexterm2 address_v4..ip::address_v4]
+Default constructor.
 
 
-Set the IP address associated with the endpoint.
+ ``[link boost_asio.reference.ip__address_v4.address_v4.overload1 address_v4]``();
+ `` [''''&raquo;''' [link boost_asio.reference.ip__address_v4.address_v4.overload1 more...]]``
 
 
- void ``[link boost_asio.reference.ip__basic_endpoint.address.overload2 address]``(
- const boost::asio::ip::address & addr);
- `` [''''&raquo;''' [link boost_asio.reference.ip__basic_endpoint.address.overload2 more...]]``
+Construct an address from raw bytes.
 
 
-[section:overload1 ip::basic_endpoint::address (1 of 2 overloads)]
+ explicit ``[link boost_asio.reference.ip__address_v4.address_v4.overload2 address_v4]``(
+ const bytes_type & bytes);
+ `` [''''&raquo;''' [link boost_asio.reference.ip__address_v4.address_v4.overload2 more...]]``
 
 
-Get the IP address associated with the endpoint.
+Construct an address from a unsigned long in host byte order.
 
 
- boost::asio::ip::address address() const;
+ explicit ``[link boost_asio.reference.ip__address_v4.address_v4.overload3 address_v4]``(
+ unsigned long addr);
+ `` [''''&raquo;''' [link boost_asio.reference.ip__address_v4.address_v4.overload3 more...]]``
 
 
+Copy constructor.
 
-[endsect]
 
+ ``[link boost_asio.reference.ip__address_v4.address_v4.overload4 address_v4]``(
+ const address_v4 & other);
+ `` [''''&raquo;''' [link boost_asio.reference.ip__address_v4.address_v4.overload4 more...]]``
 
 
-[section:overload2 ip::basic_endpoint::address (2 of 2 overloads)]
+[section:overload1 ip::address_v4::address_v4 (1 of 4 overloads)]
 
 
-Set the IP address associated with the endpoint.
+Default constructor.
 
 
- void address(
- const boost::asio::ip::address & addr);
+ address_v4();
 
 
 
 [endsect]
 
 
-[endsect]
 
-[section:basic_endpoint ip::basic_endpoint::basic_endpoint]
+[section:overload2 ip::address_v4::address_v4 (2 of 4 overloads)]
 
-[indexterm2 basic_endpoint..ip::basic_endpoint]
-Default constructor.
 
+Construct an address from raw bytes.
 
- ``[link boost_asio.reference.ip__basic_endpoint.basic_endpoint.overload1 basic_endpoint]``();
- `` [''''&raquo;''' [link boost_asio.reference.ip__basic_endpoint.basic_endpoint.overload1 more...]]``
 
+ address_v4(
+ const bytes_type & bytes);
 
-Construct an endpoint using a port number, specified in the host's byte order. The IP address will be the any address (i.e. INADDR\_ANY or in6addr\_any). This constructor would typically be used for accepting new connections.
 
 
- ``[link boost_asio.reference.ip__basic_endpoint.basic_endpoint.overload2 basic_endpoint]``(
- const InternetProtocol & internet_protocol,
- unsigned short port_num);
- `` [''''&raquo;''' [link boost_asio.reference.ip__basic_endpoint.basic_endpoint.overload2 more...]]``
+[endsect]
 
 
-Construct an endpoint using a port number and an IP address. This constructor may be used for accepting connections on a specific interface or for making a connection to a remote endpoint.
 
+[section:overload3 ip::address_v4::address_v4 (3 of 4 overloads)]
 
- ``[link boost_asio.reference.ip__basic_endpoint.basic_endpoint.overload3 basic_endpoint]``(
- const boost::asio::ip::address & addr,
- unsigned short port_num);
- `` [''''&raquo;''' [link boost_asio.reference.ip__basic_endpoint.basic_endpoint.overload3 more...]]``
 
+Construct an address from a unsigned long in host byte order.
 
-Copy constructor.
 
+ address_v4(
+ unsigned long addr);
 
- ``[link boost_asio.reference.ip__basic_endpoint.basic_endpoint.overload4 basic_endpoint]``(
- const basic_endpoint & other);
- `` [''''&raquo;''' [link boost_asio.reference.ip__basic_endpoint.basic_endpoint.overload4 more...]]``
 
 
-[section:overload1 ip::basic_endpoint::basic_endpoint (1 of 4 overloads)]
+[endsect]
 
 
-Default constructor.
 
+[section:overload4 ip::address_v4::address_v4 (4 of 4 overloads)]
 
- basic_endpoint();
 
+Copy constructor.
 
 
-[endsect]
+ address_v4(
+ const address_v4 & other);
 
 
 
-[section:overload2 ip::basic_endpoint::basic_endpoint (2 of 4 overloads)]
+[endsect]
 
 
-Construct an endpoint using a port number, specified in the host's byte order. The IP address will be the any address (i.e. INADDR\_ANY or in6addr\_any). This constructor would typically be used for accepting new connections.
+[endsect]
 
 
- basic_endpoint(
- const InternetProtocol & internet_protocol,
- unsigned short port_num);
+[section:any ip::address_v4::any]
 
+[indexterm2 any..ip::address_v4]
+Obtain an address object that represents any address.
 
 
-[heading Examples]
-
-To initialise an IPv4 TCP endpoint for port 1234, use:
+ static address_v4 any();
 
- boost::asio::ip::tcp::endpoint ep(boost::asio::ip::tcp::v4(), 1234);
 
 
+[endsect]
 
 
-To specify an IPv6 UDP endpoint for port 9876, use:
+[section:broadcast ip::address_v4::broadcast]
 
- boost::asio::ip::udp::endpoint ep(boost::asio::ip::udp::v6(), 9876);
+[indexterm2 broadcast..ip::address_v4]
+Obtain an address object that represents the broadcast address.
 
 
+ static address_v4 ``[link boost_asio.reference.ip__address_v4.broadcast.overload1 broadcast]``();
+ `` [''''&raquo;''' [link boost_asio.reference.ip__address_v4.broadcast.overload1 more...]]``
 
 
+Obtain an address object that represents the broadcast address that corresponds to the specified address and netmask.
 
-[endsect]
 
+ static address_v4 ``[link boost_asio.reference.ip__address_v4.broadcast.overload2 broadcast]``(
+ const address_v4 & addr,
+ const address_v4 & mask);
+ `` [''''&raquo;''' [link boost_asio.reference.ip__address_v4.broadcast.overload2 more...]]``
 
 
-[section:overload3 ip::basic_endpoint::basic_endpoint (3 of 4 overloads)]
+[section:overload1 ip::address_v4::broadcast (1 of 2 overloads)]
 
 
-Construct an endpoint using a port number and an IP address. This constructor may be used for accepting connections on a specific interface or for making a connection to a remote endpoint.
+Obtain an address object that represents the broadcast address.
 
 
- basic_endpoint(
- const boost::asio::ip::address & addr,
- unsigned short port_num);
+ static address_v4 broadcast();
 
 
 
@@ -57383,14 +57192,15 @@
 
 
 
-[section:overload4 ip::basic_endpoint::basic_endpoint (4 of 4 overloads)]
+[section:overload2 ip::address_v4::broadcast (2 of 2 overloads)]
 
 
-Copy constructor.
+Obtain an address object that represents the broadcast address that corresponds to the specified address and netmask.
 
 
- basic_endpoint(
- const basic_endpoint & other);
+ static address_v4 broadcast(
+ const address_v4 & addr,
+ const address_v4 & mask);
 
 
 
@@ -57400,194 +57210,199 @@
 [endsect]
 
 
-[section:capacity ip::basic_endpoint::capacity]
+[section:bytes_type ip::address_v4::bytes_type]
 
-[indexterm2 capacity..ip::basic_endpoint]
-Get the capacity of the endpoint in the native type.
+[indexterm2 bytes_type..ip::address_v4]
+The type used to represent an address as an array of bytes.
 
 
- std::size_t capacity() const;
+ typedef array< unsigned char, 4 > bytes_type;
 
 
 
-[endsect]
 
+[heading Remarks]
+
+This type is defined in terms of the C++0x template `std::array` when it is available. Otherwise, it uses `boost:array`.
 
-[section:data ip::basic_endpoint::data]
 
-[indexterm2 data..ip::basic_endpoint]
-Get the underlying endpoint in the native type.
 
+[heading Requirements]
 
- data_type * ``[link boost_asio.reference.ip__basic_endpoint.data.overload1 data]``();
- `` [''''&raquo;''' [link boost_asio.reference.ip__basic_endpoint.data.overload1 more...]]``
+[*Header: ][^boost/asio/ip/address_v4.hpp]
 
- const data_type * ``[link boost_asio.reference.ip__basic_endpoint.data.overload2 data]``() const;
- `` [''''&raquo;''' [link boost_asio.reference.ip__basic_endpoint.data.overload2 more...]]``
+[*Convenience header: ][^boost/asio.hpp]
 
 
-[section:overload1 ip::basic_endpoint::data (1 of 2 overloads)]
+[endsect]
 
 
-Get the underlying endpoint in the native type.
+[section:from_string ip::address_v4::from_string]
 
+[indexterm2 from_string..ip::address_v4]
+Create an address from an IP address string in dotted decimal form.
 
- data_type * data();
 
+ static address_v4 ``[link boost_asio.reference.ip__address_v4.from_string.overload1 from_string]``(
+ const char * str);
+ `` [''''&raquo;''' [link boost_asio.reference.ip__address_v4.from_string.overload1 more...]]``
 
+ static address_v4 ``[link boost_asio.reference.ip__address_v4.from_string.overload2 from_string]``(
+ const char * str,
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.ip__address_v4.from_string.overload2 more...]]``
 
-[endsect]
+ static address_v4 ``[link boost_asio.reference.ip__address_v4.from_string.overload3 from_string]``(
+ const std::string & str);
+ `` [''''&raquo;''' [link boost_asio.reference.ip__address_v4.from_string.overload3 more...]]``
 
+ static address_v4 ``[link boost_asio.reference.ip__address_v4.from_string.overload4 from_string]``(
+ const std::string & str,
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.ip__address_v4.from_string.overload4 more...]]``
 
 
-[section:overload2 ip::basic_endpoint::data (2 of 2 overloads)]
+[section:overload1 ip::address_v4::from_string (1 of 4 overloads)]
 
 
-Get the underlying endpoint in the native type.
+Create an address from an IP address string in dotted decimal form.
 
 
- const data_type * data() const;
+ static address_v4 from_string(
+ const char * str);
 
 
 
 [endsect]
 
 
-[endsect]
 
+[section:overload2 ip::address_v4::from_string (2 of 4 overloads)]
 
-[section:data_type ip::basic_endpoint::data_type]
 
-[indexterm2 data_type..ip::basic_endpoint]
-The type of the endpoint structure. This type is dependent on the underlying implementation of the socket layer.
+Create an address from an IP address string in dotted decimal form.
 
 
- typedef implementation_defined data_type;
+ static address_v4 from_string(
+ const char * str,
+ boost::system::error_code & ec);
 
 
 
-[heading Requirements]
+[endsect]
 
-[*Header: ][^boost/asio/ip/basic_endpoint.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
+
+[section:overload3 ip::address_v4::from_string (3 of 4 overloads)]
+
+
+Create an address from an IP address string in dotted decimal form.
+
+
+ static address_v4 from_string(
+ const std::string & str);
+
 
 
 [endsect]
 
 
 
-[section:operator_not__eq_ ip::basic_endpoint::operator!=]
+[section:overload4 ip::address_v4::from_string (4 of 4 overloads)]
 
-[indexterm2 operator!=..ip::basic_endpoint]
-Compare two endpoints for inequality.
 
+Create an address from an IP address string in dotted decimal form.
 
- friend bool operator!=(
- const basic_endpoint< InternetProtocol > & e1,
- const basic_endpoint< InternetProtocol > & e2);
 
+ static address_v4 from_string(
+ const std::string & str,
+ boost::system::error_code & ec);
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/ip/basic_endpoint.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
+[endsect]
 
 
 [endsect]
 
 
+[section:is_class_a ip::address_v4::is_class_a]
 
-[section:operator_lt_ ip::basic_endpoint::operator<]
+[indexterm2 is_class_a..ip::address_v4]
+Determine whether the address is a class A address.
 
-[indexterm2 operator<..ip::basic_endpoint]
-Compare endpoints for ordering.
 
+ bool is_class_a() const;
 
- friend bool operator<(
- const basic_endpoint< InternetProtocol > & e1,
- const basic_endpoint< InternetProtocol > & e2);
 
 
-[heading Requirements]
+[endsect]
 
-[*Header: ][^boost/asio/ip/basic_endpoint.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
 
+[section:is_class_b ip::address_v4::is_class_b]
 
-[endsect]
+[indexterm2 is_class_b..ip::address_v4]
+Determine whether the address is a class B address.
 
 
+ bool is_class_b() const;
 
-[section:operator_lt__lt_ ip::basic_endpoint::operator<<]
 
-[indexterm2 operator<<..ip::basic_endpoint]
-Output an endpoint as a string.
 
+[endsect]
 
- std::basic_ostream< Elem, Traits > & operator<<(
- std::basic_ostream< Elem, Traits > & os,
- const basic_endpoint< InternetProtocol > & endpoint);
 
 
-Used to output a human-readable string for a specified endpoint.
+[section:is_class_c ip::address_v4::is_class_c]
 
+[indexterm2 is_class_c..ip::address_v4]
+Determine whether the address is a class C address.
 
-[heading Parameters]
-
 
-[variablelist
-
-[[os][The output stream to which the string will be written.]]
+ bool is_class_c() const;
 
-[[endpoint][The endpoint to be written.]]
 
-]
 
+[endsect]
 
-[heading Return Value]
-
-The output stream.
 
 
+[section:is_loopback ip::address_v4::is_loopback]
 
+[indexterm2 is_loopback..ip::address_v4]
+Determine whether the address is a loopback address.
 
-[endsect]
 
+ bool is_loopback() const;
 
 
-[section:operator_lt__eq_ ip::basic_endpoint::operator<=]
 
-[indexterm2 operator<=..ip::basic_endpoint]
-Compare endpoints for ordering.
+[endsect]
 
 
- friend bool operator<=(
- const basic_endpoint< InternetProtocol > & e1,
- const basic_endpoint< InternetProtocol > & e2);
 
+[section:is_multicast ip::address_v4::is_multicast]
 
-[heading Requirements]
+[indexterm2 is_multicast..ip::address_v4]
+Determine whether the address is a multicast address.
 
-[*Header: ][^boost/asio/ip/basic_endpoint.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
+ bool is_multicast() const;
+
 
 
 [endsect]
 
 
 
-[section:operator_eq_ ip::basic_endpoint::operator=]
+[section:is_unspecified ip::address_v4::is_unspecified]
 
-[indexterm2 operator=..ip::basic_endpoint]
-Assign from another endpoint.
+[indexterm2 is_unspecified..ip::address_v4]
+Determine whether the address is unspecified.
 
 
- basic_endpoint & operator=(
- const basic_endpoint & other);
+ bool is_unspecified() const;
 
 
 
@@ -57595,42 +57410,49 @@
 
 
 
-[section:operator_eq__eq_ ip::basic_endpoint::operator==]
+[section:loopback ip::address_v4::loopback]
 
-[indexterm2 operator==..ip::basic_endpoint]
-Compare two endpoints for equality.
+[indexterm2 loopback..ip::address_v4]
+Obtain an address object that represents the loopback address.
 
 
- friend bool operator==(
- const basic_endpoint< InternetProtocol > & e1,
- const basic_endpoint< InternetProtocol > & e2);
+ static address_v4 loopback();
 
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/ip/basic_endpoint.hpp]
+[endsect]
+
+
+
+[section:netmask ip::address_v4::netmask]
+
+[indexterm2 netmask..ip::address_v4]
+Obtain the netmask that corresponds to the address, based on its address class.
+
+
+ static address_v4 netmask(
+ const address_v4 & addr);
 
-[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
 
-[section:operator_gt_ ip::basic_endpoint::operator>]
+[section:operator_not__eq_ ip::address_v4::operator!=]
 
-[indexterm2 operator>..ip::basic_endpoint]
-Compare endpoints for ordering.
+[indexterm2 operator!=..ip::address_v4]
+Compare two addresses for inequality.
 
 
- friend bool operator>(
- const basic_endpoint< InternetProtocol > & e1,
- const basic_endpoint< InternetProtocol > & e2);
+ friend bool operator!=(
+ const address_v4 & a1,
+ const address_v4 & a2);
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/ip/basic_endpoint.hpp]
+[*Header: ][^boost/asio/ip/address_v4.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -57639,20 +57461,20 @@
 
 
 
-[section:operator_gt__eq_ ip::basic_endpoint::operator>=]
+[section:operator_lt_ ip::address_v4::operator<]
 
-[indexterm2 operator>=..ip::basic_endpoint]
-Compare endpoints for ordering.
+[indexterm2 operator<..ip::address_v4]
+Compare addresses for ordering.
 
 
- friend bool operator>=(
- const basic_endpoint< InternetProtocol > & e1,
- const basic_endpoint< InternetProtocol > & e2);
+ friend bool operator<(
+ const address_v4 & a1,
+ const address_v4 & a2);
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/ip/basic_endpoint.hpp]
+[*Header: ][^boost/asio/ip/address_v4.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -57660,31 +57482,40 @@
 [endsect]
 
 
-[section:port ip::basic_endpoint::port]
 
-[indexterm2 port..ip::basic_endpoint]
-Get the port associated with the endpoint. The port number is always in the host's byte order.
+[section:operator_lt__lt_ ip::address_v4::operator<<]
+
+[indexterm2 operator<<..ip::address_v4]
+Output an address as a string.
 
 
- unsigned short ``[link boost_asio.reference.ip__basic_endpoint.port.overload1 port]``() const;
- `` [''''&raquo;''' [link boost_asio.reference.ip__basic_endpoint.port.overload1 more...]]``
+ template<
+ typename Elem,
+ typename Traits>
+ std::basic_ostream< Elem, Traits > & operator<<(
+ std::basic_ostream< Elem, Traits > & os,
+ const address_v4 & addr);
 
 
-Set the port associated with the endpoint. The port number is always in the host's byte order.
+Used to output a human-readable string for a specified address.
 
 
- void ``[link boost_asio.reference.ip__basic_endpoint.port.overload2 port]``(
- unsigned short port_num);
- `` [''''&raquo;''' [link boost_asio.reference.ip__basic_endpoint.port.overload2 more...]]``
+[heading Parameters]
+
 
+[variablelist
+
+[[os][The output stream to which the string will be written.]]
 
-[section:overload1 ip::basic_endpoint::port (1 of 2 overloads)]
+[[addr][The address to be written.]]
 
+]
 
-Get the port associated with the endpoint. The port number is always in the host's byte order.
 
+[heading Return Value]
+
+The output stream.
 
- unsigned short port() const;
 
 
 
@@ -57692,50 +57523,101 @@
 
 
 
-[section:overload2 ip::basic_endpoint::port (2 of 2 overloads)]
+[section:operator_lt__eq_ ip::address_v4::operator<=]
+
+[indexterm2 operator<=..ip::address_v4]
+Compare addresses for ordering.
 
 
-Set the port associated with the endpoint. The port number is always in the host's byte order.
+ friend bool operator<=(
+ const address_v4 & a1,
+ const address_v4 & a2);
 
 
- void port(
- unsigned short port_num);
+[heading Requirements]
 
+[*Header: ][^boost/asio/ip/address_v4.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
+
+[section:operator_eq_ ip::address_v4::operator=]
+
+[indexterm2 operator=..ip::address_v4]
+Assign from another address.
+
+
+ address_v4 & operator=(
+ const address_v4 & other);
+
+
+
 [endsect]
 
 
-[section:protocol ip::basic_endpoint::protocol]
 
-[indexterm2 protocol..ip::basic_endpoint]
-The protocol associated with the endpoint.
+[section:operator_eq__eq_ ip::address_v4::operator==]
+
+[indexterm2 operator==..ip::address_v4]
+Compare two addresses for equality.
 
 
- protocol_type protocol() const;
+ friend bool operator==(
+ const address_v4 & a1,
+ const address_v4 & a2);
+
+
+[heading Requirements]
+
+[*Header: ][^boost/asio/ip/address_v4.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
 
-[section:protocol_type ip::basic_endpoint::protocol_type]
+[section:operator_gt_ ip::address_v4::operator>]
 
-[indexterm2 protocol_type..ip::basic_endpoint]
-The protocol type associated with the endpoint.
+[indexterm2 operator>..ip::address_v4]
+Compare addresses for ordering.
 
 
- typedef InternetProtocol protocol_type;
+ friend bool operator>(
+ const address_v4 & a1,
+ const address_v4 & a2);
+
+
+[heading Requirements]
+
+[*Header: ][^boost/asio/ip/address_v4.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
+
+
+[endsect]
+
+
+
+[section:operator_gt__eq_ ip::address_v4::operator>=]
 
+[indexterm2 operator>=..ip::address_v4]
+Compare addresses for ordering.
+
+
+ friend bool operator>=(
+ const address_v4 & a1,
+ const address_v4 & a2);
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/ip/basic_endpoint.hpp]
+[*Header: ][^boost/asio/ip/address_v4.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -57744,48 +57626,87 @@
 
 
 
-[section:resize ip::basic_endpoint::resize]
+[section:to_bytes ip::address_v4::to_bytes]
 
-[indexterm2 resize..ip::basic_endpoint]
-Set the underlying size of the endpoint in the native type.
+[indexterm2 to_bytes..ip::address_v4]
+Get the address in bytes, in network byte order.
 
 
- void resize(
- std::size_t new_size);
+ bytes_type to_bytes() const;
 
 
 
 [endsect]
 
 
+[section:to_string ip::address_v4::to_string]
 
-[section:size ip::basic_endpoint::size]
+[indexterm2 to_string..ip::address_v4]
+Get the address as a string in dotted decimal format.
 
-[indexterm2 size..ip::basic_endpoint]
-Get the underlying size of the endpoint in the native type.
 
+ std::string ``[link boost_asio.reference.ip__address_v4.to_string.overload1 to_string]``() const;
+ `` [''''&raquo;''' [link boost_asio.reference.ip__address_v4.to_string.overload1 more...]]``
+
+ std::string ``[link boost_asio.reference.ip__address_v4.to_string.overload2 to_string]``(
+ boost::system::error_code & ec) const;
+ `` [''''&raquo;''' [link boost_asio.reference.ip__address_v4.to_string.overload2 more...]]``
+
+
+[section:overload1 ip::address_v4::to_string (1 of 2 overloads)]
+
+
+Get the address as a string in dotted decimal format.
+
+
+ std::string to_string() const;
 
- std::size_t size() const;
 
 
+[endsect]
+
+
+
+[section:overload2 ip::address_v4::to_string (2 of 2 overloads)]
+
+
+Get the address as a string in dotted decimal format.
+
+
+ std::string to_string(
+ boost::system::error_code & ec) const;
+
+
+
+[endsect]
+
 
 [endsect]
 
 
+[section:to_ulong ip::address_v4::to_ulong]
+
+[indexterm2 to_ulong..ip::address_v4]
+Get the address as an unsigned long in host byte order.
+
+
+ unsigned long to_ulong() const;
+
+
 
 [endsect]
 
-[section:ip__basic_resolver ip::basic_resolver]
 
 
-Provides endpoint resolution functionality.
+[endsect]
 
+[section:ip__address_v6 ip::address_v6]
 
- template<
- typename ``[link boost_asio.reference.InternetProtocol InternetProtocol]``,
- typename ``[link boost_asio.reference.ResolverService ResolverService]`` = resolver_service<InternetProtocol>>
- class basic_resolver :
- public basic_io_object< ResolverService >
+
+Implements IP version 6 style addresses.
+
+
+ class address_v6
 
 
 [heading Types]
@@ -57794,116 +57715,186 @@
 
   [
 
- [[link boost_asio.reference.ip__basic_resolver.endpoint_type [*endpoint_type]]]
- [The endpoint type. ]
+ [[link boost_asio.reference.ip__address_v6.bytes_type [*bytes_type]]]
+ [The type used to represent an address as an array of bytes. ]
   
   ]
 
+]
+
+[heading Member Functions]
+[table
+ [[Name][Description]]
+
   [
+ [[link boost_asio.reference.ip__address_v6.address_v6 [*address_v6]]]
+ [Default constructor.
 
- [[link boost_asio.reference.ip__basic_resolver.implementation_type [*implementation_type]]]
- [The underlying implementation type of I/O object. ]
+ Construct an address from raw bytes and scope ID.
+
+ Copy constructor. ]
+ ]
   
+ [
+ [[link boost_asio.reference.ip__address_v6.any [*any]]]
+ [Obtain an address object that represents any address. ]
   ]
-
+
   [
-
- [[link boost_asio.reference.ip__basic_resolver.iterator [*iterator]]]
- [The iterator type. ]
+ [[link boost_asio.reference.ip__address_v6.from_string [*from_string]]]
+ [Create an address from an IP address string. ]
+ ]
   
+ [
+ [[link boost_asio.reference.ip__address_v6.is_link_local [*is_link_local]]]
+ [Determine whether the address is link local. ]
   ]
-
+
   [
-
- [[link boost_asio.reference.ip__basic_resolver.protocol_type [*protocol_type]]]
- [The protocol type. ]
+ [[link boost_asio.reference.ip__address_v6.is_loopback [*is_loopback]]]
+ [Determine whether the address is a loopback address. ]
+ ]
   
+ [
+ [[link boost_asio.reference.ip__address_v6.is_multicast [*is_multicast]]]
+ [Determine whether the address is a multicast address. ]
   ]
-
+
   [
-
- [[link boost_asio.reference.ip__basic_resolver.query [*query]]]
- [The query type. ]
+ [[link boost_asio.reference.ip__address_v6.is_multicast_global [*is_multicast_global]]]
+ [Determine whether the address is a global multicast address. ]
+ ]
   
+ [
+ [[link boost_asio.reference.ip__address_v6.is_multicast_link_local [*is_multicast_link_local]]]
+ [Determine whether the address is a link-local multicast address. ]
   ]
-
+
   [
-
- [[link boost_asio.reference.ip__basic_resolver.service_type [*service_type]]]
- [The type of the service that will be used to provide I/O operations. ]
+ [[link boost_asio.reference.ip__address_v6.is_multicast_node_local [*is_multicast_node_local]]]
+ [Determine whether the address is a node-local multicast address. ]
+ ]
   
+ [
+ [[link boost_asio.reference.ip__address_v6.is_multicast_org_local [*is_multicast_org_local]]]
+ [Determine whether the address is a org-local multicast address. ]
   ]
-
-]
-
-[heading Member Functions]
-[table
- [[Name][Description]]
-
+
   [
- [[link boost_asio.reference.ip__basic_resolver.async_resolve [*async_resolve]]]
- [Asynchronously perform forward resolution of a query to a list of entries.
-
- Asynchronously perform reverse resolution of an endpoint to a list of entries. ]
+ [[link boost_asio.reference.ip__address_v6.is_multicast_site_local [*is_multicast_site_local]]]
+ [Determine whether the address is a site-local multicast address. ]
   ]
   
   [
- [[link boost_asio.reference.ip__basic_resolver.basic_resolver [*basic_resolver]]]
- [Constructor. ]
+ [[link boost_asio.reference.ip__address_v6.is_site_local [*is_site_local]]]
+ [Determine whether the address is site local. ]
   ]
   
   [
- [[link boost_asio.reference.ip__basic_resolver.cancel [*cancel]]]
- [Cancel any asynchronous operations that are waiting on the resolver. ]
+ [[link boost_asio.reference.ip__address_v6.is_unspecified [*is_unspecified]]]
+ [Determine whether the address is unspecified. ]
   ]
   
   [
- [[link boost_asio.reference.ip__basic_resolver.get_io_service [*get_io_service]]]
- [Get the io_service associated with the object. ]
+ [[link boost_asio.reference.ip__address_v6.is_v4_compatible [*is_v4_compatible]]]
+ [Determine whether the address is an IPv4-compatible address. ]
   ]
   
   [
- [[link boost_asio.reference.ip__basic_resolver.resolve [*resolve]]]
- [Perform forward resolution of a query to a list of entries.
-
- Perform reverse resolution of an endpoint to a list of entries. ]
+ [[link boost_asio.reference.ip__address_v6.is_v4_mapped [*is_v4_mapped]]]
+ [Determine whether the address is a mapped IPv4 address. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__address_v6.loopback [*loopback]]]
+ [Obtain an address object that represents the loopback address. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__address_v6.operator_eq_ [*operator=]]]
+ [Assign from another address. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__address_v6.scope_id [*scope_id]]]
+ [The scope ID of the address. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__address_v6.to_bytes [*to_bytes]]]
+ [Get the address in bytes, in network byte order. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__address_v6.to_string [*to_string]]]
+ [Get the address as a string. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__address_v6.to_v4 [*to_v4]]]
+ [Converts an IPv4-mapped or IPv4-compatible address to an IPv4 address. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__address_v6.v4_compatible [*v4_compatible]]]
+ [Create an IPv4-compatible IPv6 address. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__address_v6.v4_mapped [*v4_mapped]]]
+ [Create an IPv4-mapped IPv6 address. ]
   ]
   
 ]
 
-[heading Protected Member Functions]
+[heading Friends]
 [table
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.ip__basic_resolver.get_implementation [*get_implementation]]]
- [Get the underlying implementation of the I/O object. ]
+ [[link boost_asio.reference.ip__address_v6.operator_not__eq_ [*operator!=]]]
+ [Compare two addresses for inequality. ]
   ]
   
   [
- [[link boost_asio.reference.ip__basic_resolver.get_service [*get_service]]]
- [Get the service associated with the I/O object. ]
+ [[link boost_asio.reference.ip__address_v6.operator_lt_ [*operator<]]]
+ [Compare addresses for ordering. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__address_v6.operator_lt__eq_ [*operator<=]]]
+ [Compare addresses for ordering. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__address_v6.operator_eq__eq_ [*operator==]]]
+ [Compare two addresses for equality. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__address_v6.operator_gt_ [*operator>]]]
+ [Compare addresses for ordering. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__address_v6.operator_gt__eq_ [*operator>=]]]
+ [Compare addresses for ordering. ]
   ]
   
 ]
 
-[heading Protected Data Members]
+[heading Related Functions]
 [table
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.ip__basic_resolver.implementation [*implementation]]]
- [(Deprecated: Use get_implementation().) The underlying implementation of the I/O object. ]
- ]
-
- [
- [[link boost_asio.reference.ip__basic_resolver.service [*service]]]
- [(Deprecated: Use get_service().) The service associated with the I/O object. ]
+ [[link boost_asio.reference.ip__address_v6.operator_lt__lt_ [*operator<<]]]
+ [Output an address as a string. ]
   ]
-
+
 ]
 
-The [link boost_asio.reference.ip__basic_resolver `ip::basic_resolver`] class template provides the ability to resolve a query to a list of endpoints.
+The [link boost_asio.reference.ip__address_v6 `ip::address_v6`] class provides the ability to use and manipulate IP version 6 addresses.
 
 
 [heading Thread Safety]
@@ -57916,238 +57907,205 @@
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/ip/basic_resolver.hpp]
+[*Header: ][^boost/asio/ip/address_v6.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
-[section:async_resolve ip::basic_resolver::async_resolve]
+[section:address_v6 ip::address_v6::address_v6]
 
-[indexterm2 async_resolve..ip::basic_resolver]
-Asynchronously perform forward resolution of a query to a list of entries.
+[indexterm2 address_v6..ip::address_v6]
+Default constructor.
 
 
- template<
- typename ``[link boost_asio.reference.ResolveHandler ResolveHandler]``>
- void ``[link boost_asio.reference.ip__basic_resolver.async_resolve.overload1 async_resolve]``(
- const query & q,
- ResolveHandler handler);
- `` [''''&raquo;''' [link boost_asio.reference.ip__basic_resolver.async_resolve.overload1 more...]]``
+ ``[link boost_asio.reference.ip__address_v6.address_v6.overload1 address_v6]``();
+ `` [''''&raquo;''' [link boost_asio.reference.ip__address_v6.address_v6.overload1 more...]]``
 
 
-Asynchronously perform reverse resolution of an endpoint to a list of entries.
+Construct an address from raw bytes and scope ID.
 
 
- template<
- typename ``[link boost_asio.reference.ResolveHandler ResolveHandler]``>
- void ``[link boost_asio.reference.ip__basic_resolver.async_resolve.overload2 async_resolve]``(
- const endpoint_type & e,
- ResolveHandler handler);
- `` [''''&raquo;''' [link boost_asio.reference.ip__basic_resolver.async_resolve.overload2 more...]]``
+ explicit ``[link boost_asio.reference.ip__address_v6.address_v6.overload2 address_v6]``(
+ const bytes_type & bytes,
+ unsigned long scope_id = 0);
+ `` [''''&raquo;''' [link boost_asio.reference.ip__address_v6.address_v6.overload2 more...]]``
 
 
-[section:overload1 ip::basic_resolver::async_resolve (1 of 2 overloads)]
+Copy constructor.
 
 
-Asynchronously perform forward resolution of a query to a list of entries.
+ ``[link boost_asio.reference.ip__address_v6.address_v6.overload3 address_v6]``(
+ const address_v6 & other);
+ `` [''''&raquo;''' [link boost_asio.reference.ip__address_v6.address_v6.overload3 more...]]``
 
 
- template<
- typename ``[link boost_asio.reference.ResolveHandler ResolveHandler]``>
- void async_resolve(
- const query & q,
- ResolveHandler handler);
+[section:overload1 ip::address_v6::address_v6 (1 of 3 overloads)]
 
 
-This function is used to asynchronously resolve a query into a list of endpoint entries.
+Default constructor.
 
 
-[heading Parameters]
-
+ address_v6();
 
-[variablelist
-
-[[q][A query object that determines what endpoints will be returned.]]
 
-[[handler][The handler to be called when the resolve operation completes. Copies will be made of the handler as required. The function signature of the handler must be:
-``
- void handler(
- const boost::system::error_code& error, // Result of operation.
- resolver::iterator iterator // Forward-only iterator that can
- // be used to traverse the list
- // of endpoint entries.
- );
-``
-Regardless of whether the asynchronous operation completes immediately or not, the handler will not be invoked from within this function. Invocation of the handler will be performed in a manner equivalent to using `boost::asio::io_service::post()`.]]
 
-]
+[endsect]
 
 
-[heading Remarks]
-
-A default constructed iterator represents the end of the list.
 
-A successful resolve operation is guaranteed to pass at least one entry to the handler.
+[section:overload2 ip::address_v6::address_v6 (2 of 3 overloads)]
 
 
-[endsect]
+Construct an address from raw bytes and scope ID.
 
 
+ address_v6(
+ const bytes_type & bytes,
+ unsigned long scope_id = 0);
 
-[section:overload2 ip::basic_resolver::async_resolve (2 of 2 overloads)]
 
 
-Asynchronously perform reverse resolution of an endpoint to a list of entries.
+[endsect]
 
 
- template<
- typename ``[link boost_asio.reference.ResolveHandler ResolveHandler]``>
- void async_resolve(
- const endpoint_type & e,
- ResolveHandler handler);
 
+[section:overload3 ip::address_v6::address_v6 (3 of 3 overloads)]
 
-This function is used to asynchronously resolve an endpoint into a list of endpoint entries.
 
+Copy constructor.
 
-[heading Parameters]
-
 
-[variablelist
-
-[[e][An endpoint object that determines what endpoints will be returned.]]
+ address_v6(
+ const address_v6 & other);
 
-[[handler][The handler to be called when the resolve operation completes. Copies will be made of the handler as required. The function signature of the handler must be:
-``
- void handler(
- const boost::system::error_code& error, // Result of operation.
- resolver::iterator iterator // Forward-only iterator that can
- // be used to traverse the list
- // of endpoint entries.
- );
-``
-Regardless of whether the asynchronous operation completes immediately or not, the handler will not be invoked from within this function. Invocation of the handler will be performed in a manner equivalent to using `boost::asio::io_service::post()`.]]
 
-]
 
+[endsect]
 
-[heading Remarks]
-
-A default constructed iterator represents the end of the list.
 
-A successful resolve operation is guaranteed to pass at least one entry to the handler.
+[endsect]
 
 
-[endsect]
+[section:any ip::address_v6::any]
 
+[indexterm2 any..ip::address_v6]
+Obtain an address object that represents any address.
 
-[endsect]
 
+ static address_v6 any();
 
-[section:basic_resolver ip::basic_resolver::basic_resolver]
 
-[indexterm2 basic_resolver..ip::basic_resolver]
-Constructor.
 
+[endsect]
 
- basic_resolver(
- boost::asio::io_service & io_service);
 
 
-This constructor creates a [link boost_asio.reference.ip__basic_resolver `ip::basic_resolver`].
+[section:bytes_type ip::address_v6::bytes_type]
 
+[indexterm2 bytes_type..ip::address_v6]
+The type used to represent an address as an array of bytes.
 
-[heading Parameters]
-
 
-[variablelist
-
-[[io_service][The [link boost_asio.reference.io_service `io_service`] object that the resolver will use to dispatch handlers for any asynchronous operations performed on the timer. ]]
+ typedef array< unsigned char, 16 > bytes_type;
 
-]
 
 
 
+[heading Remarks]
+
+This type is defined in terms of the C++0x template `std::array` when it is available. Otherwise, it uses `boost:array`.
 
-[endsect]
 
 
+[heading Requirements]
 
-[section:cancel ip::basic_resolver::cancel]
+[*Header: ][^boost/asio/ip/address_v6.hpp]
 
-[indexterm2 cancel..ip::basic_resolver]
-Cancel any asynchronous operations that are waiting on the resolver.
+[*Convenience header: ][^boost/asio.hpp]
 
 
- void cancel();
+[endsect]
 
 
-This function forces the completion of any pending asynchronous operations on the host resolver. The handler for each cancelled operation will be invoked with the `boost::asio::error::operation_aborted` error code.
+[section:from_string ip::address_v6::from_string]
 
+[indexterm2 from_string..ip::address_v6]
+Create an address from an IP address string.
 
-[endsect]
 
+ static address_v6 ``[link boost_asio.reference.ip__address_v6.from_string.overload1 from_string]``(
+ const char * str);
+ `` [''''&raquo;''' [link boost_asio.reference.ip__address_v6.from_string.overload1 more...]]``
 
+ static address_v6 ``[link boost_asio.reference.ip__address_v6.from_string.overload2 from_string]``(
+ const char * str,
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.ip__address_v6.from_string.overload2 more...]]``
 
-[section:endpoint_type ip::basic_resolver::endpoint_type]
+ static address_v6 ``[link boost_asio.reference.ip__address_v6.from_string.overload3 from_string]``(
+ const std::string & str);
+ `` [''''&raquo;''' [link boost_asio.reference.ip__address_v6.from_string.overload3 more...]]``
 
-[indexterm2 endpoint_type..ip::basic_resolver]
-The endpoint type.
+ static address_v6 ``[link boost_asio.reference.ip__address_v6.from_string.overload4 from_string]``(
+ const std::string & str,
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.ip__address_v6.from_string.overload4 more...]]``
 
 
- typedef InternetProtocol::endpoint endpoint_type;
+[section:overload1 ip::address_v6::from_string (1 of 4 overloads)]
 
 
+Create an address from an IP address string.
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/ip/basic_resolver.hpp]
+ static address_v6 from_string(
+ const char * str);
 
-[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
-[section:get_implementation ip::basic_resolver::get_implementation]
 
-[indexterm2 get_implementation..ip::basic_resolver]
-Get the underlying implementation of the I/O object.
+[section:overload2 ip::address_v6::from_string (2 of 4 overloads)]
 
 
- implementation_type & ``[link boost_asio.reference.ip__basic_resolver.get_implementation.overload1 get_implementation]``();
- `` [''''&raquo;''' [link boost_asio.reference.ip__basic_resolver.get_implementation.overload1 more...]]``
+Create an address from an IP address string.
 
- const implementation_type & ``[link boost_asio.reference.ip__basic_resolver.get_implementation.overload2 get_implementation]``() const;
- `` [''''&raquo;''' [link boost_asio.reference.ip__basic_resolver.get_implementation.overload2 more...]]``
 
+ static address_v6 from_string(
+ const char * str,
+ boost::system::error_code & ec);
 
-[section:overload1 ip::basic_resolver::get_implementation (1 of 2 overloads)]
 
 
-['Inherited from basic_io_object.]
+[endsect]
 
 
-Get the underlying implementation of the I/O object.
 
+[section:overload3 ip::address_v6::from_string (3 of 4 overloads)]
 
- implementation_type & get_implementation();
 
+Create an address from an IP address string.
 
 
-[endsect]
+ static address_v6 from_string(
+ const std::string & str);
 
 
 
-[section:overload2 ip::basic_resolver::get_implementation (2 of 2 overloads)]
+[endsect]
 
 
-['Inherited from basic_io_object.]
+
+[section:overload4 ip::address_v6::from_string (4 of 4 overloads)]
 
 
-Get the underlying implementation of the I/O object.
+Create an address from an IP address string.
 
 
- const implementation_type & get_implementation() const;
+ static address_v6 from_string(
+ const std::string & str,
+ boost::system::error_code & ec);
 
 
 
@@ -58157,265 +58115,202 @@
 [endsect]
 
 
-[section:get_io_service ip::basic_resolver::get_io_service]
+[section:is_link_local ip::address_v6::is_link_local]
 
+[indexterm2 is_link_local..ip::address_v6]
+Determine whether the address is link local.
 
-['Inherited from basic_io_object.]
 
-[indexterm2 get_io_service..ip::basic_resolver]
-Get the [link boost_asio.reference.io_service `io_service`] associated with the object.
+ bool is_link_local() const;
 
 
- boost::asio::io_service & get_io_service();
 
+[endsect]
 
-This function may be used to obtain the [link boost_asio.reference.io_service `io_service`] object that the I/O object uses to dispatch handlers for asynchronous operations.
 
 
-[heading Return Value]
-
-A reference to the [link boost_asio.reference.io_service `io_service`] object that the I/O object will use to dispatch handlers. Ownership is not transferred to the caller.
+[section:is_loopback ip::address_v6::is_loopback]
 
+[indexterm2 is_loopback..ip::address_v6]
+Determine whether the address is a loopback address.
 
 
+ bool is_loopback() const;
 
-[endsect]
 
 
-[section:get_service ip::basic_resolver::get_service]
+[endsect]
 
-[indexterm2 get_service..ip::basic_resolver]
-Get the service associated with the I/O object.
 
 
- service_type & ``[link boost_asio.reference.ip__basic_resolver.get_service.overload1 get_service]``();
- `` [''''&raquo;''' [link boost_asio.reference.ip__basic_resolver.get_service.overload1 more...]]``
+[section:is_multicast ip::address_v6::is_multicast]
 
- const service_type & ``[link boost_asio.reference.ip__basic_resolver.get_service.overload2 get_service]``() const;
- `` [''''&raquo;''' [link boost_asio.reference.ip__basic_resolver.get_service.overload2 more...]]``
+[indexterm2 is_multicast..ip::address_v6]
+Determine whether the address is a multicast address.
 
 
-[section:overload1 ip::basic_resolver::get_service (1 of 2 overloads)]
+ bool is_multicast() const;
 
 
-['Inherited from basic_io_object.]
 
+[endsect]
 
-Get the service associated with the I/O object.
 
 
- service_type & get_service();
+[section:is_multicast_global ip::address_v6::is_multicast_global]
 
+[indexterm2 is_multicast_global..ip::address_v6]
+Determine whether the address is a global multicast address.
 
 
-[endsect]
+ bool is_multicast_global() const;
 
 
 
-[section:overload2 ip::basic_resolver::get_service (2 of 2 overloads)]
+[endsect]
 
 
-['Inherited from basic_io_object.]
 
+[section:is_multicast_link_local ip::address_v6::is_multicast_link_local]
 
-Get the service associated with the I/O object.
+[indexterm2 is_multicast_link_local..ip::address_v6]
+Determine whether the address is a link-local multicast address.
 
 
- const service_type & get_service() const;
+ bool is_multicast_link_local() const;
 
 
 
 [endsect]
 
 
-[endsect]
 
+[section:is_multicast_node_local ip::address_v6::is_multicast_node_local]
 
-[section:implementation ip::basic_resolver::implementation]
+[indexterm2 is_multicast_node_local..ip::address_v6]
+Determine whether the address is a node-local multicast address.
 
 
-['Inherited from basic_io_object.]
+ bool is_multicast_node_local() const;
 
-[indexterm2 implementation..ip::basic_resolver]
-(Deprecated: Use `get_implementation()`.) The underlying implementation of the I/O object.
 
 
- implementation_type implementation;
+[endsect]
 
 
 
-[endsect]
+[section:is_multicast_org_local ip::address_v6::is_multicast_org_local]
 
+[indexterm2 is_multicast_org_local..ip::address_v6]
+Determine whether the address is a org-local multicast address.
 
 
-[section:implementation_type ip::basic_resolver::implementation_type]
+ bool is_multicast_org_local() const;
 
 
-['Inherited from basic_io_object.]
 
-[indexterm2 implementation_type..ip::basic_resolver]
-The underlying implementation type of I/O object.
+[endsect]
 
 
- typedef service_type::implementation_type implementation_type;
 
+[section:is_multicast_site_local ip::address_v6::is_multicast_site_local]
 
+[indexterm2 is_multicast_site_local..ip::address_v6]
+Determine whether the address is a site-local multicast address.
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/ip/basic_resolver.hpp]
+ bool is_multicast_site_local() const;
 
-[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
 
-[section:iterator ip::basic_resolver::iterator]
+[section:is_site_local ip::address_v6::is_site_local]
 
-[indexterm2 iterator..ip::basic_resolver]
-The iterator type.
+[indexterm2 is_site_local..ip::address_v6]
+Determine whether the address is site local.
 
 
- typedef basic_resolver_iterator< InternetProtocol > iterator;
+ bool is_site_local() const;
 
 
-[heading Types]
-[table
- [[Name][Description]]
 
- [
+[endsect]
 
- [[link boost_asio.reference.ip__basic_resolver_iterator.difference_type [*difference_type]]]
- [The type used for the distance between two iterators. ]
-
- ]
 
- [
 
- [[link boost_asio.reference.ip__basic_resolver_iterator.iterator_category [*iterator_category]]]
- [The iterator category. ]
-
- ]
+[section:is_unspecified ip::address_v6::is_unspecified]
 
- [
+[indexterm2 is_unspecified..ip::address_v6]
+Determine whether the address is unspecified.
 
- [[link boost_asio.reference.ip__basic_resolver_iterator.pointer [*pointer]]]
- [The type of the result of applying operator->() to the iterator. ]
-
- ]
 
- [
+ bool is_unspecified() const;
 
- [[link boost_asio.reference.ip__basic_resolver_iterator.reference [*reference]]]
- [The type of the result of applying operator*() to the iterator. ]
-
- ]
 
- [
 
- [[link boost_asio.reference.ip__basic_resolver_iterator.value_type [*value_type]]]
- [The type of the value pointed to by the iterator. ]
-
- ]
+[endsect]
 
-]
 
-[heading Member Functions]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.ip__basic_resolver_iterator.basic_resolver_iterator [*basic_resolver_iterator]]]
- [Default constructor creates an end iterator. ]
- ]
-
- [
- [[link boost_asio.reference.ip__basic_resolver_iterator.create [*create]]]
- [Create an iterator from an addrinfo list returned by getaddrinfo.
+[section:is_v4_compatible ip::address_v6::is_v4_compatible]
 
- Create an iterator from an endpoint, host name and service name. ]
- ]
-
- [
- [[link boost_asio.reference.ip__basic_resolver_iterator.operator__star_ [*operator *]]]
- [Dereference an iterator. ]
- ]
-
- [
- [[link boost_asio.reference.ip__basic_resolver_iterator.operator_plus__plus_ [*operator++]]]
- [Increment operator (prefix).
+[indexterm2 is_v4_compatible..ip::address_v6]
+Determine whether the address is an IPv4-compatible address.
 
- Increment operator (postfix). ]
- ]
-
- [
- [[link boost_asio.reference.ip__basic_resolver_iterator.operator_arrow_ [*operator->]]]
- [Dereference an iterator. ]
- ]
-
-]
 
-[heading Friends]
-[table
- [[Name][Description]]
+ bool is_v4_compatible() const;
 
- [
- [[link boost_asio.reference.ip__basic_resolver_iterator.operator_not__eq_ [*operator!=]]]
- [Test two iterators for inequality. ]
- ]
-
- [
- [[link boost_asio.reference.ip__basic_resolver_iterator.operator_eq__eq_ [*operator==]]]
- [Test two iterators for equality. ]
- ]
-
-]
 
-The [link boost_asio.reference.ip__basic_resolver_iterator `ip::basic_resolver_iterator`] class template is used to define iterators over the results returned by a resolver.
 
-The iterator's value\_type, obtained when the iterator is dereferenced, is:
+[endsect]
 
- const basic_resolver_entry<InternetProtocol>
 
 
+[section:is_v4_mapped ip::address_v6::is_v4_mapped]
 
+[indexterm2 is_v4_mapped..ip::address_v6]
+Determine whether the address is a mapped IPv4 address.
 
 
-[heading Thread Safety]
-
-[*Distinct] [*objects:] Safe.
+ bool is_v4_mapped() const;
 
-[*Shared] [*objects:] Unsafe.
 
 
+[endsect]
 
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/ip/basic_resolver.hpp]
+[section:loopback ip::address_v6::loopback]
 
-[*Convenience header: ][^boost/asio.hpp]
+[indexterm2 loopback..ip::address_v6]
+Obtain an address object that represents the loopback address.
 
 
-[endsect]
+ static address_v6 loopback();
 
 
 
-[section:protocol_type ip::basic_resolver::protocol_type]
+[endsect]
 
-[indexterm2 protocol_type..ip::basic_resolver]
-The protocol type.
 
 
- typedef InternetProtocol protocol_type;
+[section:operator_not__eq_ ip::address_v6::operator!=]
+
+[indexterm2 operator!=..ip::address_v6]
+Compare two addresses for inequality.
 
 
+ friend bool operator!=(
+ const address_v6 & a1,
+ const address_v6 & a2);
+
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/ip/basic_resolver.hpp]
+[*Header: ][^boost/asio/ip/address_v6.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -58424,123 +58319,82 @@
 
 
 
-[section:query ip::basic_resolver::query]
+[section:operator_lt_ ip::address_v6::operator<]
 
-[indexterm2 query..ip::basic_resolver]
-The query type.
+[indexterm2 operator<..ip::address_v6]
+Compare addresses for ordering.
 
 
- typedef basic_resolver_query< InternetProtocol > query;
+ friend bool operator<(
+ const address_v6 & a1,
+ const address_v6 & a2);
 
 
-[heading Types]
-[table
- [[Name][Description]]
+[heading Requirements]
 
- [
+[*Header: ][^boost/asio/ip/address_v6.hpp]
 
- [[link boost_asio.reference.ip__basic_resolver_query.flags [*flags]]]
- [A bitmask type (C++ Std \[lib.bitmask.types\]). ]
-
- ]
+[*Convenience header: ][^boost/asio.hpp]
 
- [
 
- [[link boost_asio.reference.ip__basic_resolver_query.protocol_type [*protocol_type]]]
- [The protocol type associated with the endpoint query. ]
-
- ]
+[endsect]
 
-]
 
-[heading Member Functions]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.ip__basic_resolver_query.basic_resolver_query [*basic_resolver_query]]]
- [Construct with specified service name for any protocol.
+[section:operator_lt__lt_ ip::address_v6::operator<<]
 
- Construct with specified service name for a given protocol.
+[indexterm2 operator<<..ip::address_v6]
+Output an address as a string.
 
- Construct with specified host name and service name for any protocol.
 
- Construct with specified host name and service name for a given protocol. ]
- ]
-
- [
- [[link boost_asio.reference.ip__basic_resolver_query.hints [*hints]]]
- [Get the hints associated with the query. ]
- ]
-
- [
- [[link boost_asio.reference.ip__basic_resolver_query.host_name [*host_name]]]
- [Get the host name associated with the query. ]
- ]
-
- [
- [[link boost_asio.reference.ip__basic_resolver_query.service_name [*service_name]]]
- [Get the service name associated with the query. ]
- ]
-
-]
+ template<
+ typename Elem,
+ typename Traits>
+ std::basic_ostream< Elem, Traits > & operator<<(
+ std::basic_ostream< Elem, Traits > & os,
+ const address_v6 & addr);
 
-[heading Data Members]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.ip__basic_resolver_query.address_configured [*address_configured]]]
- [Only return IPv4 addresses if a non-loopback IPv4 address is configured for the system. Only return IPv6 addresses if a non-loopback IPv6 address is configured for the system. ]
- ]
+Used to output a human-readable string for a specified address.
 
- [
- [[link boost_asio.reference.ip__basic_resolver_query.all_matching [*all_matching]]]
- [If used with v4_mapped, return all matching IPv6 and IPv4 addresses. ]
- ]
 
- [
- [[link boost_asio.reference.ip__basic_resolver_query.canonical_name [*canonical_name]]]
- [Determine the canonical name of the host specified in the query. ]
- ]
+[heading Parameters]
+
 
- [
- [[link boost_asio.reference.ip__basic_resolver_query.numeric_host [*numeric_host]]]
- [Host name should be treated as a numeric string defining an IPv4 or IPv6 address and no name resolution should be attempted. ]
- ]
+[variablelist
+
+[[os][The output stream to which the string will be written.]]
 
- [
- [[link boost_asio.reference.ip__basic_resolver_query.numeric_service [*numeric_service]]]
- [Service name should be treated as a numeric string defining a port number and no name resolution should be attempted. ]
- ]
+[[addr][The address to be written.]]
 
- [
- [[link boost_asio.reference.ip__basic_resolver_query.passive [*passive]]]
- [Indicate that returned endpoint is intended for use as a locally bound socket endpoint. ]
- ]
+]
 
- [
- [[link boost_asio.reference.ip__basic_resolver_query.v4_mapped [*v4_mapped]]]
- [If the query protocol family is specified as IPv6, return IPv4-mapped IPv6 addresses on finding no IPv6 addresses. ]
- ]
 
-]
+[heading Return Value]
+
+The output stream.
 
-The [link boost_asio.reference.ip__basic_resolver_query `ip::basic_resolver_query`] class template describes a query that can be passed to a resolver.
 
 
-[heading Thread Safety]
-
-[*Distinct] [*objects:] Safe.
 
-[*Shared] [*objects:] Unsafe.
+[endsect]
+
+
+
+[section:operator_lt__eq_ ip::address_v6::operator<=]
+
+[indexterm2 operator<=..ip::address_v6]
+Compare addresses for ordering.
 
 
+ friend bool operator<=(
+ const address_v6 & a1,
+ const address_v6 & a2);
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/ip/basic_resolver.hpp]
+[*Header: ][^boost/asio/ip/address_v6.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -58548,261 +58402,232 @@
 [endsect]
 
 
-[section:resolve ip::basic_resolver::resolve]
-
-[indexterm2 resolve..ip::basic_resolver]
-Perform forward resolution of a query to a list of entries.
 
+[section:operator_eq_ ip::address_v6::operator=]
 
- iterator ``[link boost_asio.reference.ip__basic_resolver.resolve.overload1 resolve]``(
- const query & q);
- `` [''''&raquo;''' [link boost_asio.reference.ip__basic_resolver.resolve.overload1 more...]]``
+[indexterm2 operator=..ip::address_v6]
+Assign from another address.
 
- iterator ``[link boost_asio.reference.ip__basic_resolver.resolve.overload2 resolve]``(
- const query & q,
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.ip__basic_resolver.resolve.overload2 more...]]``
 
+ address_v6 & operator=(
+ const address_v6 & other);
 
-Perform reverse resolution of an endpoint to a list of entries.
 
 
- iterator ``[link boost_asio.reference.ip__basic_resolver.resolve.overload3 resolve]``(
- const endpoint_type & e);
- `` [''''&raquo;''' [link boost_asio.reference.ip__basic_resolver.resolve.overload3 more...]]``
+[endsect]
 
- iterator ``[link boost_asio.reference.ip__basic_resolver.resolve.overload4 resolve]``(
- const endpoint_type & e,
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.ip__basic_resolver.resolve.overload4 more...]]``
 
 
-[section:overload1 ip::basic_resolver::resolve (1 of 4 overloads)]
+[section:operator_eq__eq_ ip::address_v6::operator==]
 
+[indexterm2 operator==..ip::address_v6]
+Compare two addresses for equality.
 
-Perform forward resolution of a query to a list of entries.
 
+ friend bool operator==(
+ const address_v6 & a1,
+ const address_v6 & a2);
 
- iterator resolve(
- const query & q);
 
+[heading Requirements]
 
-This function is used to resolve a query into a list of endpoint entries.
+[*Header: ][^boost/asio/ip/address_v6.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
-[heading Parameters]
-
 
-[variablelist
-
-[[q][A query object that determines what endpoints will be returned.]]
+[endsect]
 
-]
 
 
-[heading Return Value]
-
-A forward-only iterator that can be used to traverse the list of endpoint entries.
+[section:operator_gt_ ip::address_v6::operator>]
 
+[indexterm2 operator>..ip::address_v6]
+Compare addresses for ordering.
 
-[heading Exceptions]
-
 
-[variablelist
-
-[[boost::system::system_error][Thrown on failure.]]
+ friend bool operator>(
+ const address_v6 & a1,
+ const address_v6 & a2);
 
-]
 
+[heading Requirements]
 
-[heading Remarks]
-
-A default constructed iterator represents the end of the list.
+[*Header: ][^boost/asio/ip/address_v6.hpp]
 
-A successful call to this function is guaranteed to return at least one entry.
+[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
 
-[section:overload2 ip::basic_resolver::resolve (2 of 4 overloads)]
-
+[section:operator_gt__eq_ ip::address_v6::operator>=]
 
-Perform forward resolution of a query to a list of entries.
+[indexterm2 operator>=..ip::address_v6]
+Compare addresses for ordering.
 
 
- iterator resolve(
- const query & q,
- boost::system::error_code & ec);
-
+ friend bool operator>=(
+ const address_v6 & a1,
+ const address_v6 & a2);
 
-This function is used to resolve a query into a list of endpoint entries.
 
+[heading Requirements]
 
-[heading Parameters]
-
+[*Header: ][^boost/asio/ip/address_v6.hpp]
 
-[variablelist
-
-[[q][A query object that determines what endpoints will be returned.]]
+[*Convenience header: ][^boost/asio.hpp]
 
-[[ec][Set to indicate what error occurred, if any.]]
 
-]
+[endsect]
 
 
-[heading Return Value]
-
-A forward-only iterator that can be used to traverse the list of endpoint entries. Returns a default constructed iterator if an error occurs.
+[section:scope_id ip::address_v6::scope_id]
 
+[indexterm2 scope_id..ip::address_v6]
+The scope ID of the address.
 
-[heading Remarks]
-
-A default constructed iterator represents the end of the list.
 
-A successful call to this function is guaranteed to return at least one entry.
+ unsigned long ``[link boost_asio.reference.ip__address_v6.scope_id.overload1 scope_id]``() const;
+ `` [''''&raquo;''' [link boost_asio.reference.ip__address_v6.scope_id.overload1 more...]]``
 
+ void ``[link boost_asio.reference.ip__address_v6.scope_id.overload2 scope_id]``(
+ unsigned long id);
+ `` [''''&raquo;''' [link boost_asio.reference.ip__address_v6.scope_id.overload2 more...]]``
 
-[endsect]
 
+[section:overload1 ip::address_v6::scope_id (1 of 2 overloads)]
 
 
-[section:overload3 ip::basic_resolver::resolve (3 of 4 overloads)]
+The scope ID of the address.
 
 
-Perform reverse resolution of an endpoint to a list of entries.
+ unsigned long scope_id() const;
 
 
- iterator resolve(
- const endpoint_type & e);
+Returns the scope ID associated with the IPv6 address.
 
 
-This function is used to resolve an endpoint into a list of endpoint entries.
+[endsect]
 
 
-[heading Parameters]
-
 
-[variablelist
-
-[[e][An endpoint object that determines what endpoints will be returned.]]
+[section:overload2 ip::address_v6::scope_id (2 of 2 overloads)]
 
-]
 
+The scope ID of the address.
 
-[heading Return Value]
-
-A forward-only iterator that can be used to traverse the list of endpoint entries.
 
+ void scope_id(
+ unsigned long id);
 
-[heading Exceptions]
-
 
-[variablelist
-
-[[boost::system::system_error][Thrown on failure.]]
+Modifies the scope ID associated with the IPv6 address.
 
-]
 
+[endsect]
 
-[heading Remarks]
-
-A default constructed iterator represents the end of the list.
 
-A successful call to this function is guaranteed to return at least one entry.
+[endsect]
 
 
-[endsect]
+[section:to_bytes ip::address_v6::to_bytes]
 
+[indexterm2 to_bytes..ip::address_v6]
+Get the address in bytes, in network byte order.
 
 
-[section:overload4 ip::basic_resolver::resolve (4 of 4 overloads)]
+ bytes_type to_bytes() const;
 
 
-Perform reverse resolution of an endpoint to a list of entries.
 
+[endsect]
 
- iterator resolve(
- const endpoint_type & e,
- boost::system::error_code & ec);
 
+[section:to_string ip::address_v6::to_string]
 
-This function is used to resolve an endpoint into a list of endpoint entries.
+[indexterm2 to_string..ip::address_v6]
+Get the address as a string.
 
 
-[heading Parameters]
-
+ std::string ``[link boost_asio.reference.ip__address_v6.to_string.overload1 to_string]``() const;
+ `` [''''&raquo;''' [link boost_asio.reference.ip__address_v6.to_string.overload1 more...]]``
 
-[variablelist
-
-[[e][An endpoint object that determines what endpoints will be returned.]]
+ std::string ``[link boost_asio.reference.ip__address_v6.to_string.overload2 to_string]``(
+ boost::system::error_code & ec) const;
+ `` [''''&raquo;''' [link boost_asio.reference.ip__address_v6.to_string.overload2 more...]]``
 
-[[ec][Set to indicate what error occurred, if any.]]
 
-]
+[section:overload1 ip::address_v6::to_string (1 of 2 overloads)]
 
 
-[heading Return Value]
-
-A forward-only iterator that can be used to traverse the list of endpoint entries. Returns a default constructed iterator if an error occurs.
+Get the address as a string.
 
 
-[heading Remarks]
-
-A default constructed iterator represents the end of the list.
+ std::string to_string() const;
 
-A successful call to this function is guaranteed to return at least one entry.
 
 
 [endsect]
 
 
-[endsect]
 
+[section:overload2 ip::address_v6::to_string (2 of 2 overloads)]
 
-[section:service ip::basic_resolver::service]
 
+Get the address as a string.
 
-['Inherited from basic_io_object.]
 
-[indexterm2 service..ip::basic_resolver]
-(Deprecated: Use `get_service()`.) The service associated with the I/O object.
+ std::string to_string(
+ boost::system::error_code & ec) const;
 
 
- service_type & service;
 
+[endsect]
 
 
-[heading Remarks]
-
-Available only for services that do not support movability.
+[endsect]
+
+
+[section:to_v4 ip::address_v6::to_v4]
+
+[indexterm2 to_v4..ip::address_v6]
+Converts an IPv4-mapped or IPv4-compatible address to an IPv4 address.
 
 
+ address_v4 to_v4() const;
+
 
 
 [endsect]
 
 
 
-[section:service_type ip::basic_resolver::service_type]
+[section:v4_compatible ip::address_v6::v4_compatible]
 
+[indexterm2 v4_compatible..ip::address_v6]
+Create an IPv4-compatible IPv6 address.
 
-['Inherited from basic_io_object.]
 
-[indexterm2 service_type..ip::basic_resolver]
-The type of the service that will be used to provide I/O operations.
+ static address_v6 v4_compatible(
+ const address_v4 & addr);
 
 
- typedef ResolverService service_type;
 
+[endsect]
 
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/ip/basic_resolver.hpp]
+[section:v4_mapped ip::address_v6::v4_mapped]
+
+[indexterm2 v4_mapped..ip::address_v6]
+Create an IPv4-mapped IPv6 address.
+
+
+ static address_v6 v4_mapped(
+ const address_v4 & addr);
 
-[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
@@ -58811,15 +58636,15 @@
 
 [endsect]
 
-[section:ip__basic_resolver_entry ip::basic_resolver_entry]
+[section:ip__basic_endpoint ip::basic_endpoint]
 
 
-An entry produced by a resolver.
+Describes an endpoint for a version-independent IP socket.
 
 
   template<
       typename ``[link boost_asio.reference.InternetProtocol InternetProtocol]``>
- class basic_resolver_entry
+ class basic_endpoint
 
 
 [heading Types]
@@ -58828,15 +58653,15 @@
 
   [
 
- [[link boost_asio.reference.ip__basic_resolver_entry.endpoint_type [*endpoint_type]]]
- [The endpoint type associated with the endpoint entry. ]
+ [[link boost_asio.reference.ip__basic_endpoint.data_type [*data_type]]]
+ [The type of the endpoint structure. This type is dependent on the underlying implementation of the socket layer. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.ip__basic_resolver_entry.protocol_type [*protocol_type]]]
- [The protocol type associated with the endpoint entry. ]
+ [[link boost_asio.reference.ip__basic_endpoint.protocol_type [*protocol_type]]]
+ [The protocol type associated with the endpoint. ]
   
   ]
 
@@ -58847,78 +58672,152 @@
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.ip__basic_resolver_entry.basic_resolver_entry [*basic_resolver_entry]]]
+ [[link boost_asio.reference.ip__basic_endpoint.address [*address]]]
+ [Get the IP address associated with the endpoint.
+
+ Set the IP address associated with the endpoint. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__basic_endpoint.basic_endpoint [*basic_endpoint]]]
     [Default constructor.
 
- Construct with specified endpoint, host name and service name. ]
+ Construct an endpoint using a port number, specified in the host's byte order. The IP address will be the any address (i.e. INADDR_ANY or in6addr_any). This constructor would typically be used for accepting new connections.
+
+ Construct an endpoint using a port number and an IP address. This constructor may be used for accepting connections on a specific interface or for making a connection to a remote endpoint.
+
+ Copy constructor. ]
   ]
   
   [
- [[link boost_asio.reference.ip__basic_resolver_entry.endpoint [*endpoint]]]
- [Get the endpoint associated with the entry. ]
+ [[link boost_asio.reference.ip__basic_endpoint.capacity [*capacity]]]
+ [Get the capacity of the endpoint in the native type. ]
   ]
   
   [
- [[link boost_asio.reference.ip__basic_resolver_entry.host_name [*host_name]]]
- [Get the host name associated with the entry. ]
+ [[link boost_asio.reference.ip__basic_endpoint.data [*data]]]
+ [Get the underlying endpoint in the native type. ]
   ]
   
   [
- [[link boost_asio.reference.ip__basic_resolver_entry.operator_endpoint_type [*operator endpoint_type]]]
- [Convert to the endpoint associated with the entry. ]
+ [[link boost_asio.reference.ip__basic_endpoint.operator_eq_ [*operator=]]]
+ [Assign from another endpoint. ]
   ]
   
   [
- [[link boost_asio.reference.ip__basic_resolver_entry.service_name [*service_name]]]
- [Get the service name associated with the entry. ]
+ [[link boost_asio.reference.ip__basic_endpoint.port [*port]]]
+ [Get the port associated with the endpoint. The port number is always in the host's byte order.
+
+ Set the port associated with the endpoint. The port number is always in the host's byte order. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__basic_endpoint.protocol [*protocol]]]
+ [The protocol associated with the endpoint. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__basic_endpoint.resize [*resize]]]
+ [Set the underlying size of the endpoint in the native type. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__basic_endpoint.size [*size]]]
+ [Get the underlying size of the endpoint in the native type. ]
   ]
   
 ]
 
-The [link boost_asio.reference.ip__basic_resolver_entry `ip::basic_resolver_entry`] class template describes an entry as returned by a resolver.
+[heading Friends]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.ip__basic_endpoint.operator_not__eq_ [*operator!=]]]
+ [Compare two endpoints for inequality. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__basic_endpoint.operator_lt_ [*operator<]]]
+ [Compare endpoints for ordering. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__basic_endpoint.operator_lt__eq_ [*operator<=]]]
+ [Compare endpoints for ordering. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__basic_endpoint.operator_eq__eq_ [*operator==]]]
+ [Compare two endpoints for equality. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__basic_endpoint.operator_gt_ [*operator>]]]
+ [Compare endpoints for ordering. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__basic_endpoint.operator_gt__eq_ [*operator>=]]]
+ [Compare endpoints for ordering. ]
+ ]
+
+]
+
+[heading Related Functions]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.ip__basic_endpoint.operator_lt__lt_ [*operator<<]]]
+ [Output an endpoint as a string. ]
+ ]
+
+]
+
+The [link boost_asio.reference.ip__basic_endpoint `ip::basic_endpoint`] class template describes an endpoint that may be associated with a particular socket.
 
 
 [heading Thread Safety]
   
 [*Distinct] [*objects:] Safe.
 
-[*Shared] [*objects:] Unsafe.
+[*Shared] [*objects:] Unsafe.
+
 
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/ip/basic_resolver_entry.hpp]
+[*Header: ][^boost/asio/ip/basic_endpoint.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
-[section:basic_resolver_entry ip::basic_resolver_entry::basic_resolver_entry]
+[section:address ip::basic_endpoint::address]
 
-[indexterm2 basic_resolver_entry..ip::basic_resolver_entry]
-Default constructor.
+[indexterm2 address..ip::basic_endpoint]
+Get the IP address associated with the endpoint.
 
 
- ``[link boost_asio.reference.ip__basic_resolver_entry.basic_resolver_entry.overload1 basic_resolver_entry]``();
- `` [''''&raquo;''' [link boost_asio.reference.ip__basic_resolver_entry.basic_resolver_entry.overload1 more...]]``
+ boost::asio::ip::address ``[link boost_asio.reference.ip__basic_endpoint.address.overload1 address]``() const;
+ `` [''''&raquo;''' [link boost_asio.reference.ip__basic_endpoint.address.overload1 more...]]``
 
 
-Construct with specified endpoint, host name and service name.
+Set the IP address associated with the endpoint.
 
 
- ``[link boost_asio.reference.ip__basic_resolver_entry.basic_resolver_entry.overload2 basic_resolver_entry]``(
- const endpoint_type & ep,
- const std::string & host,
- const std::string & service);
- `` [''''&raquo;''' [link boost_asio.reference.ip__basic_resolver_entry.basic_resolver_entry.overload2 more...]]``
+ void ``[link boost_asio.reference.ip__basic_endpoint.address.overload2 address]``(
+ const boost::asio::ip::address & addr);
+ `` [''''&raquo;''' [link boost_asio.reference.ip__basic_endpoint.address.overload2 more...]]``
 
 
-[section:overload1 ip::basic_resolver_entry::basic_resolver_entry (1 of 2 overloads)]
+[section:overload1 ip::basic_endpoint::address (1 of 2 overloads)]
 
 
-Default constructor.
+Get the IP address associated with the endpoint.
 
 
- basic_resolver_entry();
+ boost::asio::ip::address address() const;
 
 
 
@@ -58926,16 +58825,14 @@
 
 
 
-[section:overload2 ip::basic_resolver_entry::basic_resolver_entry (2 of 2 overloads)]
+[section:overload2 ip::basic_endpoint::address (2 of 2 overloads)]
 
 
-Construct with specified endpoint, host name and service name.
+Set the IP address associated with the endpoint.
 
 
- basic_resolver_entry(
- const endpoint_type & ep,
- const std::string & host,
- const std::string & service);
+ void address(
+ const boost::asio::ip::address & addr);
 
 
 
@@ -58944,341 +58841,294 @@
 
 [endsect]
 
+[section:basic_endpoint ip::basic_endpoint::basic_endpoint]
 
-[section:endpoint ip::basic_resolver_entry::endpoint]
+[indexterm2 basic_endpoint..ip::basic_endpoint]
+Default constructor.
 
-[indexterm2 endpoint..ip::basic_resolver_entry]
-Get the endpoint associated with the entry.
+
+ ``[link boost_asio.reference.ip__basic_endpoint.basic_endpoint.overload1 basic_endpoint]``();
+ `` [''''&raquo;''' [link boost_asio.reference.ip__basic_endpoint.basic_endpoint.overload1 more...]]``
 
 
- endpoint_type endpoint() const;
+Construct an endpoint using a port number, specified in the host's byte order. The IP address will be the any address (i.e. INADDR\_ANY or in6addr\_any). This constructor would typically be used for accepting new connections.
 
 
+ ``[link boost_asio.reference.ip__basic_endpoint.basic_endpoint.overload2 basic_endpoint]``(
+ const InternetProtocol & internet_protocol,
+ unsigned short port_num);
+ `` [''''&raquo;''' [link boost_asio.reference.ip__basic_endpoint.basic_endpoint.overload2 more...]]``
 
-[endsect]
 
+Construct an endpoint using a port number and an IP address. This constructor may be used for accepting connections on a specific interface or for making a connection to a remote endpoint.
 
 
-[section:endpoint_type ip::basic_resolver_entry::endpoint_type]
+ ``[link boost_asio.reference.ip__basic_endpoint.basic_endpoint.overload3 basic_endpoint]``(
+ const boost::asio::ip::address & addr,
+ unsigned short port_num);
+ `` [''''&raquo;''' [link boost_asio.reference.ip__basic_endpoint.basic_endpoint.overload3 more...]]``
 
-[indexterm2 endpoint_type..ip::basic_resolver_entry]
-The endpoint type associated with the endpoint entry.
 
+Copy constructor.
 
- typedef InternetProtocol::endpoint endpoint_type;
 
+ ``[link boost_asio.reference.ip__basic_endpoint.basic_endpoint.overload4 basic_endpoint]``(
+ const basic_endpoint & other);
+ `` [''''&raquo;''' [link boost_asio.reference.ip__basic_endpoint.basic_endpoint.overload4 more...]]``
 
 
-[heading Requirements]
+[section:overload1 ip::basic_endpoint::basic_endpoint (1 of 4 overloads)]
 
-[*Header: ][^boost/asio/ip/basic_resolver_entry.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
+Default constructor.
+
+
+ basic_endpoint();
+
 
 
 [endsect]
 
 
 
-[section:host_name ip::basic_resolver_entry::host_name]
+[section:overload2 ip::basic_endpoint::basic_endpoint (2 of 4 overloads)]
 
-[indexterm2 host_name..ip::basic_resolver_entry]
-Get the host name associated with the entry.
 
+Construct an endpoint using a port number, specified in the host's byte order. The IP address will be the any address (i.e. INADDR\_ANY or in6addr\_any). This constructor would typically be used for accepting new connections.
 
- std::string host_name() const;
 
+ basic_endpoint(
+ const InternetProtocol & internet_protocol,
+ unsigned short port_num);
 
 
-[endsect]
 
+[heading Examples]
+
+To initialise an IPv4 TCP endpoint for port 1234, use:
 
+ boost::asio::ip::tcp::endpoint ep(boost::asio::ip::tcp::v4(), 1234);
 
-[section:operator_endpoint_type ip::basic_resolver_entry::operator endpoint_type]
 
-[indexterm2 operator endpoint_type..ip::basic_resolver_entry]
-Convert to the endpoint associated with the entry.
 
 
- operator endpoint_type() const;
+To specify an IPv6 UDP endpoint for port 9876, use:
 
+ boost::asio::ip::udp::endpoint ep(boost::asio::ip::udp::v6(), 9876);
 
 
-[endsect]
 
 
 
-[section:protocol_type ip::basic_resolver_entry::protocol_type]
+[endsect]
 
-[indexterm2 protocol_type..ip::basic_resolver_entry]
-The protocol type associated with the endpoint entry.
 
 
- typedef InternetProtocol protocol_type;
+[section:overload3 ip::basic_endpoint::basic_endpoint (3 of 4 overloads)]
 
 
+Construct an endpoint using a port number and an IP address. This constructor may be used for accepting connections on a specific interface or for making a connection to a remote endpoint.
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/ip/basic_resolver_entry.hpp]
+ basic_endpoint(
+ const boost::asio::ip::address & addr,
+ unsigned short port_num);
 
-[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
 
-[section:service_name ip::basic_resolver_entry::service_name]
+[section:overload4 ip::basic_endpoint::basic_endpoint (4 of 4 overloads)]
 
-[indexterm2 service_name..ip::basic_resolver_entry]
-Get the service name associated with the entry.
 
+Copy constructor.
 
- std::string service_name() const;
+
+ basic_endpoint(
+ const basic_endpoint & other);
 
 
 
 [endsect]
 
 
-
 [endsect]
 
-[section:ip__basic_resolver_iterator ip::basic_resolver_iterator]
 
+[section:capacity ip::basic_endpoint::capacity]
 
-An iterator over the entries produced by a resolver.
+[indexterm2 capacity..ip::basic_endpoint]
+Get the capacity of the endpoint in the native type.
 
 
- template<
- typename ``[link boost_asio.reference.InternetProtocol InternetProtocol]``>
- class basic_resolver_iterator
+ std::size_t capacity() const;
 
 
-[heading Types]
-[table
- [[Name][Description]]
 
- [
+[endsect]
 
- [[link boost_asio.reference.ip__basic_resolver_iterator.difference_type [*difference_type]]]
- [The type used for the distance between two iterators. ]
-
- ]
 
- [
+[section:data ip::basic_endpoint::data]
 
- [[link boost_asio.reference.ip__basic_resolver_iterator.iterator_category [*iterator_category]]]
- [The iterator category. ]
-
- ]
+[indexterm2 data..ip::basic_endpoint]
+Get the underlying endpoint in the native type.
 
- [
 
- [[link boost_asio.reference.ip__basic_resolver_iterator.pointer [*pointer]]]
- [The type of the result of applying operator->() to the iterator. ]
-
- ]
+ data_type * ``[link boost_asio.reference.ip__basic_endpoint.data.overload1 data]``();
+ `` [''''&raquo;''' [link boost_asio.reference.ip__basic_endpoint.data.overload1 more...]]``
 
- [
+ const data_type * ``[link boost_asio.reference.ip__basic_endpoint.data.overload2 data]``() const;
+ `` [''''&raquo;''' [link boost_asio.reference.ip__basic_endpoint.data.overload2 more...]]``
 
- [[link boost_asio.reference.ip__basic_resolver_iterator.reference [*reference]]]
- [The type of the result of applying operator*() to the iterator. ]
-
- ]
 
- [
+[section:overload1 ip::basic_endpoint::data (1 of 2 overloads)]
 
- [[link boost_asio.reference.ip__basic_resolver_iterator.value_type [*value_type]]]
- [The type of the value pointed to by the iterator. ]
-
- ]
 
-]
+Get the underlying endpoint in the native type.
 
-[heading Member Functions]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.ip__basic_resolver_iterator.basic_resolver_iterator [*basic_resolver_iterator]]]
- [Default constructor creates an end iterator. ]
- ]
-
- [
- [[link boost_asio.reference.ip__basic_resolver_iterator.create [*create]]]
- [Create an iterator from an addrinfo list returned by getaddrinfo.
+ data_type * data();
 
- Create an iterator from an endpoint, host name and service name. ]
- ]
-
- [
- [[link boost_asio.reference.ip__basic_resolver_iterator.operator__star_ [*operator *]]]
- [Dereference an iterator. ]
- ]
-
- [
- [[link boost_asio.reference.ip__basic_resolver_iterator.operator_plus__plus_ [*operator++]]]
- [Increment operator (prefix).
 
- Increment operator (postfix). ]
- ]
-
- [
- [[link boost_asio.reference.ip__basic_resolver_iterator.operator_arrow_ [*operator->]]]
- [Dereference an iterator. ]
- ]
-
-]
 
-[heading Friends]
-[table
- [[Name][Description]]
+[endsect]
 
- [
- [[link boost_asio.reference.ip__basic_resolver_iterator.operator_not__eq_ [*operator!=]]]
- [Test two iterators for inequality. ]
- ]
-
- [
- [[link boost_asio.reference.ip__basic_resolver_iterator.operator_eq__eq_ [*operator==]]]
- [Test two iterators for equality. ]
- ]
-
-]
 
-The [link boost_asio.reference.ip__basic_resolver_iterator `ip::basic_resolver_iterator`] class template is used to define iterators over the results returned by a resolver.
 
-The iterator's value\_type, obtained when the iterator is dereferenced, is:
+[section:overload2 ip::basic_endpoint::data (2 of 2 overloads)]
 
- const basic_resolver_entry<InternetProtocol>
 
+Get the underlying endpoint in the native type.
 
 
+ const data_type * data() const;
 
 
-[heading Thread Safety]
-
-[*Distinct] [*objects:] Safe.
 
-[*Shared] [*objects:] Unsafe.
+[endsect]
 
 
+[endsect]
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/ip/basic_resolver_iterator.hpp]
+[section:data_type ip::basic_endpoint::data_type]
 
-[*Convenience header: ][^boost/asio.hpp]
+[indexterm2 data_type..ip::basic_endpoint]
+The type of the endpoint structure. This type is dependent on the underlying implementation of the socket layer.
 
 
-[section:basic_resolver_iterator ip::basic_resolver_iterator::basic_resolver_iterator]
+ typedef implementation_defined data_type;
 
-[indexterm2 basic_resolver_iterator..ip::basic_resolver_iterator]
-Default constructor creates an end iterator.
 
 
- basic_resolver_iterator();
+[heading Requirements]
+
+[*Header: ][^boost/asio/ip/basic_endpoint.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
-[section:create ip::basic_resolver_iterator::create]
 
-[indexterm2 create..ip::basic_resolver_iterator]
-Create an iterator from an addrinfo list returned by getaddrinfo.
+[section:operator_not__eq_ ip::basic_endpoint::operator!=]
 
+[indexterm2 operator!=..ip::basic_endpoint]
+Compare two endpoints for inequality.
 
- static basic_resolver_iterator ``[link boost_asio.reference.ip__basic_resolver_iterator.create.overload1 create]``(
- boost::asio::detail::addrinfo_type * address_info,
- const std::string & host_name,
- const std::string & service_name);
- `` [''''&raquo;''' [link boost_asio.reference.ip__basic_resolver_iterator.create.overload1 more...]]``
 
+ friend bool operator!=(
+ const basic_endpoint< InternetProtocol > & e1,
+ const basic_endpoint< InternetProtocol > & e2);
 
-Create an iterator from an endpoint, host name and service name.
 
+[heading Requirements]
 
- static basic_resolver_iterator ``[link boost_asio.reference.ip__basic_resolver_iterator.create.overload2 create]``(
- const typename InternetProtocol::endpoint & endpoint,
- const std::string & host_name,
- const std::string & service_name);
- `` [''''&raquo;''' [link boost_asio.reference.ip__basic_resolver_iterator.create.overload2 more...]]``
+[*Header: ][^boost/asio/ip/basic_endpoint.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
-[section:overload1 ip::basic_resolver_iterator::create (1 of 2 overloads)]
 
+[endsect]
 
-Create an iterator from an addrinfo list returned by getaddrinfo.
 
 
- static basic_resolver_iterator create(
- boost::asio::detail::addrinfo_type * address_info,
- const std::string & host_name,
- const std::string & service_name);
+[section:operator_lt_ ip::basic_endpoint::operator<]
 
+[indexterm2 operator<..ip::basic_endpoint]
+Compare endpoints for ordering.
 
 
-[endsect]
+ friend bool operator<(
+ const basic_endpoint< InternetProtocol > & e1,
+ const basic_endpoint< InternetProtocol > & e2);
 
 
+[heading Requirements]
 
-[section:overload2 ip::basic_resolver_iterator::create (2 of 2 overloads)]
+[*Header: ][^boost/asio/ip/basic_endpoint.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
-Create an iterator from an endpoint, host name and service name.
 
+[endsect]
 
- static basic_resolver_iterator create(
- const typename InternetProtocol::endpoint & endpoint,
- const std::string & host_name,
- const std::string & service_name);
 
 
+[section:operator_lt__lt_ ip::basic_endpoint::operator<<]
 
-[endsect]
+[indexterm2 operator<<..ip::basic_endpoint]
+Output an endpoint as a string.
 
 
-[endsect]
+ std::basic_ostream< Elem, Traits > & operator<<(
+ std::basic_ostream< Elem, Traits > & os,
+ const basic_endpoint< InternetProtocol > & endpoint);
 
 
-[section:difference_type ip::basic_resolver_iterator::difference_type]
+Used to output a human-readable string for a specified endpoint.
 
-[indexterm2 difference_type..ip::basic_resolver_iterator]
-The type used for the distance between two iterators.
 
+[heading Parameters]
+
 
- typedef std::ptrdiff_t difference_type;
+[variablelist
+
+[[os][The output stream to which the string will be written.]]
 
+[[endpoint][The endpoint to be written.]]
 
+]
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/ip/basic_resolver_iterator.hpp]
+[heading Return Value]
+
+The output stream.
 
-[*Convenience header: ][^boost/asio.hpp]
 
 
-[endsect]
 
+[endsect]
 
 
-[section:iterator_category ip::basic_resolver_iterator::iterator_category]
 
-[indexterm2 iterator_category..ip::basic_resolver_iterator]
-The iterator category.
+[section:operator_lt__eq_ ip::basic_endpoint::operator<=]
 
+[indexterm2 operator<=..ip::basic_endpoint]
+Compare endpoints for ordering.
 
- typedef std::forward_iterator_tag iterator_category;
 
+ friend bool operator<=(
+ const basic_endpoint< InternetProtocol > & e1,
+ const basic_endpoint< InternetProtocol > & e2);
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/ip/basic_resolver_iterator.hpp]
+[*Header: ][^boost/asio/ip/basic_endpoint.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -59287,13 +59137,14 @@
 
 
 
-[section:operator__star_ ip::basic_resolver_iterator::operator *]
+[section:operator_eq_ ip::basic_endpoint::operator=]
 
-[indexterm2 operator *..ip::basic_resolver_iterator]
-Dereference an iterator.
+[indexterm2 operator=..ip::basic_endpoint]
+Assign from another endpoint.
 
 
- const basic_resolver_entry< InternetProtocol > & operator *() const;
+ basic_endpoint & operator=(
+ const basic_endpoint & other);
 
 
 
@@ -59301,20 +59152,20 @@
 
 
 
-[section:operator_not__eq_ ip::basic_resolver_iterator::operator!=]
+[section:operator_eq__eq_ ip::basic_endpoint::operator==]
 
-[indexterm2 operator!=..ip::basic_resolver_iterator]
-Test two iterators for inequality.
+[indexterm2 operator==..ip::basic_endpoint]
+Compare two endpoints for equality.
 
 
- friend bool operator!=(
- const basic_resolver_iterator & a,
- const basic_resolver_iterator & b);
+ friend bool operator==(
+ const basic_endpoint< InternetProtocol > & e1,
+ const basic_endpoint< InternetProtocol > & e2);
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/ip/basic_resolver_iterator.hpp]
+[*Header: ][^boost/asio/ip/basic_endpoint.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -59322,204 +59173,176 @@
 [endsect]
 
 
-[section:operator_plus__plus_ ip::basic_resolver_iterator::operator++]
 
-[indexterm2 operator++..ip::basic_resolver_iterator]
-Increment operator (prefix).
+[section:operator_gt_ ip::basic_endpoint::operator>]
 
+[indexterm2 operator>..ip::basic_endpoint]
+Compare endpoints for ordering.
 
- basic_resolver_iterator & ``[link boost_asio.reference.ip__basic_resolver_iterator.operator_plus__plus_.overload1 operator++]``();
- `` [''''&raquo;''' [link boost_asio.reference.ip__basic_resolver_iterator.operator_plus__plus_.overload1 more...]]``
 
+ friend bool operator>(
+ const basic_endpoint< InternetProtocol > & e1,
+ const basic_endpoint< InternetProtocol > & e2);
 
-Increment operator (postfix).
 
+[heading Requirements]
 
- basic_resolver_iterator ``[link boost_asio.reference.ip__basic_resolver_iterator.operator_plus__plus_.overload2 operator++]``(
- int );
- `` [''''&raquo;''' [link boost_asio.reference.ip__basic_resolver_iterator.operator_plus__plus_.overload2 more...]]``
+[*Header: ][^boost/asio/ip/basic_endpoint.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
-[section:overload1 ip::basic_resolver_iterator::operator++ (1 of 2 overloads)]
 
+[endsect]
 
-Increment operator (prefix).
 
 
- basic_resolver_iterator & operator++();
+[section:operator_gt__eq_ ip::basic_endpoint::operator>=]
 
+[indexterm2 operator>=..ip::basic_endpoint]
+Compare endpoints for ordering.
 
 
-[endsect]
+ friend bool operator>=(
+ const basic_endpoint< InternetProtocol > & e1,
+ const basic_endpoint< InternetProtocol > & e2);
+
 
+[heading Requirements]
 
+[*Header: ][^boost/asio/ip/basic_endpoint.hpp]
 
-[section:overload2 ip::basic_resolver_iterator::operator++ (2 of 2 overloads)]
+[*Convenience header: ][^boost/asio.hpp]
 
 
-Increment operator (postfix).
+[endsect]
 
 
- basic_resolver_iterator operator++(
- int );
+[section:port ip::basic_endpoint::port]
 
+[indexterm2 port..ip::basic_endpoint]
+Get the port associated with the endpoint. The port number is always in the host's byte order.
 
 
-[endsect]
+ unsigned short ``[link boost_asio.reference.ip__basic_endpoint.port.overload1 port]``() const;
+ `` [''''&raquo;''' [link boost_asio.reference.ip__basic_endpoint.port.overload1 more...]]``
 
 
-[endsect]
+Set the port associated with the endpoint. The port number is always in the host's byte order.
 
 
-[section:operator_arrow_ ip::basic_resolver_iterator::operator->]
+ void ``[link boost_asio.reference.ip__basic_endpoint.port.overload2 port]``(
+ unsigned short port_num);
+ `` [''''&raquo;''' [link boost_asio.reference.ip__basic_endpoint.port.overload2 more...]]``
 
-[indexterm2 operator->..ip::basic_resolver_iterator]
-Dereference an iterator.
 
+[section:overload1 ip::basic_endpoint::port (1 of 2 overloads)]
 
- const basic_resolver_entry< InternetProtocol > * operator->() const;
 
+Get the port associated with the endpoint. The port number is always in the host's byte order.
 
 
-[endsect]
+ unsigned short port() const;
 
 
 
-[section:operator_eq__eq_ ip::basic_resolver_iterator::operator==]
+[endsect]
 
-[indexterm2 operator==..ip::basic_resolver_iterator]
-Test two iterators for equality.
 
 
- friend bool operator==(
- const basic_resolver_iterator & a,
- const basic_resolver_iterator & b);
+[section:overload2 ip::basic_endpoint::port (2 of 2 overloads)]
 
 
-[heading Requirements]
+Set the port associated with the endpoint. The port number is always in the host's byte order.
 
-[*Header: ][^boost/asio/ip/basic_resolver_iterator.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
+ void port(
+ unsigned short port_num);
+
 
 
 [endsect]
 
 
+[endsect]
 
-[section:pointer ip::basic_resolver_iterator::pointer]
 
-[indexterm2 pointer..ip::basic_resolver_iterator]
-The type of the result of applying `operator->()` to the iterator.
+[section:protocol ip::basic_endpoint::protocol]
 
+[indexterm2 protocol..ip::basic_endpoint]
+The protocol associated with the endpoint.
 
- typedef const basic_resolver_entry< InternetProtocol > * pointer;
 
+ protocol_type protocol() const;
 
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/ip/basic_resolver_iterator.hpp]
+[endsect]
 
-[*Convenience header: ][^boost/asio.hpp]
 
 
-[endsect]
+[section:protocol_type ip::basic_endpoint::protocol_type]
 
+[indexterm2 protocol_type..ip::basic_endpoint]
+The protocol type associated with the endpoint.
 
 
-[section:reference ip::basic_resolver_iterator::reference]
+ typedef InternetProtocol protocol_type;
 
-[indexterm2 reference..ip::basic_resolver_iterator]
-The type of the result of applying `operator*()` to the iterator.
 
 
- typedef const basic_resolver_entry< InternetProtocol > & reference;
+[heading Requirements]
 
+[*Header: ][^boost/asio/ip/basic_endpoint.hpp]
 
-[heading Types]
-[table
- [[Name][Description]]
+[*Convenience header: ][^boost/asio.hpp]
 
- [
 
- [[link boost_asio.reference.ip__basic_resolver_entry.endpoint_type [*endpoint_type]]]
- [The endpoint type associated with the endpoint entry. ]
-
- ]
+[endsect]
 
- [
 
- [[link boost_asio.reference.ip__basic_resolver_entry.protocol_type [*protocol_type]]]
- [The protocol type associated with the endpoint entry. ]
-
- ]
 
-]
+[section:resize ip::basic_endpoint::resize]
 
-[heading Member Functions]
-[table
- [[Name][Description]]
+[indexterm2 resize..ip::basic_endpoint]
+Set the underlying size of the endpoint in the native type.
 
- [
- [[link boost_asio.reference.ip__basic_resolver_entry.basic_resolver_entry [*basic_resolver_entry]]]
- [Default constructor.
 
- Construct with specified endpoint, host name and service name. ]
- ]
-
- [
- [[link boost_asio.reference.ip__basic_resolver_entry.endpoint [*endpoint]]]
- [Get the endpoint associated with the entry. ]
- ]
-
- [
- [[link boost_asio.reference.ip__basic_resolver_entry.host_name [*host_name]]]
- [Get the host name associated with the entry. ]
- ]
-
- [
- [[link boost_asio.reference.ip__basic_resolver_entry.operator_endpoint_type [*operator endpoint_type]]]
- [Convert to the endpoint associated with the entry. ]
- ]
-
- [
- [[link boost_asio.reference.ip__basic_resolver_entry.service_name [*service_name]]]
- [Get the service name associated with the entry. ]
- ]
-
-]
+ void resize(
+ std::size_t new_size);
 
-The [link boost_asio.reference.ip__basic_resolver_entry `ip::basic_resolver_entry`] class template describes an entry as returned by a resolver.
 
 
-[heading Thread Safety]
-
-[*Distinct] [*objects:] Safe.
+[endsect]
 
-[*Shared] [*objects:] Unsafe.
 
 
+[section:size ip::basic_endpoint::size]
 
+[indexterm2 size..ip::basic_endpoint]
+Get the underlying size of the endpoint in the native type.
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/ip/basic_resolver_iterator.hpp]
+ std::size_t size() const;
 
-[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
 
-[section:value_type ip::basic_resolver_iterator::value_type]
+[endsect]
 
-[indexterm2 value_type..ip::basic_resolver_iterator]
-The type of the value pointed to by the iterator.
+[section:ip__basic_resolver ip::basic_resolver]
 
 
- typedef basic_resolver_entry< InternetProtocol > value_type;
+Provides endpoint resolution functionality.
+
+
+ template<
+ typename ``[link boost_asio.reference.InternetProtocol InternetProtocol]``,
+ typename ``[link boost_asio.reference.ResolverService ResolverService]`` = resolver_service<InternetProtocol>>
+ class basic_resolver :
+ public basic_io_object< ResolverService >
 
 
 [heading Types]
@@ -59528,105 +59351,43 @@
 
   [
 
- [[link boost_asio.reference.ip__basic_resolver_entry.endpoint_type [*endpoint_type]]]
- [The endpoint type associated with the endpoint entry. ]
+ [[link boost_asio.reference.ip__basic_resolver.endpoint_type [*endpoint_type]]]
+ [The endpoint type. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.ip__basic_resolver_entry.protocol_type [*protocol_type]]]
- [The protocol type associated with the endpoint entry. ]
+ [[link boost_asio.reference.ip__basic_resolver.implementation_type [*implementation_type]]]
+ [The underlying implementation type of I/O object. ]
   
   ]
 
-]
-
-[heading Member Functions]
-[table
- [[Name][Description]]
-
   [
- [[link boost_asio.reference.ip__basic_resolver_entry.basic_resolver_entry [*basic_resolver_entry]]]
- [Default constructor.
 
- Construct with specified endpoint, host name and service name. ]
- ]
-
- [
- [[link boost_asio.reference.ip__basic_resolver_entry.endpoint [*endpoint]]]
- [Get the endpoint associated with the entry. ]
- ]
-
- [
- [[link boost_asio.reference.ip__basic_resolver_entry.host_name [*host_name]]]
- [Get the host name associated with the entry. ]
- ]
-
- [
- [[link boost_asio.reference.ip__basic_resolver_entry.operator_endpoint_type [*operator endpoint_type]]]
- [Convert to the endpoint associated with the entry. ]
- ]
+ [[link boost_asio.reference.ip__basic_resolver.iterator [*iterator]]]
+ [The iterator type. ]
   
- [
- [[link boost_asio.reference.ip__basic_resolver_entry.service_name [*service_name]]]
- [Get the service name associated with the entry. ]
   ]
-
-]
-
-The [link boost_asio.reference.ip__basic_resolver_entry `ip::basic_resolver_entry`] class template describes an entry as returned by a resolver.
 
+ [
 
-[heading Thread Safety]
+ [[link boost_asio.reference.ip__basic_resolver.protocol_type [*protocol_type]]]
+ [The protocol type. ]
   
-[*Distinct] [*objects:] Safe.
-
-[*Shared] [*objects:] Unsafe.
-
-
-
-
-[heading Requirements]
-
-[*Header: ][^boost/asio/ip/basic_resolver_iterator.hpp]
-
-[*Convenience header: ][^boost/asio.hpp]
-
-
-[endsect]
-
-
-
-[endsect]
-
-[section:ip__basic_resolver_query ip::basic_resolver_query]
-
-
-An query to be passed to a resolver.
-
-
- template<
- typename ``[link boost_asio.reference.InternetProtocol InternetProtocol]``>
- class basic_resolver_query :
- public ip::resolver_query_base
-
-
-[heading Types]
-[table
- [[Name][Description]]
+ ]
 
   [
 
- [[link boost_asio.reference.ip__basic_resolver_query.flags [*flags]]]
- [A bitmask type (C++ Std \[lib.bitmask.types\]). ]
+ [[link boost_asio.reference.ip__basic_resolver.query [*query]]]
+ [The query type. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.ip__basic_resolver_query.protocol_type [*protocol_type]]]
- [The protocol type associated with the endpoint query. ]
+ [[link boost_asio.reference.ip__basic_resolver.service_type [*service_type]]]
+ [The type of the service that will be used to provide I/O operations. ]
   
   ]
 
@@ -59637,75 +59398,69 @@
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.ip__basic_resolver_query.basic_resolver_query [*basic_resolver_query]]]
- [Construct with specified service name for any protocol.
-
- Construct with specified service name for a given protocol.
-
- Construct with specified host name and service name for any protocol.
+ [[link boost_asio.reference.ip__basic_resolver.async_resolve [*async_resolve]]]
+ [Asynchronously perform forward resolution of a query to a list of entries.
 
- Construct with specified host name and service name for a given protocol. ]
+ Asynchronously perform reverse resolution of an endpoint to a list of entries. ]
   ]
   
   [
- [[link boost_asio.reference.ip__basic_resolver_query.hints [*hints]]]
- [Get the hints associated with the query. ]
+ [[link boost_asio.reference.ip__basic_resolver.basic_resolver [*basic_resolver]]]
+ [Constructor. ]
   ]
   
   [
- [[link boost_asio.reference.ip__basic_resolver_query.host_name [*host_name]]]
- [Get the host name associated with the query. ]
+ [[link boost_asio.reference.ip__basic_resolver.cancel [*cancel]]]
+ [Cancel any asynchronous operations that are waiting on the resolver. ]
   ]
   
   [
- [[link boost_asio.reference.ip__basic_resolver_query.service_name [*service_name]]]
- [Get the service name associated with the query. ]
+ [[link boost_asio.reference.ip__basic_resolver.get_io_service [*get_io_service]]]
+ [Get the io_service associated with the object. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__basic_resolver.resolve [*resolve]]]
+ [Perform forward resolution of a query to a list of entries.
+
+ Perform reverse resolution of an endpoint to a list of entries. ]
   ]
   
 ]
 
-[heading Data Members]
+[heading Protected Member Functions]
 [table
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.ip__basic_resolver_query.address_configured [*address_configured]]]
- [Only return IPv4 addresses if a non-loopback IPv4 address is configured for the system. Only return IPv6 addresses if a non-loopback IPv6 address is configured for the system. ]
- ]
-
- [
- [[link boost_asio.reference.ip__basic_resolver_query.all_matching [*all_matching]]]
- [If used with v4_mapped, return all matching IPv6 and IPv4 addresses. ]
- ]
-
- [
- [[link boost_asio.reference.ip__basic_resolver_query.canonical_name [*canonical_name]]]
- [Determine the canonical name of the host specified in the query. ]
+ [[link boost_asio.reference.ip__basic_resolver.get_implementation [*get_implementation]]]
+ [Get the underlying implementation of the I/O object. ]
   ]
-
+
   [
- [[link boost_asio.reference.ip__basic_resolver_query.numeric_host [*numeric_host]]]
- [Host name should be treated as a numeric string defining an IPv4 or IPv6 address and no name resolution should be attempted. ]
+ [[link boost_asio.reference.ip__basic_resolver.get_service [*get_service]]]
+ [Get the service associated with the I/O object. ]
   ]
+
+]
 
- [
- [[link boost_asio.reference.ip__basic_resolver_query.numeric_service [*numeric_service]]]
- [Service name should be treated as a numeric string defining a port number and no name resolution should be attempted. ]
- ]
+[heading Protected Data Members]
+[table
+ [[Name][Description]]
 
   [
- [[link boost_asio.reference.ip__basic_resolver_query.passive [*passive]]]
- [Indicate that returned endpoint is intended for use as a locally bound socket endpoint. ]
+ [[link boost_asio.reference.ip__basic_resolver.implementation [*implementation]]]
+ [(Deprecated: Use get_implementation().) The underlying implementation of the I/O object. ]
   ]
 
   [
- [[link boost_asio.reference.ip__basic_resolver_query.v4_mapped [*v4_mapped]]]
- [If the query protocol family is specified as IPv6, return IPv4-mapped IPv6 addresses on finding no IPv6 addresses. ]
+ [[link boost_asio.reference.ip__basic_resolver.service [*service]]]
+ [(Deprecated: Use get_service().) The service associated with the I/O object. ]
   ]
 
 ]
 
-The [link boost_asio.reference.ip__basic_resolver_query `ip::basic_resolver_query`] class template describes a query that can be passed to a resolver.
+The [link boost_asio.reference.ip__basic_resolver `ip::basic_resolver`] class template provides the ability to resolve a query to a list of endpoints.
 
 
 [heading Thread Safety]
@@ -59718,99 +59473,97 @@
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/ip/basic_resolver_query.hpp]
+[*Header: ][^boost/asio/ip/basic_resolver.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
+[section:async_resolve ip::basic_resolver::async_resolve]
 
-[section:address_configured ip::basic_resolver_query::address_configured]
+[indexterm2 async_resolve..ip::basic_resolver]
+Asynchronously perform forward resolution of a query to a list of entries.
 
 
-['Inherited from ip::resolver_query_base.]
+ template<
+ typename ``[link boost_asio.reference.ResolveHandler ResolveHandler]``>
+ void ``[link boost_asio.reference.ip__basic_resolver.async_resolve.overload1 async_resolve]``(
+ const query & q,
+ ResolveHandler handler);
+ `` [''''&raquo;''' [link boost_asio.reference.ip__basic_resolver.async_resolve.overload1 more...]]``
 
-[indexterm2 address_configured..ip::basic_resolver_query]
-Only return IPv4 addresses if a non-loopback IPv4 address is configured for the system. Only return IPv6 addresses if a non-loopback IPv6 address is configured for the system.
 
+Asynchronously perform reverse resolution of an endpoint to a list of entries.
 
- static const flags address_configured = implementation_defined;
 
+ template<
+ typename ``[link boost_asio.reference.ResolveHandler ResolveHandler]``>
+ void ``[link boost_asio.reference.ip__basic_resolver.async_resolve.overload2 async_resolve]``(
+ const endpoint_type & e,
+ ResolveHandler handler);
+ `` [''''&raquo;''' [link boost_asio.reference.ip__basic_resolver.async_resolve.overload2 more...]]``
 
 
-[endsect]
+[section:overload1 ip::basic_resolver::async_resolve (1 of 2 overloads)]
 
 
+Asynchronously perform forward resolution of a query to a list of entries.
 
-[section:all_matching ip::basic_resolver_query::all_matching]
 
+ template<
+ typename ``[link boost_asio.reference.ResolveHandler ResolveHandler]``>
+ void async_resolve(
+ const query & q,
+ ResolveHandler handler);
 
-['Inherited from ip::resolver_query_base.]
 
-[indexterm2 all_matching..ip::basic_resolver_query]
-If used with v4\_mapped, return all matching IPv6 and IPv4 addresses.
+This function is used to asynchronously resolve a query into a list of endpoint entries.
 
 
- static const flags all_matching = implementation_defined;
+[heading Parameters]
+
 
+[variablelist
+
+[[q][A query object that determines what endpoints will be returned.]]
 
+[[handler][The handler to be called when the resolve operation completes. Copies will be made of the handler as required. The function signature of the handler must be:
+``
+ void handler(
+ const boost::system::error_code& error, // Result of operation.
+ resolver::iterator iterator // Forward-only iterator that can
+ // be used to traverse the list
+ // of endpoint entries.
+ );
+``
+Regardless of whether the asynchronous operation completes immediately or not, the handler will not be invoked from within this function. Invocation of the handler will be performed in a manner equivalent to using `boost::asio::io_service::post()`.]]
 
-[endsect]
+]
 
 
-[section:basic_resolver_query ip::basic_resolver_query::basic_resolver_query]
+[heading Remarks]
+
+A default constructed iterator represents the end of the list.
 
-[indexterm2 basic_resolver_query..ip::basic_resolver_query]
-Construct with specified service name for any protocol.
+A successful resolve operation is guaranteed to pass at least one entry to the handler.
 
 
- ``[link boost_asio.reference.ip__basic_resolver_query.basic_resolver_query.overload1 basic_resolver_query]``(
- const std::string & service,
- resolver_query_base::flags resolve_flags = passive|address_configured);
- `` [''''&raquo;''' [link boost_asio.reference.ip__basic_resolver_query.basic_resolver_query.overload1 more...]]``
+[endsect]
 
 
-Construct with specified service name for a given protocol.
 
-
- ``[link boost_asio.reference.ip__basic_resolver_query.basic_resolver_query.overload2 basic_resolver_query]``(
- const protocol_type & protocol,
- const std::string & service,
- resolver_query_base::flags resolve_flags = passive|address_configured);
- `` [''''&raquo;''' [link boost_asio.reference.ip__basic_resolver_query.basic_resolver_query.overload2 more...]]``
-
-
-Construct with specified host name and service name for any protocol.
-
-
- ``[link boost_asio.reference.ip__basic_resolver_query.basic_resolver_query.overload3 basic_resolver_query]``(
- const std::string & host,
- const std::string & service,
- resolver_query_base::flags resolve_flags = address_configured);
- `` [''''&raquo;''' [link boost_asio.reference.ip__basic_resolver_query.basic_resolver_query.overload3 more...]]``
-
-
-Construct with specified host name and service name for a given protocol.
-
-
- ``[link boost_asio.reference.ip__basic_resolver_query.basic_resolver_query.overload4 basic_resolver_query]``(
- const protocol_type & protocol,
- const std::string & host,
- const std::string & service,
- resolver_query_base::flags resolve_flags = address_configured);
- `` [''''&raquo;''' [link boost_asio.reference.ip__basic_resolver_query.basic_resolver_query.overload4 more...]]``
-
-
-[section:overload1 ip::basic_resolver_query::basic_resolver_query (1 of 4 overloads)]
+[section:overload2 ip::basic_resolver::async_resolve (2 of 2 overloads)]
 
 
-Construct with specified service name for any protocol.
+Asynchronously perform reverse resolution of an endpoint to a list of entries.
 
 
- basic_resolver_query(
- const std::string & service,
- resolver_query_base::flags resolve_flags = passive|address_configured);
+ template<
+ typename ``[link boost_asio.reference.ResolveHandler ResolveHandler]``>
+ void async_resolve(
+ const endpoint_type & e,
+ ResolveHandler handler);
 
 
-This constructor is typically used to perform name resolution for local service binding.
+This function is used to asynchronously resolve an endpoint into a list of endpoint entries.
 
 
 [heading Parameters]
@@ -59818,37 +59571,46 @@
 
 [variablelist
   
-[[service][A string identifying the requested service. This may be a descriptive name or a numeric string corresponding to a port number.]]
+[[e][An endpoint object that determines what endpoints will be returned.]]
 
-[[resolve_flags][A set of flags that determine how name resolution should be performed. The default flags are suitable for local service binding.]]
+[[handler][The handler to be called when the resolve operation completes. Copies will be made of the handler as required. The function signature of the handler must be:
+``
+ void handler(
+ const boost::system::error_code& error, // Result of operation.
+ resolver::iterator iterator // Forward-only iterator that can
+ // be used to traverse the list
+ // of endpoint entries.
+ );
+``
+Regardless of whether the asynchronous operation completes immediately or not, the handler will not be invoked from within this function. Invocation of the handler will be performed in a manner equivalent to using `boost::asio::io_service::post()`.]]
 
 ]
 
 
 [heading Remarks]
       
-On POSIX systems, service names are typically defined in the file `/etc/services`. On Windows, service names may be found in the file `c:\windows\system32\drivers\etc\services`. Operating systems may use additional locations when resolving service names.
-
+A default constructed iterator represents the end of the list.
 
+A successful resolve operation is guaranteed to pass at least one entry to the handler.
 
 
 [endsect]
 
 
+[endsect]
 
-[section:overload2 ip::basic_resolver_query::basic_resolver_query (2 of 4 overloads)]
 
+[section:basic_resolver ip::basic_resolver::basic_resolver]
 
-Construct with specified service name for a given protocol.
+[indexterm2 basic_resolver..ip::basic_resolver]
+Constructor.
 
 
- basic_resolver_query(
- const protocol_type & protocol,
- const std::string & service,
- resolver_query_base::flags resolve_flags = passive|address_configured);
+ basic_resolver(
+ boost::asio::io_service & io_service);
 
 
-This constructor is typically used to perform name resolution for local service binding with a specific protocol version.
+This constructor creates a [link boost_asio.reference.ip__basic_resolver `ip::basic_resolver`].
 
 
 [heading Parameters]
@@ -59856,121 +59618,76 @@
 
 [variablelist
   
-[[protocol][A protocol object, normally representing either the IPv4 or IPv6 version of an internet protocol.]]
-
-[[service][A string identifying the requested service. This may be a descriptive name or a numeric string corresponding to a port number.]]
-
-[[resolve_flags][A set of flags that determine how name resolution should be performed. The default flags are suitable for local service binding.]]
+[[io_service][The [link boost_asio.reference.io_service `io_service`] object that the resolver will use to dispatch handlers for any asynchronous operations performed on the timer. ]]
 
 ]
 
 
-[heading Remarks]
-
-On POSIX systems, service names are typically defined in the file `/etc/services`. On Windows, service names may be found in the file `c:\windows\system32\drivers\etc\services`. Operating systems may use additional locations when resolving service names.
-
-
 
 
 [endsect]
 
 
 
-[section:overload3 ip::basic_resolver_query::basic_resolver_query (3 of 4 overloads)]
-
-
-Construct with specified host name and service name for any protocol.
-
-
- basic_resolver_query(
- const std::string & host,
- const std::string & service,
- resolver_query_base::flags resolve_flags = address_configured);
-
-
-This constructor is typically used to perform name resolution for communication with remote hosts.
-
-
-[heading Parameters]
-
-
-[variablelist
-
-[[host][A string identifying a location. May be a descriptive name or a numeric address string. If an empty string and the passive flag has been specified, the resolved endpoints are suitable for local service binding. If an empty string and passive is not specified, the resolved endpoints will use the loopback address.]]
-
-[[service][A string identifying the requested service. This may be a descriptive name or a numeric string corresponding to a port number. May be an empty string, in which case all resolved endpoints will have a port number of 0.]]
+[section:cancel ip::basic_resolver::cancel]
 
-[[resolve_flags][A set of flags that determine how name resolution should be performed. The default flags are suitable for communication with remote hosts.]]
+[indexterm2 cancel..ip::basic_resolver]
+Cancel any asynchronous operations that are waiting on the resolver.
 
-]
 
+ void cancel();
 
-[heading Remarks]
-
-On POSIX systems, host names may be locally defined in the file `/etc/hosts`. On Windows, host names may be defined in the file `c:\windows\system32\drivers\etc\hosts`. Remote host name resolution is performed using DNS. Operating systems may use additional locations when resolving host names (such as NETBIOS names on Windows).
 
-On POSIX systems, service names are typically defined in the file `/etc/services`. On Windows, service names may be found in the file `c:\windows\system32\drivers\etc\services`. Operating systems may use additional locations when resolving service names.
+This function forces the completion of any pending asynchronous operations on the host resolver. The handler for each cancelled operation will be invoked with the `boost::asio::error::operation_aborted` error code.
 
 
 [endsect]
 
 
 
-[section:overload4 ip::basic_resolver_query::basic_resolver_query (4 of 4 overloads)]
-
-
-Construct with specified host name and service name for a given protocol.
-
+[section:endpoint_type ip::basic_resolver::endpoint_type]
 
- basic_resolver_query(
- const protocol_type & protocol,
- const std::string & host,
- const std::string & service,
- resolver_query_base::flags resolve_flags = address_configured);
+[indexterm2 endpoint_type..ip::basic_resolver]
+The endpoint type.
 
 
-This constructor is typically used to perform name resolution for communication with remote hosts.
+ typedef InternetProtocol::endpoint endpoint_type;
 
 
-[heading Parameters]
-
 
-[variablelist
-
-[[protocol][A protocol object, normally representing either the IPv4 or IPv6 version of an internet protocol.]]
+[heading Requirements]
 
-[[host][A string identifying a location. May be a descriptive name or a numeric address string. If an empty string and the passive flag has been specified, the resolved endpoints are suitable for local service binding. If an empty string and passive is not specified, the resolved endpoints will use the loopback address.]]
+[*Header: ][^boost/asio/ip/basic_resolver.hpp]
 
-[[service][A string identifying the requested service. This may be a descriptive name or a numeric string corresponding to a port number. May be an empty string, in which case all resolved endpoints will have a port number of 0.]]
+[*Convenience header: ][^boost/asio.hpp]
 
-[[resolve_flags][A set of flags that determine how name resolution should be performed. The default flags are suitable for communication with remote hosts.]]
 
-]
+[endsect]
 
 
-[heading Remarks]
-
-On POSIX systems, host names may be locally defined in the file `/etc/hosts`. On Windows, host names may be defined in the file `c:\windows\system32\drivers\etc\hosts`. Remote host name resolution is performed using DNS. Operating systems may use additional locations when resolving host names (such as NETBIOS names on Windows).
+[section:get_implementation ip::basic_resolver::get_implementation]
 
-On POSIX systems, service names are typically defined in the file `/etc/services`. On Windows, service names may be found in the file `c:\windows\system32\drivers\etc\services`. Operating systems may use additional locations when resolving service names.
+[indexterm2 get_implementation..ip::basic_resolver]
+Get the underlying implementation of the I/O object.
 
 
-[endsect]
+ implementation_type & ``[link boost_asio.reference.ip__basic_resolver.get_implementation.overload1 get_implementation]``();
+ `` [''''&raquo;''' [link boost_asio.reference.ip__basic_resolver.get_implementation.overload1 more...]]``
 
+ const implementation_type & ``[link boost_asio.reference.ip__basic_resolver.get_implementation.overload2 get_implementation]``() const;
+ `` [''''&raquo;''' [link boost_asio.reference.ip__basic_resolver.get_implementation.overload2 more...]]``
 
-[endsect]
 
+[section:overload1 ip::basic_resolver::get_implementation (1 of 2 overloads)]
 
-[section:canonical_name ip::basic_resolver_query::canonical_name]
 
+['Inherited from basic_io_object.]
 
-['Inherited from ip::resolver_query_base.]
 
-[indexterm2 canonical_name..ip::basic_resolver_query]
-Determine the canonical name of the host specified in the query.
+Get the underlying implementation of the I/O object.
 
 
- static const flags canonical_name = implementation_defined;
+ implementation_type & get_implementation();
 
 
 
@@ -59978,102 +59695,73 @@
 
 
 
-[section:flags ip::basic_resolver_query::flags]
-
-
-['Inherited from ip::resolver_query_base.]
-
-[indexterm2 flags..ip::basic_resolver_query]
-A bitmask type (C++ Std [lib.bitmask.types]).
+[section:overload2 ip::basic_resolver::get_implementation (2 of 2 overloads)]
 
 
- typedef unspecified flags;
+['Inherited from basic_io_object.]
 
 
+Get the underlying implementation of the I/O object.
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/ip/basic_resolver_query.hpp]
+ const implementation_type & get_implementation() const;
 
-[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
-
-[section:hints ip::basic_resolver_query::hints]
-
-[indexterm2 hints..ip::basic_resolver_query]
-Get the hints associated with the query.
-
-
- const boost::asio::detail::addrinfo_type & hints() const;
-
-
-
 [endsect]
 
 
-
-[section:host_name ip::basic_resolver_query::host_name]
-
-[indexterm2 host_name..ip::basic_resolver_query]
-Get the host name associated with the query.
-
-
- std::string host_name() const;
-
+[section:get_io_service ip::basic_resolver::get_io_service]
 
 
-[endsect]
+['Inherited from basic_io_object.]
 
+[indexterm2 get_io_service..ip::basic_resolver]
+Get the [link boost_asio.reference.io_service `io_service`] associated with the object.
 
 
-[section:numeric_host ip::basic_resolver_query::numeric_host]
+ boost::asio::io_service & get_io_service();
 
 
-['Inherited from ip::resolver_query_base.]
+This function may be used to obtain the [link boost_asio.reference.io_service `io_service`] object that the I/O object uses to dispatch handlers for asynchronous operations.
 
-[indexterm2 numeric_host..ip::basic_resolver_query]
-Host name should be treated as a numeric string defining an IPv4 or IPv6 address and no name resolution should be attempted.
 
+[heading Return Value]
+
+A reference to the [link boost_asio.reference.io_service `io_service`] object that the I/O object will use to dispatch handlers. Ownership is not transferred to the caller.
 
- static const flags numeric_host = implementation_defined;
 
 
 
 [endsect]
 
 
+[section:get_service ip::basic_resolver::get_service]
 
-[section:numeric_service ip::basic_resolver_query::numeric_service]
-
-
-['Inherited from ip::resolver_query_base.]
-
-[indexterm2 numeric_service..ip::basic_resolver_query]
-Service name should be treated as a numeric string defining a port number and no name resolution should be attempted.
-
-
- static const flags numeric_service = implementation_defined;
+[indexterm2 get_service..ip::basic_resolver]
+Get the service associated with the I/O object.
 
 
+ service_type & ``[link boost_asio.reference.ip__basic_resolver.get_service.overload1 get_service]``();
+ `` [''''&raquo;''' [link boost_asio.reference.ip__basic_resolver.get_service.overload1 more...]]``
 
-[endsect]
+ const service_type & ``[link boost_asio.reference.ip__basic_resolver.get_service.overload2 get_service]``() const;
+ `` [''''&raquo;''' [link boost_asio.reference.ip__basic_resolver.get_service.overload2 more...]]``
 
 
+[section:overload1 ip::basic_resolver::get_service (1 of 2 overloads)]
 
-[section:passive ip::basic_resolver_query::passive]
 
+['Inherited from basic_io_object.]
 
-['Inherited from ip::resolver_query_base.]
 
-[indexterm2 passive..ip::basic_resolver_query]
-Indicate that returned endpoint is intended for use as a locally bound socket endpoint.
+Get the service associated with the I/O object.
 
 
- static const flags passive = implementation_defined;
+ service_type & get_service();
 
 
 
@@ -60081,141 +59769,111 @@
 
 
 
-[section:protocol_type ip::basic_resolver_query::protocol_type]
-
-[indexterm2 protocol_type..ip::basic_resolver_query]
-The protocol type associated with the endpoint query.
+[section:overload2 ip::basic_resolver::get_service (2 of 2 overloads)]
 
 
- typedef InternetProtocol protocol_type;
+['Inherited from basic_io_object.]
 
 
+Get the service associated with the I/O object.
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/ip/basic_resolver_query.hpp]
+ const service_type & get_service() const;
 
-[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
-
-[section:service_name ip::basic_resolver_query::service_name]
-
-[indexterm2 service_name..ip::basic_resolver_query]
-Get the service name associated with the query.
-
-
- std::string service_name() const;
-
-
-
 [endsect]
 
 
-
-[section:v4_mapped ip::basic_resolver_query::v4_mapped]
-
-
-['Inherited from ip::resolver_query_base.]
-
-[indexterm2 v4_mapped..ip::basic_resolver_query]
-If the query protocol family is specified as IPv6, return IPv4-mapped IPv6 addresses on finding no IPv6 addresses.
+[section:implementation ip::basic_resolver::implementation]
 
 
- static const flags v4_mapped = implementation_defined;
+['Inherited from basic_io_object.]
 
+[indexterm2 implementation..ip::basic_resolver]
+(Deprecated: Use `get_implementation()`.) The underlying implementation of the I/O object.
 
 
-[endsect]
+ implementation_type implementation;
 
 
 
 [endsect]
 
-[section:ip__host_name ip::host_name]
-
-[indexterm1 ip::host_name]
-Get the current host name.
 
-
- std::string ``[link boost_asio.reference.ip__host_name.overload1 host_name]``();
- `` [''''&raquo;''' [link boost_asio.reference.ip__host_name.overload1 more...]]``
 
- std::string ``[link boost_asio.reference.ip__host_name.overload2 host_name]``(
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.ip__host_name.overload2 more...]]``
+[section:implementation_type ip::basic_resolver::implementation_type]
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/ip/host_name.hpp]
+['Inherited from basic_io_object.]
 
-[*Convenience header: ][^boost/asio.hpp]
+[indexterm2 implementation_type..ip::basic_resolver]
+The underlying implementation type of I/O object.
 
 
-[section:overload1 ip::host_name (1 of 2 overloads)]
+ typedef service_type::implementation_type implementation_type;
 
 
-Get the current host name.
 
+[heading Requirements]
 
- std::string host_name();
+[*Header: ][^boost/asio/ip/basic_resolver.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
 
-[section:overload2 ip::host_name (2 of 2 overloads)]
-
-
-Get the current host name.
-
-
- std::string host_name(
- boost::system::error_code & ec);
-
-
-
-[endsect]
+[section:iterator ip::basic_resolver::iterator]
 
+[indexterm2 iterator..ip::basic_resolver]
+The iterator type.
 
-[endsect]
 
-[section:ip__icmp ip::icmp]
+ typedef basic_resolver_iterator< InternetProtocol > iterator;
 
 
-Encapsulates the flags needed for ICMP.
+[heading Types]
+[table
+ [[Name][Description]]
 
+ [
 
- class icmp
+ [[link boost_asio.reference.ip__basic_resolver_iterator.difference_type [*difference_type]]]
+ [The type used for the distance between two iterators. ]
+
+ ]
 
+ [
 
-[heading Types]
-[table
- [[Name][Description]]
+ [[link boost_asio.reference.ip__basic_resolver_iterator.iterator_category [*iterator_category]]]
+ [The iterator category. ]
+
+ ]
 
   [
 
- [[link boost_asio.reference.ip__icmp.endpoint [*endpoint]]]
- [The type of a ICMP endpoint. ]
+ [[link boost_asio.reference.ip__basic_resolver_iterator.pointer [*pointer]]]
+ [The type of the result of applying operator->() to the iterator. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.ip__icmp.resolver [*resolver]]]
- [The ICMP resolver type. ]
+ [[link boost_asio.reference.ip__basic_resolver_iterator.reference [*reference]]]
+ [The type of the result of applying operator*() to the iterator. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.ip__icmp.socket [*socket]]]
- [The ICMP socket type. ]
+ [[link boost_asio.reference.ip__basic_resolver_iterator.value_type [*value_type]]]
+ [The type of the value pointed to by the iterator. ]
   
   ]
 
@@ -60226,28 +59884,32 @@
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.ip__icmp.family [*family]]]
- [Obtain an identifier for the protocol family. ]
+ [[link boost_asio.reference.ip__basic_resolver_iterator.basic_resolver_iterator [*basic_resolver_iterator]]]
+ [Default constructor creates an end iterator. ]
   ]
   
   [
- [[link boost_asio.reference.ip__icmp.protocol [*protocol]]]
- [Obtain an identifier for the protocol. ]
+ [[link boost_asio.reference.ip__basic_resolver_iterator.create [*create]]]
+ [Create an iterator from an addrinfo list returned by getaddrinfo.
+
+ Create an iterator from an endpoint, host name and service name. ]
   ]
   
   [
- [[link boost_asio.reference.ip__icmp.type [*type]]]
- [Obtain an identifier for the type of the protocol. ]
+ [[link boost_asio.reference.ip__basic_resolver_iterator.operator__star_ [*operator *]]]
+ [Dereference an iterator. ]
   ]
   
   [
- [[link boost_asio.reference.ip__icmp.v4 [*v4]]]
- [Construct to represent the IPv4 ICMP protocol. ]
+ [[link boost_asio.reference.ip__basic_resolver_iterator.operator_plus__plus_ [*operator++]]]
+ [Increment operator (prefix).
+
+ Increment operator (postfix). ]
   ]
   
   [
- [[link boost_asio.reference.ip__icmp.v6 [*v6]]]
- [Construct to represent the IPv6 ICMP protocol. ]
+ [[link boost_asio.reference.ip__basic_resolver_iterator.operator_arrow_ [*operator->]]]
+ [Dereference an iterator. ]
   ]
   
 ]
@@ -60257,43 +59919,75 @@
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.ip__icmp.operator_not__eq_ [*operator!=]]]
- [Compare two protocols for inequality. ]
+ [[link boost_asio.reference.ip__basic_resolver_iterator.operator_not__eq_ [*operator!=]]]
+ [Test two iterators for inequality. ]
   ]
   
   [
- [[link boost_asio.reference.ip__icmp.operator_eq__eq_ [*operator==]]]
- [Compare two protocols for equality. ]
+ [[link boost_asio.reference.ip__basic_resolver_iterator.operator_eq__eq_ [*operator==]]]
+ [Test two iterators for equality. ]
   ]
   
 ]
 
-The [link boost_asio.reference.ip__icmp `ip::icmp`] class contains flags necessary for ICMP sockets.
+The [link boost_asio.reference.ip__basic_resolver_iterator `ip::basic_resolver_iterator`] class template is used to define iterators over the results returned by a resolver.
+
+The iterator's value\_type, obtained when the iterator is dereferenced, is:
+
+ const basic_resolver_entry<InternetProtocol>
+
+
+
 
 
 [heading Thread Safety]
   
 [*Distinct] [*objects:] Safe.
 
-[*Shared] [*objects:] Safe.
+[*Shared] [*objects:] Unsafe.
 
 
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/ip/icmp.hpp]
+[*Header: ][^boost/asio/ip/basic_resolver.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
 
-[section:endpoint ip::icmp::endpoint]
+[endsect]
 
-[indexterm2 endpoint..ip::icmp]
-The type of a ICMP endpoint.
 
 
- typedef basic_endpoint< icmp > endpoint;
+[section:protocol_type ip::basic_resolver::protocol_type]
+
+[indexterm2 protocol_type..ip::basic_resolver]
+The protocol type.
+
+
+ typedef InternetProtocol protocol_type;
+
+
+
+[heading Requirements]
+
+[*Header: ][^boost/asio/ip/basic_resolver.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
+
+
+[endsect]
+
+
+
+[section:query ip::basic_resolver::query]
+
+[indexterm2 query..ip::basic_resolver]
+The query type.
+
+
+ typedef basic_resolver_query< InternetProtocol > query;
 
 
 [heading Types]
@@ -60302,15 +59996,15 @@
 
   [
 
- [[link boost_asio.reference.ip__basic_endpoint.data_type [*data_type]]]
- [The type of the endpoint structure. This type is dependent on the underlying implementation of the socket layer. ]
+ [[link boost_asio.reference.ip__basic_resolver_query.flags [*flags]]]
+ [A bitmask type (C++ Std \[lib.bitmask.types\]). ]
   
   ]
 
   [
 
- [[link boost_asio.reference.ip__basic_endpoint.protocol_type [*protocol_type]]]
- [The protocol type associated with the endpoint. ]
+ [[link boost_asio.reference.ip__basic_resolver_query.protocol_type [*protocol_type]]]
+ [The protocol type associated with the endpoint query. ]
   
   ]
 
@@ -60321,125 +60015,89 @@
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.ip__basic_endpoint.address [*address]]]
- [Get the IP address associated with the endpoint.
-
- Set the IP address associated with the endpoint. ]
- ]
-
- [
- [[link boost_asio.reference.ip__basic_endpoint.basic_endpoint [*basic_endpoint]]]
- [Default constructor.
-
- Construct an endpoint using a port number, specified in the host's byte order. The IP address will be the any address (i.e. INADDR_ANY or in6addr_any). This constructor would typically be used for accepting new connections.
+ [[link boost_asio.reference.ip__basic_resolver_query.basic_resolver_query [*basic_resolver_query]]]
+ [Construct with specified service name for any protocol.
 
- Construct an endpoint using a port number and an IP address. This constructor may be used for accepting connections on a specific interface or for making a connection to a remote endpoint.
+ Construct with specified service name for a given protocol.
 
- Copy constructor. ]
- ]
-
- [
- [[link boost_asio.reference.ip__basic_endpoint.capacity [*capacity]]]
- [Get the capacity of the endpoint in the native type. ]
- ]
-
- [
- [[link boost_asio.reference.ip__basic_endpoint.data [*data]]]
- [Get the underlying endpoint in the native type. ]
- ]
-
- [
- [[link boost_asio.reference.ip__basic_endpoint.operator_eq_ [*operator=]]]
- [Assign from another endpoint. ]
- ]
-
- [
- [[link boost_asio.reference.ip__basic_endpoint.port [*port]]]
- [Get the port associated with the endpoint. The port number is always in the host's byte order.
+ Construct with specified host name and service name for any protocol.
 
- Set the port associated with the endpoint. The port number is always in the host's byte order. ]
+ Construct with specified host name and service name for a given protocol. ]
   ]
   
   [
- [[link boost_asio.reference.ip__basic_endpoint.protocol [*protocol]]]
- [The protocol associated with the endpoint. ]
+ [[link boost_asio.reference.ip__basic_resolver_query.hints [*hints]]]
+ [Get the hints associated with the query. ]
   ]
   
   [
- [[link boost_asio.reference.ip__basic_endpoint.resize [*resize]]]
- [Set the underlying size of the endpoint in the native type. ]
+ [[link boost_asio.reference.ip__basic_resolver_query.host_name [*host_name]]]
+ [Get the host name associated with the query. ]
   ]
   
   [
- [[link boost_asio.reference.ip__basic_endpoint.size [*size]]]
- [Get the underlying size of the endpoint in the native type. ]
+ [[link boost_asio.reference.ip__basic_resolver_query.service_name [*service_name]]]
+ [Get the service name associated with the query. ]
   ]
   
 ]
 
-[heading Friends]
+[heading Data Members]
 [table
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.ip__basic_endpoint.operator_not__eq_ [*operator!=]]]
- [Compare two endpoints for inequality. ]
+ [[link boost_asio.reference.ip__basic_resolver_query.address_configured [*address_configured]]]
+ [Only return IPv4 addresses if a non-loopback IPv4 address is configured for the system. Only return IPv6 addresses if a non-loopback IPv6 address is configured for the system. ]
   ]
-
+
   [
- [[link boost_asio.reference.ip__basic_endpoint.operator_lt_ [*operator<]]]
- [Compare endpoints for ordering. ]
+ [[link boost_asio.reference.ip__basic_resolver_query.all_matching [*all_matching]]]
+ [If used with v4_mapped, return all matching IPv6 and IPv4 addresses. ]
   ]
-
+
   [
- [[link boost_asio.reference.ip__basic_endpoint.operator_lt__eq_ [*operator<=]]]
- [Compare endpoints for ordering. ]
+ [[link boost_asio.reference.ip__basic_resolver_query.canonical_name [*canonical_name]]]
+ [Determine the canonical name of the host specified in the query. ]
   ]
-
+
   [
- [[link boost_asio.reference.ip__basic_endpoint.operator_eq__eq_ [*operator==]]]
- [Compare two endpoints for equality. ]
+ [[link boost_asio.reference.ip__basic_resolver_query.numeric_host [*numeric_host]]]
+ [Host name should be treated as a numeric string defining an IPv4 or IPv6 address and no name resolution should be attempted. ]
   ]
-
+
   [
- [[link boost_asio.reference.ip__basic_endpoint.operator_gt_ [*operator>]]]
- [Compare endpoints for ordering. ]
+ [[link boost_asio.reference.ip__basic_resolver_query.numeric_service [*numeric_service]]]
+ [Service name should be treated as a numeric string defining a port number and no name resolution should be attempted. ]
   ]
-
+
   [
- [[link boost_asio.reference.ip__basic_endpoint.operator_gt__eq_ [*operator>=]]]
- [Compare endpoints for ordering. ]
+ [[link boost_asio.reference.ip__basic_resolver_query.passive [*passive]]]
+ [Indicate that returned endpoint is intended for use as a locally bound socket endpoint. ]
   ]
-
-]
-
-[heading Related Functions]
-[table
- [[Name][Description]]
 
   [
- [[link boost_asio.reference.ip__basic_endpoint.operator_lt__lt_ [*operator<<]]]
- [Output an endpoint as a string. ]
+ [[link boost_asio.reference.ip__basic_resolver_query.v4_mapped [*v4_mapped]]]
+ [If the query protocol family is specified as IPv6, return IPv4-mapped IPv6 addresses on finding no IPv6 addresses. ]
   ]
-
+
 ]
 
-The [link boost_asio.reference.ip__basic_endpoint `ip::basic_endpoint`] class template describes an endpoint that may be associated with a particular socket.
+The [link boost_asio.reference.ip__basic_resolver_query `ip::basic_resolver_query`] class template describes a query that can be passed to a resolver.
 
 
 [heading Thread Safety]
   
 [*Distinct] [*objects:] Safe.
 
-[*Shared] [*objects:] Unsafe.
-
+[*Shared] [*objects:] Unsafe.
 
 
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/ip/icmp.hpp]
+[*Header: ][^boost/asio/ip/basic_resolver.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -60447,390 +60105,295 @@
 [endsect]
 
 
+[section:resolve ip::basic_resolver::resolve]
 
-[section:family ip::icmp::family]
+[indexterm2 resolve..ip::basic_resolver]
+Perform forward resolution of a query to a list of entries.
 
-[indexterm2 family..ip::icmp]
-Obtain an identifier for the protocol family.
 
+ iterator ``[link boost_asio.reference.ip__basic_resolver.resolve.overload1 resolve]``(
+ const query & q);
+ `` [''''&raquo;''' [link boost_asio.reference.ip__basic_resolver.resolve.overload1 more...]]``
 
- int family() const;
+ iterator ``[link boost_asio.reference.ip__basic_resolver.resolve.overload2 resolve]``(
+ const query & q,
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.ip__basic_resolver.resolve.overload2 more...]]``
 
 
+Perform reverse resolution of an endpoint to a list of entries.
 
-[endsect]
 
+ iterator ``[link boost_asio.reference.ip__basic_resolver.resolve.overload3 resolve]``(
+ const endpoint_type & e);
+ `` [''''&raquo;''' [link boost_asio.reference.ip__basic_resolver.resolve.overload3 more...]]``
 
+ iterator ``[link boost_asio.reference.ip__basic_resolver.resolve.overload4 resolve]``(
+ const endpoint_type & e,
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.ip__basic_resolver.resolve.overload4 more...]]``
 
-[section:operator_not__eq_ ip::icmp::operator!=]
 
-[indexterm2 operator!=..ip::icmp]
-Compare two protocols for inequality.
+[section:overload1 ip::basic_resolver::resolve (1 of 4 overloads)]
 
 
- friend bool operator!=(
- const icmp & p1,
- const icmp & p2);
+Perform forward resolution of a query to a list of entries.
 
 
-[heading Requirements]
+ iterator resolve(
+ const query & q);
 
-[*Header: ][^boost/asio/ip/icmp.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
+This function is used to resolve a query into a list of endpoint entries.
 
 
-[endsect]
+[heading Parameters]
+
 
+[variablelist
+
+[[q][A query object that determines what endpoints will be returned.]]
 
+]
 
-[section:operator_eq__eq_ ip::icmp::operator==]
 
-[indexterm2 operator==..ip::icmp]
-Compare two protocols for equality.
+[heading Return Value]
+
+A forward-only iterator that can be used to traverse the list of endpoint entries.
 
 
- friend bool operator==(
- const icmp & p1,
- const icmp & p2);
+[heading Exceptions]
+
 
+[variablelist
+
+[[boost::system::system_error][Thrown on failure.]]
 
-[heading Requirements]
+]
 
-[*Header: ][^boost/asio/ip/icmp.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
+[heading Remarks]
+
+A default constructed iterator represents the end of the list.
+
+A successful call to this function is guaranteed to return at least one entry.
 
 
 [endsect]
 
 
 
-[section:protocol ip::icmp::protocol]
+[section:overload2 ip::basic_resolver::resolve (2 of 4 overloads)]
 
-[indexterm2 protocol..ip::icmp]
-Obtain an identifier for the protocol.
 
+Perform forward resolution of a query to a list of entries.
 
- int protocol() const;
 
+ iterator resolve(
+ const query & q,
+ boost::system::error_code & ec);
 
 
-[endsect]
+This function is used to resolve a query into a list of endpoint entries.
 
 
+[heading Parameters]
+
 
-[section:resolver ip::icmp::resolver]
+[variablelist
+
+[[q][A query object that determines what endpoints will be returned.]]
 
-[indexterm2 resolver..ip::icmp]
-The ICMP resolver type.
+[[ec][Set to indicate what error occurred, if any.]]
 
+]
 
- typedef basic_resolver< icmp > resolver;
 
+[heading Return Value]
+
+A forward-only iterator that can be used to traverse the list of endpoint entries. Returns a default constructed iterator if an error occurs.
 
-[heading Types]
-[table
- [[Name][Description]]
 
- [
+[heading Remarks]
+
+A default constructed iterator represents the end of the list.
 
- [[link boost_asio.reference.ip__basic_resolver.endpoint_type [*endpoint_type]]]
- [The endpoint type. ]
-
- ]
+A successful call to this function is guaranteed to return at least one entry.
 
- [
 
- [[link boost_asio.reference.ip__basic_resolver.implementation_type [*implementation_type]]]
- [The underlying implementation type of I/O object. ]
-
- ]
+[endsect]
 
- [
 
- [[link boost_asio.reference.ip__basic_resolver.iterator [*iterator]]]
- [The iterator type. ]
-
- ]
 
- [
+[section:overload3 ip::basic_resolver::resolve (3 of 4 overloads)]
 
- [[link boost_asio.reference.ip__basic_resolver.protocol_type [*protocol_type]]]
- [The protocol type. ]
-
- ]
 
- [
+Perform reverse resolution of an endpoint to a list of entries.
 
- [[link boost_asio.reference.ip__basic_resolver.query [*query]]]
- [The query type. ]
-
- ]
 
- [
+ iterator resolve(
+ const endpoint_type & e);
 
- [[link boost_asio.reference.ip__basic_resolver.service_type [*service_type]]]
- [The type of the service that will be used to provide I/O operations. ]
-
- ]
 
-]
+This function is used to resolve an endpoint into a list of endpoint entries.
 
-[heading Member Functions]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.ip__basic_resolver.async_resolve [*async_resolve]]]
- [Asynchronously perform forward resolution of a query to a list of entries.
+[heading Parameters]
+
 
- Asynchronously perform reverse resolution of an endpoint to a list of entries. ]
- ]
-
- [
- [[link boost_asio.reference.ip__basic_resolver.basic_resolver [*basic_resolver]]]
- [Constructor. ]
- ]
-
- [
- [[link boost_asio.reference.ip__basic_resolver.cancel [*cancel]]]
- [Cancel any asynchronous operations that are waiting on the resolver. ]
- ]
-
- [
- [[link boost_asio.reference.ip__basic_resolver.get_io_service [*get_io_service]]]
- [Get the io_service associated with the object. ]
- ]
+[variablelist
   
- [
- [[link boost_asio.reference.ip__basic_resolver.resolve [*resolve]]]
- [Perform forward resolution of a query to a list of entries.
+[[e][An endpoint object that determines what endpoints will be returned.]]
 
- Perform reverse resolution of an endpoint to a list of entries. ]
- ]
-
 ]
 
-[heading Protected Member Functions]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.ip__basic_resolver.get_implementation [*get_implementation]]]
- [Get the underlying implementation of the I/O object. ]
- ]
-
- [
- [[link boost_asio.reference.ip__basic_resolver.get_service [*get_service]]]
- [Get the service associated with the I/O object. ]
- ]
+[heading Return Value]
+
+A forward-only iterator that can be used to traverse the list of endpoint entries.
+
+
+[heading Exceptions]
+
+
+[variablelist
   
+[[boost::system::system_error][Thrown on failure.]]
+
 ]
 
-[heading Protected Data Members]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.ip__basic_resolver.implementation [*implementation]]]
- [(Deprecated: Use get_implementation().) The underlying implementation of the I/O object. ]
- ]
+[heading Remarks]
+
+A default constructed iterator represents the end of the list.
 
- [
- [[link boost_asio.reference.ip__basic_resolver.service [*service]]]
- [(Deprecated: Use get_service().) The service associated with the I/O object. ]
- ]
+A successful call to this function is guaranteed to return at least one entry.
 
-]
 
-The [link boost_asio.reference.ip__basic_resolver `ip::basic_resolver`] class template provides the ability to resolve a query to a list of endpoints.
+[endsect]
 
 
-[heading Thread Safety]
-
-[*Distinct] [*objects:] Safe.
 
-[*Shared] [*objects:] Unsafe.
+[section:overload4 ip::basic_resolver::resolve (4 of 4 overloads)]
 
 
+Perform reverse resolution of an endpoint to a list of entries.
 
 
-[heading Requirements]
+ iterator resolve(
+ const endpoint_type & e,
+ boost::system::error_code & ec);
 
-[*Header: ][^boost/asio/ip/icmp.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
+This function is used to resolve an endpoint into a list of endpoint entries.
 
 
-[endsect]
+[heading Parameters]
+
 
+[variablelist
+
+[[e][An endpoint object that determines what endpoints will be returned.]]
 
+[[ec][Set to indicate what error occurred, if any.]]
 
-[section:socket ip::icmp::socket]
+]
 
-[indexterm2 socket..ip::icmp]
-The ICMP socket type.
 
+[heading Return Value]
+
+A forward-only iterator that can be used to traverse the list of endpoint entries. Returns a default constructed iterator if an error occurs.
 
- typedef basic_raw_socket< icmp > socket;
 
+[heading Remarks]
+
+A default constructed iterator represents the end of the list.
 
-[heading Types]
-[table
- [[Name][Description]]
+A successful call to this function is guaranteed to return at least one entry.
 
- [
 
- [[link boost_asio.reference.basic_raw_socket.broadcast [*broadcast]]]
- [Socket option to permit sending of broadcast messages. ]
-
- ]
+[endsect]
 
- [
 
- [[link boost_asio.reference.basic_raw_socket.bytes_readable [*bytes_readable]]]
- [IO control command to get the amount of data that can be read without blocking. ]
-
- ]
+[endsect]
 
- [
 
- [[link boost_asio.reference.basic_raw_socket.debug [*debug]]]
- [Socket option to enable socket-level debugging. ]
-
- ]
+[section:service ip::basic_resolver::service]
 
- [
 
- [[link boost_asio.reference.basic_raw_socket.do_not_route [*do_not_route]]]
- [Socket option to prevent routing, use local interfaces only. ]
-
- ]
+['Inherited from basic_io_object.]
 
- [
+[indexterm2 service..ip::basic_resolver]
+(Deprecated: Use `get_service()`.) The service associated with the I/O object.
 
- [[link boost_asio.reference.basic_raw_socket.enable_connection_aborted [*enable_connection_aborted]]]
- [Socket option to report aborted connections on accept. ]
-
- ]
 
- [
+ service_type & service;
 
- [[link boost_asio.reference.basic_raw_socket.endpoint_type [*endpoint_type]]]
- [The endpoint type. ]
-
- ]
 
- [
 
- [[link boost_asio.reference.basic_raw_socket.implementation_type [*implementation_type]]]
- [The underlying implementation type of I/O object. ]
-
- ]
+[heading Remarks]
+
+Available only for services that do not support movability.
 
- [
 
- [[link boost_asio.reference.basic_raw_socket.keep_alive [*keep_alive]]]
- [Socket option to send keep-alives. ]
-
- ]
 
- [
 
- [[link boost_asio.reference.basic_raw_socket.linger [*linger]]]
- [Socket option to specify whether the socket lingers on close if unsent data is present. ]
-
- ]
+[endsect]
 
- [
 
- [[link boost_asio.reference.basic_raw_socket.lowest_layer_type [*lowest_layer_type]]]
- [A basic_socket is always the lowest layer. ]
-
- ]
 
- [
+[section:service_type ip::basic_resolver::service_type]
 
- [[link boost_asio.reference.basic_raw_socket.message_flags [*message_flags]]]
- [Bitmask type for flags that can be passed to send and receive operations. ]
-
- ]
 
- [
+['Inherited from basic_io_object.]
 
- [[link boost_asio.reference.basic_raw_socket.native_handle_type [*native_handle_type]]]
- [The native representation of a socket. ]
-
- ]
+[indexterm2 service_type..ip::basic_resolver]
+The type of the service that will be used to provide I/O operations.
 
- [
 
- [[link boost_asio.reference.basic_raw_socket.native_type [*native_type]]]
- [(Deprecated: Use native_handle_type.) The native representation of a socket. ]
-
- ]
+ typedef ResolverService service_type;
 
- [
 
- [[link boost_asio.reference.basic_raw_socket.non_blocking_io [*non_blocking_io]]]
- [(Deprecated: Use non_blocking().) IO control command to set the blocking mode of the socket. ]
-
- ]
 
- [
+[heading Requirements]
 
- [[link boost_asio.reference.basic_raw_socket.protocol_type [*protocol_type]]]
- [The protocol type. ]
-
- ]
+[*Header: ][^boost/asio/ip/basic_resolver.hpp]
 
- [
+[*Convenience header: ][^boost/asio.hpp]
 
- [[link boost_asio.reference.basic_raw_socket.receive_buffer_size [*receive_buffer_size]]]
- [Socket option for the receive buffer size of a socket. ]
-
- ]
 
- [
+[endsect]
 
- [[link boost_asio.reference.basic_raw_socket.receive_low_watermark [*receive_low_watermark]]]
- [Socket option for the receive low watermark. ]
-
- ]
 
- [
 
- [[link boost_asio.reference.basic_raw_socket.reuse_address [*reuse_address]]]
- [Socket option to allow the socket to be bound to an address that is already in use. ]
-
- ]
+[endsect]
 
- [
+[section:ip__basic_resolver_entry ip::basic_resolver_entry]
 
- [[link boost_asio.reference.basic_raw_socket.send_buffer_size [*send_buffer_size]]]
- [Socket option for the send buffer size of a socket. ]
-
- ]
 
- [
+An entry produced by a resolver.
 
- [[link boost_asio.reference.basic_raw_socket.send_low_watermark [*send_low_watermark]]]
- [Socket option for the send low watermark. ]
-
- ]
+
+ template<
+ typename ``[link boost_asio.reference.InternetProtocol InternetProtocol]``>
+ class basic_resolver_entry
+
+
+[heading Types]
+[table
+ [[Name][Description]]
 
   [
 
- [[link boost_asio.reference.basic_raw_socket.service_type [*service_type]]]
- [The type of the service that will be used to provide I/O operations. ]
+ [[link boost_asio.reference.ip__basic_resolver_entry.endpoint_type [*endpoint_type]]]
+ [The endpoint type associated with the endpoint entry. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.basic_raw_socket.shutdown_type [*shutdown_type]]]
- [Different ways a socket may be shutdown. ]
+ [[link boost_asio.reference.ip__basic_resolver_entry.protocol_type [*protocol_type]]]
+ [The protocol type associated with the endpoint entry. ]
   
   ]
 
@@ -60841,355 +60404,180 @@
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.basic_raw_socket.assign [*assign]]]
- [Assign an existing native socket to the socket. ]
- ]
-
- [
- [[link boost_asio.reference.basic_raw_socket.async_connect [*async_connect]]]
- [Start an asynchronous connect. ]
- ]
-
- [
- [[link boost_asio.reference.basic_raw_socket.async_receive [*async_receive]]]
- [Start an asynchronous receive on a connected socket. ]
+ [[link boost_asio.reference.ip__basic_resolver_entry.basic_resolver_entry [*basic_resolver_entry]]]
+ [Default constructor.
+
+ Construct with specified endpoint, host name and service name. ]
   ]
   
   [
- [[link boost_asio.reference.basic_raw_socket.async_receive_from [*async_receive_from]]]
- [Start an asynchronous receive. ]
+ [[link boost_asio.reference.ip__basic_resolver_entry.endpoint [*endpoint]]]
+ [Get the endpoint associated with the entry. ]
   ]
   
   [
- [[link boost_asio.reference.basic_raw_socket.async_send [*async_send]]]
- [Start an asynchronous send on a connected socket. ]
+ [[link boost_asio.reference.ip__basic_resolver_entry.host_name [*host_name]]]
+ [Get the host name associated with the entry. ]
   ]
   
   [
- [[link boost_asio.reference.basic_raw_socket.async_send_to [*async_send_to]]]
- [Start an asynchronous send. ]
+ [[link boost_asio.reference.ip__basic_resolver_entry.operator_endpoint_type [*operator endpoint_type]]]
+ [Convert to the endpoint associated with the entry. ]
   ]
   
   [
- [[link boost_asio.reference.basic_raw_socket.at_mark [*at_mark]]]
- [Determine whether the socket is at the out-of-band data mark. ]
+ [[link boost_asio.reference.ip__basic_resolver_entry.service_name [*service_name]]]
+ [Get the service name associated with the entry. ]
   ]
   
- [
- [[link boost_asio.reference.basic_raw_socket.available [*available]]]
- [Determine the number of bytes available for reading. ]
- ]
+]
+
+The [link boost_asio.reference.ip__basic_resolver_entry `ip::basic_resolver_entry`] class template describes an entry as returned by a resolver.
+
+
+[heading Thread Safety]
   
- [
- [[link boost_asio.reference.basic_raw_socket.basic_raw_socket [*basic_raw_socket]]]
- [Construct a basic_raw_socket without opening it.
+[*Distinct] [*objects:] Safe.
 
- Construct and open a basic_raw_socket.
+[*Shared] [*objects:] Unsafe.
 
- Construct a basic_raw_socket, opening it and binding it to the given local endpoint.
 
- Construct a basic_raw_socket on an existing native socket.
 
- Move-construct a basic_raw_socket from another. ]
- ]
-
- [
- [[link boost_asio.reference.basic_raw_socket.bind [*bind]]]
- [Bind the socket to the given local endpoint. ]
- ]
-
- [
- [[link boost_asio.reference.basic_raw_socket.cancel [*cancel]]]
- [Cancel all asynchronous operations associated with the socket. ]
- ]
-
- [
- [[link boost_asio.reference.basic_raw_socket.close [*close]]]
- [Close the socket. ]
- ]
-
- [
- [[link boost_asio.reference.basic_raw_socket.connect [*connect]]]
- [Connect the socket to the specified endpoint. ]
- ]
-
- [
- [[link boost_asio.reference.basic_raw_socket.get_io_service [*get_io_service]]]
- [Get the io_service associated with the object. ]
- ]
-
- [
- [[link boost_asio.reference.basic_raw_socket.get_option [*get_option]]]
- [Get an option from the socket. ]
- ]
-
- [
- [[link boost_asio.reference.basic_raw_socket.io_control [*io_control]]]
- [Perform an IO control command on the socket. ]
- ]
-
- [
- [[link boost_asio.reference.basic_raw_socket.is_open [*is_open]]]
- [Determine whether the socket is open. ]
- ]
-
- [
- [[link boost_asio.reference.basic_raw_socket.local_endpoint [*local_endpoint]]]
- [Get the local endpoint of the socket. ]
- ]
-
- [
- [[link boost_asio.reference.basic_raw_socket.lowest_layer [*lowest_layer]]]
- [Get a reference to the lowest layer.
-
- Get a const reference to the lowest layer. ]
- ]
-
- [
- [[link boost_asio.reference.basic_raw_socket.native [*native]]]
- [(Deprecated: Use native_handle().) Get the native socket representation. ]
- ]
-
- [
- [[link boost_asio.reference.basic_raw_socket.native_handle [*native_handle]]]
- [Get the native socket representation. ]
- ]
-
- [
- [[link boost_asio.reference.basic_raw_socket.native_non_blocking [*native_non_blocking]]]
- [Gets the non-blocking mode of the native socket implementation.
-
- Sets the non-blocking mode of the native socket implementation. ]
- ]
-
- [
- [[link boost_asio.reference.basic_raw_socket.non_blocking [*non_blocking]]]
- [Gets the non-blocking mode of the socket.
-
- Sets the non-blocking mode of the socket. ]
- ]
-
- [
- [[link boost_asio.reference.basic_raw_socket.open [*open]]]
- [Open the socket using the specified protocol. ]
- ]
-
- [
- [[link boost_asio.reference.basic_raw_socket.operator_eq_ [*operator=]]]
- [Move-assign a basic_raw_socket from another. ]
- ]
-
- [
- [[link boost_asio.reference.basic_raw_socket.receive [*receive]]]
- [Receive some data on a connected socket. ]
- ]
-
- [
- [[link boost_asio.reference.basic_raw_socket.receive_from [*receive_from]]]
- [Receive raw data with the endpoint of the sender. ]
- ]
-
- [
- [[link boost_asio.reference.basic_raw_socket.remote_endpoint [*remote_endpoint]]]
- [Get the remote endpoint of the socket. ]
- ]
-
- [
- [[link boost_asio.reference.basic_raw_socket.send [*send]]]
- [Send some data on a connected socket. ]
- ]
-
- [
- [[link boost_asio.reference.basic_raw_socket.send_to [*send_to]]]
- [Send raw data to the specified endpoint. ]
- ]
-
- [
- [[link boost_asio.reference.basic_raw_socket.set_option [*set_option]]]
- [Set an option on the socket. ]
- ]
-
- [
- [[link boost_asio.reference.basic_raw_socket.shutdown [*shutdown]]]
- [Disable sends or receives on the socket. ]
- ]
-
-]
+[heading Requirements]
 
-[heading Protected Member Functions]
-[table
- [[Name][Description]]
+[*Header: ][^boost/asio/ip/basic_resolver_entry.hpp]
 
- [
- [[link boost_asio.reference.basic_raw_socket.get_implementation [*get_implementation]]]
- [Get the underlying implementation of the I/O object. ]
- ]
-
- [
- [[link boost_asio.reference.basic_raw_socket.get_service [*get_service]]]
- [Get the service associated with the I/O object. ]
- ]
-
-]
+[*Convenience header: ][^boost/asio.hpp]
 
-[heading Data Members]
-[table
- [[Name][Description]]
+[section:basic_resolver_entry ip::basic_resolver_entry::basic_resolver_entry]
 
- [
- [[link boost_asio.reference.basic_raw_socket.max_connections [*max_connections]]]
- [The maximum length of the queue of pending incoming connections. ]
- ]
+[indexterm2 basic_resolver_entry..ip::basic_resolver_entry]
+Default constructor.
 
- [
- [[link boost_asio.reference.basic_raw_socket.message_do_not_route [*message_do_not_route]]]
- [Specify that the data should not be subject to routing. ]
- ]
 
- [
- [[link boost_asio.reference.basic_raw_socket.message_end_of_record [*message_end_of_record]]]
- [Specifies that the data marks the end of a record. ]
- ]
+ ``[link boost_asio.reference.ip__basic_resolver_entry.basic_resolver_entry.overload1 basic_resolver_entry]``();
+ `` [''''&raquo;''' [link boost_asio.reference.ip__basic_resolver_entry.basic_resolver_entry.overload1 more...]]``
 
- [
- [[link boost_asio.reference.basic_raw_socket.message_out_of_band [*message_out_of_band]]]
- [Process out-of-band data. ]
- ]
 
- [
- [[link boost_asio.reference.basic_raw_socket.message_peek [*message_peek]]]
- [Peek at incoming data without removing it from the input queue. ]
- ]
+Construct with specified endpoint, host name and service name.
 
-]
 
-[heading Protected Data Members]
-[table
- [[Name][Description]]
+ ``[link boost_asio.reference.ip__basic_resolver_entry.basic_resolver_entry.overload2 basic_resolver_entry]``(
+ const endpoint_type & ep,
+ const std::string & host,
+ const std::string & service);
+ `` [''''&raquo;''' [link boost_asio.reference.ip__basic_resolver_entry.basic_resolver_entry.overload2 more...]]``
 
- [
- [[link boost_asio.reference.basic_raw_socket.implementation [*implementation]]]
- [(Deprecated: Use get_implementation().) The underlying implementation of the I/O object. ]
- ]
 
- [
- [[link boost_asio.reference.basic_raw_socket.service [*service]]]
- [(Deprecated: Use get_service().) The service associated with the I/O object. ]
- ]
+[section:overload1 ip::basic_resolver_entry::basic_resolver_entry (1 of 2 overloads)]
 
-]
 
-The [link boost_asio.reference.basic_raw_socket `basic_raw_socket`] class template provides asynchronous and blocking raw-oriented socket functionality.
+Default constructor.
 
 
-[heading Thread Safety]
-
-[*Distinct] [*objects:] Safe.
+ basic_resolver_entry();
 
-[*Shared] [*objects:] Unsafe.
 
 
+[endsect]
 
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/ip/icmp.hpp]
+[section:overload2 ip::basic_resolver_entry::basic_resolver_entry (2 of 2 overloads)]
 
-[*Convenience header: ][^boost/asio.hpp]
 
+Construct with specified endpoint, host name and service name.
 
-[endsect]
 
+ basic_resolver_entry(
+ const endpoint_type & ep,
+ const std::string & host,
+ const std::string & service);
 
 
-[section:type ip::icmp::type]
 
-[indexterm2 type..ip::icmp]
-Obtain an identifier for the type of the protocol.
+[endsect]
 
 
- int type() const;
+[endsect]
 
 
+[section:endpoint ip::basic_resolver_entry::endpoint]
 
-[endsect]
+[indexterm2 endpoint..ip::basic_resolver_entry]
+Get the endpoint associated with the entry.
 
 
+ endpoint_type endpoint() const;
 
-[section:v4 ip::icmp::v4]
 
-[indexterm2 v4..ip::icmp]
-Construct to represent the IPv4 ICMP protocol.
 
+[endsect]
 
- static icmp v4();
 
 
+[section:endpoint_type ip::basic_resolver_entry::endpoint_type]
 
-[endsect]
+[indexterm2 endpoint_type..ip::basic_resolver_entry]
+The endpoint type associated with the endpoint entry.
 
 
+ typedef InternetProtocol::endpoint endpoint_type;
 
-[section:v6 ip::icmp::v6]
 
-[indexterm2 v6..ip::icmp]
-Construct to represent the IPv6 ICMP protocol.
 
+[heading Requirements]
 
- static icmp v6();
+[*Header: ][^boost/asio/ip/basic_resolver_entry.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
 
-[endsect]
+[section:host_name ip::basic_resolver_entry::host_name]
 
+[indexterm2 host_name..ip::basic_resolver_entry]
+Get the host name associated with the entry.
 
-[section:ip__multicast__enable_loopback ip::multicast::enable_loopback]
 
-[indexterm1 ip::multicast::enable_loopback]
-Socket option determining whether outgoing multicast packets will be received on the same socket if it is a member of the multicast group.
+ std::string host_name() const;
 
 
- typedef implementation_defined enable_loopback;
 
+[endsect]
 
 
-Implements the IPPROTO\_IP/IP\_MULTICAST\_LOOP socket option.
 
+[section:operator_endpoint_type ip::basic_resolver_entry::operator endpoint_type]
 
-[heading Examples]
-
-Setting the option:
+[indexterm2 operator endpoint_type..ip::basic_resolver_entry]
+Convert to the endpoint associated with the entry.
 
- boost::asio::ip::udp::socket socket(io_service);
- ...
- boost::asio::ip::multicast::enable_loopback option(true);
- socket.set_option(option);
 
+ operator endpoint_type() const;
 
 
 
+[endsect]
 
-Getting the current option value:
 
- boost::asio::ip::udp::socket socket(io_service);
- ...
- boost::asio::ip::multicast::enable_loopback option;
- socket.get_option(option);
- bool is_set = option.value();
 
+[section:protocol_type ip::basic_resolver_entry::protocol_type]
 
+[indexterm2 protocol_type..ip::basic_resolver_entry]
+The protocol type associated with the endpoint entry.
 
 
+ typedef InternetProtocol protocol_type;
 
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/ip/multicast.hpp]
+[*Header: ][^boost/asio/ip/basic_resolver_entry.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -61198,172 +60586,235 @@
 
 
 
-[section:ip__multicast__hops ip::multicast::hops]
+[section:service_name ip::basic_resolver_entry::service_name]
 
-[indexterm1 ip::multicast::hops]
-Socket option for time-to-live associated with outgoing multicast packets.
+[indexterm2 service_name..ip::basic_resolver_entry]
+Get the service name associated with the entry.
 
 
- typedef implementation_defined hops;
+ std::string service_name() const;
 
 
 
-Implements the IPPROTO\_IP/IP\_MULTICAST\_TTL socket option.
+[endsect]
 
 
-[heading Examples]
-
-Setting the option:
 
- boost::asio::ip::udp::socket socket(io_service);
- ...
- boost::asio::ip::multicast::hops option(4);
- socket.set_option(option);
+[endsect]
 
+[section:ip__basic_resolver_iterator ip::basic_resolver_iterator]
 
 
+An iterator over the entries produced by a resolver.
 
 
-Getting the current option value:
+ template<
+ typename ``[link boost_asio.reference.InternetProtocol InternetProtocol]``>
+ class basic_resolver_iterator
 
- boost::asio::ip::udp::socket socket(io_service);
- ...
- boost::asio::ip::multicast::hops option;
- socket.get_option(option);
- int ttl = option.value();
 
+[heading Types]
+[table
+ [[Name][Description]]
 
+ [
 
+ [[link boost_asio.reference.ip__basic_resolver_iterator.difference_type [*difference_type]]]
+ [The type used for the distance between two iterators. ]
+
+ ]
 
+ [
 
+ [[link boost_asio.reference.ip__basic_resolver_iterator.iterator_category [*iterator_category]]]
+ [The iterator category. ]
+
+ ]
 
+ [
 
-[heading Requirements]
+ [[link boost_asio.reference.ip__basic_resolver_iterator.pointer [*pointer]]]
+ [The type of the result of applying operator->() to the iterator. ]
+
+ ]
 
-[*Header: ][^boost/asio/ip/multicast.hpp]
+ [
 
-[*Convenience header: ][^boost/asio.hpp]
+ [[link boost_asio.reference.ip__basic_resolver_iterator.reference [*reference]]]
+ [The type of the result of applying operator*() to the iterator. ]
+
+ ]
 
+ [
 
-[endsect]
+ [[link boost_asio.reference.ip__basic_resolver_iterator.value_type [*value_type]]]
+ [The type of the value pointed to by the iterator. ]
+
+ ]
 
+]
 
+[heading Member Functions]
+[table
+ [[Name][Description]]
 
-[section:ip__multicast__join_group ip::multicast::join_group]
+ [
+ [[link boost_asio.reference.ip__basic_resolver_iterator.basic_resolver_iterator [*basic_resolver_iterator]]]
+ [Default constructor creates an end iterator. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__basic_resolver_iterator.create [*create]]]
+ [Create an iterator from an addrinfo list returned by getaddrinfo.
 
-[indexterm1 ip::multicast::join_group]
-Socket option to join a multicast group on a specified interface.
+ Create an iterator from an endpoint, host name and service name. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__basic_resolver_iterator.operator__star_ [*operator *]]]
+ [Dereference an iterator. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__basic_resolver_iterator.operator_plus__plus_ [*operator++]]]
+ [Increment operator (prefix).
 
+ Increment operator (postfix). ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__basic_resolver_iterator.operator_arrow_ [*operator->]]]
+ [Dereference an iterator. ]
+ ]
+
+]
 
- typedef implementation_defined join_group;
+[heading Friends]
+[table
+ [[Name][Description]]
 
+ [
+ [[link boost_asio.reference.ip__basic_resolver_iterator.operator_not__eq_ [*operator!=]]]
+ [Test two iterators for inequality. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__basic_resolver_iterator.operator_eq__eq_ [*operator==]]]
+ [Test two iterators for equality. ]
+ ]
+
+]
 
+The [link boost_asio.reference.ip__basic_resolver_iterator `ip::basic_resolver_iterator`] class template is used to define iterators over the results returned by a resolver.
 
-Implements the IPPROTO\_IP/IP\_ADD\_MEMBERSHIP socket option.
+The iterator's value\_type, obtained when the iterator is dereferenced, is:
 
+ const basic_resolver_entry<InternetProtocol>
 
-[heading Examples]
-
-Setting the option to join a multicast group:
 
- boost::asio::ip::udp::socket socket(io_service);
- ...
- boost::asio::ip::address multicast_address =
- boost::asio::ip::address::from_string("225.0.0.1");
- boost::asio::ip::multicast::join_group option(multicast_address);
- socket.set_option(option);
 
 
 
+[heading Thread Safety]
+
+[*Distinct] [*objects:] Safe.
 
+[*Shared] [*objects:] Unsafe.
 
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/ip/multicast.hpp]
+[*Header: ][^boost/asio/ip/basic_resolver_iterator.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
 
-[endsect]
+[section:basic_resolver_iterator ip::basic_resolver_iterator::basic_resolver_iterator]
 
+[indexterm2 basic_resolver_iterator..ip::basic_resolver_iterator]
+Default constructor creates an end iterator.
 
 
-[section:ip__multicast__leave_group ip::multicast::leave_group]
+ basic_resolver_iterator();
 
-[indexterm1 ip::multicast::leave_group]
-Socket option to leave a multicast group on a specified interface.
 
 
- typedef implementation_defined leave_group;
+[endsect]
 
 
+[section:create ip::basic_resolver_iterator::create]
 
-Implements the IPPROTO\_IP/IP\_DROP\_MEMBERSHIP socket option.
+[indexterm2 create..ip::basic_resolver_iterator]
+Create an iterator from an addrinfo list returned by getaddrinfo.
 
 
-[heading Examples]
-
-Setting the option to leave a multicast group:
+ static basic_resolver_iterator ``[link boost_asio.reference.ip__basic_resolver_iterator.create.overload1 create]``(
+ boost::asio::detail::addrinfo_type * address_info,
+ const std::string & host_name,
+ const std::string & service_name);
+ `` [''''&raquo;''' [link boost_asio.reference.ip__basic_resolver_iterator.create.overload1 more...]]``
 
- boost::asio::ip::udp::socket socket(io_service);
- ...
- boost::asio::ip::address multicast_address =
- boost::asio::ip::address::from_string("225.0.0.1");
- boost::asio::ip::multicast::leave_group option(multicast_address);
- socket.set_option(option);
+
+Create an iterator from an endpoint, host name and service name.
 
 
+ static basic_resolver_iterator ``[link boost_asio.reference.ip__basic_resolver_iterator.create.overload2 create]``(
+ const typename InternetProtocol::endpoint & endpoint,
+ const std::string & host_name,
+ const std::string & service_name);
+ `` [''''&raquo;''' [link boost_asio.reference.ip__basic_resolver_iterator.create.overload2 more...]]``
 
 
+[section:overload1 ip::basic_resolver_iterator::create (1 of 2 overloads)]
 
 
+Create an iterator from an addrinfo list returned by getaddrinfo.
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/ip/multicast.hpp]
+ static basic_resolver_iterator create(
+ boost::asio::detail::addrinfo_type * address_info,
+ const std::string & host_name,
+ const std::string & service_name);
 
-[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
 
-[section:ip__multicast__outbound_interface ip::multicast::outbound_interface]
+[section:overload2 ip::basic_resolver_iterator::create (2 of 2 overloads)]
 
-[indexterm1 ip::multicast::outbound_interface]
-Socket option for local interface to use for outgoing multicast packets.
 
+Create an iterator from an endpoint, host name and service name.
 
- typedef implementation_defined outbound_interface;
 
+ static basic_resolver_iterator create(
+ const typename InternetProtocol::endpoint & endpoint,
+ const std::string & host_name,
+ const std::string & service_name);
 
 
-Implements the IPPROTO\_IP/IP\_MULTICAST\_IF socket option.
 
+[endsect]
 
-[heading Examples]
-
-Setting the option:
 
- boost::asio::ip::udp::socket socket(io_service);
- ...
- boost::asio::ip::address_v4 local_interface =
- boost::asio::ip::address_v4::from_string("1.2.3.4");
- boost::asio::ip::multicast::outbound_interface option(local_interface);
- socket.set_option(option);
+[endsect]
+
 
+[section:difference_type ip::basic_resolver_iterator::difference_type]
 
+[indexterm2 difference_type..ip::basic_resolver_iterator]
+The type used for the distance between two iterators.
 
 
+ typedef std::ptrdiff_t difference_type;
 
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/ip/multicast.hpp]
+[*Header: ][^boost/asio/ip/basic_resolver_iterator.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -61371,122 +60822,88 @@
 [endsect]
 
 
-[section:ip__resolver_query_base ip::resolver_query_base]
 
+[section:iterator_category ip::basic_resolver_iterator::iterator_category]
 
-The [link boost_asio.reference.ip__resolver_query_base `ip::resolver_query_base`] class is used as a base for the [link boost_asio.reference.ip__basic_resolver_query `ip::basic_resolver_query`] class templates to provide a common place to define the flag constants.
+[indexterm2 iterator_category..ip::basic_resolver_iterator]
+The iterator category.
 
 
- class resolver_query_base
+ typedef std::forward_iterator_tag iterator_category;
 
 
-[heading Types]
-[table
- [[Name][Description]]
 
- [
+[heading Requirements]
 
- [[link boost_asio.reference.ip__resolver_query_base.flags [*flags]]]
- [A bitmask type (C++ Std \[lib.bitmask.types\]). ]
-
- ]
+[*Header: ][^boost/asio/ip/basic_resolver_iterator.hpp]
 
-]
+[*Convenience header: ][^boost/asio.hpp]
 
-[heading Protected Member Functions]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.ip__resolver_query_base._resolver_query_base [*~resolver_query_base]]]
- [Protected destructor to prevent deletion through this type. ]
- ]
-
-]
+[endsect]
 
-[heading Data Members]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.ip__resolver_query_base.address_configured [*address_configured]]]
- [Only return IPv4 addresses if a non-loopback IPv4 address is configured for the system. Only return IPv6 addresses if a non-loopback IPv6 address is configured for the system. ]
- ]
 
- [
- [[link boost_asio.reference.ip__resolver_query_base.all_matching [*all_matching]]]
- [If used with v4_mapped, return all matching IPv6 and IPv4 addresses. ]
- ]
+[section:operator__star_ ip::basic_resolver_iterator::operator *]
 
- [
- [[link boost_asio.reference.ip__resolver_query_base.canonical_name [*canonical_name]]]
- [Determine the canonical name of the host specified in the query. ]
- ]
+[indexterm2 operator *..ip::basic_resolver_iterator]
+Dereference an iterator.
 
- [
- [[link boost_asio.reference.ip__resolver_query_base.numeric_host [*numeric_host]]]
- [Host name should be treated as a numeric string defining an IPv4 or IPv6 address and no name resolution should be attempted. ]
- ]
 
- [
- [[link boost_asio.reference.ip__resolver_query_base.numeric_service [*numeric_service]]]
- [Service name should be treated as a numeric string defining a port number and no name resolution should be attempted. ]
- ]
+ const basic_resolver_entry< InternetProtocol > & operator *() const;
 
- [
- [[link boost_asio.reference.ip__resolver_query_base.passive [*passive]]]
- [Indicate that returned endpoint is intended for use as a locally bound socket endpoint. ]
- ]
 
- [
- [[link boost_asio.reference.ip__resolver_query_base.v4_mapped [*v4_mapped]]]
- [If the query protocol family is specified as IPv6, return IPv4-mapped IPv6 addresses on finding no IPv6 addresses. ]
- ]
 
-]
+[endsect]
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/ip/resolver_query_base.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
+[section:operator_not__eq_ ip::basic_resolver_iterator::operator!=]
 
+[indexterm2 operator!=..ip::basic_resolver_iterator]
+Test two iterators for inequality.
 
-[section:address_configured ip::resolver_query_base::address_configured]
 
-[indexterm2 address_configured..ip::resolver_query_base]
-Only return IPv4 addresses if a non-loopback IPv4 address is configured for the system. Only return IPv6 addresses if a non-loopback IPv6 address is configured for the system.
+ friend bool operator!=(
+ const basic_resolver_iterator & a,
+ const basic_resolver_iterator & b);
 
 
- static const flags address_configured = implementation_defined;
+[heading Requirements]
 
+[*Header: ][^boost/asio/ip/basic_resolver_iterator.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
+[section:operator_plus__plus_ ip::basic_resolver_iterator::operator++]
 
-[section:all_matching ip::resolver_query_base::all_matching]
+[indexterm2 operator++..ip::basic_resolver_iterator]
+Increment operator (prefix).
 
-[indexterm2 all_matching..ip::resolver_query_base]
-If used with v4\_mapped, return all matching IPv6 and IPv4 addresses.
 
+ basic_resolver_iterator & ``[link boost_asio.reference.ip__basic_resolver_iterator.operator_plus__plus_.overload1 operator++]``();
+ `` [''''&raquo;''' [link boost_asio.reference.ip__basic_resolver_iterator.operator_plus__plus_.overload1 more...]]``
 
- static const flags all_matching = implementation_defined;
 
+Increment operator (postfix).
 
 
-[endsect]
+ basic_resolver_iterator ``[link boost_asio.reference.ip__basic_resolver_iterator.operator_plus__plus_.overload2 operator++]``(
+ int );
+ `` [''''&raquo;''' [link boost_asio.reference.ip__basic_resolver_iterator.operator_plus__plus_.overload2 more...]]``
 
 
+[section:overload1 ip::basic_resolver_iterator::operator++ (1 of 2 overloads)]
 
-[section:canonical_name ip::resolver_query_base::canonical_name]
 
-[indexterm2 canonical_name..ip::resolver_query_base]
-Determine the canonical name of the host specified in the query.
+Increment operator (prefix).
 
 
- static const flags canonical_name = implementation_defined;
+ basic_resolver_iterator & operator++();
 
 
 
@@ -61494,48 +60911,30 @@
 
 
 
-[section:flags ip::resolver_query_base::flags]
-
-[indexterm2 flags..ip::resolver_query_base]
-A bitmask type (C++ Std [lib.bitmask.types]).
-
-
- typedef unspecified flags;
+[section:overload2 ip::basic_resolver_iterator::operator++ (2 of 2 overloads)]
 
 
+Increment operator (postfix).
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/ip/resolver_query_base.hpp]
+ basic_resolver_iterator operator++(
+ int );
 
-[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
-
-[section:numeric_host ip::resolver_query_base::numeric_host]
-
-[indexterm2 numeric_host..ip::resolver_query_base]
-Host name should be treated as a numeric string defining an IPv4 or IPv6 address and no name resolution should be attempted.
-
-
- static const flags numeric_host = implementation_defined;
-
-
-
 [endsect]
 
 
+[section:operator_arrow_ ip::basic_resolver_iterator::operator->]
 
-[section:numeric_service ip::resolver_query_base::numeric_service]
-
-[indexterm2 numeric_service..ip::resolver_query_base]
-Service name should be treated as a numeric string defining a port number and no name resolution should be attempted.
+[indexterm2 operator->..ip::basic_resolver_iterator]
+Dereference an iterator.
 
 
- static const flags numeric_service = implementation_defined;
+ const basic_resolver_entry< InternetProtocol > * operator->() const;
 
 
 
@@ -61543,60 +60942,56 @@
 
 
 
-[section:passive ip::resolver_query_base::passive]
-
-[indexterm2 passive..ip::resolver_query_base]
-Indicate that returned endpoint is intended for use as a locally bound socket endpoint.
-
+[section:operator_eq__eq_ ip::basic_resolver_iterator::operator==]
 
- static const flags passive = implementation_defined;
+[indexterm2 operator==..ip::basic_resolver_iterator]
+Test two iterators for equality.
 
 
+ friend bool operator==(
+ const basic_resolver_iterator & a,
+ const basic_resolver_iterator & b);
 
-[endsect]
 
+[heading Requirements]
 
+[*Header: ][^boost/asio/ip/basic_resolver_iterator.hpp]
 
-[section:v4_mapped ip::resolver_query_base::v4_mapped]
+[*Convenience header: ][^boost/asio.hpp]
 
-[indexterm2 v4_mapped..ip::resolver_query_base]
-If the query protocol family is specified as IPv6, return IPv4-mapped IPv6 addresses on finding no IPv6 addresses.
 
+[endsect]
 
- static const flags v4_mapped = implementation_defined;
 
 
+[section:pointer ip::basic_resolver_iterator::pointer]
 
-[endsect]
+[indexterm2 pointer..ip::basic_resolver_iterator]
+The type of the result of applying `operator->()` to the iterator.
 
 
+ typedef const basic_resolver_entry< InternetProtocol > * pointer;
 
-[section:_resolver_query_base ip::resolver_query_base::~resolver_query_base]
 
-[indexterm2 ~resolver_query_base..ip::resolver_query_base]
-Protected destructor to prevent deletion through this type.
 
+[heading Requirements]
 
- ~resolver_query_base();
+[*Header: ][^boost/asio/ip/basic_resolver_iterator.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
 
-[endsect]
-
-[section:ip__resolver_service ip::resolver_service]
-
+[section:reference ip::basic_resolver_iterator::reference]
 
-Default service implementation for a resolver.
+[indexterm2 reference..ip::basic_resolver_iterator]
+The type of the result of applying `operator*()` to the iterator.
 
 
- template<
- typename ``[link boost_asio.reference.InternetProtocol InternetProtocol]``>
- class resolver_service :
- public io_service::service
+ typedef const basic_resolver_entry< InternetProtocol > & reference;
 
 
 [heading Types]
@@ -61605,36 +61000,15 @@
 
   [
 
- [[link boost_asio.reference.ip__resolver_service.endpoint_type [*endpoint_type]]]
- [The endpoint type. ]
-
- ]
-
- [
-
- [[link boost_asio.reference.ip__resolver_service.implementation_type [*implementation_type]]]
- [The type of a resolver implementation. ]
-
- ]
-
- [
-
- [[link boost_asio.reference.ip__resolver_service.iterator_type [*iterator_type]]]
- [The iterator type. ]
-
- ]
-
- [
-
- [[link boost_asio.reference.ip__resolver_service.protocol_type [*protocol_type]]]
- [The protocol type. ]
+ [[link boost_asio.reference.ip__basic_resolver_entry.endpoint_type [*endpoint_type]]]
+ [The endpoint type associated with the endpoint entry. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.ip__resolver_service.query_type [*query_type]]]
- [The query type. ]
+ [[link boost_asio.reference.ip__basic_resolver_entry.protocol_type [*protocol_type]]]
+ [The protocol type associated with the endpoint entry. ]
   
   ]
 
@@ -61645,240 +61019,49 @@
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.ip__resolver_service.async_resolve [*async_resolve]]]
- [Asynchronously resolve a query to a list of entries.
+ [[link boost_asio.reference.ip__basic_resolver_entry.basic_resolver_entry [*basic_resolver_entry]]]
+ [Default constructor.
 
- Asynchronously resolve an endpoint to a list of entries. ]
- ]
-
- [
- [[link boost_asio.reference.ip__resolver_service.cancel [*cancel]]]
- [Cancel pending asynchronous operations. ]
- ]
-
- [
- [[link boost_asio.reference.ip__resolver_service.construct [*construct]]]
- [Construct a new resolver implementation. ]
+ Construct with specified endpoint, host name and service name. ]
   ]
   
   [
- [[link boost_asio.reference.ip__resolver_service.destroy [*destroy]]]
- [Destroy a resolver implementation. ]
+ [[link boost_asio.reference.ip__basic_resolver_entry.endpoint [*endpoint]]]
+ [Get the endpoint associated with the entry. ]
   ]
   
   [
- [[link boost_asio.reference.ip__resolver_service.get_io_service [*get_io_service]]]
- [Get the io_service object that owns the service. ]
+ [[link boost_asio.reference.ip__basic_resolver_entry.host_name [*host_name]]]
+ [Get the host name associated with the entry. ]
   ]
   
   [
- [[link boost_asio.reference.ip__resolver_service.resolve [*resolve]]]
- [Resolve a query to a list of entries.
-
- Resolve an endpoint to a list of entries. ]
+ [[link boost_asio.reference.ip__basic_resolver_entry.operator_endpoint_type [*operator endpoint_type]]]
+ [Convert to the endpoint associated with the entry. ]
   ]
   
   [
- [[link boost_asio.reference.ip__resolver_service.resolver_service [*resolver_service]]]
- [Construct a new resolver service for the specified io_service. ]
+ [[link boost_asio.reference.ip__basic_resolver_entry.service_name [*service_name]]]
+ [Get the service name associated with the entry. ]
   ]
   
 ]
 
-[heading Data Members]
-[table
- [[Name][Description]]
-
- [
- [[link boost_asio.reference.ip__resolver_service.id [*id]]]
- [The unique service identifier. ]
- ]
-
-]
-
-[heading Requirements]
-
-[*Header: ][^boost/asio/ip/resolver_service.hpp]
-
-[*Convenience header: ][^boost/asio.hpp]
-
-[section:async_resolve ip::resolver_service::async_resolve]
-
-[indexterm2 async_resolve..ip::resolver_service]
-Asynchronously resolve a query to a list of entries.
-
-
- template<
- typename ``[link boost_asio.reference.ResolveHandler ResolveHandler]``>
- void ``[link boost_asio.reference.ip__resolver_service.async_resolve.overload1 async_resolve]``(
- implementation_type & impl,
- const query_type & query,
- ResolveHandler handler);
- `` [''''&raquo;''' [link boost_asio.reference.ip__resolver_service.async_resolve.overload1 more...]]``
-
-
-Asynchronously resolve an endpoint to a list of entries.
-
-
- template<
- typename ``[link boost_asio.reference.ResolveHandler ResolveHandler]``>
- void ``[link boost_asio.reference.ip__resolver_service.async_resolve.overload2 async_resolve]``(
- implementation_type & impl,
- const endpoint_type & endpoint,
- ResolveHandler handler);
- `` [''''&raquo;''' [link boost_asio.reference.ip__resolver_service.async_resolve.overload2 more...]]``
-
-
-[section:overload1 ip::resolver_service::async_resolve (1 of 2 overloads)]
-
-
-Asynchronously resolve a query to a list of entries.
-
-
- template<
- typename ``[link boost_asio.reference.ResolveHandler ResolveHandler]``>
- void async_resolve(
- implementation_type & impl,
- const query_type & query,
- ResolveHandler handler);
-
-
-
-[endsect]
-
-
-
-[section:overload2 ip::resolver_service::async_resolve (2 of 2 overloads)]
-
-
-Asynchronously resolve an endpoint to a list of entries.
-
-
- template<
- typename ``[link boost_asio.reference.ResolveHandler ResolveHandler]``>
- void async_resolve(
- implementation_type & impl,
- const endpoint_type & endpoint,
- ResolveHandler handler);
-
-
-
-[endsect]
-
-
-[endsect]
-
-
-[section:cancel ip::resolver_service::cancel]
-
-[indexterm2 cancel..ip::resolver_service]
-Cancel pending asynchronous operations.
-
-
- void cancel(
- implementation_type & impl);
-
-
-
-[endsect]
-
-
-
-[section:construct ip::resolver_service::construct]
-
-[indexterm2 construct..ip::resolver_service]
-Construct a new resolver implementation.
-
-
- void construct(
- implementation_type & impl);
-
-
-
-[endsect]
-
-
-
-[section:destroy ip::resolver_service::destroy]
-
-[indexterm2 destroy..ip::resolver_service]
-Destroy a resolver implementation.
-
-
- void destroy(
- implementation_type & impl);
-
-
-
-[endsect]
-
-
-
-[section:endpoint_type ip::resolver_service::endpoint_type]
-
-[indexterm2 endpoint_type..ip::resolver_service]
-The endpoint type.
-
-
- typedef InternetProtocol::endpoint endpoint_type;
-
-
-
-[heading Requirements]
-
-[*Header: ][^boost/asio/ip/resolver_service.hpp]
-
-[*Convenience header: ][^boost/asio.hpp]
-
-
-[endsect]
-
-
-
-[section:get_io_service ip::resolver_service::get_io_service]
-
-
-['Inherited from io_service.]
-
-[indexterm2 get_io_service..ip::resolver_service]
-Get the [link boost_asio.reference.io_service `io_service`] object that owns the service.
-
-
- boost::asio::io_service & get_io_service();
-
-
-
-[endsect]
-
-
-
-[section:id ip::resolver_service::id]
-
-[indexterm2 id..ip::resolver_service]
-The unique service identifier.
-
-
- static boost::asio::io_service::id id;
-
-
-
-[endsect]
-
-
+The [link boost_asio.reference.ip__basic_resolver_entry `ip::basic_resolver_entry`] class template describes an entry as returned by a resolver.
 
-[section:implementation_type ip::resolver_service::implementation_type]
 
-[indexterm2 implementation_type..ip::resolver_service]
-The type of a resolver implementation.
+[heading Thread Safety]
+
+[*Distinct] [*objects:] Safe.
 
+[*Shared] [*objects:] Unsafe.
 
- typedef implementation_defined implementation_type;
 
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/ip/resolver_service.hpp]
+[*Header: ][^boost/asio/ip/basic_resolver_iterator.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -61887,13 +61070,13 @@
 
 
 
-[section:iterator_type ip::resolver_service::iterator_type]
+[section:value_type ip::basic_resolver_iterator::value_type]
 
-[indexterm2 iterator_type..ip::resolver_service]
-The iterator type.
+[indexterm2 value_type..ip::basic_resolver_iterator]
+The type of the value pointed to by the iterator.
 
 
- typedef basic_resolver_iterator< InternetProtocol > iterator_type;
+ typedef basic_resolver_entry< InternetProtocol > value_type;
 
 
 [heading Types]
@@ -61902,36 +61085,15 @@
 
   [
 
- [[link boost_asio.reference.ip__basic_resolver_iterator.difference_type [*difference_type]]]
- [The type used for the distance between two iterators. ]
-
- ]
-
- [
-
- [[link boost_asio.reference.ip__basic_resolver_iterator.iterator_category [*iterator_category]]]
- [The iterator category. ]
-
- ]
-
- [
-
- [[link boost_asio.reference.ip__basic_resolver_iterator.pointer [*pointer]]]
- [The type of the result of applying operator->() to the iterator. ]
-
- ]
-
- [
-
- [[link boost_asio.reference.ip__basic_resolver_iterator.reference [*reference]]]
- [The type of the result of applying operator*() to the iterator. ]
+ [[link boost_asio.reference.ip__basic_resolver_entry.endpoint_type [*endpoint_type]]]
+ [The endpoint type associated with the endpoint entry. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.ip__basic_resolver_iterator.value_type [*value_type]]]
- [The type of the value pointed to by the iterator. ]
+ [[link boost_asio.reference.ip__basic_resolver_entry.protocol_type [*protocol_type]]]
+ [The protocol type associated with the endpoint entry. ]
   
   ]
 
@@ -61942,60 +61104,35 @@
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.ip__basic_resolver_iterator.basic_resolver_iterator [*basic_resolver_iterator]]]
- [Default constructor creates an end iterator. ]
- ]
-
- [
- [[link boost_asio.reference.ip__basic_resolver_iterator.create [*create]]]
- [Create an iterator from an addrinfo list returned by getaddrinfo.
+ [[link boost_asio.reference.ip__basic_resolver_entry.basic_resolver_entry [*basic_resolver_entry]]]
+ [Default constructor.
 
- Create an iterator from an endpoint, host name and service name. ]
- ]
-
- [
- [[link boost_asio.reference.ip__basic_resolver_iterator.operator__star_ [*operator *]]]
- [Dereference an iterator. ]
+ Construct with specified endpoint, host name and service name. ]
   ]
   
   [
- [[link boost_asio.reference.ip__basic_resolver_iterator.operator_plus__plus_ [*operator++]]]
- [Increment operator (prefix).
-
- Increment operator (postfix). ]
+ [[link boost_asio.reference.ip__basic_resolver_entry.endpoint [*endpoint]]]
+ [Get the endpoint associated with the entry. ]
   ]
   
   [
- [[link boost_asio.reference.ip__basic_resolver_iterator.operator_arrow_ [*operator->]]]
- [Dereference an iterator. ]
+ [[link boost_asio.reference.ip__basic_resolver_entry.host_name [*host_name]]]
+ [Get the host name associated with the entry. ]
   ]
   
-]
-
-[heading Friends]
-[table
- [[Name][Description]]
-
   [
- [[link boost_asio.reference.ip__basic_resolver_iterator.operator_not__eq_ [*operator!=]]]
- [Test two iterators for inequality. ]
+ [[link boost_asio.reference.ip__basic_resolver_entry.operator_endpoint_type [*operator endpoint_type]]]
+ [Convert to the endpoint associated with the entry. ]
   ]
   
   [
- [[link boost_asio.reference.ip__basic_resolver_iterator.operator_eq__eq_ [*operator==]]]
- [Test two iterators for equality. ]
+ [[link boost_asio.reference.ip__basic_resolver_entry.service_name [*service_name]]]
+ [Get the service name associated with the entry. ]
   ]
   
 ]
 
-The [link boost_asio.reference.ip__basic_resolver_iterator `ip::basic_resolver_iterator`] class template is used to define iterators over the results returned by a resolver.
-
-The iterator's value\_type, obtained when the iterator is dereferenced, is:
-
- const basic_resolver_entry<InternetProtocol>
-
-
-
+The [link boost_asio.reference.ip__basic_resolver_entry `ip::basic_resolver_entry`] class template describes an entry as returned by a resolver.
 
 
 [heading Thread Safety]
@@ -62009,7 +61146,7 @@
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/ip/resolver_service.hpp]
+[*Header: ][^boost/asio/ip/basic_resolver_iterator.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -62018,34 +61155,18 @@
 
 
 
-[section:protocol_type ip::resolver_service::protocol_type]
-
-[indexterm2 protocol_type..ip::resolver_service]
-The protocol type.
-
-
- typedef InternetProtocol protocol_type;
-
-
-
-[heading Requirements]
-
-[*Header: ][^boost/asio/ip/resolver_service.hpp]
-
-[*Convenience header: ][^boost/asio.hpp]
-
-
 [endsect]
 
+[section:ip__basic_resolver_query ip::basic_resolver_query]
 
 
-[section:query_type ip::resolver_service::query_type]
-
-[indexterm2 query_type..ip::resolver_service]
-The query type.
+An query to be passed to a resolver.
 
 
- typedef basic_resolver_query< InternetProtocol > query_type;
+ template<
+ typename ``[link boost_asio.reference.InternetProtocol InternetProtocol]``>
+ class basic_resolver_query :
+ public ip::resolver_query_base
 
 
 [heading Types]
@@ -62152,591 +61273,384 @@
 
 
 
-
 [heading Requirements]
 
-[*Header: ][^boost/asio/ip/resolver_service.hpp]
+[*Header: ][^boost/asio/ip/basic_resolver_query.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
 
-[endsect]
+[section:address_configured ip::basic_resolver_query::address_configured]
 
 
-[section:resolve ip::resolver_service::resolve]
+['Inherited from ip::resolver_query_base.]
 
-[indexterm2 resolve..ip::resolver_service]
-Resolve a query to a list of entries.
+[indexterm2 address_configured..ip::basic_resolver_query]
+Only return IPv4 addresses if a non-loopback IPv4 address is configured for the system. Only return IPv6 addresses if a non-loopback IPv6 address is configured for the system.
 
 
- iterator_type ``[link boost_asio.reference.ip__resolver_service.resolve.overload1 resolve]``(
- implementation_type & impl,
- const query_type & query,
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.ip__resolver_service.resolve.overload1 more...]]``
+ static const flags address_configured = implementation_defined;
 
 
-Resolve an endpoint to a list of entries.
 
+[endsect]
 
- iterator_type ``[link boost_asio.reference.ip__resolver_service.resolve.overload2 resolve]``(
- implementation_type & impl,
- const endpoint_type & endpoint,
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.ip__resolver_service.resolve.overload2 more...]]``
 
 
-[section:overload1 ip::resolver_service::resolve (1 of 2 overloads)]
+[section:all_matching ip::basic_resolver_query::all_matching]
 
 
-Resolve a query to a list of entries.
+['Inherited from ip::resolver_query_base.]
 
+[indexterm2 all_matching..ip::basic_resolver_query]
+If used with v4\_mapped, return all matching IPv6 and IPv4 addresses.
 
- iterator_type resolve(
- implementation_type & impl,
- const query_type & query,
- boost::system::error_code & ec);
 
+ static const flags all_matching = implementation_defined;
 
 
-[endsect]
 
+[endsect]
 
 
-[section:overload2 ip::resolver_service::resolve (2 of 2 overloads)]
+[section:basic_resolver_query ip::basic_resolver_query::basic_resolver_query]
 
+[indexterm2 basic_resolver_query..ip::basic_resolver_query]
+Construct with specified service name for any protocol.
 
-Resolve an endpoint to a list of entries.
 
-
- iterator_type resolve(
- implementation_type & impl,
- const endpoint_type & endpoint,
- boost::system::error_code & ec);
+ ``[link boost_asio.reference.ip__basic_resolver_query.basic_resolver_query.overload1 basic_resolver_query]``(
+ const std::string & service,
+ resolver_query_base::flags resolve_flags = passive|address_configured);
+ `` [''''&raquo;''' [link boost_asio.reference.ip__basic_resolver_query.basic_resolver_query.overload1 more...]]``
 
 
+Construct with specified service name for a given protocol.
 
-[endsect]
 
+ ``[link boost_asio.reference.ip__basic_resolver_query.basic_resolver_query.overload2 basic_resolver_query]``(
+ const protocol_type & protocol,
+ const std::string & service,
+ resolver_query_base::flags resolve_flags = passive|address_configured);
+ `` [''''&raquo;''' [link boost_asio.reference.ip__basic_resolver_query.basic_resolver_query.overload2 more...]]``
 
-[endsect]
 
+Construct with specified host name and service name for any protocol.
 
-[section:resolver_service ip::resolver_service::resolver_service]
 
-[indexterm2 resolver_service..ip::resolver_service]
-Construct a new resolver service for the specified [link boost_asio.reference.io_service `io_service`].
+ ``[link boost_asio.reference.ip__basic_resolver_query.basic_resolver_query.overload3 basic_resolver_query]``(
+ const std::string & host,
+ const std::string & service,
+ resolver_query_base::flags resolve_flags = address_configured);
+ `` [''''&raquo;''' [link boost_asio.reference.ip__basic_resolver_query.basic_resolver_query.overload3 more...]]``
 
 
- resolver_service(
- boost::asio::io_service & io_service);
+Construct with specified host name and service name for a given protocol.
 
 
+ ``[link boost_asio.reference.ip__basic_resolver_query.basic_resolver_query.overload4 basic_resolver_query]``(
+ const protocol_type & protocol,
+ const std::string & host,
+ const std::string & service,
+ resolver_query_base::flags resolve_flags = address_configured);
+ `` [''''&raquo;''' [link boost_asio.reference.ip__basic_resolver_query.basic_resolver_query.overload4 more...]]``
 
-[endsect]
 
+[section:overload1 ip::basic_resolver_query::basic_resolver_query (1 of 4 overloads)]
 
 
-[endsect]
+Construct with specified service name for any protocol.
 
-[section:ip__tcp ip::tcp]
 
+ basic_resolver_query(
+ const std::string & service,
+ resolver_query_base::flags resolve_flags = passive|address_configured);
 
-Encapsulates the flags needed for TCP.
 
+This constructor is typically used to perform name resolution for local service binding.
 
- class tcp
 
+[heading Parameters]
+
 
-[heading Types]
-[table
- [[Name][Description]]
+[variablelist
+
+[[service][A string identifying the requested service. This may be a descriptive name or a numeric string corresponding to a port number.]]
 
- [
+[[resolve_flags][A set of flags that determine how name resolution should be performed. The default flags are suitable for local service binding.]]
 
- [[link boost_asio.reference.ip__tcp.acceptor [*acceptor]]]
- [The TCP acceptor type. ]
-
- ]
+]
 
- [
 
- [[link boost_asio.reference.ip__tcp.endpoint [*endpoint]]]
- [The type of a TCP endpoint. ]
-
- ]
+[heading Remarks]
+
+On POSIX systems, service names are typically defined in the file `/etc/services`. On Windows, service names may be found in the file `c:\windows\system32\drivers\etc\services`. Operating systems may use additional locations when resolving service names.
 
- [
 
- [[link boost_asio.reference.ip__tcp.iostream [*iostream]]]
- [The TCP iostream type. ]
-
- ]
 
- [
 
- [[link boost_asio.reference.ip__tcp.no_delay [*no_delay]]]
- [Socket option for disabling the Nagle algorithm. ]
-
- ]
+[endsect]
 
- [
 
- [[link boost_asio.reference.ip__tcp.resolver [*resolver]]]
- [The TCP resolver type. ]
-
- ]
 
- [
+[section:overload2 ip::basic_resolver_query::basic_resolver_query (2 of 4 overloads)]
 
- [[link boost_asio.reference.ip__tcp.socket [*socket]]]
- [The TCP socket type. ]
-
- ]
 
-]
+Construct with specified service name for a given protocol.
 
-[heading Member Functions]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.ip__tcp.family [*family]]]
- [Obtain an identifier for the protocol family. ]
- ]
-
- [
- [[link boost_asio.reference.ip__tcp.protocol [*protocol]]]
- [Obtain an identifier for the protocol. ]
- ]
-
- [
- [[link boost_asio.reference.ip__tcp.type [*type]]]
- [Obtain an identifier for the type of the protocol. ]
- ]
-
- [
- [[link boost_asio.reference.ip__tcp.v4 [*v4]]]
- [Construct to represent the IPv4 TCP protocol. ]
- ]
-
- [
- [[link boost_asio.reference.ip__tcp.v6 [*v6]]]
- [Construct to represent the IPv6 TCP protocol. ]
- ]
-
-]
+ basic_resolver_query(
+ const protocol_type & protocol,
+ const std::string & service,
+ resolver_query_base::flags resolve_flags = passive|address_configured);
 
-[heading Friends]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.ip__tcp.operator_not__eq_ [*operator!=]]]
- [Compare two protocols for inequality. ]
- ]
-
- [
- [[link boost_asio.reference.ip__tcp.operator_eq__eq_ [*operator==]]]
- [Compare two protocols for equality. ]
- ]
-
-]
+This constructor is typically used to perform name resolution for local service binding with a specific protocol version.
 
-The [link boost_asio.reference.ip__tcp `ip::tcp`] class contains flags necessary for TCP sockets.
 
+[heading Parameters]
+
 
-[heading Thread Safety]
+[variablelist
   
-[*Distinct] [*objects:] Safe.
+[[protocol][A protocol object, normally representing either the IPv4 or IPv6 version of an internet protocol.]]
 
-[*Shared] [*objects:] Safe.
+[[service][A string identifying the requested service. This may be a descriptive name or a numeric string corresponding to a port number.]]
 
+[[resolve_flags][A set of flags that determine how name resolution should be performed. The default flags are suitable for local service binding.]]
 
+]
 
 
-[heading Requirements]
+[heading Remarks]
+
+On POSIX systems, service names are typically defined in the file `/etc/services`. On Windows, service names may be found in the file `c:\windows\system32\drivers\etc\services`. Operating systems may use additional locations when resolving service names.
 
-[*Header: ][^boost/asio/ip/tcp.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
 
 
-[section:acceptor ip::tcp::acceptor]
+[endsect]
 
-[indexterm2 acceptor..ip::tcp]
-The TCP acceptor type.
 
 
- typedef basic_socket_acceptor< tcp > acceptor;
+[section:overload3 ip::basic_resolver_query::basic_resolver_query (3 of 4 overloads)]
 
 
-[heading Types]
-[table
- [[Name][Description]]
+Construct with specified host name and service name for any protocol.
 
- [
 
- [[link boost_asio.reference.basic_socket_acceptor.broadcast [*broadcast]]]
- [Socket option to permit sending of broadcast messages. ]
-
- ]
+ basic_resolver_query(
+ const std::string & host,
+ const std::string & service,
+ resolver_query_base::flags resolve_flags = address_configured);
 
- [
 
- [[link boost_asio.reference.basic_socket_acceptor.bytes_readable [*bytes_readable]]]
- [IO control command to get the amount of data that can be read without blocking. ]
-
- ]
+This constructor is typically used to perform name resolution for communication with remote hosts.
 
- [
 
- [[link boost_asio.reference.basic_socket_acceptor.debug [*debug]]]
- [Socket option to enable socket-level debugging. ]
+[heading Parameters]
+
+
+[variablelist
   
- ]
+[[host][A string identifying a location. May be a descriptive name or a numeric address string. If an empty string and the passive flag has been specified, the resolved endpoints are suitable for local service binding. If an empty string and passive is not specified, the resolved endpoints will use the loopback address.]]
 
- [
+[[service][A string identifying the requested service. This may be a descriptive name or a numeric string corresponding to a port number. May be an empty string, in which case all resolved endpoints will have a port number of 0.]]
 
- [[link boost_asio.reference.basic_socket_acceptor.do_not_route [*do_not_route]]]
- [Socket option to prevent routing, use local interfaces only. ]
-
- ]
+[[resolve_flags][A set of flags that determine how name resolution should be performed. The default flags are suitable for communication with remote hosts.]]
 
- [
+]
 
- [[link boost_asio.reference.basic_socket_acceptor.enable_connection_aborted [*enable_connection_aborted]]]
- [Socket option to report aborted connections on accept. ]
-
- ]
 
- [
+[heading Remarks]
+
+On POSIX systems, host names may be locally defined in the file `/etc/hosts`. On Windows, host names may be defined in the file `c:\windows\system32\drivers\etc\hosts`. Remote host name resolution is performed using DNS. Operating systems may use additional locations when resolving host names (such as NETBIOS names on Windows).
 
- [[link boost_asio.reference.basic_socket_acceptor.endpoint_type [*endpoint_type]]]
- [The endpoint type. ]
-
- ]
+On POSIX systems, service names are typically defined in the file `/etc/services`. On Windows, service names may be found in the file `c:\windows\system32\drivers\etc\services`. Operating systems may use additional locations when resolving service names.
 
- [
 
- [[link boost_asio.reference.basic_socket_acceptor.implementation_type [*implementation_type]]]
- [The underlying implementation type of I/O object. ]
-
- ]
+[endsect]
 
- [
 
- [[link boost_asio.reference.basic_socket_acceptor.keep_alive [*keep_alive]]]
- [Socket option to send keep-alives. ]
-
- ]
 
- [
+[section:overload4 ip::basic_resolver_query::basic_resolver_query (4 of 4 overloads)]
 
- [[link boost_asio.reference.basic_socket_acceptor.linger [*linger]]]
- [Socket option to specify whether the socket lingers on close if unsent data is present. ]
-
- ]
 
- [
+Construct with specified host name and service name for a given protocol.
 
- [[link boost_asio.reference.basic_socket_acceptor.message_flags [*message_flags]]]
- [Bitmask type for flags that can be passed to send and receive operations. ]
-
- ]
 
- [
+ basic_resolver_query(
+ const protocol_type & protocol,
+ const std::string & host,
+ const std::string & service,
+ resolver_query_base::flags resolve_flags = address_configured);
 
- [[link boost_asio.reference.basic_socket_acceptor.native_handle_type [*native_handle_type]]]
- [The native representation of an acceptor. ]
-
- ]
 
- [
+This constructor is typically used to perform name resolution for communication with remote hosts.
 
- [[link boost_asio.reference.basic_socket_acceptor.native_type [*native_type]]]
- [(Deprecated: Use native_handle_type.) The native representation of an acceptor. ]
-
- ]
 
- [
+[heading Parameters]
+
 
- [[link boost_asio.reference.basic_socket_acceptor.non_blocking_io [*non_blocking_io]]]
- [(Deprecated: Use non_blocking().) IO control command to set the blocking mode of the socket. ]
+[variablelist
   
- ]
+[[protocol][A protocol object, normally representing either the IPv4 or IPv6 version of an internet protocol.]]
 
- [
+[[host][A string identifying a location. May be a descriptive name or a numeric address string. If an empty string and the passive flag has been specified, the resolved endpoints are suitable for local service binding. If an empty string and passive is not specified, the resolved endpoints will use the loopback address.]]
 
- [[link boost_asio.reference.basic_socket_acceptor.protocol_type [*protocol_type]]]
- [The protocol type. ]
-
- ]
+[[service][A string identifying the requested service. This may be a descriptive name or a numeric string corresponding to a port number. May be an empty string, in which case all resolved endpoints will have a port number of 0.]]
 
- [
+[[resolve_flags][A set of flags that determine how name resolution should be performed. The default flags are suitable for communication with remote hosts.]]
 
- [[link boost_asio.reference.basic_socket_acceptor.receive_buffer_size [*receive_buffer_size]]]
- [Socket option for the receive buffer size of a socket. ]
-
- ]
+]
 
- [
 
- [[link boost_asio.reference.basic_socket_acceptor.receive_low_watermark [*receive_low_watermark]]]
- [Socket option for the receive low watermark. ]
-
- ]
+[heading Remarks]
+
+On POSIX systems, host names may be locally defined in the file `/etc/hosts`. On Windows, host names may be defined in the file `c:\windows\system32\drivers\etc\hosts`. Remote host name resolution is performed using DNS. Operating systems may use additional locations when resolving host names (such as NETBIOS names on Windows).
 
- [
+On POSIX systems, service names are typically defined in the file `/etc/services`. On Windows, service names may be found in the file `c:\windows\system32\drivers\etc\services`. Operating systems may use additional locations when resolving service names.
 
- [[link boost_asio.reference.basic_socket_acceptor.reuse_address [*reuse_address]]]
- [Socket option to allow the socket to be bound to an address that is already in use. ]
-
- ]
 
- [
+[endsect]
 
- [[link boost_asio.reference.basic_socket_acceptor.send_buffer_size [*send_buffer_size]]]
- [Socket option for the send buffer size of a socket. ]
-
- ]
 
- [
+[endsect]
 
- [[link boost_asio.reference.basic_socket_acceptor.send_low_watermark [*send_low_watermark]]]
- [Socket option for the send low watermark. ]
-
- ]
 
- [
+[section:canonical_name ip::basic_resolver_query::canonical_name]
 
- [[link boost_asio.reference.basic_socket_acceptor.service_type [*service_type]]]
- [The type of the service that will be used to provide I/O operations. ]
-
- ]
 
- [
+['Inherited from ip::resolver_query_base.]
 
- [[link boost_asio.reference.basic_socket_acceptor.shutdown_type [*shutdown_type]]]
- [Different ways a socket may be shutdown. ]
-
- ]
+[indexterm2 canonical_name..ip::basic_resolver_query]
+Determine the canonical name of the host specified in the query.
 
-]
 
-[heading Member Functions]
-[table
- [[Name][Description]]
+ static const flags canonical_name = implementation_defined;
 
- [
- [[link boost_asio.reference.basic_socket_acceptor.accept [*accept]]]
- [Accept a new connection.
 
- Accept a new connection and obtain the endpoint of the peer. ]
- ]
-
- [
- [[link boost_asio.reference.basic_socket_acceptor.assign [*assign]]]
- [Assigns an existing native acceptor to the acceptor. ]
- ]
-
- [
- [[link boost_asio.reference.basic_socket_acceptor.async_accept [*async_accept]]]
- [Start an asynchronous accept. ]
- ]
-
- [
- [[link boost_asio.reference.basic_socket_acceptor.basic_socket_acceptor [*basic_socket_acceptor]]]
- [Construct an acceptor without opening it.
 
- Construct an open acceptor.
+[endsect]
 
- Construct an acceptor opened on the given endpoint.
 
- Construct a basic_socket_acceptor on an existing native acceptor.
 
- Move-construct a basic_socket_acceptor from another. ]
- ]
-
- [
- [[link boost_asio.reference.basic_socket_acceptor.bind [*bind]]]
- [Bind the acceptor to the given local endpoint. ]
- ]
-
- [
- [[link boost_asio.reference.basic_socket_acceptor.cancel [*cancel]]]
- [Cancel all asynchronous operations associated with the acceptor. ]
- ]
-
- [
- [[link boost_asio.reference.basic_socket_acceptor.close [*close]]]
- [Close the acceptor. ]
- ]
-
- [
- [[link boost_asio.reference.basic_socket_acceptor.get_io_service [*get_io_service]]]
- [Get the io_service associated with the object. ]
- ]
-
- [
- [[link boost_asio.reference.basic_socket_acceptor.get_option [*get_option]]]
- [Get an option from the acceptor. ]
- ]
-
- [
- [[link boost_asio.reference.basic_socket_acceptor.io_control [*io_control]]]
- [Perform an IO control command on the acceptor. ]
- ]
-
- [
- [[link boost_asio.reference.basic_socket_acceptor.is_open [*is_open]]]
- [Determine whether the acceptor is open. ]
- ]
-
- [
- [[link boost_asio.reference.basic_socket_acceptor.listen [*listen]]]
- [Place the acceptor into the state where it will listen for new connections. ]
- ]
-
- [
- [[link boost_asio.reference.basic_socket_acceptor.local_endpoint [*local_endpoint]]]
- [Get the local endpoint of the acceptor. ]
- ]
-
- [
- [[link boost_asio.reference.basic_socket_acceptor.native [*native]]]
- [(Deprecated: Use native_handle().) Get the native acceptor representation. ]
- ]
-
- [
- [[link boost_asio.reference.basic_socket_acceptor.native_handle [*native_handle]]]
- [Get the native acceptor representation. ]
- ]
-
- [
- [[link boost_asio.reference.basic_socket_acceptor.native_non_blocking [*native_non_blocking]]]
- [Gets the non-blocking mode of the native acceptor implementation.
+[section:flags ip::basic_resolver_query::flags]
 
- Sets the non-blocking mode of the native acceptor implementation. ]
- ]
-
- [
- [[link boost_asio.reference.basic_socket_acceptor.non_blocking [*non_blocking]]]
- [Gets the non-blocking mode of the acceptor.
 
- Sets the non-blocking mode of the acceptor. ]
- ]
-
- [
- [[link boost_asio.reference.basic_socket_acceptor.open [*open]]]
- [Open the acceptor using the specified protocol. ]
- ]
-
- [
- [[link boost_asio.reference.basic_socket_acceptor.operator_eq_ [*operator=]]]
- [Move-assign a basic_socket_acceptor from another. ]
- ]
-
- [
- [[link boost_asio.reference.basic_socket_acceptor.set_option [*set_option]]]
- [Set an option on the acceptor. ]
- ]
-
-]
+['Inherited from ip::resolver_query_base.]
 
-[heading Protected Member Functions]
-[table
- [[Name][Description]]
+[indexterm2 flags..ip::basic_resolver_query]
+A bitmask type (C++ Std [lib.bitmask.types]).
 
- [
- [[link boost_asio.reference.basic_socket_acceptor.get_implementation [*get_implementation]]]
- [Get the underlying implementation of the I/O object. ]
- ]
-
- [
- [[link boost_asio.reference.basic_socket_acceptor.get_service [*get_service]]]
- [Get the service associated with the I/O object. ]
- ]
-
-]
 
-[heading Data Members]
-[table
- [[Name][Description]]
+ typedef unspecified flags;
 
- [
- [[link boost_asio.reference.basic_socket_acceptor.max_connections [*max_connections]]]
- [The maximum length of the queue of pending incoming connections. ]
- ]
 
- [
- [[link boost_asio.reference.basic_socket_acceptor.message_do_not_route [*message_do_not_route]]]
- [Specify that the data should not be subject to routing. ]
- ]
 
- [
- [[link boost_asio.reference.basic_socket_acceptor.message_end_of_record [*message_end_of_record]]]
- [Specifies that the data marks the end of a record. ]
- ]
+[heading Requirements]
 
- [
- [[link boost_asio.reference.basic_socket_acceptor.message_out_of_band [*message_out_of_band]]]
- [Process out-of-band data. ]
- ]
+[*Header: ][^boost/asio/ip/basic_resolver_query.hpp]
 
- [
- [[link boost_asio.reference.basic_socket_acceptor.message_peek [*message_peek]]]
- [Peek at incoming data without removing it from the input queue. ]
- ]
+[*Convenience header: ][^boost/asio.hpp]
 
-]
 
-[heading Protected Data Members]
-[table
- [[Name][Description]]
+[endsect]
 
- [
- [[link boost_asio.reference.basic_socket_acceptor.implementation [*implementation]]]
- [(Deprecated: Use get_implementation().) The underlying implementation of the I/O object. ]
- ]
 
- [
- [[link boost_asio.reference.basic_socket_acceptor.service [*service]]]
- [(Deprecated: Use get_service().) The service associated with the I/O object. ]
- ]
 
-]
+[section:hints ip::basic_resolver_query::hints]
 
-The [link boost_asio.reference.basic_socket_acceptor `basic_socket_acceptor`] class template is used for accepting new socket connections.
+[indexterm2 hints..ip::basic_resolver_query]
+Get the hints associated with the query.
 
 
-[heading Thread Safety]
-
-[*Distinct] [*objects:] Safe.
+ const boost::asio::detail::addrinfo_type & hints() const;
 
-[*Shared] [*objects:] Unsafe.
 
 
-[heading Example]
-
-Opening a socket acceptor with the SO\_REUSEADDR option enabled:
+[endsect]
 
- boost::asio::ip::tcp::acceptor acceptor(io_service);
- boost::asio::ip::tcp::endpoint endpoint(boost::asio::ip::tcp::v4(), port);
- acceptor.open(endpoint.protocol());
- acceptor.set_option(boost::asio::ip::tcp::acceptor::reuse_address(true));
- acceptor.bind(endpoint);
- acceptor.listen();
 
 
+[section:host_name ip::basic_resolver_query::host_name]
 
+[indexterm2 host_name..ip::basic_resolver_query]
+Get the host name associated with the query.
 
 
+ std::string host_name() const;
 
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/ip/tcp.hpp]
+[endsect]
+
+
+
+[section:numeric_host ip::basic_resolver_query::numeric_host]
+
+
+['Inherited from ip::resolver_query_base.]
+
+[indexterm2 numeric_host..ip::basic_resolver_query]
+Host name should be treated as a numeric string defining an IPv4 or IPv6 address and no name resolution should be attempted.
+
+
+ static const flags numeric_host = implementation_defined;
+
+
+
+[endsect]
+
+
+
+[section:numeric_service ip::basic_resolver_query::numeric_service]
+
+
+['Inherited from ip::resolver_query_base.]
+
+[indexterm2 numeric_service..ip::basic_resolver_query]
+Service name should be treated as a numeric string defining a port number and no name resolution should be attempted.
+
+
+ static const flags numeric_service = implementation_defined;
+
+
+
+[endsect]
+
+
+
+[section:passive ip::basic_resolver_query::passive]
+
+
+['Inherited from ip::resolver_query_base.]
+
+[indexterm2 passive..ip::basic_resolver_query]
+Indicate that returned endpoint is intended for use as a locally bound socket endpoint.
+
+
+ static const flags passive = implementation_defined;
+
+
+
+[endsect]
+
+
+
+[section:protocol_type ip::basic_resolver_query::protocol_type]
+
+[indexterm2 protocol_type..ip::basic_resolver_query]
+The protocol type associated with the endpoint query.
+
+
+ typedef InternetProtocol protocol_type;
+
+
+
+[heading Requirements]
+
+[*Header: ][^boost/asio/ip/basic_resolver_query.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -62745,13 +61659,198 @@
 
 
 
-[section:endpoint ip::tcp::endpoint]
+[section:service_name ip::basic_resolver_query::service_name]
 
-[indexterm2 endpoint..ip::tcp]
-The type of a TCP endpoint.
+[indexterm2 service_name..ip::basic_resolver_query]
+Get the service name associated with the query.
 
 
- typedef basic_endpoint< tcp > endpoint;
+ std::string service_name() const;
+
+
+
+[endsect]
+
+
+
+[section:v4_mapped ip::basic_resolver_query::v4_mapped]
+
+
+['Inherited from ip::resolver_query_base.]
+
+[indexterm2 v4_mapped..ip::basic_resolver_query]
+If the query protocol family is specified as IPv6, return IPv4-mapped IPv6 addresses on finding no IPv6 addresses.
+
+
+ static const flags v4_mapped = implementation_defined;
+
+
+
+[endsect]
+
+
+
+[endsect]
+
+[section:ip__host_name ip::host_name]
+
+[indexterm1 ip::host_name]
+Get the current host name.
+
+
+ std::string ``[link boost_asio.reference.ip__host_name.overload1 host_name]``();
+ `` [''''&raquo;''' [link boost_asio.reference.ip__host_name.overload1 more...]]``
+
+ std::string ``[link boost_asio.reference.ip__host_name.overload2 host_name]``(
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.ip__host_name.overload2 more...]]``
+
+[heading Requirements]
+
+[*Header: ][^boost/asio/ip/host_name.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
+
+
+[section:overload1 ip::host_name (1 of 2 overloads)]
+
+
+Get the current host name.
+
+
+ std::string host_name();
+
+
+
+[endsect]
+
+
+
+[section:overload2 ip::host_name (2 of 2 overloads)]
+
+
+Get the current host name.
+
+
+ std::string host_name(
+ boost::system::error_code & ec);
+
+
+
+[endsect]
+
+
+[endsect]
+
+[section:ip__icmp ip::icmp]
+
+
+Encapsulates the flags needed for ICMP.
+
+
+ class icmp
+
+
+[heading Types]
+[table
+ [[Name][Description]]
+
+ [
+
+ [[link boost_asio.reference.ip__icmp.endpoint [*endpoint]]]
+ [The type of a ICMP endpoint. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.ip__icmp.resolver [*resolver]]]
+ [The ICMP resolver type. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.ip__icmp.socket [*socket]]]
+ [The ICMP socket type. ]
+
+ ]
+
+]
+
+[heading Member Functions]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.ip__icmp.family [*family]]]
+ [Obtain an identifier for the protocol family. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__icmp.protocol [*protocol]]]
+ [Obtain an identifier for the protocol. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__icmp.type [*type]]]
+ [Obtain an identifier for the type of the protocol. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__icmp.v4 [*v4]]]
+ [Construct to represent the IPv4 ICMP protocol. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__icmp.v6 [*v6]]]
+ [Construct to represent the IPv6 ICMP protocol. ]
+ ]
+
+]
+
+[heading Friends]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.ip__icmp.operator_not__eq_ [*operator!=]]]
+ [Compare two protocols for inequality. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__icmp.operator_eq__eq_ [*operator==]]]
+ [Compare two protocols for equality. ]
+ ]
+
+]
+
+The [link boost_asio.reference.ip__icmp `ip::icmp`] class contains flags necessary for ICMP sockets.
+
+
+[heading Thread Safety]
+
+[*Distinct] [*objects:] Safe.
+
+[*Shared] [*objects:] Safe.
+
+
+
+
+[heading Requirements]
+
+[*Header: ][^boost/asio/ip/icmp.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
+
+
+[section:endpoint ip::icmp::endpoint]
+
+[indexterm2 endpoint..ip::icmp]
+The type of a ICMP endpoint.
+
+
+ typedef basic_endpoint< icmp > endpoint;
 
 
 [heading Types]
@@ -62897,7 +61996,7 @@
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/ip/tcp.hpp]
+[*Header: ][^boost/asio/ip/icmp.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -62906,9 +62005,9 @@
 
 
 
-[section:family ip::tcp::family]
+[section:family ip::icmp::family]
 
-[indexterm2 family..ip::tcp]
+[indexterm2 family..ip::icmp]
 Obtain an identifier for the protocol family.
 
 
@@ -62920,166 +62019,20 @@
 
 
 
-[section:iostream ip::tcp::iostream]
-
-[indexterm2 iostream..ip::tcp]
-The TCP iostream type.
-
-
- typedef basic_socket_iostream< tcp > iostream;
-
-
-[heading Types]
-[table
- [[Name][Description]]
-
- [
-
- [[link boost_asio.reference.basic_socket_iostream.duration_type [*duration_type]]]
- [The duration type. ]
-
- ]
-
- [
-
- [[link boost_asio.reference.basic_socket_iostream.endpoint_type [*endpoint_type]]]
- [The endpoint type. ]
-
- ]
-
- [
-
- [[link boost_asio.reference.basic_socket_iostream.time_type [*time_type]]]
- [The time type. ]
-
- ]
-
-]
-
-[heading Member Functions]
-[table
- [[Name][Description]]
-
- [
- [[link boost_asio.reference.basic_socket_iostream.basic_socket_iostream [*basic_socket_iostream]]]
- [Construct a basic_socket_iostream without establishing a connection.
-
- Establish a connection to an endpoint corresponding to a resolver query. ]
- ]
-
- [
- [[link boost_asio.reference.basic_socket_iostream.close [*close]]]
- [Close the connection. ]
- ]
-
- [
- [[link boost_asio.reference.basic_socket_iostream.connect [*connect]]]
- [Establish a connection to an endpoint corresponding to a resolver query. ]
- ]
-
- [
- [[link boost_asio.reference.basic_socket_iostream.error [*error]]]
- [Get the last error associated with the stream. ]
- ]
-
- [
- [[link boost_asio.reference.basic_socket_iostream.expires_at [*expires_at]]]
- [Get the stream's expiry time as an absolute time.
-
- Set the stream's expiry time as an absolute time. ]
- ]
-
- [
- [[link boost_asio.reference.basic_socket_iostream.expires_from_now [*expires_from_now]]]
- [Get the timer's expiry time relative to now.
-
- Set the stream's expiry time relative to now. ]
- ]
-
- [
- [[link boost_asio.reference.basic_socket_iostream.rdbuf [*rdbuf]]]
- [Return a pointer to the underlying streambuf. ]
- ]
-
-]
-
-
-[heading Requirements]
-
-[*Header: ][^boost/asio/ip/tcp.hpp]
-
-[*Convenience header: ][^boost/asio.hpp]
-
-
-[endsect]
-
-
-
-[section:no_delay ip::tcp::no_delay]
-
-[indexterm2 no_delay..ip::tcp]
-Socket option for disabling the Nagle algorithm.
-
-
- typedef implementation_defined no_delay;
-
-
-
-Implements the IPPROTO\_TCP/TCP\_NODELAY socket option.
-
-
-[heading Examples]
-
-Setting the option:
-
- boost::asio::ip::tcp::socket socket(io_service);
- ...
- boost::asio::ip::tcp::no_delay option(true);
- socket.set_option(option);
-
-
-
-
-
-Getting the current option value:
-
- boost::asio::ip::tcp::socket socket(io_service);
- ...
- boost::asio::ip::tcp::no_delay option;
- socket.get_option(option);
- bool is_set = option.value();
-
-
-
-
-
-
-
-[heading Requirements]
-
-[*Header: ][^boost/asio/ip/tcp.hpp]
-
-[*Convenience header: ][^boost/asio.hpp]
-
-
-[endsect]
-
-
-
-[section:operator_not__eq_ ip::tcp::operator!=]
+[section:operator_not__eq_ ip::icmp::operator!=]
 
-[indexterm2 operator!=..ip::tcp]
+[indexterm2 operator!=..ip::icmp]
 Compare two protocols for inequality.
 
 
   friend bool operator!=(
- const tcp & p1,
- const tcp & p2);
+ const icmp & p1,
+ const icmp & p2);
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/ip/tcp.hpp]
+[*Header: ][^boost/asio/ip/icmp.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -63088,20 +62041,20 @@
 
 
 
-[section:operator_eq__eq_ ip::tcp::operator==]
+[section:operator_eq__eq_ ip::icmp::operator==]
 
-[indexterm2 operator==..ip::tcp]
+[indexterm2 operator==..ip::icmp]
 Compare two protocols for equality.
 
 
   friend bool operator==(
- const tcp & p1,
- const tcp & p2);
+ const icmp & p1,
+ const icmp & p2);
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/ip/tcp.hpp]
+[*Header: ][^boost/asio/ip/icmp.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -63110,9 +62063,9 @@
 
 
 
-[section:protocol ip::tcp::protocol]
+[section:protocol ip::icmp::protocol]
 
-[indexterm2 protocol..ip::tcp]
+[indexterm2 protocol..ip::icmp]
 Obtain an identifier for the protocol.
 
 
@@ -63124,13 +62077,13 @@
 
 
 
-[section:resolver ip::tcp::resolver]
+[section:resolver ip::icmp::resolver]
 
-[indexterm2 resolver..ip::tcp]
-The TCP resolver type.
+[indexterm2 resolver..ip::icmp]
+The ICMP resolver type.
 
 
- typedef basic_resolver< tcp > resolver;
+ typedef basic_resolver< icmp > resolver;
 
 
 [heading Types]
@@ -63262,7 +62215,7 @@
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/ip/tcp.hpp]
+[*Header: ][^boost/asio/ip/icmp.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -63271,13 +62224,13 @@
 
 
 
-[section:socket ip::tcp::socket]
+[section:socket ip::icmp::socket]
 
-[indexterm2 socket..ip::tcp]
-The TCP socket type.
+[indexterm2 socket..ip::icmp]
+The ICMP socket type.
 
 
- typedef basic_stream_socket< tcp > socket;
+ typedef basic_raw_socket< icmp > socket;
 
 
 [heading Types]
@@ -63286,154 +62239,154 @@
 
   [
 
- [[link boost_asio.reference.basic_stream_socket.broadcast [*broadcast]]]
+ [[link boost_asio.reference.basic_raw_socket.broadcast [*broadcast]]]
     [Socket option to permit sending of broadcast messages. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.basic_stream_socket.bytes_readable [*bytes_readable]]]
+ [[link boost_asio.reference.basic_raw_socket.bytes_readable [*bytes_readable]]]
     [IO control command to get the amount of data that can be read without blocking. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.basic_stream_socket.debug [*debug]]]
+ [[link boost_asio.reference.basic_raw_socket.debug [*debug]]]
     [Socket option to enable socket-level debugging. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.basic_stream_socket.do_not_route [*do_not_route]]]
+ [[link boost_asio.reference.basic_raw_socket.do_not_route [*do_not_route]]]
     [Socket option to prevent routing, use local interfaces only. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.basic_stream_socket.enable_connection_aborted [*enable_connection_aborted]]]
+ [[link boost_asio.reference.basic_raw_socket.enable_connection_aborted [*enable_connection_aborted]]]
     [Socket option to report aborted connections on accept. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.basic_stream_socket.endpoint_type [*endpoint_type]]]
+ [[link boost_asio.reference.basic_raw_socket.endpoint_type [*endpoint_type]]]
     [The endpoint type. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.basic_stream_socket.implementation_type [*implementation_type]]]
+ [[link boost_asio.reference.basic_raw_socket.implementation_type [*implementation_type]]]
     [The underlying implementation type of I/O object. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.basic_stream_socket.keep_alive [*keep_alive]]]
+ [[link boost_asio.reference.basic_raw_socket.keep_alive [*keep_alive]]]
     [Socket option to send keep-alives. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.basic_stream_socket.linger [*linger]]]
+ [[link boost_asio.reference.basic_raw_socket.linger [*linger]]]
     [Socket option to specify whether the socket lingers on close if unsent data is present. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.basic_stream_socket.lowest_layer_type [*lowest_layer_type]]]
+ [[link boost_asio.reference.basic_raw_socket.lowest_layer_type [*lowest_layer_type]]]
     [A basic_socket is always the lowest layer. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.basic_stream_socket.message_flags [*message_flags]]]
+ [[link boost_asio.reference.basic_raw_socket.message_flags [*message_flags]]]
     [Bitmask type for flags that can be passed to send and receive operations. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.basic_stream_socket.native_handle_type [*native_handle_type]]]
+ [[link boost_asio.reference.basic_raw_socket.native_handle_type [*native_handle_type]]]
     [The native representation of a socket. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.basic_stream_socket.native_type [*native_type]]]
+ [[link boost_asio.reference.basic_raw_socket.native_type [*native_type]]]
     [(Deprecated: Use native_handle_type.) The native representation of a socket. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.basic_stream_socket.non_blocking_io [*non_blocking_io]]]
+ [[link boost_asio.reference.basic_raw_socket.non_blocking_io [*non_blocking_io]]]
     [(Deprecated: Use non_blocking().) IO control command to set the blocking mode of the socket. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.basic_stream_socket.protocol_type [*protocol_type]]]
+ [[link boost_asio.reference.basic_raw_socket.protocol_type [*protocol_type]]]
     [The protocol type. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.basic_stream_socket.receive_buffer_size [*receive_buffer_size]]]
+ [[link boost_asio.reference.basic_raw_socket.receive_buffer_size [*receive_buffer_size]]]
     [Socket option for the receive buffer size of a socket. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.basic_stream_socket.receive_low_watermark [*receive_low_watermark]]]
+ [[link boost_asio.reference.basic_raw_socket.receive_low_watermark [*receive_low_watermark]]]
     [Socket option for the receive low watermark. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.basic_stream_socket.reuse_address [*reuse_address]]]
+ [[link boost_asio.reference.basic_raw_socket.reuse_address [*reuse_address]]]
     [Socket option to allow the socket to be bound to an address that is already in use. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.basic_stream_socket.send_buffer_size [*send_buffer_size]]]
+ [[link boost_asio.reference.basic_raw_socket.send_buffer_size [*send_buffer_size]]]
     [Socket option for the send buffer size of a socket. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.basic_stream_socket.send_low_watermark [*send_low_watermark]]]
+ [[link boost_asio.reference.basic_raw_socket.send_low_watermark [*send_low_watermark]]]
     [Socket option for the send low watermark. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.basic_stream_socket.service_type [*service_type]]]
+ [[link boost_asio.reference.basic_raw_socket.service_type [*service_type]]]
     [The type of the service that will be used to provide I/O operations. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.basic_stream_socket.shutdown_type [*shutdown_type]]]
+ [[link boost_asio.reference.basic_raw_socket.shutdown_type [*shutdown_type]]]
     [Different ways a socket may be shutdown. ]
   
   ]
@@ -63445,179 +62398,177 @@
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.basic_stream_socket.assign [*assign]]]
+ [[link boost_asio.reference.basic_raw_socket.assign [*assign]]]
     [Assign an existing native socket to the socket. ]
   ]
   
   [
- [[link boost_asio.reference.basic_stream_socket.async_connect [*async_connect]]]
+ [[link boost_asio.reference.basic_raw_socket.async_connect [*async_connect]]]
     [Start an asynchronous connect. ]
   ]
   
   [
- [[link boost_asio.reference.basic_stream_socket.async_read_some [*async_read_some]]]
- [Start an asynchronous read. ]
+ [[link boost_asio.reference.basic_raw_socket.async_receive [*async_receive]]]
+ [Start an asynchronous receive on a connected socket. ]
   ]
   
   [
- [[link boost_asio.reference.basic_stream_socket.async_receive [*async_receive]]]
+ [[link boost_asio.reference.basic_raw_socket.async_receive_from [*async_receive_from]]]
     [Start an asynchronous receive. ]
   ]
   
   [
- [[link boost_asio.reference.basic_stream_socket.async_send [*async_send]]]
- [Start an asynchronous send. ]
+ [[link boost_asio.reference.basic_raw_socket.async_send [*async_send]]]
+ [Start an asynchronous send on a connected socket. ]
   ]
   
   [
- [[link boost_asio.reference.basic_stream_socket.async_write_some [*async_write_some]]]
- [Start an asynchronous write. ]
+ [[link boost_asio.reference.basic_raw_socket.async_send_to [*async_send_to]]]
+ [Start an asynchronous send. ]
   ]
   
   [
- [[link boost_asio.reference.basic_stream_socket.at_mark [*at_mark]]]
+ [[link boost_asio.reference.basic_raw_socket.at_mark [*at_mark]]]
     [Determine whether the socket is at the out-of-band data mark. ]
   ]
   
   [
- [[link boost_asio.reference.basic_stream_socket.available [*available]]]
+ [[link boost_asio.reference.basic_raw_socket.available [*available]]]
     [Determine the number of bytes available for reading. ]
   ]
   
   [
- [[link boost_asio.reference.basic_stream_socket.basic_stream_socket [*basic_stream_socket]]]
- [Construct a basic_stream_socket without opening it.
+ [[link boost_asio.reference.basic_raw_socket.basic_raw_socket [*basic_raw_socket]]]
+ [Construct a basic_raw_socket without opening it.
 
- Construct and open a basic_stream_socket.
+ Construct and open a basic_raw_socket.
 
- Construct a basic_stream_socket, opening it and binding it to the given local endpoint.
+ Construct a basic_raw_socket, opening it and binding it to the given local endpoint.
 
- Construct a basic_stream_socket on an existing native socket.
+ Construct a basic_raw_socket on an existing native socket.
 
- Move-construct a basic_stream_socket from another. ]
+ Move-construct a basic_raw_socket from another. ]
   ]
   
   [
- [[link boost_asio.reference.basic_stream_socket.bind [*bind]]]
+ [[link boost_asio.reference.basic_raw_socket.bind [*bind]]]
     [Bind the socket to the given local endpoint. ]
   ]
   
   [
- [[link boost_asio.reference.basic_stream_socket.cancel [*cancel]]]
+ [[link boost_asio.reference.basic_raw_socket.cancel [*cancel]]]
     [Cancel all asynchronous operations associated with the socket. ]
   ]
   
   [
- [[link boost_asio.reference.basic_stream_socket.close [*close]]]
+ [[link boost_asio.reference.basic_raw_socket.close [*close]]]
     [Close the socket. ]
   ]
   
   [
- [[link boost_asio.reference.basic_stream_socket.connect [*connect]]]
+ [[link boost_asio.reference.basic_raw_socket.connect [*connect]]]
     [Connect the socket to the specified endpoint. ]
   ]
   
   [
- [[link boost_asio.reference.basic_stream_socket.get_io_service [*get_io_service]]]
+ [[link boost_asio.reference.basic_raw_socket.get_io_service [*get_io_service]]]
     [Get the io_service associated with the object. ]
   ]
   
   [
- [[link boost_asio.reference.basic_stream_socket.get_option [*get_option]]]
+ [[link boost_asio.reference.basic_raw_socket.get_option [*get_option]]]
     [Get an option from the socket. ]
   ]
   
   [
- [[link boost_asio.reference.basic_stream_socket.io_control [*io_control]]]
+ [[link boost_asio.reference.basic_raw_socket.io_control [*io_control]]]
     [Perform an IO control command on the socket. ]
   ]
   
   [
- [[link boost_asio.reference.basic_stream_socket.is_open [*is_open]]]
+ [[link boost_asio.reference.basic_raw_socket.is_open [*is_open]]]
     [Determine whether the socket is open. ]
   ]
   
   [
- [[link boost_asio.reference.basic_stream_socket.local_endpoint [*local_endpoint]]]
+ [[link boost_asio.reference.basic_raw_socket.local_endpoint [*local_endpoint]]]
     [Get the local endpoint of the socket. ]
   ]
   
   [
- [[link boost_asio.reference.basic_stream_socket.lowest_layer [*lowest_layer]]]
+ [[link boost_asio.reference.basic_raw_socket.lowest_layer [*lowest_layer]]]
     [Get a reference to the lowest layer.
 
      Get a const reference to the lowest layer. ]
   ]
   
   [
- [[link boost_asio.reference.basic_stream_socket.native [*native]]]
+ [[link boost_asio.reference.basic_raw_socket.native [*native]]]
     [(Deprecated: Use native_handle().) Get the native socket representation. ]
   ]
   
   [
- [[link boost_asio.reference.basic_stream_socket.native_handle [*native_handle]]]
+ [[link boost_asio.reference.basic_raw_socket.native_handle [*native_handle]]]
     [Get the native socket representation. ]
   ]
   
   [
- [[link boost_asio.reference.basic_stream_socket.native_non_blocking [*native_non_blocking]]]
+ [[link boost_asio.reference.basic_raw_socket.native_non_blocking [*native_non_blocking]]]
     [Gets the non-blocking mode of the native socket implementation.
 
      Sets the non-blocking mode of the native socket implementation. ]
   ]
   
   [
- [[link boost_asio.reference.basic_stream_socket.non_blocking [*non_blocking]]]
+ [[link boost_asio.reference.basic_raw_socket.non_blocking [*non_blocking]]]
     [Gets the non-blocking mode of the socket.
 
      Sets the non-blocking mode of the socket. ]
   ]
   
   [
- [[link boost_asio.reference.basic_stream_socket.open [*open]]]
+ [[link boost_asio.reference.basic_raw_socket.open [*open]]]
     [Open the socket using the specified protocol. ]
   ]
   
   [
- [[link boost_asio.reference.basic_stream_socket.operator_eq_ [*operator=]]]
- [Move-assign a basic_stream_socket from another. ]
+ [[link boost_asio.reference.basic_raw_socket.operator_eq_ [*operator=]]]
+ [Move-assign a basic_raw_socket from another. ]
   ]
   
   [
- [[link boost_asio.reference.basic_stream_socket.read_some [*read_some]]]
- [Read some data from the socket. ]
+ [[link boost_asio.reference.basic_raw_socket.receive [*receive]]]
+ [Receive some data on a connected socket. ]
   ]
   
   [
- [[link boost_asio.reference.basic_stream_socket.receive [*receive]]]
- [Receive some data on the socket.
-
- Receive some data on a connected socket. ]
+ [[link boost_asio.reference.basic_raw_socket.receive_from [*receive_from]]]
+ [Receive raw data with the endpoint of the sender. ]
   ]
   
   [
- [[link boost_asio.reference.basic_stream_socket.remote_endpoint [*remote_endpoint]]]
+ [[link boost_asio.reference.basic_raw_socket.remote_endpoint [*remote_endpoint]]]
     [Get the remote endpoint of the socket. ]
   ]
   
   [
- [[link boost_asio.reference.basic_stream_socket.send [*send]]]
- [Send some data on the socket. ]
+ [[link boost_asio.reference.basic_raw_socket.send [*send]]]
+ [Send some data on a connected socket. ]
   ]
   
   [
- [[link boost_asio.reference.basic_stream_socket.set_option [*set_option]]]
- [Set an option on the socket. ]
+ [[link boost_asio.reference.basic_raw_socket.send_to [*send_to]]]
+ [Send raw data to the specified endpoint. ]
   ]
   
   [
- [[link boost_asio.reference.basic_stream_socket.shutdown [*shutdown]]]
- [Disable sends or receives on the socket. ]
+ [[link boost_asio.reference.basic_raw_socket.set_option [*set_option]]]
+ [Set an option on the socket. ]
   ]
   
   [
- [[link boost_asio.reference.basic_stream_socket.write_some [*write_some]]]
- [Write some data to the socket. ]
+ [[link boost_asio.reference.basic_raw_socket.shutdown [*shutdown]]]
+ [Disable sends or receives on the socket. ]
   ]
   
 ]
@@ -63627,12 +62578,12 @@
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.basic_stream_socket.get_implementation [*get_implementation]]]
+ [[link boost_asio.reference.basic_raw_socket.get_implementation [*get_implementation]]]
     [Get the underlying implementation of the I/O object. ]
   ]
   
   [
- [[link boost_asio.reference.basic_stream_socket.get_service [*get_service]]]
+ [[link boost_asio.reference.basic_raw_socket.get_service [*get_service]]]
     [Get the service associated with the I/O object. ]
   ]
   
@@ -63643,27 +62594,27 @@
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.basic_stream_socket.max_connections [*max_connections]]]
+ [[link boost_asio.reference.basic_raw_socket.max_connections [*max_connections]]]
     [The maximum length of the queue of pending incoming connections. ]
   ]
 
   [
- [[link boost_asio.reference.basic_stream_socket.message_do_not_route [*message_do_not_route]]]
+ [[link boost_asio.reference.basic_raw_socket.message_do_not_route [*message_do_not_route]]]
     [Specify that the data should not be subject to routing. ]
   ]
 
   [
- [[link boost_asio.reference.basic_stream_socket.message_end_of_record [*message_end_of_record]]]
+ [[link boost_asio.reference.basic_raw_socket.message_end_of_record [*message_end_of_record]]]
     [Specifies that the data marks the end of a record. ]
   ]
 
   [
- [[link boost_asio.reference.basic_stream_socket.message_out_of_band [*message_out_of_band]]]
+ [[link boost_asio.reference.basic_raw_socket.message_out_of_band [*message_out_of_band]]]
     [Process out-of-band data. ]
   ]
 
   [
- [[link boost_asio.reference.basic_stream_socket.message_peek [*message_peek]]]
+ [[link boost_asio.reference.basic_raw_socket.message_peek [*message_peek]]]
     [Peek at incoming data without removing it from the input queue. ]
   ]
 
@@ -63674,33 +62625,32 @@
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.basic_stream_socket.implementation [*implementation]]]
+ [[link boost_asio.reference.basic_raw_socket.implementation [*implementation]]]
     [(Deprecated: Use get_implementation().) The underlying implementation of the I/O object. ]
   ]
 
   [
- [[link boost_asio.reference.basic_stream_socket.service [*service]]]
+ [[link boost_asio.reference.basic_raw_socket.service [*service]]]
     [(Deprecated: Use get_service().) The service associated with the I/O object. ]
   ]
 
 ]
 
-The [link boost_asio.reference.basic_stream_socket `basic_stream_socket`] class template provides asynchronous and blocking stream-oriented socket functionality.
+The [link boost_asio.reference.basic_raw_socket `basic_raw_socket`] class template provides asynchronous and blocking raw-oriented socket functionality.
 
 
 [heading Thread Safety]
   
 [*Distinct] [*objects:] Safe.
 
-[*Shared] [*objects:] Unsafe.
-
+[*Shared] [*objects:] Unsafe.
 
 
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/ip/tcp.hpp]
+[*Header: ][^boost/asio/ip/icmp.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -63709,9 +62659,9 @@
 
 
 
-[section:type ip::tcp::type]
+[section:type ip::icmp::type]
 
-[indexterm2 type..ip::tcp]
+[indexterm2 type..ip::icmp]
 Obtain an identifier for the type of the protocol.
 
 
@@ -63723,13 +62673,13 @@
 
 
 
-[section:v4 ip::tcp::v4]
+[section:v4 ip::icmp::v4]
 
-[indexterm2 v4..ip::tcp]
-Construct to represent the IPv4 TCP protocol.
+[indexterm2 v4..ip::icmp]
+Construct to represent the IPv4 ICMP protocol.
 
 
- static tcp v4();
+ static icmp v4();
 
 
 
@@ -63737,13 +62687,13 @@
 
 
 
-[section:v6 ip::tcp::v6]
+[section:v6 ip::icmp::v6]
 
-[indexterm2 v6..ip::tcp]
-Construct to represent the IPv6 TCP protocol.
+[indexterm2 v6..ip::icmp]
+Construct to represent the IPv6 ICMP protocol.
 
 
- static tcp v6();
+ static icmp v6();
 
 
 
@@ -63753,253 +62703,134 @@
 
 [endsect]
 
-[section:ip__udp ip::udp]
-
 
-Encapsulates the flags needed for UDP.
+[section:ip__multicast__enable_loopback ip::multicast::enable_loopback]
 
+[indexterm1 ip::multicast::enable_loopback]
+Socket option determining whether outgoing multicast packets will be received on the same socket if it is a member of the multicast group.
 
- class udp
 
+ typedef implementation_defined enable_loopback;
 
-[heading Types]
-[table
- [[Name][Description]]
 
- [
 
- [[link boost_asio.reference.ip__udp.endpoint [*endpoint]]]
- [The type of a UDP endpoint. ]
-
- ]
+Implements the IPPROTO\_IP/IP\_MULTICAST\_LOOP socket option.
 
- [
 
- [[link boost_asio.reference.ip__udp.resolver [*resolver]]]
- [The UDP resolver type. ]
+[heading Examples]
   
- ]
-
- [
+Setting the option:
 
- [[link boost_asio.reference.ip__udp.socket [*socket]]]
- [The UDP socket type. ]
-
- ]
+ boost::asio::ip::udp::socket socket(io_service);
+ ...
+ boost::asio::ip::multicast::enable_loopback option(true);
+ socket.set_option(option);
 
-]
 
-[heading Member Functions]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.ip__udp.family [*family]]]
- [Obtain an identifier for the protocol family. ]
- ]
-
- [
- [[link boost_asio.reference.ip__udp.protocol [*protocol]]]
- [Obtain an identifier for the protocol. ]
- ]
-
- [
- [[link boost_asio.reference.ip__udp.type [*type]]]
- [Obtain an identifier for the type of the protocol. ]
- ]
-
- [
- [[link boost_asio.reference.ip__udp.v4 [*v4]]]
- [Construct to represent the IPv4 UDP protocol. ]
- ]
-
- [
- [[link boost_asio.reference.ip__udp.v6 [*v6]]]
- [Construct to represent the IPv6 UDP protocol. ]
- ]
-
-]
 
-[heading Friends]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.ip__udp.operator_not__eq_ [*operator!=]]]
- [Compare two protocols for inequality. ]
- ]
-
- [
- [[link boost_asio.reference.ip__udp.operator_eq__eq_ [*operator==]]]
- [Compare two protocols for equality. ]
- ]
-
-]
+Getting the current option value:
 
-The [link boost_asio.reference.ip__udp `ip::udp`] class contains flags necessary for UDP sockets.
+ boost::asio::ip::udp::socket socket(io_service);
+ ...
+ boost::asio::ip::multicast::enable_loopback option;
+ socket.get_option(option);
+ bool is_set = option.value();
 
 
-[heading Thread Safety]
-
-[*Distinct] [*objects:] Safe.
 
-[*Shared] [*objects:] Safe.
 
 
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/ip/udp.hpp]
+[*Header: ][^boost/asio/ip/multicast.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
 
-[section:endpoint ip::udp::endpoint]
+[endsect]
 
-[indexterm2 endpoint..ip::udp]
-The type of a UDP endpoint.
 
 
- typedef basic_endpoint< udp > endpoint;
+[section:ip__multicast__hops ip::multicast::hops]
 
+[indexterm1 ip::multicast::hops]
+Socket option for time-to-live associated with outgoing multicast packets.
 
-[heading Types]
-[table
- [[Name][Description]]
 
- [
+ typedef implementation_defined hops;
 
- [[link boost_asio.reference.ip__basic_endpoint.data_type [*data_type]]]
- [The type of the endpoint structure. This type is dependent on the underlying implementation of the socket layer. ]
-
- ]
 
- [
 
- [[link boost_asio.reference.ip__basic_endpoint.protocol_type [*protocol_type]]]
- [The protocol type associated with the endpoint. ]
+Implements the IPPROTO\_IP/IP\_MULTICAST\_TTL socket option.
+
+
+[heading Examples]
   
- ]
+Setting the option:
 
-]
+ boost::asio::ip::udp::socket socket(io_service);
+ ...
+ boost::asio::ip::multicast::hops option(4);
+ socket.set_option(option);
 
-[heading Member Functions]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.ip__basic_endpoint.address [*address]]]
- [Get the IP address associated with the endpoint.
 
- Set the IP address associated with the endpoint. ]
- ]
-
- [
- [[link boost_asio.reference.ip__basic_endpoint.basic_endpoint [*basic_endpoint]]]
- [Default constructor.
 
- Construct an endpoint using a port number, specified in the host's byte order. The IP address will be the any address (i.e. INADDR_ANY or in6addr_any). This constructor would typically be used for accepting new connections.
 
- Construct an endpoint using a port number and an IP address. This constructor may be used for accepting connections on a specific interface or for making a connection to a remote endpoint.
+Getting the current option value:
 
- Copy constructor. ]
- ]
-
- [
- [[link boost_asio.reference.ip__basic_endpoint.capacity [*capacity]]]
- [Get the capacity of the endpoint in the native type. ]
- ]
-
- [
- [[link boost_asio.reference.ip__basic_endpoint.data [*data]]]
- [Get the underlying endpoint in the native type. ]
- ]
-
- [
- [[link boost_asio.reference.ip__basic_endpoint.operator_eq_ [*operator=]]]
- [Assign from another endpoint. ]
- ]
-
- [
- [[link boost_asio.reference.ip__basic_endpoint.port [*port]]]
- [Get the port associated with the endpoint. The port number is always in the host's byte order.
+ boost::asio::ip::udp::socket socket(io_service);
+ ...
+ boost::asio::ip::multicast::hops option;
+ socket.get_option(option);
+ int ttl = option.value();
 
- Set the port associated with the endpoint. The port number is always in the host's byte order. ]
- ]
-
- [
- [[link boost_asio.reference.ip__basic_endpoint.protocol [*protocol]]]
- [The protocol associated with the endpoint. ]
- ]
-
- [
- [[link boost_asio.reference.ip__basic_endpoint.resize [*resize]]]
- [Set the underlying size of the endpoint in the native type. ]
- ]
-
- [
- [[link boost_asio.reference.ip__basic_endpoint.size [*size]]]
- [Get the underlying size of the endpoint in the native type. ]
- ]
-
-]
 
-[heading Friends]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.ip__basic_endpoint.operator_not__eq_ [*operator!=]]]
- [Compare two endpoints for inequality. ]
- ]
-
- [
- [[link boost_asio.reference.ip__basic_endpoint.operator_lt_ [*operator<]]]
- [Compare endpoints for ordering. ]
- ]
-
- [
- [[link boost_asio.reference.ip__basic_endpoint.operator_lt__eq_ [*operator<=]]]
- [Compare endpoints for ordering. ]
- ]
-
- [
- [[link boost_asio.reference.ip__basic_endpoint.operator_eq__eq_ [*operator==]]]
- [Compare two endpoints for equality. ]
- ]
-
- [
- [[link boost_asio.reference.ip__basic_endpoint.operator_gt_ [*operator>]]]
- [Compare endpoints for ordering. ]
- ]
-
- [
- [[link boost_asio.reference.ip__basic_endpoint.operator_gt__eq_ [*operator>=]]]
- [Compare endpoints for ordering. ]
- ]
-
-]
 
-[heading Related Functions]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.ip__basic_endpoint.operator_lt__lt_ [*operator<<]]]
- [Output an endpoint as a string. ]
- ]
-
-]
 
-The [link boost_asio.reference.ip__basic_endpoint `ip::basic_endpoint`] class template describes an endpoint that may be associated with a particular socket.
 
+[heading Requirements]
 
-[heading Thread Safety]
+[*Header: ][^boost/asio/ip/multicast.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
+
+
+[endsect]
+
+
+
+[section:ip__multicast__join_group ip::multicast::join_group]
+
+[indexterm1 ip::multicast::join_group]
+Socket option to join a multicast group on a specified interface.
+
+
+ typedef implementation_defined join_group;
+
+
+
+Implements the IPPROTO\_IP/IP\_ADD\_MEMBERSHIP socket option.
+
+
+[heading Examples]
   
-[*Distinct] [*objects:] Safe.
+Setting the option to join a multicast group:
+
+ boost::asio::ip::udp::socket socket(io_service);
+ ...
+ boost::asio::ip::address multicast_address =
+ boost::asio::ip::address::from_string("225.0.0.1");
+ boost::asio::ip::multicast::join_group option(multicast_address);
+ socket.set_option(option);
+
 
-[*Shared] [*objects:] Unsafe.
 
 
 
@@ -64007,7 +62838,7 @@
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/ip/udp.hpp]
+[*Header: ][^boost/asio/ip/multicast.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -64016,34 +62847,39 @@
 
 
 
-[section:family ip::udp::family]
+[section:ip__multicast__leave_group ip::multicast::leave_group]
 
-[indexterm2 family..ip::udp]
-Obtain an identifier for the protocol family.
+[indexterm1 ip::multicast::leave_group]
+Socket option to leave a multicast group on a specified interface.
 
 
- int family() const;
+ typedef implementation_defined leave_group;
 
 
 
-[endsect]
+Implements the IPPROTO\_IP/IP\_DROP\_MEMBERSHIP socket option.
 
 
+[heading Examples]
+
+Setting the option to leave a multicast group:
+
+ boost::asio::ip::udp::socket socket(io_service);
+ ...
+ boost::asio::ip::address multicast_address =
+ boost::asio::ip::address::from_string("225.0.0.1");
+ boost::asio::ip::multicast::leave_group option(multicast_address);
+ socket.set_option(option);
+
 
-[section:operator_not__eq_ ip::udp::operator!=]
 
-[indexterm2 operator!=..ip::udp]
-Compare two protocols for inequality.
 
 
- friend bool operator!=(
- const udp & p1,
- const udp & p2);
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/ip/udp.hpp]
+[*Header: ][^boost/asio/ip/multicast.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -64052,49 +62888,53 @@
 
 
 
-[section:operator_eq__eq_ ip::udp::operator==]
+[section:ip__multicast__outbound_interface ip::multicast::outbound_interface]
 
-[indexterm2 operator==..ip::udp]
-Compare two protocols for equality.
+[indexterm1 ip::multicast::outbound_interface]
+Socket option for local interface to use for outgoing multicast packets.
 
 
- friend bool operator==(
- const udp & p1,
- const udp & p2);
+ typedef implementation_defined outbound_interface;
 
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/ip/udp.hpp]
+Implements the IPPROTO\_IP/IP\_MULTICAST\_IF socket option.
 
-[*Convenience header: ][^boost/asio.hpp]
 
+[heading Examples]
+
+Setting the option:
 
-[endsect]
+ boost::asio::ip::udp::socket socket(io_service);
+ ...
+ boost::asio::ip::address_v4 local_interface =
+ boost::asio::ip::address_v4::from_string("1.2.3.4");
+ boost::asio::ip::multicast::outbound_interface option(local_interface);
+ socket.set_option(option);
 
 
 
-[section:protocol ip::udp::protocol]
 
-[indexterm2 protocol..ip::udp]
-Obtain an identifier for the protocol.
 
 
- int protocol() const;
 
+[heading Requirements]
+
+[*Header: ][^boost/asio/ip/multicast.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
+[section:ip__resolver_query_base ip::resolver_query_base]
 
-[section:resolver ip::udp::resolver]
 
-[indexterm2 resolver..ip::udp]
-The UDP resolver type.
+The [link boost_asio.reference.ip__resolver_query_base `ip::resolver_query_base`] class is used as a base for the [link boost_asio.reference.ip__basic_resolver_query `ip::basic_resolver_query`] class templates to provide a common place to define the flag constants.
 
 
- typedef basic_resolver< udp > resolver;
+ class resolver_query_base
 
 
 [heading Types]
@@ -64103,130 +62943,127 @@
 
   [
 
- [[link boost_asio.reference.ip__basic_resolver.endpoint_type [*endpoint_type]]]
- [The endpoint type. ]
+ [[link boost_asio.reference.ip__resolver_query_base.flags [*flags]]]
+ [A bitmask type (C++ Std \[lib.bitmask.types\]). ]
   
   ]
 
- [
+]
 
- [[link boost_asio.reference.ip__basic_resolver.implementation_type [*implementation_type]]]
- [The underlying implementation type of I/O object. ]
-
- ]
+[heading Protected Member Functions]
+[table
+ [[Name][Description]]
 
   [
-
- [[link boost_asio.reference.ip__basic_resolver.iterator [*iterator]]]
- [The iterator type. ]
-
+ [[link boost_asio.reference.ip__resolver_query_base._resolver_query_base [*~resolver_query_base]]]
+ [Protected destructor to prevent deletion through this type. ]
   ]
+
+]
 
- [
+[heading Data Members]
+[table
+ [[Name][Description]]
 
- [[link boost_asio.reference.ip__basic_resolver.protocol_type [*protocol_type]]]
- [The protocol type. ]
-
+ [
+ [[link boost_asio.reference.ip__resolver_query_base.address_configured [*address_configured]]]
+ [Only return IPv4 addresses if a non-loopback IPv4 address is configured for the system. Only return IPv6 addresses if a non-loopback IPv6 address is configured for the system. ]
   ]
 
   [
-
- [[link boost_asio.reference.ip__basic_resolver.query [*query]]]
- [The query type. ]
-
+ [[link boost_asio.reference.ip__resolver_query_base.all_matching [*all_matching]]]
+ [If used with v4_mapped, return all matching IPv6 and IPv4 addresses. ]
   ]
 
   [
+ [[link boost_asio.reference.ip__resolver_query_base.canonical_name [*canonical_name]]]
+ [Determine the canonical name of the host specified in the query. ]
+ ]
 
- [[link boost_asio.reference.ip__basic_resolver.service_type [*service_type]]]
- [The type of the service that will be used to provide I/O operations. ]
-
+ [
+ [[link boost_asio.reference.ip__resolver_query_base.numeric_host [*numeric_host]]]
+ [Host name should be treated as a numeric string defining an IPv4 or IPv6 address and no name resolution should be attempted. ]
   ]
 
-]
+ [
+ [[link boost_asio.reference.ip__resolver_query_base.numeric_service [*numeric_service]]]
+ [Service name should be treated as a numeric string defining a port number and no name resolution should be attempted. ]
+ ]
 
-[heading Member Functions]
-[table
- [[Name][Description]]
-
- [
- [[link boost_asio.reference.ip__basic_resolver.async_resolve [*async_resolve]]]
- [Asynchronously perform forward resolution of a query to a list of entries.
-
- Asynchronously perform reverse resolution of an endpoint to a list of entries. ]
- ]
-
- [
- [[link boost_asio.reference.ip__basic_resolver.basic_resolver [*basic_resolver]]]
- [Constructor. ]
- ]
-
   [
- [[link boost_asio.reference.ip__basic_resolver.cancel [*cancel]]]
- [Cancel any asynchronous operations that are waiting on the resolver. ]
+ [[link boost_asio.reference.ip__resolver_query_base.passive [*passive]]]
+ [Indicate that returned endpoint is intended for use as a locally bound socket endpoint. ]
   ]
-
+
   [
- [[link boost_asio.reference.ip__basic_resolver.get_io_service [*get_io_service]]]
- [Get the io_service associated with the object. ]
+ [[link boost_asio.reference.ip__resolver_query_base.v4_mapped [*v4_mapped]]]
+ [If the query protocol family is specified as IPv6, return IPv4-mapped IPv6 addresses on finding no IPv6 addresses. ]
   ]
-
- [
- [[link boost_asio.reference.ip__basic_resolver.resolve [*resolve]]]
- [Perform forward resolution of a query to a list of entries.
 
- Perform reverse resolution of an endpoint to a list of entries. ]
- ]
-
 ]
 
-[heading Protected Member Functions]
-[table
- [[Name][Description]]
+[heading Requirements]
 
- [
- [[link boost_asio.reference.ip__basic_resolver.get_implementation [*get_implementation]]]
- [Get the underlying implementation of the I/O object. ]
- ]
-
- [
- [[link boost_asio.reference.ip__basic_resolver.get_service [*get_service]]]
- [Get the service associated with the I/O object. ]
- ]
-
-]
+[*Header: ][^boost/asio/ip/resolver_query_base.hpp]
 
-[heading Protected Data Members]
-[table
- [[Name][Description]]
+[*Convenience header: ][^boost/asio.hpp]
 
- [
- [[link boost_asio.reference.ip__basic_resolver.implementation [*implementation]]]
- [(Deprecated: Use get_implementation().) The underlying implementation of the I/O object. ]
- ]
 
- [
- [[link boost_asio.reference.ip__basic_resolver.service [*service]]]
- [(Deprecated: Use get_service().) The service associated with the I/O object. ]
- ]
+[section:address_configured ip::resolver_query_base::address_configured]
 
-]
+[indexterm2 address_configured..ip::resolver_query_base]
+Only return IPv4 addresses if a non-loopback IPv4 address is configured for the system. Only return IPv6 addresses if a non-loopback IPv6 address is configured for the system.
 
-The [link boost_asio.reference.ip__basic_resolver `ip::basic_resolver`] class template provides the ability to resolve a query to a list of endpoints.
 
+ static const flags address_configured = implementation_defined;
 
-[heading Thread Safety]
-
-[*Distinct] [*objects:] Safe.
 
-[*Shared] [*objects:] Unsafe.
+
+[endsect]
+
+
+
+[section:all_matching ip::resolver_query_base::all_matching]
+
+[indexterm2 all_matching..ip::resolver_query_base]
+If used with v4\_mapped, return all matching IPv6 and IPv4 addresses.
+
+
+ static const flags all_matching = implementation_defined;
+
+
+
+[endsect]
+
+
+
+[section:canonical_name ip::resolver_query_base::canonical_name]
+
+[indexterm2 canonical_name..ip::resolver_query_base]
+Determine the canonical name of the host specified in the query.
+
+
+ static const flags canonical_name = implementation_defined;
+
+
+
+[endsect]
+
+
+
+[section:flags ip::resolver_query_base::flags]
+
+[indexterm2 flags..ip::resolver_query_base]
+A bitmask type (C++ Std [lib.bitmask.types]).
 
 
+ typedef unspecified flags;
+
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/ip/udp.hpp]
+[*Header: ][^boost/asio/ip/resolver_query_base.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -64235,367 +63072,172 @@
 
 
 
-[section:socket ip::udp::socket]
+[section:numeric_host ip::resolver_query_base::numeric_host]
 
-[indexterm2 socket..ip::udp]
-The UDP socket type.
+[indexterm2 numeric_host..ip::resolver_query_base]
+Host name should be treated as a numeric string defining an IPv4 or IPv6 address and no name resolution should be attempted.
 
 
- typedef basic_datagram_socket< udp > socket;
+ static const flags numeric_host = implementation_defined;
 
 
-[heading Types]
-[table
- [[Name][Description]]
 
- [
+[endsect]
 
- [[link boost_asio.reference.basic_datagram_socket.broadcast [*broadcast]]]
- [Socket option to permit sending of broadcast messages. ]
-
- ]
 
- [
 
- [[link boost_asio.reference.basic_datagram_socket.bytes_readable [*bytes_readable]]]
- [IO control command to get the amount of data that can be read without blocking. ]
-
- ]
+[section:numeric_service ip::resolver_query_base::numeric_service]
 
- [
+[indexterm2 numeric_service..ip::resolver_query_base]
+Service name should be treated as a numeric string defining a port number and no name resolution should be attempted.
 
- [[link boost_asio.reference.basic_datagram_socket.debug [*debug]]]
- [Socket option to enable socket-level debugging. ]
-
- ]
 
- [
+ static const flags numeric_service = implementation_defined;
 
- [[link boost_asio.reference.basic_datagram_socket.do_not_route [*do_not_route]]]
- [Socket option to prevent routing, use local interfaces only. ]
-
- ]
 
- [
 
- [[link boost_asio.reference.basic_datagram_socket.enable_connection_aborted [*enable_connection_aborted]]]
- [Socket option to report aborted connections on accept. ]
-
- ]
+[endsect]
 
- [
 
- [[link boost_asio.reference.basic_datagram_socket.endpoint_type [*endpoint_type]]]
- [The endpoint type. ]
-
- ]
 
- [
+[section:passive ip::resolver_query_base::passive]
 
- [[link boost_asio.reference.basic_datagram_socket.implementation_type [*implementation_type]]]
- [The underlying implementation type of I/O object. ]
-
- ]
+[indexterm2 passive..ip::resolver_query_base]
+Indicate that returned endpoint is intended for use as a locally bound socket endpoint.
 
- [
 
- [[link boost_asio.reference.basic_datagram_socket.keep_alive [*keep_alive]]]
- [Socket option to send keep-alives. ]
-
- ]
+ static const flags passive = implementation_defined;
 
- [
 
- [[link boost_asio.reference.basic_datagram_socket.linger [*linger]]]
- [Socket option to specify whether the socket lingers on close if unsent data is present. ]
-
- ]
 
- [
+[endsect]
 
- [[link boost_asio.reference.basic_datagram_socket.lowest_layer_type [*lowest_layer_type]]]
- [A basic_socket is always the lowest layer. ]
-
- ]
 
- [
 
- [[link boost_asio.reference.basic_datagram_socket.message_flags [*message_flags]]]
- [Bitmask type for flags that can be passed to send and receive operations. ]
-
- ]
+[section:v4_mapped ip::resolver_query_base::v4_mapped]
 
- [
+[indexterm2 v4_mapped..ip::resolver_query_base]
+If the query protocol family is specified as IPv6, return IPv4-mapped IPv6 addresses on finding no IPv6 addresses.
 
- [[link boost_asio.reference.basic_datagram_socket.native_handle_type [*native_handle_type]]]
- [The native representation of a socket. ]
-
- ]
 
- [
+ static const flags v4_mapped = implementation_defined;
 
- [[link boost_asio.reference.basic_datagram_socket.native_type [*native_type]]]
- [(Deprecated: Use native_handle_type.) The native representation of a socket. ]
-
- ]
 
- [
 
- [[link boost_asio.reference.basic_datagram_socket.non_blocking_io [*non_blocking_io]]]
- [(Deprecated: Use non_blocking().) IO control command to set the blocking mode of the socket. ]
-
- ]
+[endsect]
 
- [
 
- [[link boost_asio.reference.basic_datagram_socket.protocol_type [*protocol_type]]]
- [The protocol type. ]
-
- ]
 
- [
+[section:_resolver_query_base ip::resolver_query_base::~resolver_query_base]
 
- [[link boost_asio.reference.basic_datagram_socket.receive_buffer_size [*receive_buffer_size]]]
- [Socket option for the receive buffer size of a socket. ]
-
- ]
+[indexterm2 ~resolver_query_base..ip::resolver_query_base]
+Protected destructor to prevent deletion through this type.
 
- [
 
- [[link boost_asio.reference.basic_datagram_socket.receive_low_watermark [*receive_low_watermark]]]
- [Socket option for the receive low watermark. ]
-
- ]
+ ~resolver_query_base();
 
- [
 
- [[link boost_asio.reference.basic_datagram_socket.reuse_address [*reuse_address]]]
- [Socket option to allow the socket to be bound to an address that is already in use. ]
-
- ]
 
- [
+[endsect]
 
- [[link boost_asio.reference.basic_datagram_socket.send_buffer_size [*send_buffer_size]]]
- [Socket option for the send buffer size of a socket. ]
-
- ]
 
- [
 
- [[link boost_asio.reference.basic_datagram_socket.send_low_watermark [*send_low_watermark]]]
- [Socket option for the send low watermark. ]
-
- ]
+[endsect]
 
- [
+[section:ip__resolver_service ip::resolver_service]
 
- [[link boost_asio.reference.basic_datagram_socket.service_type [*service_type]]]
- [The type of the service that will be used to provide I/O operations. ]
-
- ]
 
- [
+Default service implementation for a resolver.
 
- [[link boost_asio.reference.basic_datagram_socket.shutdown_type [*shutdown_type]]]
- [Different ways a socket may be shutdown. ]
-
- ]
 
-]
+ template<
+ typename ``[link boost_asio.reference.InternetProtocol InternetProtocol]``>
+ class resolver_service :
+ public io_service::service
 
-[heading Member Functions]
+
+[heading Types]
 [table
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.basic_datagram_socket.assign [*assign]]]
- [Assign an existing native socket to the socket. ]
- ]
-
- [
- [[link boost_asio.reference.basic_datagram_socket.async_connect [*async_connect]]]
- [Start an asynchronous connect. ]
- ]
-
- [
- [[link boost_asio.reference.basic_datagram_socket.async_receive [*async_receive]]]
- [Start an asynchronous receive on a connected socket. ]
- ]
-
- [
- [[link boost_asio.reference.basic_datagram_socket.async_receive_from [*async_receive_from]]]
- [Start an asynchronous receive. ]
- ]
-
- [
- [[link boost_asio.reference.basic_datagram_socket.async_send [*async_send]]]
- [Start an asynchronous send on a connected socket. ]
- ]
-
- [
- [[link boost_asio.reference.basic_datagram_socket.async_send_to [*async_send_to]]]
- [Start an asynchronous send. ]
- ]
-
- [
- [[link boost_asio.reference.basic_datagram_socket.at_mark [*at_mark]]]
- [Determine whether the socket is at the out-of-band data mark. ]
- ]
-
- [
- [[link boost_asio.reference.basic_datagram_socket.available [*available]]]
- [Determine the number of bytes available for reading. ]
- ]
-
- [
- [[link boost_asio.reference.basic_datagram_socket.basic_datagram_socket [*basic_datagram_socket]]]
- [Construct a basic_datagram_socket without opening it.
-
- Construct and open a basic_datagram_socket.
-
- Construct a basic_datagram_socket, opening it and binding it to the given local endpoint.
-
- Construct a basic_datagram_socket on an existing native socket.
 
- Move-construct a basic_datagram_socket from another. ]
- ]
-
- [
- [[link boost_asio.reference.basic_datagram_socket.bind [*bind]]]
- [Bind the socket to the given local endpoint. ]
- ]
-
- [
- [[link boost_asio.reference.basic_datagram_socket.cancel [*cancel]]]
- [Cancel all asynchronous operations associated with the socket. ]
- ]
-
- [
- [[link boost_asio.reference.basic_datagram_socket.close [*close]]]
- [Close the socket. ]
- ]
-
- [
- [[link boost_asio.reference.basic_datagram_socket.connect [*connect]]]
- [Connect the socket to the specified endpoint. ]
- ]
-
- [
- [[link boost_asio.reference.basic_datagram_socket.get_io_service [*get_io_service]]]
- [Get the io_service associated with the object. ]
- ]
-
- [
- [[link boost_asio.reference.basic_datagram_socket.get_option [*get_option]]]
- [Get an option from the socket. ]
- ]
+ [[link boost_asio.reference.ip__resolver_service.endpoint_type [*endpoint_type]]]
+ [The endpoint type. ]
   
- [
- [[link boost_asio.reference.basic_datagram_socket.io_control [*io_control]]]
- [Perform an IO control command on the socket. ]
   ]
-
+
   [
- [[link boost_asio.reference.basic_datagram_socket.is_open [*is_open]]]
- [Determine whether the socket is open. ]
- ]
+
+ [[link boost_asio.reference.ip__resolver_service.implementation_type [*implementation_type]]]
+ [The type of a resolver implementation. ]
   
- [
- [[link boost_asio.reference.basic_datagram_socket.local_endpoint [*local_endpoint]]]
- [Get the local endpoint of the socket. ]
   ]
-
- [
- [[link boost_asio.reference.basic_datagram_socket.lowest_layer [*lowest_layer]]]
- [Get a reference to the lowest layer.
 
- Get a const reference to the lowest layer. ]
- ]
-
   [
- [[link boost_asio.reference.basic_datagram_socket.native [*native]]]
- [(Deprecated: Use native_handle().) Get the native socket representation. ]
- ]
+
+ [[link boost_asio.reference.ip__resolver_service.iterator_type [*iterator_type]]]
+ [The iterator type. ]
   
- [
- [[link boost_asio.reference.basic_datagram_socket.native_handle [*native_handle]]]
- [Get the native socket representation. ]
   ]
-
- [
- [[link boost_asio.reference.basic_datagram_socket.native_non_blocking [*native_non_blocking]]]
- [Gets the non-blocking mode of the native socket implementation.
 
- Sets the non-blocking mode of the native socket implementation. ]
- ]
-
   [
- [[link boost_asio.reference.basic_datagram_socket.non_blocking [*non_blocking]]]
- [Gets the non-blocking mode of the socket.
 
- Sets the non-blocking mode of the socket. ]
- ]
+ [[link boost_asio.reference.ip__resolver_service.protocol_type [*protocol_type]]]
+ [The protocol type. ]
   
- [
- [[link boost_asio.reference.basic_datagram_socket.open [*open]]]
- [Open the socket using the specified protocol. ]
   ]
-
+
   [
- [[link boost_asio.reference.basic_datagram_socket.operator_eq_ [*operator=]]]
- [Move-assign a basic_datagram_socket from another. ]
- ]
+
+ [[link boost_asio.reference.ip__resolver_service.query_type [*query_type]]]
+ [The query type. ]
   
- [
- [[link boost_asio.reference.basic_datagram_socket.receive [*receive]]]
- [Receive some data on a connected socket. ]
   ]
-
+
+]
+
+[heading Member Functions]
+[table
+ [[Name][Description]]
+
   [
- [[link boost_asio.reference.basic_datagram_socket.receive_from [*receive_from]]]
- [Receive a datagram with the endpoint of the sender. ]
+ [[link boost_asio.reference.ip__resolver_service.async_resolve [*async_resolve]]]
+ [Asynchronously resolve a query to a list of entries.
+
+ Asynchronously resolve an endpoint to a list of entries. ]
   ]
   
   [
- [[link boost_asio.reference.basic_datagram_socket.remote_endpoint [*remote_endpoint]]]
- [Get the remote endpoint of the socket. ]
+ [[link boost_asio.reference.ip__resolver_service.cancel [*cancel]]]
+ [Cancel pending asynchronous operations. ]
   ]
   
   [
- [[link boost_asio.reference.basic_datagram_socket.send [*send]]]
- [Send some data on a connected socket. ]
+ [[link boost_asio.reference.ip__resolver_service.construct [*construct]]]
+ [Construct a new resolver implementation. ]
   ]
   
   [
- [[link boost_asio.reference.basic_datagram_socket.send_to [*send_to]]]
- [Send a datagram to the specified endpoint. ]
+ [[link boost_asio.reference.ip__resolver_service.destroy [*destroy]]]
+ [Destroy a resolver implementation. ]
   ]
   
   [
- [[link boost_asio.reference.basic_datagram_socket.set_option [*set_option]]]
- [Set an option on the socket. ]
+ [[link boost_asio.reference.ip__resolver_service.get_io_service [*get_io_service]]]
+ [Get the io_service object that owns the service. ]
   ]
   
   [
- [[link boost_asio.reference.basic_datagram_socket.shutdown [*shutdown]]]
- [Disable sends or receives on the socket. ]
- ]
-
-]
-
-[heading Protected Member Functions]
-[table
- [[Name][Description]]
+ [[link boost_asio.reference.ip__resolver_service.resolve [*resolve]]]
+ [Resolve a query to a list of entries.
 
- [
- [[link boost_asio.reference.basic_datagram_socket.get_implementation [*get_implementation]]]
- [Get the underlying implementation of the I/O object. ]
+ Resolve an endpoint to a list of entries. ]
   ]
   
   [
- [[link boost_asio.reference.basic_datagram_socket.get_service [*get_service]]]
- [Get the service associated with the I/O object. ]
+ [[link boost_asio.reference.ip__resolver_service.resolver_service [*resolver_service]]]
+ [Construct a new resolver service for the specified io_service. ]
   ]
   
 ]
@@ -64605,106 +63247,93 @@
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.basic_datagram_socket.max_connections [*max_connections]]]
- [The maximum length of the queue of pending incoming connections. ]
- ]
-
- [
- [[link boost_asio.reference.basic_datagram_socket.message_do_not_route [*message_do_not_route]]]
- [Specify that the data should not be subject to routing. ]
- ]
-
- [
- [[link boost_asio.reference.basic_datagram_socket.message_end_of_record [*message_end_of_record]]]
- [Specifies that the data marks the end of a record. ]
- ]
-
- [
- [[link boost_asio.reference.basic_datagram_socket.message_out_of_band [*message_out_of_band]]]
- [Process out-of-band data. ]
- ]
-
- [
- [[link boost_asio.reference.basic_datagram_socket.message_peek [*message_peek]]]
- [Peek at incoming data without removing it from the input queue. ]
+ [[link boost_asio.reference.ip__resolver_service.id [*id]]]
+ [The unique service identifier. ]
   ]
 
 ]
 
-[heading Protected Data Members]
-[table
- [[Name][Description]]
-
- [
- [[link boost_asio.reference.basic_datagram_socket.implementation [*implementation]]]
- [(Deprecated: Use get_implementation().) The underlying implementation of the I/O object. ]
- ]
-
- [
- [[link boost_asio.reference.basic_datagram_socket.service [*service]]]
- [(Deprecated: Use get_service().) The service associated with the I/O object. ]
- ]
+[heading Requirements]
 
-]
+[*Header: ][^boost/asio/ip/resolver_service.hpp]
 
-The [link boost_asio.reference.basic_datagram_socket `basic_datagram_socket`] class template provides asynchronous and blocking datagram-oriented socket functionality.
+[*Convenience header: ][^boost/asio.hpp]
 
+[section:async_resolve ip::resolver_service::async_resolve]
 
-[heading Thread Safety]
-
-[*Distinct] [*objects:] Safe.
+[indexterm2 async_resolve..ip::resolver_service]
+Asynchronously resolve a query to a list of entries.
 
-[*Shared] [*objects:] Unsafe.
 
+ template<
+ typename ``[link boost_asio.reference.ResolveHandler ResolveHandler]``>
+ void ``[link boost_asio.reference.ip__resolver_service.async_resolve.overload1 async_resolve]``(
+ implementation_type & impl,
+ const query_type & query,
+ ResolveHandler handler);
+ `` [''''&raquo;''' [link boost_asio.reference.ip__resolver_service.async_resolve.overload1 more...]]``
 
 
+Asynchronously resolve an endpoint to a list of entries.
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/ip/udp.hpp]
+ template<
+ typename ``[link boost_asio.reference.ResolveHandler ResolveHandler]``>
+ void ``[link boost_asio.reference.ip__resolver_service.async_resolve.overload2 async_resolve]``(
+ implementation_type & impl,
+ const endpoint_type & endpoint,
+ ResolveHandler handler);
+ `` [''''&raquo;''' [link boost_asio.reference.ip__resolver_service.async_resolve.overload2 more...]]``
 
-[*Convenience header: ][^boost/asio.hpp]
 
+[section:overload1 ip::resolver_service::async_resolve (1 of 2 overloads)]
 
-[endsect]
 
+Asynchronously resolve a query to a list of entries.
 
 
-[section:type ip::udp::type]
+ template<
+ typename ``[link boost_asio.reference.ResolveHandler ResolveHandler]``>
+ void async_resolve(
+ implementation_type & impl,
+ const query_type & query,
+ ResolveHandler handler);
 
-[indexterm2 type..ip::udp]
-Obtain an identifier for the type of the protocol.
 
 
- int type() const;
+[endsect]
 
 
 
-[endsect]
+[section:overload2 ip::resolver_service::async_resolve (2 of 2 overloads)]
 
 
+Asynchronously resolve an endpoint to a list of entries.
 
-[section:v4 ip::udp::v4]
 
-[indexterm2 v4..ip::udp]
-Construct to represent the IPv4 UDP protocol.
+ template<
+ typename ``[link boost_asio.reference.ResolveHandler ResolveHandler]``>
+ void async_resolve(
+ implementation_type & impl,
+ const endpoint_type & endpoint,
+ ResolveHandler handler);
 
 
- static udp v4();
 
+[endsect]
 
 
 [endsect]
 
 
+[section:cancel ip::resolver_service::cancel]
 
-[section:v6 ip::udp::v6]
-
-[indexterm2 v6..ip::udp]
-Construct to represent the IPv6 UDP protocol.
+[indexterm2 cancel..ip::resolver_service]
+Cancel pending asynchronous operations.
 
 
- static udp v6();
+ void cancel(
+ implementation_type & impl);
 
 
 
@@ -64712,52 +63341,49 @@
 
 
 
-[endsect]
+[section:construct ip::resolver_service::construct]
 
+[indexterm2 construct..ip::resolver_service]
+Construct a new resolver implementation.
 
-[section:ip__unicast__hops ip::unicast::hops]
 
-[indexterm1 ip::unicast::hops]
-Socket option for time-to-live associated with outgoing unicast packets.
+ void construct(
+ implementation_type & impl);
 
 
- typedef implementation_defined hops;
 
+[endsect]
 
 
-Implements the IPPROTO\_IP/IP\_UNICAST\_TTL socket option.
 
+[section:destroy ip::resolver_service::destroy]
 
-[heading Examples]
-
-Setting the option:
+[indexterm2 destroy..ip::resolver_service]
+Destroy a resolver implementation.
 
- boost::asio::ip::udp::socket socket(io_service);
- ...
- boost::asio::ip::unicast::hops option(4);
- socket.set_option(option);
 
+ void destroy(
+ implementation_type & impl);
 
 
 
+[endsect]
 
-Getting the current option value:
 
- boost::asio::ip::udp::socket socket(io_service);
- ...
- boost::asio::ip::unicast::hops option;
- socket.get_option(option);
- int ttl = option.value();
 
+[section:endpoint_type ip::resolver_service::endpoint_type]
 
+[indexterm2 endpoint_type..ip::resolver_service]
+The endpoint type.
 
 
+ typedef InternetProtocol::endpoint endpoint_type;
 
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/ip/unicast.hpp]
+[*Header: ][^boost/asio/ip/resolver_service.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -64766,49 +63392,50 @@
 
 
 
-[section:ip__v6_only ip::v6_only]
+[section:get_io_service ip::resolver_service::get_io_service]
 
-[indexterm1 ip::v6_only]
-Socket option for determining whether an IPv6 socket supports IPv6 communication only.
 
+['Inherited from io_service.]
 
- typedef implementation_defined v6_only;
+[indexterm2 get_io_service..ip::resolver_service]
+Get the [link boost_asio.reference.io_service `io_service`] object that owns the service.
 
 
+ boost::asio::io_service & get_io_service();
 
-Implements the IPPROTO\_IPV6/IP\_V6ONLY socket option.
 
 
-[heading Examples]
-
-Setting the option:
+[endsect]
+
 
- boost::asio::ip::tcp::socket socket(io_service);
- ...
- boost::asio::ip::v6_only option(true);
- socket.set_option(option);
 
+[section:id ip::resolver_service::id]
 
+[indexterm2 id..ip::resolver_service]
+The unique service identifier.
 
 
+ static boost::asio::io_service::id id;
 
-Getting the current option value:
 
- boost::asio::ip::tcp::socket socket(io_service);
- ...
- boost::asio::ip::v6_only option;
- socket.get_option(option);
- bool v6_only = option.value();
 
+[endsect]
+
+
+
+[section:implementation_type ip::resolver_service::implementation_type]
 
+[indexterm2 implementation_type..ip::resolver_service]
+The type of a resolver implementation.
 
 
+ typedef implementation_defined implementation_type;
 
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/ip/v6_only.hpp]
+[*Header: ][^boost/asio/ip/resolver_service.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -64816,150 +63443,166 @@
 [endsect]
 
 
-[section:is_match_condition is_match_condition]
 
+[section:iterator_type ip::resolver_service::iterator_type]
 
-Type trait used to determine whether a type can be used as a match condition function with read\_until and async\_read\_until.
+[indexterm2 iterator_type..ip::resolver_service]
+The iterator type.
 
 
- template<
- typename T>
- struct is_match_condition
+ typedef basic_resolver_iterator< InternetProtocol > iterator_type;
 
 
-[heading Data Members]
+[heading Types]
 [table
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.is_match_condition.value [*value]]]
- [The value member is true if the type may be used as a match condition. ]
- ]
-
-]
-
-[heading Requirements]
-
-[*Header: ][^boost/asio/read_until.hpp]
-
-[*Convenience header: ][^boost/asio.hpp]
-
-
-[section:value is_match_condition::value]
-
-[indexterm2 value..is_match_condition]
-The value member is true if the type may be used as a match condition.
 
+ [[link boost_asio.reference.ip__basic_resolver_iterator.difference_type [*difference_type]]]
+ [The type used for the distance between two iterators. ]
+
+ ]
 
- static const bool value;
+ [
 
+ [[link boost_asio.reference.ip__basic_resolver_iterator.iterator_category [*iterator_category]]]
+ [The iterator category. ]
+
+ ]
 
+ [
 
-[endsect]
+ [[link boost_asio.reference.ip__basic_resolver_iterator.pointer [*pointer]]]
+ [The type of the result of applying operator->() to the iterator. ]
+
+ ]
 
+ [
 
+ [[link boost_asio.reference.ip__basic_resolver_iterator.reference [*reference]]]
+ [The type of the result of applying operator*() to the iterator. ]
+
+ ]
 
-[endsect]
+ [
 
-[section:is_read_buffered is_read_buffered]
+ [[link boost_asio.reference.ip__basic_resolver_iterator.value_type [*value_type]]]
+ [The type of the value pointed to by the iterator. ]
+
+ ]
 
+]
 
-The [link boost_asio.reference.is_read_buffered `is_read_buffered`] class is a traits class that may be used to determine whether a stream type supports buffering of read data.
+[heading Member Functions]
+[table
+ [[Name][Description]]
 
+ [
+ [[link boost_asio.reference.ip__basic_resolver_iterator.basic_resolver_iterator [*basic_resolver_iterator]]]
+ [Default constructor creates an end iterator. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__basic_resolver_iterator.create [*create]]]
+ [Create an iterator from an addrinfo list returned by getaddrinfo.
 
- template<
- typename Stream>
- class is_read_buffered
+ Create an iterator from an endpoint, host name and service name. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__basic_resolver_iterator.operator__star_ [*operator *]]]
+ [Dereference an iterator. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__basic_resolver_iterator.operator_plus__plus_ [*operator++]]]
+ [Increment operator (prefix).
 
+ Increment operator (postfix). ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__basic_resolver_iterator.operator_arrow_ [*operator->]]]
+ [Dereference an iterator. ]
+ ]
+
+]
 
-[heading Data Members]
+[heading Friends]
 [table
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.is_read_buffered.value [*value]]]
- [The value member is true only if the Stream type supports buffering of read data. ]
+ [[link boost_asio.reference.ip__basic_resolver_iterator.operator_not__eq_ [*operator!=]]]
+ [Test two iterators for inequality. ]
   ]
-
+
+ [
+ [[link boost_asio.reference.ip__basic_resolver_iterator.operator_eq__eq_ [*operator==]]]
+ [Test two iterators for equality. ]
+ ]
+
 ]
 
-[heading Requirements]
-
-[*Header: ][^boost/asio/is_read_buffered.hpp]
-
-[*Convenience header: ][^boost/asio.hpp]
-
-
-[section:value is_read_buffered::value]
+The [link boost_asio.reference.ip__basic_resolver_iterator `ip::basic_resolver_iterator`] class template is used to define iterators over the results returned by a resolver.
 
-[indexterm2 value..is_read_buffered]
-The value member is true only if the Stream type supports buffering of read data.
+The iterator's value\_type, obtained when the iterator is dereferenced, is:
 
+ const basic_resolver_entry<InternetProtocol>
 
- static const bool value;
 
 
 
-[endsect]
 
+[heading Thread Safety]
+
+[*Distinct] [*objects:] Safe.
 
+[*Shared] [*objects:] Unsafe.
 
-[endsect]
 
-[section:is_write_buffered is_write_buffered]
 
 
-The [link boost_asio.reference.is_write_buffered `is_write_buffered`] class is a traits class that may be used to determine whether a stream type supports buffering of written data.
+[heading Requirements]
 
+[*Header: ][^boost/asio/ip/resolver_service.hpp]
 
- template<
- typename Stream>
- class is_write_buffered
+[*Convenience header: ][^boost/asio.hpp]
 
 
-[heading Data Members]
-[table
- [[Name][Description]]
+[endsect]
 
- [
- [[link boost_asio.reference.is_write_buffered.value [*value]]]
- [The value member is true only if the Stream type supports buffering of written data. ]
- ]
 
-]
 
-[heading Requirements]
+[section:protocol_type ip::resolver_service::protocol_type]
 
-[*Header: ][^boost/asio/is_write_buffered.hpp]
+[indexterm2 protocol_type..ip::resolver_service]
+The protocol type.
 
-[*Convenience header: ][^boost/asio.hpp]
 
+ typedef InternetProtocol protocol_type;
 
-[section:value is_write_buffered::value]
 
-[indexterm2 value..is_write_buffered]
-The value member is true only if the Stream type supports buffering of written data.
 
+[heading Requirements]
 
- static const bool value;
+[*Header: ][^boost/asio/ip/resolver_service.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
 
-[endsect]
-
-[section:local__basic_endpoint local::basic_endpoint]
-
+[section:query_type ip::resolver_service::query_type]
 
-Describes an endpoint for a UNIX socket.
+[indexterm2 query_type..ip::resolver_service]
+The query type.
 
 
- template<
- typename ``[link boost_asio.reference.Protocol Protocol]``>
- class basic_endpoint
+ typedef basic_resolver_query< InternetProtocol > query_type;
 
 
 [heading Types]
@@ -64968,15 +63611,15 @@
 
   [
 
- [[link boost_asio.reference.local__basic_endpoint.data_type [*data_type]]]
- [The type of the endpoint structure. This type is dependent on the underlying implementation of the socket layer. ]
+ [[link boost_asio.reference.ip__basic_resolver_query.flags [*flags]]]
+ [A bitmask type (C++ Std \[lib.bitmask.types\]). ]
   
   ]
 
   [
 
- [[link boost_asio.reference.local__basic_endpoint.protocol_type [*protocol_type]]]
- [The protocol type associated with the endpoint. ]
+ [[link boost_asio.reference.ip__basic_resolver_query.protocol_type [*protocol_type]]]
+ [The protocol type associated with the endpoint query. ]
   
   ]
 
@@ -64987,155 +63630,129 @@
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.local__basic_endpoint.basic_endpoint [*basic_endpoint]]]
- [Default constructor.
+ [[link boost_asio.reference.ip__basic_resolver_query.basic_resolver_query [*basic_resolver_query]]]
+ [Construct with specified service name for any protocol.
 
- Construct an endpoint using the specified path name.
+ Construct with specified service name for a given protocol.
 
- Copy constructor. ]
- ]
-
- [
- [[link boost_asio.reference.local__basic_endpoint.capacity [*capacity]]]
- [Get the capacity of the endpoint in the native type. ]
- ]
-
- [
- [[link boost_asio.reference.local__basic_endpoint.data [*data]]]
- [Get the underlying endpoint in the native type. ]
- ]
-
- [
- [[link boost_asio.reference.local__basic_endpoint.operator_eq_ [*operator=]]]
- [Assign from another endpoint. ]
- ]
-
- [
- [[link boost_asio.reference.local__basic_endpoint.path [*path]]]
- [Get the path associated with the endpoint.
+ Construct with specified host name and service name for any protocol.
 
- Set the path associated with the endpoint. ]
+ Construct with specified host name and service name for a given protocol. ]
   ]
   
   [
- [[link boost_asio.reference.local__basic_endpoint.protocol [*protocol]]]
- [The protocol associated with the endpoint. ]
+ [[link boost_asio.reference.ip__basic_resolver_query.hints [*hints]]]
+ [Get the hints associated with the query. ]
   ]
   
   [
- [[link boost_asio.reference.local__basic_endpoint.resize [*resize]]]
- [Set the underlying size of the endpoint in the native type. ]
+ [[link boost_asio.reference.ip__basic_resolver_query.host_name [*host_name]]]
+ [Get the host name associated with the query. ]
   ]
   
   [
- [[link boost_asio.reference.local__basic_endpoint.size [*size]]]
- [Get the underlying size of the endpoint in the native type. ]
+ [[link boost_asio.reference.ip__basic_resolver_query.service_name [*service_name]]]
+ [Get the service name associated with the query. ]
   ]
   
 ]
 
-[heading Friends]
+[heading Data Members]
 [table
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.local__basic_endpoint.operator_not__eq_ [*operator!=]]]
- [Compare two endpoints for inequality. ]
+ [[link boost_asio.reference.ip__basic_resolver_query.address_configured [*address_configured]]]
+ [Only return IPv4 addresses if a non-loopback IPv4 address is configured for the system. Only return IPv6 addresses if a non-loopback IPv6 address is configured for the system. ]
   ]
-
+
   [
- [[link boost_asio.reference.local__basic_endpoint.operator_lt_ [*operator<]]]
- [Compare endpoints for ordering. ]
+ [[link boost_asio.reference.ip__basic_resolver_query.all_matching [*all_matching]]]
+ [If used with v4_mapped, return all matching IPv6 and IPv4 addresses. ]
   ]
-
+
   [
- [[link boost_asio.reference.local__basic_endpoint.operator_lt__eq_ [*operator<=]]]
- [Compare endpoints for ordering. ]
+ [[link boost_asio.reference.ip__basic_resolver_query.canonical_name [*canonical_name]]]
+ [Determine the canonical name of the host specified in the query. ]
   ]
-
+
   [
- [[link boost_asio.reference.local__basic_endpoint.operator_eq__eq_ [*operator==]]]
- [Compare two endpoints for equality. ]
+ [[link boost_asio.reference.ip__basic_resolver_query.numeric_host [*numeric_host]]]
+ [Host name should be treated as a numeric string defining an IPv4 or IPv6 address and no name resolution should be attempted. ]
   ]
-
+
   [
- [[link boost_asio.reference.local__basic_endpoint.operator_gt_ [*operator>]]]
- [Compare endpoints for ordering. ]
+ [[link boost_asio.reference.ip__basic_resolver_query.numeric_service [*numeric_service]]]
+ [Service name should be treated as a numeric string defining a port number and no name resolution should be attempted. ]
   ]
-
+
   [
- [[link boost_asio.reference.local__basic_endpoint.operator_gt__eq_ [*operator>=]]]
- [Compare endpoints for ordering. ]
+ [[link boost_asio.reference.ip__basic_resolver_query.passive [*passive]]]
+ [Indicate that returned endpoint is intended for use as a locally bound socket endpoint. ]
   ]
-
-]
-
-[heading Related Functions]
-[table
- [[Name][Description]]
 
   [
- [[link boost_asio.reference.local__basic_endpoint.operator_lt__lt_ [*operator<<]]]
- [Output an endpoint as a string. ]
+ [[link boost_asio.reference.ip__basic_resolver_query.v4_mapped [*v4_mapped]]]
+ [If the query protocol family is specified as IPv6, return IPv4-mapped IPv6 addresses on finding no IPv6 addresses. ]
   ]
-
+
 ]
 
-The [link boost_asio.reference.local__basic_endpoint `local::basic_endpoint`] class template describes an endpoint that may be associated with a particular UNIX socket.
+The [link boost_asio.reference.ip__basic_resolver_query `ip::basic_resolver_query`] class template describes a query that can be passed to a resolver.
 
 
 [heading Thread Safety]
   
 [*Distinct] [*objects:] Safe.
 
-[*Shared] [*objects:] Unsafe.
+[*Shared] [*objects:] Unsafe.
 
 
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/local/basic_endpoint.hpp]
+[*Header: ][^boost/asio/ip/resolver_service.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
-[section:basic_endpoint local::basic_endpoint::basic_endpoint]
-
-[indexterm2 basic_endpoint..local::basic_endpoint]
-Default constructor.
 
-
- ``[link boost_asio.reference.local__basic_endpoint.basic_endpoint.overload1 basic_endpoint]``();
- `` [''''&raquo;''' [link boost_asio.reference.local__basic_endpoint.basic_endpoint.overload1 more...]]``
+[endsect]
 
 
-Construct an endpoint using the specified path name.
+[section:resolve ip::resolver_service::resolve]
 
+[indexterm2 resolve..ip::resolver_service]
+Resolve a query to a list of entries.
 
- ``[link boost_asio.reference.local__basic_endpoint.basic_endpoint.overload2 basic_endpoint]``(
- const char * path_name);
- `` [''''&raquo;''' [link boost_asio.reference.local__basic_endpoint.basic_endpoint.overload2 more...]]``
 
- ``[link boost_asio.reference.local__basic_endpoint.basic_endpoint.overload3 basic_endpoint]``(
- const std::string & path_name);
- `` [''''&raquo;''' [link boost_asio.reference.local__basic_endpoint.basic_endpoint.overload3 more...]]``
+ iterator_type ``[link boost_asio.reference.ip__resolver_service.resolve.overload1 resolve]``(
+ implementation_type & impl,
+ const query_type & query,
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.ip__resolver_service.resolve.overload1 more...]]``
 
 
-Copy constructor.
+Resolve an endpoint to a list of entries.
 
 
- ``[link boost_asio.reference.local__basic_endpoint.basic_endpoint.overload4 basic_endpoint]``(
- const basic_endpoint & other);
- `` [''''&raquo;''' [link boost_asio.reference.local__basic_endpoint.basic_endpoint.overload4 more...]]``
+ iterator_type ``[link boost_asio.reference.ip__resolver_service.resolve.overload2 resolve]``(
+ implementation_type & impl,
+ const endpoint_type & endpoint,
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.ip__resolver_service.resolve.overload2 more...]]``
 
 
-[section:overload1 local::basic_endpoint::basic_endpoint (1 of 4 overloads)]
+[section:overload1 ip::resolver_service::resolve (1 of 2 overloads)]
 
 
-Default constructor.
+Resolve a query to a list of entries.
 
 
- basic_endpoint();
+ iterator_type resolve(
+ implementation_type & impl,
+ const query_type & query,
+ boost::system::error_code & ec);
 
 
 
@@ -65143,29 +63760,33 @@
 
 
 
-[section:overload2 local::basic_endpoint::basic_endpoint (2 of 4 overloads)]
+[section:overload2 ip::resolver_service::resolve (2 of 2 overloads)]
 
 
-Construct an endpoint using the specified path name.
+Resolve an endpoint to a list of entries.
 
 
- basic_endpoint(
- const char * path_name);
+ iterator_type resolve(
+ implementation_type & impl,
+ const endpoint_type & endpoint,
+ boost::system::error_code & ec);
 
 
 
 [endsect]
 
 
+[endsect]
 
-[section:overload3 local::basic_endpoint::basic_endpoint (3 of 4 overloads)]
 
+[section:resolver_service ip::resolver_service::resolver_service]
 
-Construct an endpoint using the specified path name.
+[indexterm2 resolver_service..ip::resolver_service]
+Construct a new resolver service for the specified [link boost_asio.reference.io_service `io_service`].
 
 
- basic_endpoint(
- const std::string & path_name);
+ resolver_service(
+ boost::asio::io_service & io_service);
 
 
 
@@ -65173,92 +63794,4585 @@
 
 
 
-[section:overload4 local::basic_endpoint::basic_endpoint (4 of 4 overloads)]
+[endsect]
 
+[section:ip__tcp ip::tcp]
 
-Copy constructor.
 
+Encapsulates the flags needed for TCP.
 
- basic_endpoint(
- const basic_endpoint & other);
 
+ class tcp
 
 
-[endsect]
+[heading Types]
+[table
+ [[Name][Description]]
 
+ [
 
-[endsect]
+ [[link boost_asio.reference.ip__tcp.acceptor [*acceptor]]]
+ [The TCP acceptor type. ]
+
+ ]
 
+ [
 
-[section:capacity local::basic_endpoint::capacity]
+ [[link boost_asio.reference.ip__tcp.endpoint [*endpoint]]]
+ [The type of a TCP endpoint. ]
+
+ ]
 
-[indexterm2 capacity..local::basic_endpoint]
-Get the capacity of the endpoint in the native type.
+ [
 
+ [[link boost_asio.reference.ip__tcp.iostream [*iostream]]]
+ [The TCP iostream type. ]
+
+ ]
 
- std::size_t capacity() const;
+ [
 
+ [[link boost_asio.reference.ip__tcp.no_delay [*no_delay]]]
+ [Socket option for disabling the Nagle algorithm. ]
+
+ ]
 
+ [
 
-[endsect]
+ [[link boost_asio.reference.ip__tcp.resolver [*resolver]]]
+ [The TCP resolver type. ]
+
+ ]
 
+ [
 
-[section:data local::basic_endpoint::data]
+ [[link boost_asio.reference.ip__tcp.socket [*socket]]]
+ [The TCP socket type. ]
+
+ ]
 
-[indexterm2 data..local::basic_endpoint]
-Get the underlying endpoint in the native type.
+]
 
+[heading Member Functions]
+[table
+ [[Name][Description]]
 
- data_type * ``[link boost_asio.reference.local__basic_endpoint.data.overload1 data]``();
+ [
+ [[link boost_asio.reference.ip__tcp.family [*family]]]
+ [Obtain an identifier for the protocol family. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__tcp.protocol [*protocol]]]
+ [Obtain an identifier for the protocol. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__tcp.type [*type]]]
+ [Obtain an identifier for the type of the protocol. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__tcp.v4 [*v4]]]
+ [Construct to represent the IPv4 TCP protocol. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__tcp.v6 [*v6]]]
+ [Construct to represent the IPv6 TCP protocol. ]
+ ]
+
+]
+
+[heading Friends]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.ip__tcp.operator_not__eq_ [*operator!=]]]
+ [Compare two protocols for inequality. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__tcp.operator_eq__eq_ [*operator==]]]
+ [Compare two protocols for equality. ]
+ ]
+
+]
+
+The [link boost_asio.reference.ip__tcp `ip::tcp`] class contains flags necessary for TCP sockets.
+
+
+[heading Thread Safety]
+
+[*Distinct] [*objects:] Safe.
+
+[*Shared] [*objects:] Safe.
+
+
+
+
+[heading Requirements]
+
+[*Header: ][^boost/asio/ip/tcp.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
+
+
+[section:acceptor ip::tcp::acceptor]
+
+[indexterm2 acceptor..ip::tcp]
+The TCP acceptor type.
+
+
+ typedef basic_socket_acceptor< tcp > acceptor;
+
+
+[heading Types]
+[table
+ [[Name][Description]]
+
+ [
+
+ [[link boost_asio.reference.basic_socket_acceptor.broadcast [*broadcast]]]
+ [Socket option to permit sending of broadcast messages. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_socket_acceptor.bytes_readable [*bytes_readable]]]
+ [IO control command to get the amount of data that can be read without blocking. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_socket_acceptor.debug [*debug]]]
+ [Socket option to enable socket-level debugging. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_socket_acceptor.do_not_route [*do_not_route]]]
+ [Socket option to prevent routing, use local interfaces only. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_socket_acceptor.enable_connection_aborted [*enable_connection_aborted]]]
+ [Socket option to report aborted connections on accept. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_socket_acceptor.endpoint_type [*endpoint_type]]]
+ [The endpoint type. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_socket_acceptor.implementation_type [*implementation_type]]]
+ [The underlying implementation type of I/O object. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_socket_acceptor.keep_alive [*keep_alive]]]
+ [Socket option to send keep-alives. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_socket_acceptor.linger [*linger]]]
+ [Socket option to specify whether the socket lingers on close if unsent data is present. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_socket_acceptor.message_flags [*message_flags]]]
+ [Bitmask type for flags that can be passed to send and receive operations. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_socket_acceptor.native_handle_type [*native_handle_type]]]
+ [The native representation of an acceptor. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_socket_acceptor.native_type [*native_type]]]
+ [(Deprecated: Use native_handle_type.) The native representation of an acceptor. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_socket_acceptor.non_blocking_io [*non_blocking_io]]]
+ [(Deprecated: Use non_blocking().) IO control command to set the blocking mode of the socket. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_socket_acceptor.protocol_type [*protocol_type]]]
+ [The protocol type. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_socket_acceptor.receive_buffer_size [*receive_buffer_size]]]
+ [Socket option for the receive buffer size of a socket. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_socket_acceptor.receive_low_watermark [*receive_low_watermark]]]
+ [Socket option for the receive low watermark. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_socket_acceptor.reuse_address [*reuse_address]]]
+ [Socket option to allow the socket to be bound to an address that is already in use. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_socket_acceptor.send_buffer_size [*send_buffer_size]]]
+ [Socket option for the send buffer size of a socket. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_socket_acceptor.send_low_watermark [*send_low_watermark]]]
+ [Socket option for the send low watermark. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_socket_acceptor.service_type [*service_type]]]
+ [The type of the service that will be used to provide I/O operations. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_socket_acceptor.shutdown_type [*shutdown_type]]]
+ [Different ways a socket may be shutdown. ]
+
+ ]
+
+]
+
+[heading Member Functions]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.basic_socket_acceptor.accept [*accept]]]
+ [Accept a new connection.
+
+ Accept a new connection and obtain the endpoint of the peer. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_socket_acceptor.assign [*assign]]]
+ [Assigns an existing native acceptor to the acceptor. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_socket_acceptor.async_accept [*async_accept]]]
+ [Start an asynchronous accept. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_socket_acceptor.basic_socket_acceptor [*basic_socket_acceptor]]]
+ [Construct an acceptor without opening it.
+
+ Construct an open acceptor.
+
+ Construct an acceptor opened on the given endpoint.
+
+ Construct a basic_socket_acceptor on an existing native acceptor.
+
+ Move-construct a basic_socket_acceptor from another. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_socket_acceptor.bind [*bind]]]
+ [Bind the acceptor to the given local endpoint. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_socket_acceptor.cancel [*cancel]]]
+ [Cancel all asynchronous operations associated with the acceptor. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_socket_acceptor.close [*close]]]
+ [Close the acceptor. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_socket_acceptor.get_io_service [*get_io_service]]]
+ [Get the io_service associated with the object. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_socket_acceptor.get_option [*get_option]]]
+ [Get an option from the acceptor. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_socket_acceptor.io_control [*io_control]]]
+ [Perform an IO control command on the acceptor. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_socket_acceptor.is_open [*is_open]]]
+ [Determine whether the acceptor is open. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_socket_acceptor.listen [*listen]]]
+ [Place the acceptor into the state where it will listen for new connections. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_socket_acceptor.local_endpoint [*local_endpoint]]]
+ [Get the local endpoint of the acceptor. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_socket_acceptor.native [*native]]]
+ [(Deprecated: Use native_handle().) Get the native acceptor representation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_socket_acceptor.native_handle [*native_handle]]]
+ [Get the native acceptor representation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_socket_acceptor.native_non_blocking [*native_non_blocking]]]
+ [Gets the non-blocking mode of the native acceptor implementation.
+
+ Sets the non-blocking mode of the native acceptor implementation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_socket_acceptor.non_blocking [*non_blocking]]]
+ [Gets the non-blocking mode of the acceptor.
+
+ Sets the non-blocking mode of the acceptor. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_socket_acceptor.open [*open]]]
+ [Open the acceptor using the specified protocol. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_socket_acceptor.operator_eq_ [*operator=]]]
+ [Move-assign a basic_socket_acceptor from another. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_socket_acceptor.set_option [*set_option]]]
+ [Set an option on the acceptor. ]
+ ]
+
+]
+
+[heading Protected Member Functions]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.basic_socket_acceptor.get_implementation [*get_implementation]]]
+ [Get the underlying implementation of the I/O object. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_socket_acceptor.get_service [*get_service]]]
+ [Get the service associated with the I/O object. ]
+ ]
+
+]
+
+[heading Data Members]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.basic_socket_acceptor.max_connections [*max_connections]]]
+ [The maximum length of the queue of pending incoming connections. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_socket_acceptor.message_do_not_route [*message_do_not_route]]]
+ [Specify that the data should not be subject to routing. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_socket_acceptor.message_end_of_record [*message_end_of_record]]]
+ [Specifies that the data marks the end of a record. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_socket_acceptor.message_out_of_band [*message_out_of_band]]]
+ [Process out-of-band data. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_socket_acceptor.message_peek [*message_peek]]]
+ [Peek at incoming data without removing it from the input queue. ]
+ ]
+
+]
+
+[heading Protected Data Members]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.basic_socket_acceptor.implementation [*implementation]]]
+ [(Deprecated: Use get_implementation().) The underlying implementation of the I/O object. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_socket_acceptor.service [*service]]]
+ [(Deprecated: Use get_service().) The service associated with the I/O object. ]
+ ]
+
+]
+
+The [link boost_asio.reference.basic_socket_acceptor `basic_socket_acceptor`] class template is used for accepting new socket connections.
+
+
+[heading Thread Safety]
+
+[*Distinct] [*objects:] Safe.
+
+[*Shared] [*objects:] Unsafe.
+
+
+[heading Example]
+
+Opening a socket acceptor with the SO\_REUSEADDR option enabled:
+
+ boost::asio::ip::tcp::acceptor acceptor(io_service);
+ boost::asio::ip::tcp::endpoint endpoint(boost::asio::ip::tcp::v4(), port);
+ acceptor.open(endpoint.protocol());
+ acceptor.set_option(boost::asio::ip::tcp::acceptor::reuse_address(true));
+ acceptor.bind(endpoint);
+ acceptor.listen();
+
+
+
+
+
+
+
+[heading Requirements]
+
+[*Header: ][^boost/asio/ip/tcp.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
+
+
+[endsect]
+
+
+
+[section:endpoint ip::tcp::endpoint]
+
+[indexterm2 endpoint..ip::tcp]
+The type of a TCP endpoint.
+
+
+ typedef basic_endpoint< tcp > endpoint;
+
+
+[heading Types]
+[table
+ [[Name][Description]]
+
+ [
+
+ [[link boost_asio.reference.ip__basic_endpoint.data_type [*data_type]]]
+ [The type of the endpoint structure. This type is dependent on the underlying implementation of the socket layer. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.ip__basic_endpoint.protocol_type [*protocol_type]]]
+ [The protocol type associated with the endpoint. ]
+
+ ]
+
+]
+
+[heading Member Functions]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.ip__basic_endpoint.address [*address]]]
+ [Get the IP address associated with the endpoint.
+
+ Set the IP address associated with the endpoint. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__basic_endpoint.basic_endpoint [*basic_endpoint]]]
+ [Default constructor.
+
+ Construct an endpoint using a port number, specified in the host's byte order. The IP address will be the any address (i.e. INADDR_ANY or in6addr_any). This constructor would typically be used for accepting new connections.
+
+ Construct an endpoint using a port number and an IP address. This constructor may be used for accepting connections on a specific interface or for making a connection to a remote endpoint.
+
+ Copy constructor. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__basic_endpoint.capacity [*capacity]]]
+ [Get the capacity of the endpoint in the native type. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__basic_endpoint.data [*data]]]
+ [Get the underlying endpoint in the native type. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__basic_endpoint.operator_eq_ [*operator=]]]
+ [Assign from another endpoint. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__basic_endpoint.port [*port]]]
+ [Get the port associated with the endpoint. The port number is always in the host's byte order.
+
+ Set the port associated with the endpoint. The port number is always in the host's byte order. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__basic_endpoint.protocol [*protocol]]]
+ [The protocol associated with the endpoint. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__basic_endpoint.resize [*resize]]]
+ [Set the underlying size of the endpoint in the native type. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__basic_endpoint.size [*size]]]
+ [Get the underlying size of the endpoint in the native type. ]
+ ]
+
+]
+
+[heading Friends]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.ip__basic_endpoint.operator_not__eq_ [*operator!=]]]
+ [Compare two endpoints for inequality. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__basic_endpoint.operator_lt_ [*operator<]]]
+ [Compare endpoints for ordering. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__basic_endpoint.operator_lt__eq_ [*operator<=]]]
+ [Compare endpoints for ordering. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__basic_endpoint.operator_eq__eq_ [*operator==]]]
+ [Compare two endpoints for equality. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__basic_endpoint.operator_gt_ [*operator>]]]
+ [Compare endpoints for ordering. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__basic_endpoint.operator_gt__eq_ [*operator>=]]]
+ [Compare endpoints for ordering. ]
+ ]
+
+]
+
+[heading Related Functions]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.ip__basic_endpoint.operator_lt__lt_ [*operator<<]]]
+ [Output an endpoint as a string. ]
+ ]
+
+]
+
+The [link boost_asio.reference.ip__basic_endpoint `ip::basic_endpoint`] class template describes an endpoint that may be associated with a particular socket.
+
+
+[heading Thread Safety]
+
+[*Distinct] [*objects:] Safe.
+
+[*Shared] [*objects:] Unsafe.
+
+
+
+
+
+[heading Requirements]
+
+[*Header: ][^boost/asio/ip/tcp.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
+
+
+[endsect]
+
+
+
+[section:family ip::tcp::family]
+
+[indexterm2 family..ip::tcp]
+Obtain an identifier for the protocol family.
+
+
+ int family() const;
+
+
+
+[endsect]
+
+
+
+[section:iostream ip::tcp::iostream]
+
+[indexterm2 iostream..ip::tcp]
+The TCP iostream type.
+
+
+ typedef basic_socket_iostream< tcp > iostream;
+
+
+[heading Types]
+[table
+ [[Name][Description]]
+
+ [
+
+ [[link boost_asio.reference.basic_socket_iostream.duration_type [*duration_type]]]
+ [The duration type. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_socket_iostream.endpoint_type [*endpoint_type]]]
+ [The endpoint type. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_socket_iostream.time_type [*time_type]]]
+ [The time type. ]
+
+ ]
+
+]
+
+[heading Member Functions]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.basic_socket_iostream.basic_socket_iostream [*basic_socket_iostream]]]
+ [Construct a basic_socket_iostream without establishing a connection.
+
+ Establish a connection to an endpoint corresponding to a resolver query. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_socket_iostream.close [*close]]]
+ [Close the connection. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_socket_iostream.connect [*connect]]]
+ [Establish a connection to an endpoint corresponding to a resolver query. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_socket_iostream.error [*error]]]
+ [Get the last error associated with the stream. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_socket_iostream.expires_at [*expires_at]]]
+ [Get the stream's expiry time as an absolute time.
+
+ Set the stream's expiry time as an absolute time. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_socket_iostream.expires_from_now [*expires_from_now]]]
+ [Get the timer's expiry time relative to now.
+
+ Set the stream's expiry time relative to now. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_socket_iostream.rdbuf [*rdbuf]]]
+ [Return a pointer to the underlying streambuf. ]
+ ]
+
+]
+
+
+[heading Requirements]
+
+[*Header: ][^boost/asio/ip/tcp.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
+
+
+[endsect]
+
+
+
+[section:no_delay ip::tcp::no_delay]
+
+[indexterm2 no_delay..ip::tcp]
+Socket option for disabling the Nagle algorithm.
+
+
+ typedef implementation_defined no_delay;
+
+
+
+Implements the IPPROTO\_TCP/TCP\_NODELAY socket option.
+
+
+[heading Examples]
+
+Setting the option:
+
+ boost::asio::ip::tcp::socket socket(io_service);
+ ...
+ boost::asio::ip::tcp::no_delay option(true);
+ socket.set_option(option);
+
+
+
+
+
+Getting the current option value:
+
+ boost::asio::ip::tcp::socket socket(io_service);
+ ...
+ boost::asio::ip::tcp::no_delay option;
+ socket.get_option(option);
+ bool is_set = option.value();
+
+
+
+
+
+
+
+[heading Requirements]
+
+[*Header: ][^boost/asio/ip/tcp.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
+
+
+[endsect]
+
+
+
+[section:operator_not__eq_ ip::tcp::operator!=]
+
+[indexterm2 operator!=..ip::tcp]
+Compare two protocols for inequality.
+
+
+ friend bool operator!=(
+ const tcp & p1,
+ const tcp & p2);
+
+
+[heading Requirements]
+
+[*Header: ][^boost/asio/ip/tcp.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
+
+
+[endsect]
+
+
+
+[section:operator_eq__eq_ ip::tcp::operator==]
+
+[indexterm2 operator==..ip::tcp]
+Compare two protocols for equality.
+
+
+ friend bool operator==(
+ const tcp & p1,
+ const tcp & p2);
+
+
+[heading Requirements]
+
+[*Header: ][^boost/asio/ip/tcp.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
+
+
+[endsect]
+
+
+
+[section:protocol ip::tcp::protocol]
+
+[indexterm2 protocol..ip::tcp]
+Obtain an identifier for the protocol.
+
+
+ int protocol() const;
+
+
+
+[endsect]
+
+
+
+[section:resolver ip::tcp::resolver]
+
+[indexterm2 resolver..ip::tcp]
+The TCP resolver type.
+
+
+ typedef basic_resolver< tcp > resolver;
+
+
+[heading Types]
+[table
+ [[Name][Description]]
+
+ [
+
+ [[link boost_asio.reference.ip__basic_resolver.endpoint_type [*endpoint_type]]]
+ [The endpoint type. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.ip__basic_resolver.implementation_type [*implementation_type]]]
+ [The underlying implementation type of I/O object. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.ip__basic_resolver.iterator [*iterator]]]
+ [The iterator type. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.ip__basic_resolver.protocol_type [*protocol_type]]]
+ [The protocol type. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.ip__basic_resolver.query [*query]]]
+ [The query type. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.ip__basic_resolver.service_type [*service_type]]]
+ [The type of the service that will be used to provide I/O operations. ]
+
+ ]
+
+]
+
+[heading Member Functions]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.ip__basic_resolver.async_resolve [*async_resolve]]]
+ [Asynchronously perform forward resolution of a query to a list of entries.
+
+ Asynchronously perform reverse resolution of an endpoint to a list of entries. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__basic_resolver.basic_resolver [*basic_resolver]]]
+ [Constructor. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__basic_resolver.cancel [*cancel]]]
+ [Cancel any asynchronous operations that are waiting on the resolver. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__basic_resolver.get_io_service [*get_io_service]]]
+ [Get the io_service associated with the object. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__basic_resolver.resolve [*resolve]]]
+ [Perform forward resolution of a query to a list of entries.
+
+ Perform reverse resolution of an endpoint to a list of entries. ]
+ ]
+
+]
+
+[heading Protected Member Functions]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.ip__basic_resolver.get_implementation [*get_implementation]]]
+ [Get the underlying implementation of the I/O object. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__basic_resolver.get_service [*get_service]]]
+ [Get the service associated with the I/O object. ]
+ ]
+
+]
+
+[heading Protected Data Members]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.ip__basic_resolver.implementation [*implementation]]]
+ [(Deprecated: Use get_implementation().) The underlying implementation of the I/O object. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__basic_resolver.service [*service]]]
+ [(Deprecated: Use get_service().) The service associated with the I/O object. ]
+ ]
+
+]
+
+The [link boost_asio.reference.ip__basic_resolver `ip::basic_resolver`] class template provides the ability to resolve a query to a list of endpoints.
+
+
+[heading Thread Safety]
+
+[*Distinct] [*objects:] Safe.
+
+[*Shared] [*objects:] Unsafe.
+
+
+
+
+[heading Requirements]
+
+[*Header: ][^boost/asio/ip/tcp.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
+
+
+[endsect]
+
+
+
+[section:socket ip::tcp::socket]
+
+[indexterm2 socket..ip::tcp]
+The TCP socket type.
+
+
+ typedef basic_stream_socket< tcp > socket;
+
+
+[heading Types]
+[table
+ [[Name][Description]]
+
+ [
+
+ [[link boost_asio.reference.basic_stream_socket.broadcast [*broadcast]]]
+ [Socket option to permit sending of broadcast messages. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_stream_socket.bytes_readable [*bytes_readable]]]
+ [IO control command to get the amount of data that can be read without blocking. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_stream_socket.debug [*debug]]]
+ [Socket option to enable socket-level debugging. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_stream_socket.do_not_route [*do_not_route]]]
+ [Socket option to prevent routing, use local interfaces only. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_stream_socket.enable_connection_aborted [*enable_connection_aborted]]]
+ [Socket option to report aborted connections on accept. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_stream_socket.endpoint_type [*endpoint_type]]]
+ [The endpoint type. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_stream_socket.implementation_type [*implementation_type]]]
+ [The underlying implementation type of I/O object. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_stream_socket.keep_alive [*keep_alive]]]
+ [Socket option to send keep-alives. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_stream_socket.linger [*linger]]]
+ [Socket option to specify whether the socket lingers on close if unsent data is present. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_stream_socket.lowest_layer_type [*lowest_layer_type]]]
+ [A basic_socket is always the lowest layer. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_stream_socket.message_flags [*message_flags]]]
+ [Bitmask type for flags that can be passed to send and receive operations. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_stream_socket.native_handle_type [*native_handle_type]]]
+ [The native representation of a socket. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_stream_socket.native_type [*native_type]]]
+ [(Deprecated: Use native_handle_type.) The native representation of a socket. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_stream_socket.non_blocking_io [*non_blocking_io]]]
+ [(Deprecated: Use non_blocking().) IO control command to set the blocking mode of the socket. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_stream_socket.protocol_type [*protocol_type]]]
+ [The protocol type. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_stream_socket.receive_buffer_size [*receive_buffer_size]]]
+ [Socket option for the receive buffer size of a socket. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_stream_socket.receive_low_watermark [*receive_low_watermark]]]
+ [Socket option for the receive low watermark. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_stream_socket.reuse_address [*reuse_address]]]
+ [Socket option to allow the socket to be bound to an address that is already in use. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_stream_socket.send_buffer_size [*send_buffer_size]]]
+ [Socket option for the send buffer size of a socket. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_stream_socket.send_low_watermark [*send_low_watermark]]]
+ [Socket option for the send low watermark. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_stream_socket.service_type [*service_type]]]
+ [The type of the service that will be used to provide I/O operations. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_stream_socket.shutdown_type [*shutdown_type]]]
+ [Different ways a socket may be shutdown. ]
+
+ ]
+
+]
+
+[heading Member Functions]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.assign [*assign]]]
+ [Assign an existing native socket to the socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.async_connect [*async_connect]]]
+ [Start an asynchronous connect. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.async_read_some [*async_read_some]]]
+ [Start an asynchronous read. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.async_receive [*async_receive]]]
+ [Start an asynchronous receive. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.async_send [*async_send]]]
+ [Start an asynchronous send. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.async_write_some [*async_write_some]]]
+ [Start an asynchronous write. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.at_mark [*at_mark]]]
+ [Determine whether the socket is at the out-of-band data mark. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.available [*available]]]
+ [Determine the number of bytes available for reading. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.basic_stream_socket [*basic_stream_socket]]]
+ [Construct a basic_stream_socket without opening it.
+
+ Construct and open a basic_stream_socket.
+
+ Construct a basic_stream_socket, opening it and binding it to the given local endpoint.
+
+ Construct a basic_stream_socket on an existing native socket.
+
+ Move-construct a basic_stream_socket from another. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.bind [*bind]]]
+ [Bind the socket to the given local endpoint. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.cancel [*cancel]]]
+ [Cancel all asynchronous operations associated with the socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.close [*close]]]
+ [Close the socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.connect [*connect]]]
+ [Connect the socket to the specified endpoint. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.get_io_service [*get_io_service]]]
+ [Get the io_service associated with the object. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.get_option [*get_option]]]
+ [Get an option from the socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.io_control [*io_control]]]
+ [Perform an IO control command on the socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.is_open [*is_open]]]
+ [Determine whether the socket is open. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.local_endpoint [*local_endpoint]]]
+ [Get the local endpoint of the socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.lowest_layer [*lowest_layer]]]
+ [Get a reference to the lowest layer.
+
+ Get a const reference to the lowest layer. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.native [*native]]]
+ [(Deprecated: Use native_handle().) Get the native socket representation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.native_handle [*native_handle]]]
+ [Get the native socket representation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.native_non_blocking [*native_non_blocking]]]
+ [Gets the non-blocking mode of the native socket implementation.
+
+ Sets the non-blocking mode of the native socket implementation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.non_blocking [*non_blocking]]]
+ [Gets the non-blocking mode of the socket.
+
+ Sets the non-blocking mode of the socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.open [*open]]]
+ [Open the socket using the specified protocol. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.operator_eq_ [*operator=]]]
+ [Move-assign a basic_stream_socket from another. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.read_some [*read_some]]]
+ [Read some data from the socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.receive [*receive]]]
+ [Receive some data on the socket.
+
+ Receive some data on a connected socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.remote_endpoint [*remote_endpoint]]]
+ [Get the remote endpoint of the socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.send [*send]]]
+ [Send some data on the socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.set_option [*set_option]]]
+ [Set an option on the socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.shutdown [*shutdown]]]
+ [Disable sends or receives on the socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.write_some [*write_some]]]
+ [Write some data to the socket. ]
+ ]
+
+]
+
+[heading Protected Member Functions]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.get_implementation [*get_implementation]]]
+ [Get the underlying implementation of the I/O object. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.get_service [*get_service]]]
+ [Get the service associated with the I/O object. ]
+ ]
+
+]
+
+[heading Data Members]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.max_connections [*max_connections]]]
+ [The maximum length of the queue of pending incoming connections. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.message_do_not_route [*message_do_not_route]]]
+ [Specify that the data should not be subject to routing. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.message_end_of_record [*message_end_of_record]]]
+ [Specifies that the data marks the end of a record. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.message_out_of_band [*message_out_of_band]]]
+ [Process out-of-band data. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.message_peek [*message_peek]]]
+ [Peek at incoming data without removing it from the input queue. ]
+ ]
+
+]
+
+[heading Protected Data Members]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.implementation [*implementation]]]
+ [(Deprecated: Use get_implementation().) The underlying implementation of the I/O object. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.service [*service]]]
+ [(Deprecated: Use get_service().) The service associated with the I/O object. ]
+ ]
+
+]
+
+The [link boost_asio.reference.basic_stream_socket `basic_stream_socket`] class template provides asynchronous and blocking stream-oriented socket functionality.
+
+
+[heading Thread Safety]
+
+[*Distinct] [*objects:] Safe.
+
+[*Shared] [*objects:] Unsafe.
+
+
+
+
+
+[heading Requirements]
+
+[*Header: ][^boost/asio/ip/tcp.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
+
+
+[endsect]
+
+
+
+[section:type ip::tcp::type]
+
+[indexterm2 type..ip::tcp]
+Obtain an identifier for the type of the protocol.
+
+
+ int type() const;
+
+
+
+[endsect]
+
+
+
+[section:v4 ip::tcp::v4]
+
+[indexterm2 v4..ip::tcp]
+Construct to represent the IPv4 TCP protocol.
+
+
+ static tcp v4();
+
+
+
+[endsect]
+
+
+
+[section:v6 ip::tcp::v6]
+
+[indexterm2 v6..ip::tcp]
+Construct to represent the IPv6 TCP protocol.
+
+
+ static tcp v6();
+
+
+
+[endsect]
+
+
+
+[endsect]
+
+[section:ip__udp ip::udp]
+
+
+Encapsulates the flags needed for UDP.
+
+
+ class udp
+
+
+[heading Types]
+[table
+ [[Name][Description]]
+
+ [
+
+ [[link boost_asio.reference.ip__udp.endpoint [*endpoint]]]
+ [The type of a UDP endpoint. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.ip__udp.resolver [*resolver]]]
+ [The UDP resolver type. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.ip__udp.socket [*socket]]]
+ [The UDP socket type. ]
+
+ ]
+
+]
+
+[heading Member Functions]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.ip__udp.family [*family]]]
+ [Obtain an identifier for the protocol family. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__udp.protocol [*protocol]]]
+ [Obtain an identifier for the protocol. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__udp.type [*type]]]
+ [Obtain an identifier for the type of the protocol. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__udp.v4 [*v4]]]
+ [Construct to represent the IPv4 UDP protocol. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__udp.v6 [*v6]]]
+ [Construct to represent the IPv6 UDP protocol. ]
+ ]
+
+]
+
+[heading Friends]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.ip__udp.operator_not__eq_ [*operator!=]]]
+ [Compare two protocols for inequality. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__udp.operator_eq__eq_ [*operator==]]]
+ [Compare two protocols for equality. ]
+ ]
+
+]
+
+The [link boost_asio.reference.ip__udp `ip::udp`] class contains flags necessary for UDP sockets.
+
+
+[heading Thread Safety]
+
+[*Distinct] [*objects:] Safe.
+
+[*Shared] [*objects:] Safe.
+
+
+
+
+[heading Requirements]
+
+[*Header: ][^boost/asio/ip/udp.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
+
+
+[section:endpoint ip::udp::endpoint]
+
+[indexterm2 endpoint..ip::udp]
+The type of a UDP endpoint.
+
+
+ typedef basic_endpoint< udp > endpoint;
+
+
+[heading Types]
+[table
+ [[Name][Description]]
+
+ [
+
+ [[link boost_asio.reference.ip__basic_endpoint.data_type [*data_type]]]
+ [The type of the endpoint structure. This type is dependent on the underlying implementation of the socket layer. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.ip__basic_endpoint.protocol_type [*protocol_type]]]
+ [The protocol type associated with the endpoint. ]
+
+ ]
+
+]
+
+[heading Member Functions]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.ip__basic_endpoint.address [*address]]]
+ [Get the IP address associated with the endpoint.
+
+ Set the IP address associated with the endpoint. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__basic_endpoint.basic_endpoint [*basic_endpoint]]]
+ [Default constructor.
+
+ Construct an endpoint using a port number, specified in the host's byte order. The IP address will be the any address (i.e. INADDR_ANY or in6addr_any). This constructor would typically be used for accepting new connections.
+
+ Construct an endpoint using a port number and an IP address. This constructor may be used for accepting connections on a specific interface or for making a connection to a remote endpoint.
+
+ Copy constructor. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__basic_endpoint.capacity [*capacity]]]
+ [Get the capacity of the endpoint in the native type. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__basic_endpoint.data [*data]]]
+ [Get the underlying endpoint in the native type. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__basic_endpoint.operator_eq_ [*operator=]]]
+ [Assign from another endpoint. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__basic_endpoint.port [*port]]]
+ [Get the port associated with the endpoint. The port number is always in the host's byte order.
+
+ Set the port associated with the endpoint. The port number is always in the host's byte order. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__basic_endpoint.protocol [*protocol]]]
+ [The protocol associated with the endpoint. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__basic_endpoint.resize [*resize]]]
+ [Set the underlying size of the endpoint in the native type. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__basic_endpoint.size [*size]]]
+ [Get the underlying size of the endpoint in the native type. ]
+ ]
+
+]
+
+[heading Friends]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.ip__basic_endpoint.operator_not__eq_ [*operator!=]]]
+ [Compare two endpoints for inequality. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__basic_endpoint.operator_lt_ [*operator<]]]
+ [Compare endpoints for ordering. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__basic_endpoint.operator_lt__eq_ [*operator<=]]]
+ [Compare endpoints for ordering. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__basic_endpoint.operator_eq__eq_ [*operator==]]]
+ [Compare two endpoints for equality. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__basic_endpoint.operator_gt_ [*operator>]]]
+ [Compare endpoints for ordering. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__basic_endpoint.operator_gt__eq_ [*operator>=]]]
+ [Compare endpoints for ordering. ]
+ ]
+
+]
+
+[heading Related Functions]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.ip__basic_endpoint.operator_lt__lt_ [*operator<<]]]
+ [Output an endpoint as a string. ]
+ ]
+
+]
+
+The [link boost_asio.reference.ip__basic_endpoint `ip::basic_endpoint`] class template describes an endpoint that may be associated with a particular socket.
+
+
+[heading Thread Safety]
+
+[*Distinct] [*objects:] Safe.
+
+[*Shared] [*objects:] Unsafe.
+
+
+
+
+
+[heading Requirements]
+
+[*Header: ][^boost/asio/ip/udp.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
+
+
+[endsect]
+
+
+
+[section:family ip::udp::family]
+
+[indexterm2 family..ip::udp]
+Obtain an identifier for the protocol family.
+
+
+ int family() const;
+
+
+
+[endsect]
+
+
+
+[section:operator_not__eq_ ip::udp::operator!=]
+
+[indexterm2 operator!=..ip::udp]
+Compare two protocols for inequality.
+
+
+ friend bool operator!=(
+ const udp & p1,
+ const udp & p2);
+
+
+[heading Requirements]
+
+[*Header: ][^boost/asio/ip/udp.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
+
+
+[endsect]
+
+
+
+[section:operator_eq__eq_ ip::udp::operator==]
+
+[indexterm2 operator==..ip::udp]
+Compare two protocols for equality.
+
+
+ friend bool operator==(
+ const udp & p1,
+ const udp & p2);
+
+
+[heading Requirements]
+
+[*Header: ][^boost/asio/ip/udp.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
+
+
+[endsect]
+
+
+
+[section:protocol ip::udp::protocol]
+
+[indexterm2 protocol..ip::udp]
+Obtain an identifier for the protocol.
+
+
+ int protocol() const;
+
+
+
+[endsect]
+
+
+
+[section:resolver ip::udp::resolver]
+
+[indexterm2 resolver..ip::udp]
+The UDP resolver type.
+
+
+ typedef basic_resolver< udp > resolver;
+
+
+[heading Types]
+[table
+ [[Name][Description]]
+
+ [
+
+ [[link boost_asio.reference.ip__basic_resolver.endpoint_type [*endpoint_type]]]
+ [The endpoint type. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.ip__basic_resolver.implementation_type [*implementation_type]]]
+ [The underlying implementation type of I/O object. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.ip__basic_resolver.iterator [*iterator]]]
+ [The iterator type. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.ip__basic_resolver.protocol_type [*protocol_type]]]
+ [The protocol type. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.ip__basic_resolver.query [*query]]]
+ [The query type. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.ip__basic_resolver.service_type [*service_type]]]
+ [The type of the service that will be used to provide I/O operations. ]
+
+ ]
+
+]
+
+[heading Member Functions]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.ip__basic_resolver.async_resolve [*async_resolve]]]
+ [Asynchronously perform forward resolution of a query to a list of entries.
+
+ Asynchronously perform reverse resolution of an endpoint to a list of entries. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__basic_resolver.basic_resolver [*basic_resolver]]]
+ [Constructor. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__basic_resolver.cancel [*cancel]]]
+ [Cancel any asynchronous operations that are waiting on the resolver. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__basic_resolver.get_io_service [*get_io_service]]]
+ [Get the io_service associated with the object. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__basic_resolver.resolve [*resolve]]]
+ [Perform forward resolution of a query to a list of entries.
+
+ Perform reverse resolution of an endpoint to a list of entries. ]
+ ]
+
+]
+
+[heading Protected Member Functions]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.ip__basic_resolver.get_implementation [*get_implementation]]]
+ [Get the underlying implementation of the I/O object. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__basic_resolver.get_service [*get_service]]]
+ [Get the service associated with the I/O object. ]
+ ]
+
+]
+
+[heading Protected Data Members]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.ip__basic_resolver.implementation [*implementation]]]
+ [(Deprecated: Use get_implementation().) The underlying implementation of the I/O object. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ip__basic_resolver.service [*service]]]
+ [(Deprecated: Use get_service().) The service associated with the I/O object. ]
+ ]
+
+]
+
+The [link boost_asio.reference.ip__basic_resolver `ip::basic_resolver`] class template provides the ability to resolve a query to a list of endpoints.
+
+
+[heading Thread Safety]
+
+[*Distinct] [*objects:] Safe.
+
+[*Shared] [*objects:] Unsafe.
+
+
+
+
+[heading Requirements]
+
+[*Header: ][^boost/asio/ip/udp.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
+
+
+[endsect]
+
+
+
+[section:socket ip::udp::socket]
+
+[indexterm2 socket..ip::udp]
+The UDP socket type.
+
+
+ typedef basic_datagram_socket< udp > socket;
+
+
+[heading Types]
+[table
+ [[Name][Description]]
+
+ [
+
+ [[link boost_asio.reference.basic_datagram_socket.broadcast [*broadcast]]]
+ [Socket option to permit sending of broadcast messages. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_datagram_socket.bytes_readable [*bytes_readable]]]
+ [IO control command to get the amount of data that can be read without blocking. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_datagram_socket.debug [*debug]]]
+ [Socket option to enable socket-level debugging. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_datagram_socket.do_not_route [*do_not_route]]]
+ [Socket option to prevent routing, use local interfaces only. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_datagram_socket.enable_connection_aborted [*enable_connection_aborted]]]
+ [Socket option to report aborted connections on accept. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_datagram_socket.endpoint_type [*endpoint_type]]]
+ [The endpoint type. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_datagram_socket.implementation_type [*implementation_type]]]
+ [The underlying implementation type of I/O object. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_datagram_socket.keep_alive [*keep_alive]]]
+ [Socket option to send keep-alives. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_datagram_socket.linger [*linger]]]
+ [Socket option to specify whether the socket lingers on close if unsent data is present. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_datagram_socket.lowest_layer_type [*lowest_layer_type]]]
+ [A basic_socket is always the lowest layer. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_datagram_socket.message_flags [*message_flags]]]
+ [Bitmask type for flags that can be passed to send and receive operations. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_datagram_socket.native_handle_type [*native_handle_type]]]
+ [The native representation of a socket. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_datagram_socket.native_type [*native_type]]]
+ [(Deprecated: Use native_handle_type.) The native representation of a socket. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_datagram_socket.non_blocking_io [*non_blocking_io]]]
+ [(Deprecated: Use non_blocking().) IO control command to set the blocking mode of the socket. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_datagram_socket.protocol_type [*protocol_type]]]
+ [The protocol type. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_datagram_socket.receive_buffer_size [*receive_buffer_size]]]
+ [Socket option for the receive buffer size of a socket. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_datagram_socket.receive_low_watermark [*receive_low_watermark]]]
+ [Socket option for the receive low watermark. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_datagram_socket.reuse_address [*reuse_address]]]
+ [Socket option to allow the socket to be bound to an address that is already in use. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_datagram_socket.send_buffer_size [*send_buffer_size]]]
+ [Socket option for the send buffer size of a socket. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_datagram_socket.send_low_watermark [*send_low_watermark]]]
+ [Socket option for the send low watermark. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_datagram_socket.service_type [*service_type]]]
+ [The type of the service that will be used to provide I/O operations. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_datagram_socket.shutdown_type [*shutdown_type]]]
+ [Different ways a socket may be shutdown. ]
+
+ ]
+
+]
+
+[heading Member Functions]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.assign [*assign]]]
+ [Assign an existing native socket to the socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.async_connect [*async_connect]]]
+ [Start an asynchronous connect. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.async_receive [*async_receive]]]
+ [Start an asynchronous receive on a connected socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.async_receive_from [*async_receive_from]]]
+ [Start an asynchronous receive. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.async_send [*async_send]]]
+ [Start an asynchronous send on a connected socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.async_send_to [*async_send_to]]]
+ [Start an asynchronous send. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.at_mark [*at_mark]]]
+ [Determine whether the socket is at the out-of-band data mark. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.available [*available]]]
+ [Determine the number of bytes available for reading. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.basic_datagram_socket [*basic_datagram_socket]]]
+ [Construct a basic_datagram_socket without opening it.
+
+ Construct and open a basic_datagram_socket.
+
+ Construct a basic_datagram_socket, opening it and binding it to the given local endpoint.
+
+ Construct a basic_datagram_socket on an existing native socket.
+
+ Move-construct a basic_datagram_socket from another. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.bind [*bind]]]
+ [Bind the socket to the given local endpoint. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.cancel [*cancel]]]
+ [Cancel all asynchronous operations associated with the socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.close [*close]]]
+ [Close the socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.connect [*connect]]]
+ [Connect the socket to the specified endpoint. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.get_io_service [*get_io_service]]]
+ [Get the io_service associated with the object. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.get_option [*get_option]]]
+ [Get an option from the socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.io_control [*io_control]]]
+ [Perform an IO control command on the socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.is_open [*is_open]]]
+ [Determine whether the socket is open. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.local_endpoint [*local_endpoint]]]
+ [Get the local endpoint of the socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.lowest_layer [*lowest_layer]]]
+ [Get a reference to the lowest layer.
+
+ Get a const reference to the lowest layer. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.native [*native]]]
+ [(Deprecated: Use native_handle().) Get the native socket representation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.native_handle [*native_handle]]]
+ [Get the native socket representation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.native_non_blocking [*native_non_blocking]]]
+ [Gets the non-blocking mode of the native socket implementation.
+
+ Sets the non-blocking mode of the native socket implementation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.non_blocking [*non_blocking]]]
+ [Gets the non-blocking mode of the socket.
+
+ Sets the non-blocking mode of the socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.open [*open]]]
+ [Open the socket using the specified protocol. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.operator_eq_ [*operator=]]]
+ [Move-assign a basic_datagram_socket from another. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.receive [*receive]]]
+ [Receive some data on a connected socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.receive_from [*receive_from]]]
+ [Receive a datagram with the endpoint of the sender. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.remote_endpoint [*remote_endpoint]]]
+ [Get the remote endpoint of the socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.send [*send]]]
+ [Send some data on a connected socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.send_to [*send_to]]]
+ [Send a datagram to the specified endpoint. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.set_option [*set_option]]]
+ [Set an option on the socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.shutdown [*shutdown]]]
+ [Disable sends or receives on the socket. ]
+ ]
+
+]
+
+[heading Protected Member Functions]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.get_implementation [*get_implementation]]]
+ [Get the underlying implementation of the I/O object. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.get_service [*get_service]]]
+ [Get the service associated with the I/O object. ]
+ ]
+
+]
+
+[heading Data Members]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.max_connections [*max_connections]]]
+ [The maximum length of the queue of pending incoming connections. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.message_do_not_route [*message_do_not_route]]]
+ [Specify that the data should not be subject to routing. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.message_end_of_record [*message_end_of_record]]]
+ [Specifies that the data marks the end of a record. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.message_out_of_band [*message_out_of_band]]]
+ [Process out-of-band data. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.message_peek [*message_peek]]]
+ [Peek at incoming data without removing it from the input queue. ]
+ ]
+
+]
+
+[heading Protected Data Members]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.implementation [*implementation]]]
+ [(Deprecated: Use get_implementation().) The underlying implementation of the I/O object. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.service [*service]]]
+ [(Deprecated: Use get_service().) The service associated with the I/O object. ]
+ ]
+
+]
+
+The [link boost_asio.reference.basic_datagram_socket `basic_datagram_socket`] class template provides asynchronous and blocking datagram-oriented socket functionality.
+
+
+[heading Thread Safety]
+
+[*Distinct] [*objects:] Safe.
+
+[*Shared] [*objects:] Unsafe.
+
+
+
+
+[heading Requirements]
+
+[*Header: ][^boost/asio/ip/udp.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
+
+
+[endsect]
+
+
+
+[section:type ip::udp::type]
+
+[indexterm2 type..ip::udp]
+Obtain an identifier for the type of the protocol.
+
+
+ int type() const;
+
+
+
+[endsect]
+
+
+
+[section:v4 ip::udp::v4]
+
+[indexterm2 v4..ip::udp]
+Construct to represent the IPv4 UDP protocol.
+
+
+ static udp v4();
+
+
+
+[endsect]
+
+
+
+[section:v6 ip::udp::v6]
+
+[indexterm2 v6..ip::udp]
+Construct to represent the IPv6 UDP protocol.
+
+
+ static udp v6();
+
+
+
+[endsect]
+
+
+
+[endsect]
+
+
+[section:ip__unicast__hops ip::unicast::hops]
+
+[indexterm1 ip::unicast::hops]
+Socket option for time-to-live associated with outgoing unicast packets.
+
+
+ typedef implementation_defined hops;
+
+
+
+Implements the IPPROTO\_IP/IP\_UNICAST\_TTL socket option.
+
+
+[heading Examples]
+
+Setting the option:
+
+ boost::asio::ip::udp::socket socket(io_service);
+ ...
+ boost::asio::ip::unicast::hops option(4);
+ socket.set_option(option);
+
+
+
+
+
+Getting the current option value:
+
+ boost::asio::ip::udp::socket socket(io_service);
+ ...
+ boost::asio::ip::unicast::hops option;
+ socket.get_option(option);
+ int ttl = option.value();
+
+
+
+
+
+
+
+[heading Requirements]
+
+[*Header: ][^boost/asio/ip/unicast.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
+
+
+[endsect]
+
+
+
+[section:ip__v6_only ip::v6_only]
+
+[indexterm1 ip::v6_only]
+Socket option for determining whether an IPv6 socket supports IPv6 communication only.
+
+
+ typedef implementation_defined v6_only;
+
+
+
+Implements the IPPROTO\_IPV6/IP\_V6ONLY socket option.
+
+
+[heading Examples]
+
+Setting the option:
+
+ boost::asio::ip::tcp::socket socket(io_service);
+ ...
+ boost::asio::ip::v6_only option(true);
+ socket.set_option(option);
+
+
+
+
+
+Getting the current option value:
+
+ boost::asio::ip::tcp::socket socket(io_service);
+ ...
+ boost::asio::ip::v6_only option;
+ socket.get_option(option);
+ bool v6_only = option.value();
+
+
+
+
+
+
+
+[heading Requirements]
+
+[*Header: ][^boost/asio/ip/v6_only.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
+
+
+[endsect]
+
+
+[section:is_match_condition is_match_condition]
+
+
+Type trait used to determine whether a type can be used as a match condition function with read\_until and async\_read\_until.
+
+
+ template<
+ typename T>
+ struct is_match_condition
+
+
+[heading Data Members]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.is_match_condition.value [*value]]]
+ [The value member is true if the type may be used as a match condition. ]
+ ]
+
+]
+
+[heading Requirements]
+
+[*Header: ][^boost/asio/read_until.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
+
+
+[section:value is_match_condition::value]
+
+[indexterm2 value..is_match_condition]
+The value member is true if the type may be used as a match condition.
+
+
+ static const bool value;
+
+
+
+[endsect]
+
+
+
+[endsect]
+
+[section:is_read_buffered is_read_buffered]
+
+
+The [link boost_asio.reference.is_read_buffered `is_read_buffered`] class is a traits class that may be used to determine whether a stream type supports buffering of read data.
+
+
+ template<
+ typename Stream>
+ class is_read_buffered
+
+
+[heading Data Members]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.is_read_buffered.value [*value]]]
+ [The value member is true only if the Stream type supports buffering of read data. ]
+ ]
+
+]
+
+[heading Requirements]
+
+[*Header: ][^boost/asio/is_read_buffered.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
+
+
+[section:value is_read_buffered::value]
+
+[indexterm2 value..is_read_buffered]
+The value member is true only if the Stream type supports buffering of read data.
+
+
+ static const bool value;
+
+
+
+[endsect]
+
+
+
+[endsect]
+
+[section:is_write_buffered is_write_buffered]
+
+
+The [link boost_asio.reference.is_write_buffered `is_write_buffered`] class is a traits class that may be used to determine whether a stream type supports buffering of written data.
+
+
+ template<
+ typename Stream>
+ class is_write_buffered
+
+
+[heading Data Members]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.is_write_buffered.value [*value]]]
+ [The value member is true only if the Stream type supports buffering of written data. ]
+ ]
+
+]
+
+[heading Requirements]
+
+[*Header: ][^boost/asio/is_write_buffered.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
+
+
+[section:value is_write_buffered::value]
+
+[indexterm2 value..is_write_buffered]
+The value member is true only if the Stream type supports buffering of written data.
+
+
+ static const bool value;
+
+
+
+[endsect]
+
+
+
+[endsect]
+
+[section:local__basic_endpoint local::basic_endpoint]
+
+
+Describes an endpoint for a UNIX socket.
+
+
+ template<
+ typename ``[link boost_asio.reference.Protocol Protocol]``>
+ class basic_endpoint
+
+
+[heading Types]
+[table
+ [[Name][Description]]
+
+ [
+
+ [[link boost_asio.reference.local__basic_endpoint.data_type [*data_type]]]
+ [The type of the endpoint structure. This type is dependent on the underlying implementation of the socket layer. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.local__basic_endpoint.protocol_type [*protocol_type]]]
+ [The protocol type associated with the endpoint. ]
+
+ ]
+
+]
+
+[heading Member Functions]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.local__basic_endpoint.basic_endpoint [*basic_endpoint]]]
+ [Default constructor.
+
+ Construct an endpoint using the specified path name.
+
+ Copy constructor. ]
+ ]
+
+ [
+ [[link boost_asio.reference.local__basic_endpoint.capacity [*capacity]]]
+ [Get the capacity of the endpoint in the native type. ]
+ ]
+
+ [
+ [[link boost_asio.reference.local__basic_endpoint.data [*data]]]
+ [Get the underlying endpoint in the native type. ]
+ ]
+
+ [
+ [[link boost_asio.reference.local__basic_endpoint.operator_eq_ [*operator=]]]
+ [Assign from another endpoint. ]
+ ]
+
+ [
+ [[link boost_asio.reference.local__basic_endpoint.path [*path]]]
+ [Get the path associated with the endpoint.
+
+ Set the path associated with the endpoint. ]
+ ]
+
+ [
+ [[link boost_asio.reference.local__basic_endpoint.protocol [*protocol]]]
+ [The protocol associated with the endpoint. ]
+ ]
+
+ [
+ [[link boost_asio.reference.local__basic_endpoint.resize [*resize]]]
+ [Set the underlying size of the endpoint in the native type. ]
+ ]
+
+ [
+ [[link boost_asio.reference.local__basic_endpoint.size [*size]]]
+ [Get the underlying size of the endpoint in the native type. ]
+ ]
+
+]
+
+[heading Friends]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.local__basic_endpoint.operator_not__eq_ [*operator!=]]]
+ [Compare two endpoints for inequality. ]
+ ]
+
+ [
+ [[link boost_asio.reference.local__basic_endpoint.operator_lt_ [*operator<]]]
+ [Compare endpoints for ordering. ]
+ ]
+
+ [
+ [[link boost_asio.reference.local__basic_endpoint.operator_lt__eq_ [*operator<=]]]
+ [Compare endpoints for ordering. ]
+ ]
+
+ [
+ [[link boost_asio.reference.local__basic_endpoint.operator_eq__eq_ [*operator==]]]
+ [Compare two endpoints for equality. ]
+ ]
+
+ [
+ [[link boost_asio.reference.local__basic_endpoint.operator_gt_ [*operator>]]]
+ [Compare endpoints for ordering. ]
+ ]
+
+ [
+ [[link boost_asio.reference.local__basic_endpoint.operator_gt__eq_ [*operator>=]]]
+ [Compare endpoints for ordering. ]
+ ]
+
+]
+
+[heading Related Functions]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.local__basic_endpoint.operator_lt__lt_ [*operator<<]]]
+ [Output an endpoint as a string. ]
+ ]
+
+]
+
+The [link boost_asio.reference.local__basic_endpoint `local::basic_endpoint`] class template describes an endpoint that may be associated with a particular UNIX socket.
+
+
+[heading Thread Safety]
+
+[*Distinct] [*objects:] Safe.
+
+[*Shared] [*objects:] Unsafe.
+
+
+
+
+[heading Requirements]
+
+[*Header: ][^boost/asio/local/basic_endpoint.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
+
+[section:basic_endpoint local::basic_endpoint::basic_endpoint]
+
+[indexterm2 basic_endpoint..local::basic_endpoint]
+Default constructor.
+
+
+ ``[link boost_asio.reference.local__basic_endpoint.basic_endpoint.overload1 basic_endpoint]``();
+ `` [''''&raquo;''' [link boost_asio.reference.local__basic_endpoint.basic_endpoint.overload1 more...]]``
+
+
+Construct an endpoint using the specified path name.
+
+
+ ``[link boost_asio.reference.local__basic_endpoint.basic_endpoint.overload2 basic_endpoint]``(
+ const char * path_name);
+ `` [''''&raquo;''' [link boost_asio.reference.local__basic_endpoint.basic_endpoint.overload2 more...]]``
+
+ ``[link boost_asio.reference.local__basic_endpoint.basic_endpoint.overload3 basic_endpoint]``(
+ const std::string & path_name);
+ `` [''''&raquo;''' [link boost_asio.reference.local__basic_endpoint.basic_endpoint.overload3 more...]]``
+
+
+Copy constructor.
+
+
+ ``[link boost_asio.reference.local__basic_endpoint.basic_endpoint.overload4 basic_endpoint]``(
+ const basic_endpoint & other);
+ `` [''''&raquo;''' [link boost_asio.reference.local__basic_endpoint.basic_endpoint.overload4 more...]]``
+
+
+[section:overload1 local::basic_endpoint::basic_endpoint (1 of 4 overloads)]
+
+
+Default constructor.
+
+
+ basic_endpoint();
+
+
+
+[endsect]
+
+
+
+[section:overload2 local::basic_endpoint::basic_endpoint (2 of 4 overloads)]
+
+
+Construct an endpoint using the specified path name.
+
+
+ basic_endpoint(
+ const char * path_name);
+
+
+
+[endsect]
+
+
+
+[section:overload3 local::basic_endpoint::basic_endpoint (3 of 4 overloads)]
+
+
+Construct an endpoint using the specified path name.
+
+
+ basic_endpoint(
+ const std::string & path_name);
+
+
+
+[endsect]
+
+
+
+[section:overload4 local::basic_endpoint::basic_endpoint (4 of 4 overloads)]
+
+
+Copy constructor.
+
+
+ basic_endpoint(
+ const basic_endpoint & other);
+
+
+
+[endsect]
+
+
+[endsect]
+
+
+[section:capacity local::basic_endpoint::capacity]
+
+[indexterm2 capacity..local::basic_endpoint]
+Get the capacity of the endpoint in the native type.
+
+
+ std::size_t capacity() const;
+
+
+
+[endsect]
+
+
+[section:data local::basic_endpoint::data]
+
+[indexterm2 data..local::basic_endpoint]
+Get the underlying endpoint in the native type.
+
+
+ data_type * ``[link boost_asio.reference.local__basic_endpoint.data.overload1 data]``();
   `` [''''&raquo;''' [link boost_asio.reference.local__basic_endpoint.data.overload1 more...]]``
 
- const data_type * ``[link boost_asio.reference.local__basic_endpoint.data.overload2 data]``() const;
- `` [''''&raquo;''' [link boost_asio.reference.local__basic_endpoint.data.overload2 more...]]``
+ const data_type * ``[link boost_asio.reference.local__basic_endpoint.data.overload2 data]``() const;
+ `` [''''&raquo;''' [link boost_asio.reference.local__basic_endpoint.data.overload2 more...]]``
+
+
+[section:overload1 local::basic_endpoint::data (1 of 2 overloads)]
+
+
+Get the underlying endpoint in the native type.
+
+
+ data_type * data();
+
+
+
+[endsect]
+
+
+
+[section:overload2 local::basic_endpoint::data (2 of 2 overloads)]
+
+
+Get the underlying endpoint in the native type.
+
+
+ const data_type * data() const;
+
+
+
+[endsect]
+
+
+[endsect]
+
+
+[section:data_type local::basic_endpoint::data_type]
+
+[indexterm2 data_type..local::basic_endpoint]
+The type of the endpoint structure. This type is dependent on the underlying implementation of the socket layer.
+
+
+ typedef implementation_defined data_type;
+
+
+
+[heading Requirements]
+
+[*Header: ][^boost/asio/local/basic_endpoint.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
+
+
+[endsect]
+
+
+
+[section:operator_not__eq_ local::basic_endpoint::operator!=]
+
+[indexterm2 operator!=..local::basic_endpoint]
+Compare two endpoints for inequality.
+
+
+ friend bool operator!=(
+ const basic_endpoint< Protocol > & e1,
+ const basic_endpoint< Protocol > & e2);
+
+
+[heading Requirements]
+
+[*Header: ][^boost/asio/local/basic_endpoint.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
+
+
+[endsect]
+
+
+
+[section:operator_lt_ local::basic_endpoint::operator<]
+
+[indexterm2 operator<..local::basic_endpoint]
+Compare endpoints for ordering.
+
+
+ friend bool operator<(
+ const basic_endpoint< Protocol > & e1,
+ const basic_endpoint< Protocol > & e2);
+
+
+[heading Requirements]
+
+[*Header: ][^boost/asio/local/basic_endpoint.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
+
+
+[endsect]
+
+
+
+[section:operator_lt__lt_ local::basic_endpoint::operator<<]
+
+[indexterm2 operator<<..local::basic_endpoint]
+Output an endpoint as a string.
+
+
+ std::basic_ostream< Elem, Traits > & operator<<(
+ std::basic_ostream< Elem, Traits > & os,
+ const basic_endpoint< Protocol > & endpoint);
+
+
+Used to output a human-readable string for a specified endpoint.
+
+
+[heading Parameters]
+
+
+[variablelist
+
+[[os][The output stream to which the string will be written.]]
+
+[[endpoint][The endpoint to be written.]]
+
+]
+
+
+[heading Return Value]
+
+The output stream.
+
+
+
+
+[endsect]
+
+
+
+[section:operator_lt__eq_ local::basic_endpoint::operator<=]
+
+[indexterm2 operator<=..local::basic_endpoint]
+Compare endpoints for ordering.
+
+
+ friend bool operator<=(
+ const basic_endpoint< Protocol > & e1,
+ const basic_endpoint< Protocol > & e2);
+
+
+[heading Requirements]
+
+[*Header: ][^boost/asio/local/basic_endpoint.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
+
+
+[endsect]
+
+
+
+[section:operator_eq_ local::basic_endpoint::operator=]
+
+[indexterm2 operator=..local::basic_endpoint]
+Assign from another endpoint.
+
+
+ basic_endpoint & operator=(
+ const basic_endpoint & other);
+
+
+
+[endsect]
+
+
+
+[section:operator_eq__eq_ local::basic_endpoint::operator==]
+
+[indexterm2 operator==..local::basic_endpoint]
+Compare two endpoints for equality.
+
+
+ friend bool operator==(
+ const basic_endpoint< Protocol > & e1,
+ const basic_endpoint< Protocol > & e2);
+
+
+[heading Requirements]
+
+[*Header: ][^boost/asio/local/basic_endpoint.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
+
+
+[endsect]
+
+
+
+[section:operator_gt_ local::basic_endpoint::operator>]
+
+[indexterm2 operator>..local::basic_endpoint]
+Compare endpoints for ordering.
+
+
+ friend bool operator>(
+ const basic_endpoint< Protocol > & e1,
+ const basic_endpoint< Protocol > & e2);
+
+
+[heading Requirements]
+
+[*Header: ][^boost/asio/local/basic_endpoint.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
+
+
+[endsect]
+
+
+
+[section:operator_gt__eq_ local::basic_endpoint::operator>=]
+
+[indexterm2 operator>=..local::basic_endpoint]
+Compare endpoints for ordering.
+
+
+ friend bool operator>=(
+ const basic_endpoint< Protocol > & e1,
+ const basic_endpoint< Protocol > & e2);
+
+
+[heading Requirements]
+
+[*Header: ][^boost/asio/local/basic_endpoint.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
+
+
+[endsect]
+
+
+[section:path local::basic_endpoint::path]
+
+[indexterm2 path..local::basic_endpoint]
+Get the path associated with the endpoint.
+
+
+ std::string ``[link boost_asio.reference.local__basic_endpoint.path.overload1 path]``() const;
+ `` [''''&raquo;''' [link boost_asio.reference.local__basic_endpoint.path.overload1 more...]]``
+
+
+Set the path associated with the endpoint.
+
+
+ void ``[link boost_asio.reference.local__basic_endpoint.path.overload2 path]``(
+ const char * p);
+ `` [''''&raquo;''' [link boost_asio.reference.local__basic_endpoint.path.overload2 more...]]``
+
+ void ``[link boost_asio.reference.local__basic_endpoint.path.overload3 path]``(
+ const std::string & p);
+ `` [''''&raquo;''' [link boost_asio.reference.local__basic_endpoint.path.overload3 more...]]``
+
+
+[section:overload1 local::basic_endpoint::path (1 of 3 overloads)]
+
+
+Get the path associated with the endpoint.
+
+
+ std::string path() const;
+
+
+
+[endsect]
+
+
+
+[section:overload2 local::basic_endpoint::path (2 of 3 overloads)]
+
+
+Set the path associated with the endpoint.
+
+
+ void path(
+ const char * p);
+
+
+
+[endsect]
+
+
+
+[section:overload3 local::basic_endpoint::path (3 of 3 overloads)]
+
+
+Set the path associated with the endpoint.
+
+
+ void path(
+ const std::string & p);
+
+
+
+[endsect]
+
+
+[endsect]
+
+
+[section:protocol local::basic_endpoint::protocol]
+
+[indexterm2 protocol..local::basic_endpoint]
+The protocol associated with the endpoint.
+
+
+ protocol_type protocol() const;
+
+
+
+[endsect]
+
+
+
+[section:protocol_type local::basic_endpoint::protocol_type]
+
+[indexterm2 protocol_type..local::basic_endpoint]
+The protocol type associated with the endpoint.
+
+
+ typedef Protocol protocol_type;
+
+
+
+[heading Requirements]
+
+[*Header: ][^boost/asio/local/basic_endpoint.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
+
+
+[endsect]
+
+
+
+[section:resize local::basic_endpoint::resize]
+
+[indexterm2 resize..local::basic_endpoint]
+Set the underlying size of the endpoint in the native type.
+
+
+ void resize(
+ std::size_t new_size);
+
+
+
+[endsect]
+
+
+
+[section:size local::basic_endpoint::size]
+
+[indexterm2 size..local::basic_endpoint]
+Get the underlying size of the endpoint in the native type.
+
+
+ std::size_t size() const;
+
+
+
+[endsect]
+
+
+
+[endsect]
+
+[section:local__connect_pair local::connect_pair]
+
+[indexterm1 local::connect_pair]
+Create a pair of connected sockets.
+
+
+ template<
+ typename ``[link boost_asio.reference.Protocol Protocol]``,
+ typename ``[link boost_asio.reference.SocketService SocketService1]``,
+ typename ``[link boost_asio.reference.SocketService SocketService2]``>
+ void ``[link boost_asio.reference.local__connect_pair.overload1 connect_pair]``(
+ basic_socket< Protocol, SocketService1 > & socket1,
+ basic_socket< Protocol, SocketService2 > & socket2);
+ `` [''''&raquo;''' [link boost_asio.reference.local__connect_pair.overload1 more...]]``
+
+ template<
+ typename ``[link boost_asio.reference.Protocol Protocol]``,
+ typename ``[link boost_asio.reference.SocketService SocketService1]``,
+ typename ``[link boost_asio.reference.SocketService SocketService2]``>
+ boost::system::error_code ``[link boost_asio.reference.local__connect_pair.overload2 connect_pair]``(
+ basic_socket< Protocol, SocketService1 > & socket1,
+ basic_socket< Protocol, SocketService2 > & socket2,
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.local__connect_pair.overload2 more...]]``
+
+[heading Requirements]
+
+[*Header: ][^boost/asio/local/connect_pair.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
+
+
+[section:overload1 local::connect_pair (1 of 2 overloads)]
+
+
+Create a pair of connected sockets.
+
+
+ template<
+ typename ``[link boost_asio.reference.Protocol Protocol]``,
+ typename ``[link boost_asio.reference.SocketService SocketService1]``,
+ typename ``[link boost_asio.reference.SocketService SocketService2]``>
+ void connect_pair(
+ basic_socket< Protocol, SocketService1 > & socket1,
+ basic_socket< Protocol, SocketService2 > & socket2);
+
+
+
+[endsect]
+
+
+
+[section:overload2 local::connect_pair (2 of 2 overloads)]
+
+
+Create a pair of connected sockets.
+
+
+ template<
+ typename ``[link boost_asio.reference.Protocol Protocol]``,
+ typename ``[link boost_asio.reference.SocketService SocketService1]``,
+ typename ``[link boost_asio.reference.SocketService SocketService2]``>
+ boost::system::error_code connect_pair(
+ basic_socket< Protocol, SocketService1 > & socket1,
+ basic_socket< Protocol, SocketService2 > & socket2,
+ boost::system::error_code & ec);
+
+
+
+[endsect]
+
+
+[endsect]
+
+[section:local__datagram_protocol local::datagram_protocol]
+
+
+Encapsulates the flags needed for datagram-oriented UNIX sockets.
+
+
+ class datagram_protocol
+
+
+[heading Types]
+[table
+ [[Name][Description]]
+
+ [
+
+ [[link boost_asio.reference.local__datagram_protocol.endpoint [*endpoint]]]
+ [The type of a UNIX domain endpoint. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.local__datagram_protocol.socket [*socket]]]
+ [The UNIX domain socket type. ]
+
+ ]
+
+]
+
+[heading Member Functions]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.local__datagram_protocol.family [*family]]]
+ [Obtain an identifier for the protocol family. ]
+ ]
+
+ [
+ [[link boost_asio.reference.local__datagram_protocol.protocol [*protocol]]]
+ [Obtain an identifier for the protocol. ]
+ ]
+
+ [
+ [[link boost_asio.reference.local__datagram_protocol.type [*type]]]
+ [Obtain an identifier for the type of the protocol. ]
+ ]
+
+]
+
+The [link boost_asio.reference.local__datagram_protocol `local::datagram_protocol`] class contains flags necessary for datagram-oriented UNIX domain sockets.
+
+
+[heading Thread Safety]
+
+[*Distinct] [*objects:] Safe.
+
+[*Shared] [*objects:] Safe.
+
+
+
+
+[heading Requirements]
+
+[*Header: ][^boost/asio/local/datagram_protocol.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
+
+
+[section:endpoint local::datagram_protocol::endpoint]
+
+[indexterm2 endpoint..local::datagram_protocol]
+The type of a UNIX domain endpoint.
+
+
+ typedef basic_endpoint< datagram_protocol > endpoint;
+
+
+[heading Types]
+[table
+ [[Name][Description]]
+
+ [
+
+ [[link boost_asio.reference.local__basic_endpoint.data_type [*data_type]]]
+ [The type of the endpoint structure. This type is dependent on the underlying implementation of the socket layer. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.local__basic_endpoint.protocol_type [*protocol_type]]]
+ [The protocol type associated with the endpoint. ]
+
+ ]
+
+]
+
+[heading Member Functions]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.local__basic_endpoint.basic_endpoint [*basic_endpoint]]]
+ [Default constructor.
+
+ Construct an endpoint using the specified path name.
+
+ Copy constructor. ]
+ ]
+
+ [
+ [[link boost_asio.reference.local__basic_endpoint.capacity [*capacity]]]
+ [Get the capacity of the endpoint in the native type. ]
+ ]
+
+ [
+ [[link boost_asio.reference.local__basic_endpoint.data [*data]]]
+ [Get the underlying endpoint in the native type. ]
+ ]
+
+ [
+ [[link boost_asio.reference.local__basic_endpoint.operator_eq_ [*operator=]]]
+ [Assign from another endpoint. ]
+ ]
+
+ [
+ [[link boost_asio.reference.local__basic_endpoint.path [*path]]]
+ [Get the path associated with the endpoint.
+
+ Set the path associated with the endpoint. ]
+ ]
+
+ [
+ [[link boost_asio.reference.local__basic_endpoint.protocol [*protocol]]]
+ [The protocol associated with the endpoint. ]
+ ]
+
+ [
+ [[link boost_asio.reference.local__basic_endpoint.resize [*resize]]]
+ [Set the underlying size of the endpoint in the native type. ]
+ ]
+
+ [
+ [[link boost_asio.reference.local__basic_endpoint.size [*size]]]
+ [Get the underlying size of the endpoint in the native type. ]
+ ]
+
+]
+
+[heading Friends]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.local__basic_endpoint.operator_not__eq_ [*operator!=]]]
+ [Compare two endpoints for inequality. ]
+ ]
+
+ [
+ [[link boost_asio.reference.local__basic_endpoint.operator_lt_ [*operator<]]]
+ [Compare endpoints for ordering. ]
+ ]
+
+ [
+ [[link boost_asio.reference.local__basic_endpoint.operator_lt__eq_ [*operator<=]]]
+ [Compare endpoints for ordering. ]
+ ]
+
+ [
+ [[link boost_asio.reference.local__basic_endpoint.operator_eq__eq_ [*operator==]]]
+ [Compare two endpoints for equality. ]
+ ]
+
+ [
+ [[link boost_asio.reference.local__basic_endpoint.operator_gt_ [*operator>]]]
+ [Compare endpoints for ordering. ]
+ ]
+
+ [
+ [[link boost_asio.reference.local__basic_endpoint.operator_gt__eq_ [*operator>=]]]
+ [Compare endpoints for ordering. ]
+ ]
+
+]
+
+[heading Related Functions]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.local__basic_endpoint.operator_lt__lt_ [*operator<<]]]
+ [Output an endpoint as a string. ]
+ ]
+
+]
+
+The [link boost_asio.reference.local__basic_endpoint `local::basic_endpoint`] class template describes an endpoint that may be associated with a particular UNIX socket.
+
+
+[heading Thread Safety]
+
+[*Distinct] [*objects:] Safe.
+
+[*Shared] [*objects:] Unsafe.
+
+
+
+
+
+[heading Requirements]
+
+[*Header: ][^boost/asio/local/datagram_protocol.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
+
+
+[endsect]
+
+
+
+[section:family local::datagram_protocol::family]
+
+[indexterm2 family..local::datagram_protocol]
+Obtain an identifier for the protocol family.
+
+
+ int family() const;
+
+
+
+[endsect]
+
+
+
+[section:protocol local::datagram_protocol::protocol]
+
+[indexterm2 protocol..local::datagram_protocol]
+Obtain an identifier for the protocol.
+
+
+ int protocol() const;
+
+
+
+[endsect]
+
+
+
+[section:socket local::datagram_protocol::socket]
+
+[indexterm2 socket..local::datagram_protocol]
+The UNIX domain socket type.
+
+
+ typedef basic_datagram_socket< datagram_protocol > socket;
+
+
+[heading Types]
+[table
+ [[Name][Description]]
+
+ [
+
+ [[link boost_asio.reference.basic_datagram_socket.broadcast [*broadcast]]]
+ [Socket option to permit sending of broadcast messages. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_datagram_socket.bytes_readable [*bytes_readable]]]
+ [IO control command to get the amount of data that can be read without blocking. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_datagram_socket.debug [*debug]]]
+ [Socket option to enable socket-level debugging. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_datagram_socket.do_not_route [*do_not_route]]]
+ [Socket option to prevent routing, use local interfaces only. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_datagram_socket.enable_connection_aborted [*enable_connection_aborted]]]
+ [Socket option to report aborted connections on accept. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_datagram_socket.endpoint_type [*endpoint_type]]]
+ [The endpoint type. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_datagram_socket.implementation_type [*implementation_type]]]
+ [The underlying implementation type of I/O object. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_datagram_socket.keep_alive [*keep_alive]]]
+ [Socket option to send keep-alives. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_datagram_socket.linger [*linger]]]
+ [Socket option to specify whether the socket lingers on close if unsent data is present. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_datagram_socket.lowest_layer_type [*lowest_layer_type]]]
+ [A basic_socket is always the lowest layer. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_datagram_socket.message_flags [*message_flags]]]
+ [Bitmask type for flags that can be passed to send and receive operations. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_datagram_socket.native_handle_type [*native_handle_type]]]
+ [The native representation of a socket. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_datagram_socket.native_type [*native_type]]]
+ [(Deprecated: Use native_handle_type.) The native representation of a socket. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_datagram_socket.non_blocking_io [*non_blocking_io]]]
+ [(Deprecated: Use non_blocking().) IO control command to set the blocking mode of the socket. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_datagram_socket.protocol_type [*protocol_type]]]
+ [The protocol type. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_datagram_socket.receive_buffer_size [*receive_buffer_size]]]
+ [Socket option for the receive buffer size of a socket. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_datagram_socket.receive_low_watermark [*receive_low_watermark]]]
+ [Socket option for the receive low watermark. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_datagram_socket.reuse_address [*reuse_address]]]
+ [Socket option to allow the socket to be bound to an address that is already in use. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_datagram_socket.send_buffer_size [*send_buffer_size]]]
+ [Socket option for the send buffer size of a socket. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_datagram_socket.send_low_watermark [*send_low_watermark]]]
+ [Socket option for the send low watermark. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_datagram_socket.service_type [*service_type]]]
+ [The type of the service that will be used to provide I/O operations. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_datagram_socket.shutdown_type [*shutdown_type]]]
+ [Different ways a socket may be shutdown. ]
+
+ ]
+
+]
+
+[heading Member Functions]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.assign [*assign]]]
+ [Assign an existing native socket to the socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.async_connect [*async_connect]]]
+ [Start an asynchronous connect. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.async_receive [*async_receive]]]
+ [Start an asynchronous receive on a connected socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.async_receive_from [*async_receive_from]]]
+ [Start an asynchronous receive. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.async_send [*async_send]]]
+ [Start an asynchronous send on a connected socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.async_send_to [*async_send_to]]]
+ [Start an asynchronous send. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.at_mark [*at_mark]]]
+ [Determine whether the socket is at the out-of-band data mark. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.available [*available]]]
+ [Determine the number of bytes available for reading. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.basic_datagram_socket [*basic_datagram_socket]]]
+ [Construct a basic_datagram_socket without opening it.
+
+ Construct and open a basic_datagram_socket.
+
+ Construct a basic_datagram_socket, opening it and binding it to the given local endpoint.
+
+ Construct a basic_datagram_socket on an existing native socket.
+
+ Move-construct a basic_datagram_socket from another. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.bind [*bind]]]
+ [Bind the socket to the given local endpoint. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.cancel [*cancel]]]
+ [Cancel all asynchronous operations associated with the socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.close [*close]]]
+ [Close the socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.connect [*connect]]]
+ [Connect the socket to the specified endpoint. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.get_io_service [*get_io_service]]]
+ [Get the io_service associated with the object. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.get_option [*get_option]]]
+ [Get an option from the socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.io_control [*io_control]]]
+ [Perform an IO control command on the socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.is_open [*is_open]]]
+ [Determine whether the socket is open. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.local_endpoint [*local_endpoint]]]
+ [Get the local endpoint of the socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.lowest_layer [*lowest_layer]]]
+ [Get a reference to the lowest layer.
+
+ Get a const reference to the lowest layer. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.native [*native]]]
+ [(Deprecated: Use native_handle().) Get the native socket representation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.native_handle [*native_handle]]]
+ [Get the native socket representation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.native_non_blocking [*native_non_blocking]]]
+ [Gets the non-blocking mode of the native socket implementation.
+
+ Sets the non-blocking mode of the native socket implementation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.non_blocking [*non_blocking]]]
+ [Gets the non-blocking mode of the socket.
+
+ Sets the non-blocking mode of the socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.open [*open]]]
+ [Open the socket using the specified protocol. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.operator_eq_ [*operator=]]]
+ [Move-assign a basic_datagram_socket from another. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.receive [*receive]]]
+ [Receive some data on a connected socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.receive_from [*receive_from]]]
+ [Receive a datagram with the endpoint of the sender. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.remote_endpoint [*remote_endpoint]]]
+ [Get the remote endpoint of the socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.send [*send]]]
+ [Send some data on a connected socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.send_to [*send_to]]]
+ [Send a datagram to the specified endpoint. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.set_option [*set_option]]]
+ [Set an option on the socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.shutdown [*shutdown]]]
+ [Disable sends or receives on the socket. ]
+ ]
+
+]
+
+[heading Protected Member Functions]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.get_implementation [*get_implementation]]]
+ [Get the underlying implementation of the I/O object. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.get_service [*get_service]]]
+ [Get the service associated with the I/O object. ]
+ ]
+
+]
+
+[heading Data Members]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.max_connections [*max_connections]]]
+ [The maximum length of the queue of pending incoming connections. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.message_do_not_route [*message_do_not_route]]]
+ [Specify that the data should not be subject to routing. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.message_end_of_record [*message_end_of_record]]]
+ [Specifies that the data marks the end of a record. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.message_out_of_band [*message_out_of_band]]]
+ [Process out-of-band data. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.message_peek [*message_peek]]]
+ [Peek at incoming data without removing it from the input queue. ]
+ ]
+
+]
+
+[heading Protected Data Members]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.implementation [*implementation]]]
+ [(Deprecated: Use get_implementation().) The underlying implementation of the I/O object. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_datagram_socket.service [*service]]]
+ [(Deprecated: Use get_service().) The service associated with the I/O object. ]
+ ]
+
+]
+
+The [link boost_asio.reference.basic_datagram_socket `basic_datagram_socket`] class template provides asynchronous and blocking datagram-oriented socket functionality.
+
+
+[heading Thread Safety]
+
+[*Distinct] [*objects:] Safe.
+
+[*Shared] [*objects:] Unsafe.
+
+
+
+
+[heading Requirements]
+
+[*Header: ][^boost/asio/local/datagram_protocol.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
+
+
+[endsect]
+
+
+
+[section:type local::datagram_protocol::type]
+
+[indexterm2 type..local::datagram_protocol]
+Obtain an identifier for the type of the protocol.
+
+
+ int type() const;
+
+
+
+[endsect]
+
+
+
+[endsect]
+
+[section:local__stream_protocol local::stream_protocol]
+
+
+Encapsulates the flags needed for stream-oriented UNIX sockets.
+
+
+ class stream_protocol
+
+
+[heading Types]
+[table
+ [[Name][Description]]
+
+ [
+
+ [[link boost_asio.reference.local__stream_protocol.acceptor [*acceptor]]]
+ [The UNIX domain acceptor type. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.local__stream_protocol.endpoint [*endpoint]]]
+ [The type of a UNIX domain endpoint. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.local__stream_protocol.iostream [*iostream]]]
+ [The UNIX domain iostream type. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.local__stream_protocol.socket [*socket]]]
+ [The UNIX domain socket type. ]
+
+ ]
+
+]
+
+[heading Member Functions]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.local__stream_protocol.family [*family]]]
+ [Obtain an identifier for the protocol family. ]
+ ]
+
+ [
+ [[link boost_asio.reference.local__stream_protocol.protocol [*protocol]]]
+ [Obtain an identifier for the protocol. ]
+ ]
+
+ [
+ [[link boost_asio.reference.local__stream_protocol.type [*type]]]
+ [Obtain an identifier for the type of the protocol. ]
+ ]
+
+]
+
+The [link boost_asio.reference.local__stream_protocol `local::stream_protocol`] class contains flags necessary for stream-oriented UNIX domain sockets.
+
+
+[heading Thread Safety]
+
+[*Distinct] [*objects:] Safe.
+
+[*Shared] [*objects:] Safe.
+
+
+
+
+[heading Requirements]
+
+[*Header: ][^boost/asio/local/stream_protocol.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
+
+
+[section:acceptor local::stream_protocol::acceptor]
+
+[indexterm2 acceptor..local::stream_protocol]
+The UNIX domain acceptor type.
+
+
+ typedef basic_socket_acceptor< stream_protocol > acceptor;
+
+
+[heading Types]
+[table
+ [[Name][Description]]
+
+ [
+
+ [[link boost_asio.reference.basic_socket_acceptor.broadcast [*broadcast]]]
+ [Socket option to permit sending of broadcast messages. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_socket_acceptor.bytes_readable [*bytes_readable]]]
+ [IO control command to get the amount of data that can be read without blocking. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_socket_acceptor.debug [*debug]]]
+ [Socket option to enable socket-level debugging. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_socket_acceptor.do_not_route [*do_not_route]]]
+ [Socket option to prevent routing, use local interfaces only. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_socket_acceptor.enable_connection_aborted [*enable_connection_aborted]]]
+ [Socket option to report aborted connections on accept. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_socket_acceptor.endpoint_type [*endpoint_type]]]
+ [The endpoint type. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_socket_acceptor.implementation_type [*implementation_type]]]
+ [The underlying implementation type of I/O object. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_socket_acceptor.keep_alive [*keep_alive]]]
+ [Socket option to send keep-alives. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_socket_acceptor.linger [*linger]]]
+ [Socket option to specify whether the socket lingers on close if unsent data is present. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_socket_acceptor.message_flags [*message_flags]]]
+ [Bitmask type for flags that can be passed to send and receive operations. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_socket_acceptor.native_handle_type [*native_handle_type]]]
+ [The native representation of an acceptor. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_socket_acceptor.native_type [*native_type]]]
+ [(Deprecated: Use native_handle_type.) The native representation of an acceptor. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_socket_acceptor.non_blocking_io [*non_blocking_io]]]
+ [(Deprecated: Use non_blocking().) IO control command to set the blocking mode of the socket. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_socket_acceptor.protocol_type [*protocol_type]]]
+ [The protocol type. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_socket_acceptor.receive_buffer_size [*receive_buffer_size]]]
+ [Socket option for the receive buffer size of a socket. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_socket_acceptor.receive_low_watermark [*receive_low_watermark]]]
+ [Socket option for the receive low watermark. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_socket_acceptor.reuse_address [*reuse_address]]]
+ [Socket option to allow the socket to be bound to an address that is already in use. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_socket_acceptor.send_buffer_size [*send_buffer_size]]]
+ [Socket option for the send buffer size of a socket. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_socket_acceptor.send_low_watermark [*send_low_watermark]]]
+ [Socket option for the send low watermark. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_socket_acceptor.service_type [*service_type]]]
+ [The type of the service that will be used to provide I/O operations. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_socket_acceptor.shutdown_type [*shutdown_type]]]
+ [Different ways a socket may be shutdown. ]
+
+ ]
+
+]
+
+[heading Member Functions]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.basic_socket_acceptor.accept [*accept]]]
+ [Accept a new connection.
+
+ Accept a new connection and obtain the endpoint of the peer. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_socket_acceptor.assign [*assign]]]
+ [Assigns an existing native acceptor to the acceptor. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_socket_acceptor.async_accept [*async_accept]]]
+ [Start an asynchronous accept. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_socket_acceptor.basic_socket_acceptor [*basic_socket_acceptor]]]
+ [Construct an acceptor without opening it.
+
+ Construct an open acceptor.
+
+ Construct an acceptor opened on the given endpoint.
+
+ Construct a basic_socket_acceptor on an existing native acceptor.
+
+ Move-construct a basic_socket_acceptor from another. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_socket_acceptor.bind [*bind]]]
+ [Bind the acceptor to the given local endpoint. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_socket_acceptor.cancel [*cancel]]]
+ [Cancel all asynchronous operations associated with the acceptor. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_socket_acceptor.close [*close]]]
+ [Close the acceptor. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_socket_acceptor.get_io_service [*get_io_service]]]
+ [Get the io_service associated with the object. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_socket_acceptor.get_option [*get_option]]]
+ [Get an option from the acceptor. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_socket_acceptor.io_control [*io_control]]]
+ [Perform an IO control command on the acceptor. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_socket_acceptor.is_open [*is_open]]]
+ [Determine whether the acceptor is open. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_socket_acceptor.listen [*listen]]]
+ [Place the acceptor into the state where it will listen for new connections. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_socket_acceptor.local_endpoint [*local_endpoint]]]
+ [Get the local endpoint of the acceptor. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_socket_acceptor.native [*native]]]
+ [(Deprecated: Use native_handle().) Get the native acceptor representation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_socket_acceptor.native_handle [*native_handle]]]
+ [Get the native acceptor representation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_socket_acceptor.native_non_blocking [*native_non_blocking]]]
+ [Gets the non-blocking mode of the native acceptor implementation.
 
+ Sets the non-blocking mode of the native acceptor implementation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_socket_acceptor.non_blocking [*non_blocking]]]
+ [Gets the non-blocking mode of the acceptor.
 
-[section:overload1 local::basic_endpoint::data (1 of 2 overloads)]
+ Sets the non-blocking mode of the acceptor. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_socket_acceptor.open [*open]]]
+ [Open the acceptor using the specified protocol. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_socket_acceptor.operator_eq_ [*operator=]]]
+ [Move-assign a basic_socket_acceptor from another. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_socket_acceptor.set_option [*set_option]]]
+ [Set an option on the acceptor. ]
+ ]
+
+]
 
+[heading Protected Member Functions]
+[table
+ [[Name][Description]]
 
-Get the underlying endpoint in the native type.
+ [
+ [[link boost_asio.reference.basic_socket_acceptor.get_implementation [*get_implementation]]]
+ [Get the underlying implementation of the I/O object. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_socket_acceptor.get_service [*get_service]]]
+ [Get the service associated with the I/O object. ]
+ ]
+
+]
 
+[heading Data Members]
+[table
+ [[Name][Description]]
 
- data_type * data();
+ [
+ [[link boost_asio.reference.basic_socket_acceptor.max_connections [*max_connections]]]
+ [The maximum length of the queue of pending incoming connections. ]
+ ]
 
+ [
+ [[link boost_asio.reference.basic_socket_acceptor.message_do_not_route [*message_do_not_route]]]
+ [Specify that the data should not be subject to routing. ]
+ ]
 
+ [
+ [[link boost_asio.reference.basic_socket_acceptor.message_end_of_record [*message_end_of_record]]]
+ [Specifies that the data marks the end of a record. ]
+ ]
 
-[endsect]
+ [
+ [[link boost_asio.reference.basic_socket_acceptor.message_out_of_band [*message_out_of_band]]]
+ [Process out-of-band data. ]
+ ]
 
+ [
+ [[link boost_asio.reference.basic_socket_acceptor.message_peek [*message_peek]]]
+ [Peek at incoming data without removing it from the input queue. ]
+ ]
 
+]
 
-[section:overload2 local::basic_endpoint::data (2 of 2 overloads)]
+[heading Protected Data Members]
+[table
+ [[Name][Description]]
 
+ [
+ [[link boost_asio.reference.basic_socket_acceptor.implementation [*implementation]]]
+ [(Deprecated: Use get_implementation().) The underlying implementation of the I/O object. ]
+ ]
 
-Get the underlying endpoint in the native type.
+ [
+ [[link boost_asio.reference.basic_socket_acceptor.service [*service]]]
+ [(Deprecated: Use get_service().) The service associated with the I/O object. ]
+ ]
 
+]
 
- const data_type * data() const;
+The [link boost_asio.reference.basic_socket_acceptor `basic_socket_acceptor`] class template is used for accepting new socket connections.
 
 
+[heading Thread Safety]
+
+[*Distinct] [*objects:] Safe.
 
-[endsect]
+[*Shared] [*objects:] Unsafe.
 
 
-[endsect]
+[heading Example]
+
+Opening a socket acceptor with the SO\_REUSEADDR option enabled:
 
+ boost::asio::ip::tcp::acceptor acceptor(io_service);
+ boost::asio::ip::tcp::endpoint endpoint(boost::asio::ip::tcp::v4(), port);
+ acceptor.open(endpoint.protocol());
+ acceptor.set_option(boost::asio::ip::tcp::acceptor::reuse_address(true));
+ acceptor.bind(endpoint);
+ acceptor.listen();
 
-[section:data_type local::basic_endpoint::data_type]
 
-[indexterm2 data_type..local::basic_endpoint]
-The type of the endpoint structure. This type is dependent on the underlying implementation of the socket layer.
 
 
- typedef implementation_defined data_type;
 
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/local/basic_endpoint.hpp]
+[*Header: ][^boost/asio/local/stream_protocol.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -65267,42 +68381,150 @@
 
 
 
-[section:operator_not__eq_ local::basic_endpoint::operator!=]
+[section:endpoint local::stream_protocol::endpoint]
 
-[indexterm2 operator!=..local::basic_endpoint]
-Compare two endpoints for inequality.
+[indexterm2 endpoint..local::stream_protocol]
+The type of a UNIX domain endpoint.
 
 
- friend bool operator!=(
- const basic_endpoint< Protocol > & e1,
- const basic_endpoint< Protocol > & e2);
+ typedef basic_endpoint< stream_protocol > endpoint;
 
 
-[heading Requirements]
+[heading Types]
+[table
+ [[Name][Description]]
 
-[*Header: ][^boost/asio/local/basic_endpoint.hpp]
+ [
 
-[*Convenience header: ][^boost/asio.hpp]
+ [[link boost_asio.reference.local__basic_endpoint.data_type [*data_type]]]
+ [The type of the endpoint structure. This type is dependent on the underlying implementation of the socket layer. ]
+
+ ]
 
+ [
 
-[endsect]
+ [[link boost_asio.reference.local__basic_endpoint.protocol_type [*protocol_type]]]
+ [The protocol type associated with the endpoint. ]
+
+ ]
 
+]
 
+[heading Member Functions]
+[table
+ [[Name][Description]]
 
-[section:operator_lt_ local::basic_endpoint::operator<]
+ [
+ [[link boost_asio.reference.local__basic_endpoint.basic_endpoint [*basic_endpoint]]]
+ [Default constructor.
+
+ Construct an endpoint using the specified path name.
+
+ Copy constructor. ]
+ ]
+
+ [
+ [[link boost_asio.reference.local__basic_endpoint.capacity [*capacity]]]
+ [Get the capacity of the endpoint in the native type. ]
+ ]
+
+ [
+ [[link boost_asio.reference.local__basic_endpoint.data [*data]]]
+ [Get the underlying endpoint in the native type. ]
+ ]
+
+ [
+ [[link boost_asio.reference.local__basic_endpoint.operator_eq_ [*operator=]]]
+ [Assign from another endpoint. ]
+ ]
+
+ [
+ [[link boost_asio.reference.local__basic_endpoint.path [*path]]]
+ [Get the path associated with the endpoint.
+
+ Set the path associated with the endpoint. ]
+ ]
+
+ [
+ [[link boost_asio.reference.local__basic_endpoint.protocol [*protocol]]]
+ [The protocol associated with the endpoint. ]
+ ]
+
+ [
+ [[link boost_asio.reference.local__basic_endpoint.resize [*resize]]]
+ [Set the underlying size of the endpoint in the native type. ]
+ ]
+
+ [
+ [[link boost_asio.reference.local__basic_endpoint.size [*size]]]
+ [Get the underlying size of the endpoint in the native type. ]
+ ]
+
+]
+
+[heading Friends]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.local__basic_endpoint.operator_not__eq_ [*operator!=]]]
+ [Compare two endpoints for inequality. ]
+ ]
+
+ [
+ [[link boost_asio.reference.local__basic_endpoint.operator_lt_ [*operator<]]]
+ [Compare endpoints for ordering. ]
+ ]
+
+ [
+ [[link boost_asio.reference.local__basic_endpoint.operator_lt__eq_ [*operator<=]]]
+ [Compare endpoints for ordering. ]
+ ]
+
+ [
+ [[link boost_asio.reference.local__basic_endpoint.operator_eq__eq_ [*operator==]]]
+ [Compare two endpoints for equality. ]
+ ]
+
+ [
+ [[link boost_asio.reference.local__basic_endpoint.operator_gt_ [*operator>]]]
+ [Compare endpoints for ordering. ]
+ ]
+
+ [
+ [[link boost_asio.reference.local__basic_endpoint.operator_gt__eq_ [*operator>=]]]
+ [Compare endpoints for ordering. ]
+ ]
+
+]
+
+[heading Related Functions]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.local__basic_endpoint.operator_lt__lt_ [*operator<<]]]
+ [Output an endpoint as a string. ]
+ ]
+
+]
+
+The [link boost_asio.reference.local__basic_endpoint `local::basic_endpoint`] class template describes an endpoint that may be associated with a particular UNIX socket.
+
+
+[heading Thread Safety]
+
+[*Distinct] [*objects:] Safe.
+
+[*Shared] [*objects:] Unsafe.
 
-[indexterm2 operator<..local::basic_endpoint]
-Compare endpoints for ordering.
 
 
- friend bool operator<(
- const basic_endpoint< Protocol > & e1,
- const basic_endpoint< Protocol > & e2);
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/local/basic_endpoint.hpp]
+[*Header: ][^boost/asio/local/stream_protocol.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -65311,57 +68533,107 @@
 
 
 
-[section:operator_lt__lt_ local::basic_endpoint::operator<<]
+[section:family local::stream_protocol::family]
 
-[indexterm2 operator<<..local::basic_endpoint]
-Output an endpoint as a string.
+[indexterm2 family..local::stream_protocol]
+Obtain an identifier for the protocol family.
 
 
- std::basic_ostream< Elem, Traits > & operator<<(
- std::basic_ostream< Elem, Traits > & os,
- const basic_endpoint< Protocol > & endpoint);
+ int family() const;
 
 
-Used to output a human-readable string for a specified endpoint.
 
+[endsect]
 
-[heading Parameters]
-
 
-[variablelist
-
-[[os][The output stream to which the string will be written.]]
 
-[[endpoint][The endpoint to be written.]]
+[section:iostream local::stream_protocol::iostream]
 
-]
+[indexterm2 iostream..local::stream_protocol]
+The UNIX domain iostream type.
 
 
-[heading Return Value]
-
-The output stream.
+ typedef basic_socket_iostream< stream_protocol > iostream;
 
 
+[heading Types]
+[table
+ [[Name][Description]]
 
+ [
 
-[endsect]
+ [[link boost_asio.reference.basic_socket_iostream.duration_type [*duration_type]]]
+ [The duration type. ]
+
+ ]
 
+ [
 
+ [[link boost_asio.reference.basic_socket_iostream.endpoint_type [*endpoint_type]]]
+ [The endpoint type. ]
+
+ ]
 
-[section:operator_lt__eq_ local::basic_endpoint::operator<=]
+ [
 
-[indexterm2 operator<=..local::basic_endpoint]
-Compare endpoints for ordering.
+ [[link boost_asio.reference.basic_socket_iostream.time_type [*time_type]]]
+ [The time type. ]
+
+ ]
 
+]
 
- friend bool operator<=(
- const basic_endpoint< Protocol > & e1,
- const basic_endpoint< Protocol > & e2);
+[heading Member Functions]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.basic_socket_iostream.basic_socket_iostream [*basic_socket_iostream]]]
+ [Construct a basic_socket_iostream without establishing a connection.
+
+ Establish a connection to an endpoint corresponding to a resolver query. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_socket_iostream.close [*close]]]
+ [Close the connection. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_socket_iostream.connect [*connect]]]
+ [Establish a connection to an endpoint corresponding to a resolver query. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_socket_iostream.error [*error]]]
+ [Get the last error associated with the stream. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_socket_iostream.expires_at [*expires_at]]]
+ [Get the stream's expiry time as an absolute time.
+
+ Set the stream's expiry time as an absolute time. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_socket_iostream.expires_from_now [*expires_from_now]]]
+ [Get the timer's expiry time relative to now.
+
+ Set the stream's expiry time relative to now. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_socket_iostream.rdbuf [*rdbuf]]]
+ [Return a pointer to the underlying streambuf. ]
+ ]
+
+]
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/local/basic_endpoint.hpp]
+[*Header: ][^boost/asio/local/stream_protocol.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -65370,14 +68642,13 @@
 
 
 
-[section:operator_eq_ local::basic_endpoint::operator=]
+[section:protocol local::stream_protocol::protocol]
 
-[indexterm2 operator=..local::basic_endpoint]
-Assign from another endpoint.
+[indexterm2 protocol..local::stream_protocol]
+Obtain an identifier for the protocol.
 
 
- basic_endpoint & operator=(
- const basic_endpoint & other);
+ int protocol() const;
 
 
 
@@ -65385,250 +68656,545 @@
 
 
 
-[section:operator_eq__eq_ local::basic_endpoint::operator==]
+[section:socket local::stream_protocol::socket]
 
-[indexterm2 operator==..local::basic_endpoint]
-Compare two endpoints for equality.
+[indexterm2 socket..local::stream_protocol]
+The UNIX domain socket type.
 
 
- friend bool operator==(
- const basic_endpoint< Protocol > & e1,
- const basic_endpoint< Protocol > & e2);
+ typedef basic_stream_socket< stream_protocol > socket;
 
 
-[heading Requirements]
+[heading Types]
+[table
+ [[Name][Description]]
 
-[*Header: ][^boost/asio/local/basic_endpoint.hpp]
+ [
 
-[*Convenience header: ][^boost/asio.hpp]
+ [[link boost_asio.reference.basic_stream_socket.broadcast [*broadcast]]]
+ [Socket option to permit sending of broadcast messages. ]
+
+ ]
 
+ [
 
-[endsect]
+ [[link boost_asio.reference.basic_stream_socket.bytes_readable [*bytes_readable]]]
+ [IO control command to get the amount of data that can be read without blocking. ]
+
+ ]
 
+ [
 
+ [[link boost_asio.reference.basic_stream_socket.debug [*debug]]]
+ [Socket option to enable socket-level debugging. ]
+
+ ]
 
-[section:operator_gt_ local::basic_endpoint::operator>]
+ [
 
-[indexterm2 operator>..local::basic_endpoint]
-Compare endpoints for ordering.
+ [[link boost_asio.reference.basic_stream_socket.do_not_route [*do_not_route]]]
+ [Socket option to prevent routing, use local interfaces only. ]
+
+ ]
 
+ [
 
- friend bool operator>(
- const basic_endpoint< Protocol > & e1,
- const basic_endpoint< Protocol > & e2);
+ [[link boost_asio.reference.basic_stream_socket.enable_connection_aborted [*enable_connection_aborted]]]
+ [Socket option to report aborted connections on accept. ]
+
+ ]
 
+ [
 
-[heading Requirements]
+ [[link boost_asio.reference.basic_stream_socket.endpoint_type [*endpoint_type]]]
+ [The endpoint type. ]
+
+ ]
 
-[*Header: ][^boost/asio/local/basic_endpoint.hpp]
+ [
 
-[*Convenience header: ][^boost/asio.hpp]
+ [[link boost_asio.reference.basic_stream_socket.implementation_type [*implementation_type]]]
+ [The underlying implementation type of I/O object. ]
+
+ ]
 
+ [
 
-[endsect]
+ [[link boost_asio.reference.basic_stream_socket.keep_alive [*keep_alive]]]
+ [Socket option to send keep-alives. ]
+
+ ]
 
+ [
 
+ [[link boost_asio.reference.basic_stream_socket.linger [*linger]]]
+ [Socket option to specify whether the socket lingers on close if unsent data is present. ]
+
+ ]
 
-[section:operator_gt__eq_ local::basic_endpoint::operator>=]
+ [
 
-[indexterm2 operator>=..local::basic_endpoint]
-Compare endpoints for ordering.
+ [[link boost_asio.reference.basic_stream_socket.lowest_layer_type [*lowest_layer_type]]]
+ [A basic_socket is always the lowest layer. ]
+
+ ]
 
+ [
 
- friend bool operator>=(
- const basic_endpoint< Protocol > & e1,
- const basic_endpoint< Protocol > & e2);
+ [[link boost_asio.reference.basic_stream_socket.message_flags [*message_flags]]]
+ [Bitmask type for flags that can be passed to send and receive operations. ]
+
+ ]
 
+ [
 
-[heading Requirements]
+ [[link boost_asio.reference.basic_stream_socket.native_handle_type [*native_handle_type]]]
+ [The native representation of a socket. ]
+
+ ]
 
-[*Header: ][^boost/asio/local/basic_endpoint.hpp]
+ [
 
-[*Convenience header: ][^boost/asio.hpp]
+ [[link boost_asio.reference.basic_stream_socket.native_type [*native_type]]]
+ [(Deprecated: Use native_handle_type.) The native representation of a socket. ]
+
+ ]
 
+ [
 
-[endsect]
+ [[link boost_asio.reference.basic_stream_socket.non_blocking_io [*non_blocking_io]]]
+ [(Deprecated: Use non_blocking().) IO control command to set the blocking mode of the socket. ]
+
+ ]
 
+ [
 
-[section:path local::basic_endpoint::path]
+ [[link boost_asio.reference.basic_stream_socket.protocol_type [*protocol_type]]]
+ [The protocol type. ]
+
+ ]
 
-[indexterm2 path..local::basic_endpoint]
-Get the path associated with the endpoint.
+ [
+
+ [[link boost_asio.reference.basic_stream_socket.receive_buffer_size [*receive_buffer_size]]]
+ [Socket option for the receive buffer size of a socket. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_stream_socket.receive_low_watermark [*receive_low_watermark]]]
+ [Socket option for the receive low watermark. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_stream_socket.reuse_address [*reuse_address]]]
+ [Socket option to allow the socket to be bound to an address that is already in use. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_stream_socket.send_buffer_size [*send_buffer_size]]]
+ [Socket option for the send buffer size of a socket. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.basic_stream_socket.send_low_watermark [*send_low_watermark]]]
+ [Socket option for the send low watermark. ]
+
+ ]
 
+ [
 
- std::string ``[link boost_asio.reference.local__basic_endpoint.path.overload1 path]``() const;
- `` [''''&raquo;''' [link boost_asio.reference.local__basic_endpoint.path.overload1 more...]]``
+ [[link boost_asio.reference.basic_stream_socket.service_type [*service_type]]]
+ [The type of the service that will be used to provide I/O operations. ]
+
+ ]
 
+ [
 
-Set the path associated with the endpoint.
+ [[link boost_asio.reference.basic_stream_socket.shutdown_type [*shutdown_type]]]
+ [Different ways a socket may be shutdown. ]
+
+ ]
 
+]
 
- void ``[link boost_asio.reference.local__basic_endpoint.path.overload2 path]``(
- const char * p);
- `` [''''&raquo;''' [link boost_asio.reference.local__basic_endpoint.path.overload2 more...]]``
+[heading Member Functions]
+[table
+ [[Name][Description]]
 
- void ``[link boost_asio.reference.local__basic_endpoint.path.overload3 path]``(
- const std::string & p);
- `` [''''&raquo;''' [link boost_asio.reference.local__basic_endpoint.path.overload3 more...]]``
+ [
+ [[link boost_asio.reference.basic_stream_socket.assign [*assign]]]
+ [Assign an existing native socket to the socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.async_connect [*async_connect]]]
+ [Start an asynchronous connect. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.async_read_some [*async_read_some]]]
+ [Start an asynchronous read. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.async_receive [*async_receive]]]
+ [Start an asynchronous receive. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.async_send [*async_send]]]
+ [Start an asynchronous send. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.async_write_some [*async_write_some]]]
+ [Start an asynchronous write. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.at_mark [*at_mark]]]
+ [Determine whether the socket is at the out-of-band data mark. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.available [*available]]]
+ [Determine the number of bytes available for reading. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.basic_stream_socket [*basic_stream_socket]]]
+ [Construct a basic_stream_socket without opening it.
 
+ Construct and open a basic_stream_socket.
 
-[section:overload1 local::basic_endpoint::path (1 of 3 overloads)]
+ Construct a basic_stream_socket, opening it and binding it to the given local endpoint.
 
+ Construct a basic_stream_socket on an existing native socket.
 
-Get the path associated with the endpoint.
+ Move-construct a basic_stream_socket from another. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.bind [*bind]]]
+ [Bind the socket to the given local endpoint. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.cancel [*cancel]]]
+ [Cancel all asynchronous operations associated with the socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.close [*close]]]
+ [Close the socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.connect [*connect]]]
+ [Connect the socket to the specified endpoint. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.get_io_service [*get_io_service]]]
+ [Get the io_service associated with the object. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.get_option [*get_option]]]
+ [Get an option from the socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.io_control [*io_control]]]
+ [Perform an IO control command on the socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.is_open [*is_open]]]
+ [Determine whether the socket is open. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.local_endpoint [*local_endpoint]]]
+ [Get the local endpoint of the socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.lowest_layer [*lowest_layer]]]
+ [Get a reference to the lowest layer.
 
+ Get a const reference to the lowest layer. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.native [*native]]]
+ [(Deprecated: Use native_handle().) Get the native socket representation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.native_handle [*native_handle]]]
+ [Get the native socket representation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.native_non_blocking [*native_non_blocking]]]
+ [Gets the non-blocking mode of the native socket implementation.
 
- std::string path() const;
+ Sets the non-blocking mode of the native socket implementation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.non_blocking [*non_blocking]]]
+ [Gets the non-blocking mode of the socket.
 
+ Sets the non-blocking mode of the socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.open [*open]]]
+ [Open the socket using the specified protocol. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.operator_eq_ [*operator=]]]
+ [Move-assign a basic_stream_socket from another. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.read_some [*read_some]]]
+ [Read some data from the socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.receive [*receive]]]
+ [Receive some data on the socket.
 
+ Receive some data on a connected socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.remote_endpoint [*remote_endpoint]]]
+ [Get the remote endpoint of the socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.send [*send]]]
+ [Send some data on the socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.set_option [*set_option]]]
+ [Set an option on the socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.shutdown [*shutdown]]]
+ [Disable sends or receives on the socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.write_some [*write_some]]]
+ [Write some data to the socket. ]
+ ]
+
+]
 
-[endsect]
+[heading Protected Member Functions]
+[table
+ [[Name][Description]]
 
+ [
+ [[link boost_asio.reference.basic_stream_socket.get_implementation [*get_implementation]]]
+ [Get the underlying implementation of the I/O object. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_stream_socket.get_service [*get_service]]]
+ [Get the service associated with the I/O object. ]
+ ]
+
+]
 
+[heading Data Members]
+[table
+ [[Name][Description]]
 
-[section:overload2 local::basic_endpoint::path (2 of 3 overloads)]
+ [
+ [[link boost_asio.reference.basic_stream_socket.max_connections [*max_connections]]]
+ [The maximum length of the queue of pending incoming connections. ]
+ ]
 
+ [
+ [[link boost_asio.reference.basic_stream_socket.message_do_not_route [*message_do_not_route]]]
+ [Specify that the data should not be subject to routing. ]
+ ]
 
-Set the path associated with the endpoint.
+ [
+ [[link boost_asio.reference.basic_stream_socket.message_end_of_record [*message_end_of_record]]]
+ [Specifies that the data marks the end of a record. ]
+ ]
 
+ [
+ [[link boost_asio.reference.basic_stream_socket.message_out_of_band [*message_out_of_band]]]
+ [Process out-of-band data. ]
+ ]
 
- void path(
- const char * p);
+ [
+ [[link boost_asio.reference.basic_stream_socket.message_peek [*message_peek]]]
+ [Peek at incoming data without removing it from the input queue. ]
+ ]
 
+]
 
+[heading Protected Data Members]
+[table
+ [[Name][Description]]
 
-[endsect]
+ [
+ [[link boost_asio.reference.basic_stream_socket.implementation [*implementation]]]
+ [(Deprecated: Use get_implementation().) The underlying implementation of the I/O object. ]
+ ]
 
+ [
+ [[link boost_asio.reference.basic_stream_socket.service [*service]]]
+ [(Deprecated: Use get_service().) The service associated with the I/O object. ]
+ ]
 
+]
 
-[section:overload3 local::basic_endpoint::path (3 of 3 overloads)]
+The [link boost_asio.reference.basic_stream_socket `basic_stream_socket`] class template provides asynchronous and blocking stream-oriented socket functionality.
 
 
-Set the path associated with the endpoint.
+[heading Thread Safety]
+
+[*Distinct] [*objects:] Safe.
 
+[*Shared] [*objects:] Unsafe.
 
- void path(
- const std::string & p);
 
 
 
-[endsect]
 
+[heading Requirements]
 
-[endsect]
+[*Header: ][^boost/asio/local/stream_protocol.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
-[section:protocol local::basic_endpoint::protocol]
 
-[indexterm2 protocol..local::basic_endpoint]
-The protocol associated with the endpoint.
+[endsect]
 
 
- protocol_type protocol() const;
 
+[section:type local::stream_protocol::type]
 
+[indexterm2 type..local::stream_protocol]
+Obtain an identifier for the type of the protocol.
 
-[endsect]
 
+ int type() const;
 
 
-[section:protocol_type local::basic_endpoint::protocol_type]
 
-[indexterm2 protocol_type..local::basic_endpoint]
-The protocol type associated with the endpoint.
+[endsect]
 
 
- typedef Protocol protocol_type;
 
+[endsect]
 
+[section:mutable_buffer mutable_buffer]
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/local/basic_endpoint.hpp]
+Holds a buffer that can be modified.
 
-[*Convenience header: ][^boost/asio.hpp]
 
+ class mutable_buffer
 
-[endsect]
 
+[heading Member Functions]
+[table
+ [[Name][Description]]
 
+ [
+ [[link boost_asio.reference.mutable_buffer.mutable_buffer [*mutable_buffer]]]
+ [Construct an empty buffer.
 
-[section:resize local::basic_endpoint::resize]
+ Construct a buffer to represent a given memory range. ]
+ ]
+
+]
 
-[indexterm2 resize..local::basic_endpoint]
-Set the underlying size of the endpoint in the native type.
+[heading Related Functions]
+[table
+ [[Name][Description]]
 
+ [
+ [[link boost_asio.reference.mutable_buffer.operator_plus_ [*operator+]]]
+ [Create a new modifiable buffer that is offset from the start of another. ]
+ ]
+
+]
 
- void resize(
- std::size_t new_size);
+The [link boost_asio.reference.mutable_buffer `mutable_buffer`] class provides a safe representation of a buffer that can be modified. It does not own the underlying data, and so is cheap to copy or assign.
 
 
+[heading Accessing Buffer Contents]
+
 
-[endsect]
 
+The contents of a buffer may be accessed using the [link boost_asio.reference.buffer_size `buffer_size`] and [link boost_asio.reference.buffer_cast `buffer_cast`] functions:
 
 
-[section:size local::basic_endpoint::size]
 
-[indexterm2 size..local::basic_endpoint]
-Get the underlying size of the endpoint in the native type.
+ boost::asio::mutable_buffer b1 = ...;
+ std::size_t s1 = boost::asio::buffer_size(b1);
+ unsigned char* p1 = boost::asio::buffer_cast<unsigned char*>(b1);
 
 
- std::size_t size() const;
 
 
+The `boost::asio::buffer_cast` function permits violations of type safety, so uses of it in application code should be carefully considered.
 
-[endsect]
+[heading Requirements]
 
+[*Header: ][^boost/asio/buffer.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
-[endsect]
+[section:mutable_buffer mutable_buffer::mutable_buffer]
 
-[section:local__connect_pair local::connect_pair]
+[indexterm2 mutable_buffer..mutable_buffer]
+Construct an empty buffer.
 
-[indexterm1 local::connect_pair]
-Create a pair of connected sockets.
 
-
- template<
- typename ``[link boost_asio.reference.Protocol Protocol]``,
- typename ``[link boost_asio.reference.SocketService SocketService1]``,
- typename ``[link boost_asio.reference.SocketService SocketService2]``>
- void ``[link boost_asio.reference.local__connect_pair.overload1 connect_pair]``(
- basic_socket< Protocol, SocketService1 > & socket1,
- basic_socket< Protocol, SocketService2 > & socket2);
- `` [''''&raquo;''' [link boost_asio.reference.local__connect_pair.overload1 more...]]``
+ ``[link boost_asio.reference.mutable_buffer.mutable_buffer.overload1 mutable_buffer]``();
+ `` [''''&raquo;''' [link boost_asio.reference.mutable_buffer.mutable_buffer.overload1 more...]]``
 
- template<
- typename ``[link boost_asio.reference.Protocol Protocol]``,
- typename ``[link boost_asio.reference.SocketService SocketService1]``,
- typename ``[link boost_asio.reference.SocketService SocketService2]``>
- boost::system::error_code ``[link boost_asio.reference.local__connect_pair.overload2 connect_pair]``(
- basic_socket< Protocol, SocketService1 > & socket1,
- basic_socket< Protocol, SocketService2 > & socket2,
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.local__connect_pair.overload2 more...]]``
 
-[heading Requirements]
+Construct a buffer to represent a given memory range.
 
-[*Header: ][^boost/asio/local/connect_pair.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
+ ``[link boost_asio.reference.mutable_buffer.mutable_buffer.overload2 mutable_buffer]``(
+ void * data,
+ std::size_t size);
+ `` [''''&raquo;''' [link boost_asio.reference.mutable_buffer.mutable_buffer.overload2 more...]]``
 
 
-[section:overload1 local::connect_pair (1 of 2 overloads)]
+[section:overload1 mutable_buffer::mutable_buffer (1 of 2 overloads)]
 
 
-Create a pair of connected sockets.
+Construct an empty buffer.
 
 
- template<
- typename ``[link boost_asio.reference.Protocol Protocol]``,
- typename ``[link boost_asio.reference.SocketService SocketService1]``,
- typename ``[link boost_asio.reference.SocketService SocketService2]``>
- void connect_pair(
- basic_socket< Protocol, SocketService1 > & socket1,
- basic_socket< Protocol, SocketService2 > & socket2);
+ mutable_buffer();
 
 
 
@@ -65636,20 +69202,15 @@
 
 
 
-[section:overload2 local::connect_pair (2 of 2 overloads)]
+[section:overload2 mutable_buffer::mutable_buffer (2 of 2 overloads)]
 
 
-Create a pair of connected sockets.
+Construct a buffer to represent a given memory range.
 
 
- template<
- typename ``[link boost_asio.reference.Protocol Protocol]``,
- typename ``[link boost_asio.reference.SocketService SocketService1]``,
- typename ``[link boost_asio.reference.SocketService SocketService2]``>
- boost::system::error_code connect_pair(
- basic_socket< Protocol, SocketService1 > & socket1,
- basic_socket< Protocol, SocketService2 > & socket2,
- boost::system::error_code & ec);
+ mutable_buffer(
+ void * data,
+ std::size_t size);
 
 
 
@@ -65658,188 +69219,108 @@
 
 [endsect]
 
-[section:local__datagram_protocol local::datagram_protocol]
-
-
-Encapsulates the flags needed for datagram-oriented UNIX sockets.
-
-
- class datagram_protocol
-
+[section:operator_plus_ mutable_buffer::operator+]
 
-[heading Types]
-[table
- [[Name][Description]]
+[indexterm2 operator+..mutable_buffer]
+Create a new modifiable buffer that is offset from the start of another.
 
- [
 
- [[link boost_asio.reference.local__datagram_protocol.endpoint [*endpoint]]]
- [The type of a UNIX domain endpoint. ]
-
- ]
+ mutable_buffer ``[link boost_asio.reference.mutable_buffer.operator_plus_.overload1 operator+]``(
+ const mutable_buffer & b,
+ std::size_t start);
+ `` [''''&raquo;''' [link boost_asio.reference.mutable_buffer.operator_plus_.overload1 more...]]``
 
- [
+ mutable_buffer ``[link boost_asio.reference.mutable_buffer.operator_plus_.overload2 operator+]``(
+ std::size_t start,
+ const mutable_buffer & b);
+ `` [''''&raquo;''' [link boost_asio.reference.mutable_buffer.operator_plus_.overload2 more...]]``
 
- [[link boost_asio.reference.local__datagram_protocol.socket [*socket]]]
- [The UNIX domain socket type. ]
-
- ]
 
-]
+[section:overload1 mutable_buffer::operator+ (1 of 2 overloads)]
 
-[heading Member Functions]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.local__datagram_protocol.family [*family]]]
- [Obtain an identifier for the protocol family. ]
- ]
-
- [
- [[link boost_asio.reference.local__datagram_protocol.protocol [*protocol]]]
- [Obtain an identifier for the protocol. ]
- ]
-
- [
- [[link boost_asio.reference.local__datagram_protocol.type [*type]]]
- [Obtain an identifier for the type of the protocol. ]
- ]
-
-]
+Create a new modifiable buffer that is offset from the start of another.
 
-The [link boost_asio.reference.local__datagram_protocol `local::datagram_protocol`] class contains flags necessary for datagram-oriented UNIX domain sockets.
 
+ mutable_buffer operator+(
+ const mutable_buffer & b,
+ std::size_t start);
 
-[heading Thread Safety]
-
-[*Distinct] [*objects:] Safe.
 
-[*Shared] [*objects:] Safe.
 
+[endsect]
 
 
 
-[heading Requirements]
+[section:overload2 mutable_buffer::operator+ (2 of 2 overloads)]
 
-[*Header: ][^boost/asio/local/datagram_protocol.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
+Create a new modifiable buffer that is offset from the start of another.
 
 
-[section:endpoint local::datagram_protocol::endpoint]
+ mutable_buffer operator+(
+ std::size_t start,
+ const mutable_buffer & b);
 
-[indexterm2 endpoint..local::datagram_protocol]
-The type of a UNIX domain endpoint.
 
 
- typedef basic_endpoint< datagram_protocol > endpoint;
+[endsect]
 
 
-[heading Types]
-[table
- [[Name][Description]]
+[endsect]
 
- [
 
- [[link boost_asio.reference.local__basic_endpoint.data_type [*data_type]]]
- [The type of the endpoint structure. This type is dependent on the underlying implementation of the socket layer. ]
-
- ]
+[endsect]
 
- [
+[section:mutable_buffers_1 mutable_buffers_1]
 
- [[link boost_asio.reference.local__basic_endpoint.protocol_type [*protocol_type]]]
- [The protocol type associated with the endpoint. ]
-
- ]
 
-]
+Adapts a single modifiable buffer so that it meets the requirements of the MutableBufferSequence concept.
 
-[heading Member Functions]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.local__basic_endpoint.basic_endpoint [*basic_endpoint]]]
- [Default constructor.
+ class mutable_buffers_1 :
+ public mutable_buffer
 
- Construct an endpoint using the specified path name.
 
- Copy constructor. ]
- ]
-
- [
- [[link boost_asio.reference.local__basic_endpoint.capacity [*capacity]]]
- [Get the capacity of the endpoint in the native type. ]
- ]
-
- [
- [[link boost_asio.reference.local__basic_endpoint.data [*data]]]
- [Get the underlying endpoint in the native type. ]
- ]
-
- [
- [[link boost_asio.reference.local__basic_endpoint.operator_eq_ [*operator=]]]
- [Assign from another endpoint. ]
- ]
-
+[heading Types]
+[table
+ [[Name][Description]]
+
   [
- [[link boost_asio.reference.local__basic_endpoint.path [*path]]]
- [Get the path associated with the endpoint.
 
- Set the path associated with the endpoint. ]
- ]
+ [[link boost_asio.reference.mutable_buffers_1.const_iterator [*const_iterator]]]
+ [A random-access iterator type that may be used to read elements. ]
   
- [
- [[link boost_asio.reference.local__basic_endpoint.protocol [*protocol]]]
- [The protocol associated with the endpoint. ]
   ]
-
+
   [
- [[link boost_asio.reference.local__basic_endpoint.resize [*resize]]]
- [Set the underlying size of the endpoint in the native type. ]
- ]
+
+ [[link boost_asio.reference.mutable_buffers_1.value_type [*value_type]]]
+ [The type for each element in the list of buffers. ]
   
- [
- [[link boost_asio.reference.local__basic_endpoint.size [*size]]]
- [Get the underlying size of the endpoint in the native type. ]
   ]
-
+
 ]
 
-[heading Friends]
+[heading Member Functions]
 [table
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.local__basic_endpoint.operator_not__eq_ [*operator!=]]]
- [Compare two endpoints for inequality. ]
- ]
-
- [
- [[link boost_asio.reference.local__basic_endpoint.operator_lt_ [*operator<]]]
- [Compare endpoints for ordering. ]
- ]
-
- [
- [[link boost_asio.reference.local__basic_endpoint.operator_lt__eq_ [*operator<=]]]
- [Compare endpoints for ordering. ]
- ]
-
- [
- [[link boost_asio.reference.local__basic_endpoint.operator_eq__eq_ [*operator==]]]
- [Compare two endpoints for equality. ]
+ [[link boost_asio.reference.mutable_buffers_1.begin [*begin]]]
+ [Get a random-access iterator to the first element. ]
   ]
   
   [
- [[link boost_asio.reference.local__basic_endpoint.operator_gt_ [*operator>]]]
- [Compare endpoints for ordering. ]
+ [[link boost_asio.reference.mutable_buffers_1.end [*end]]]
+ [Get a random-access iterator for one past the last element. ]
   ]
   
   [
- [[link boost_asio.reference.local__basic_endpoint.operator_gt__eq_ [*operator>=]]]
- [Compare endpoints for ordering. ]
+ [[link boost_asio.reference.mutable_buffers_1.mutable_buffers_1 [*mutable_buffers_1]]]
+ [Construct to represent a given memory range.
+
+ Construct to represent a single modifiable buffer. ]
   ]
   
 ]
@@ -65849,28 +69330,46 @@
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.local__basic_endpoint.operator_lt__lt_ [*operator<<]]]
- [Output an endpoint as a string. ]
+ [[link boost_asio.reference.mutable_buffers_1.operator_plus_ [*operator+]]]
+ [Create a new modifiable buffer that is offset from the start of another. ]
   ]
   
 ]
 
-The [link boost_asio.reference.local__basic_endpoint `local::basic_endpoint`] class template describes an endpoint that may be associated with a particular UNIX socket.
+[heading Requirements]
+
+[*Header: ][^boost/asio/buffer.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
-[heading Thread Safety]
-
-[*Distinct] [*objects:] Safe.
 
-[*Shared] [*objects:] Unsafe.
+[section:begin mutable_buffers_1::begin]
+
+[indexterm2 begin..mutable_buffers_1]
+Get a random-access iterator to the first element.
+
+
+ const_iterator begin() const;
+
+
+
+[endsect]
+
+
+
+[section:const_iterator mutable_buffers_1::const_iterator]
+
+[indexterm2 const_iterator..mutable_buffers_1]
+A random-access iterator type that may be used to read elements.
 
 
+ typedef const mutable_buffer * const_iterator;
 
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/local/datagram_protocol.hpp]
+[*Header: ][^boost/asio/buffer.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -65879,725 +69378,506 @@
 
 
 
-[section:family local::datagram_protocol::family]
+[section:end mutable_buffers_1::end]
 
-[indexterm2 family..local::datagram_protocol]
-Obtain an identifier for the protocol family.
+[indexterm2 end..mutable_buffers_1]
+Get a random-access iterator for one past the last element.
 
 
- int family() const;
+ const_iterator end() const;
 
 
 
 [endsect]
 
 
+[section:mutable_buffers_1 mutable_buffers_1::mutable_buffers_1]
 
-[section:protocol local::datagram_protocol::protocol]
+[indexterm2 mutable_buffers_1..mutable_buffers_1]
+Construct to represent a given memory range.
 
-[indexterm2 protocol..local::datagram_protocol]
-Obtain an identifier for the protocol.
 
+ ``[link boost_asio.reference.mutable_buffers_1.mutable_buffers_1.overload1 mutable_buffers_1]``(
+ void * data,
+ std::size_t size);
+ `` [''''&raquo;''' [link boost_asio.reference.mutable_buffers_1.mutable_buffers_1.overload1 more...]]``
 
- int protocol() const;
 
+Construct to represent a single modifiable buffer.
 
 
-[endsect]
+ explicit ``[link boost_asio.reference.mutable_buffers_1.mutable_buffers_1.overload2 mutable_buffers_1]``(
+ const mutable_buffer & b);
+ `` [''''&raquo;''' [link boost_asio.reference.mutable_buffers_1.mutable_buffers_1.overload2 more...]]``
 
 
+[section:overload1 mutable_buffers_1::mutable_buffers_1 (1 of 2 overloads)]
 
-[section:socket local::datagram_protocol::socket]
 
-[indexterm2 socket..local::datagram_protocol]
-The UNIX domain socket type.
+Construct to represent a given memory range.
 
 
- typedef basic_datagram_socket< datagram_protocol > socket;
+ mutable_buffers_1(
+ void * data,
+ std::size_t size);
 
 
-[heading Types]
-[table
- [[Name][Description]]
 
- [
+[endsect]
 
- [[link boost_asio.reference.basic_datagram_socket.broadcast [*broadcast]]]
- [Socket option to permit sending of broadcast messages. ]
-
- ]
 
- [
 
- [[link boost_asio.reference.basic_datagram_socket.bytes_readable [*bytes_readable]]]
- [IO control command to get the amount of data that can be read without blocking. ]
-
- ]
+[section:overload2 mutable_buffers_1::mutable_buffers_1 (2 of 2 overloads)]
 
- [
 
- [[link boost_asio.reference.basic_datagram_socket.debug [*debug]]]
- [Socket option to enable socket-level debugging. ]
-
- ]
+Construct to represent a single modifiable buffer.
 
- [
 
- [[link boost_asio.reference.basic_datagram_socket.do_not_route [*do_not_route]]]
- [Socket option to prevent routing, use local interfaces only. ]
-
- ]
+ mutable_buffers_1(
+ const mutable_buffer & b);
 
- [
 
- [[link boost_asio.reference.basic_datagram_socket.enable_connection_aborted [*enable_connection_aborted]]]
- [Socket option to report aborted connections on accept. ]
-
- ]
 
- [
+[endsect]
 
- [[link boost_asio.reference.basic_datagram_socket.endpoint_type [*endpoint_type]]]
- [The endpoint type. ]
-
- ]
 
- [
+[endsect]
 
- [[link boost_asio.reference.basic_datagram_socket.implementation_type [*implementation_type]]]
- [The underlying implementation type of I/O object. ]
-
- ]
+[section:operator_plus_ mutable_buffers_1::operator+]
 
- [
+[indexterm2 operator+..mutable_buffers_1]
+Create a new modifiable buffer that is offset from the start of another.
 
- [[link boost_asio.reference.basic_datagram_socket.keep_alive [*keep_alive]]]
- [Socket option to send keep-alives. ]
-
- ]
 
- [
+ mutable_buffer ``[link boost_asio.reference.mutable_buffers_1.operator_plus_.overload1 operator+]``(
+ const mutable_buffer & b,
+ std::size_t start);
+ `` [''''&raquo;''' [link boost_asio.reference.mutable_buffers_1.operator_plus_.overload1 more...]]``
 
- [[link boost_asio.reference.basic_datagram_socket.linger [*linger]]]
- [Socket option to specify whether the socket lingers on close if unsent data is present. ]
-
- ]
+ mutable_buffer ``[link boost_asio.reference.mutable_buffers_1.operator_plus_.overload2 operator+]``(
+ std::size_t start,
+ const mutable_buffer & b);
+ `` [''''&raquo;''' [link boost_asio.reference.mutable_buffers_1.operator_plus_.overload2 more...]]``
 
- [
 
- [[link boost_asio.reference.basic_datagram_socket.lowest_layer_type [*lowest_layer_type]]]
- [A basic_socket is always the lowest layer. ]
-
- ]
+[section:overload1 mutable_buffers_1::operator+ (1 of 2 overloads)]
 
- [
 
- [[link boost_asio.reference.basic_datagram_socket.message_flags [*message_flags]]]
- [Bitmask type for flags that can be passed to send and receive operations. ]
-
- ]
+['Inherited from mutable_buffer.]
 
- [
 
- [[link boost_asio.reference.basic_datagram_socket.native_handle_type [*native_handle_type]]]
- [The native representation of a socket. ]
-
- ]
+Create a new modifiable buffer that is offset from the start of another.
 
- [
 
- [[link boost_asio.reference.basic_datagram_socket.native_type [*native_type]]]
- [(Deprecated: Use native_handle_type.) The native representation of a socket. ]
-
- ]
+ mutable_buffer operator+(
+ const mutable_buffer & b,
+ std::size_t start);
 
- [
 
- [[link boost_asio.reference.basic_datagram_socket.non_blocking_io [*non_blocking_io]]]
- [(Deprecated: Use non_blocking().) IO control command to set the blocking mode of the socket. ]
-
- ]
 
- [
+[endsect]
 
- [[link boost_asio.reference.basic_datagram_socket.protocol_type [*protocol_type]]]
- [The protocol type. ]
-
- ]
 
- [
 
- [[link boost_asio.reference.basic_datagram_socket.receive_buffer_size [*receive_buffer_size]]]
- [Socket option for the receive buffer size of a socket. ]
-
- ]
+[section:overload2 mutable_buffers_1::operator+ (2 of 2 overloads)]
 
- [
 
- [[link boost_asio.reference.basic_datagram_socket.receive_low_watermark [*receive_low_watermark]]]
- [Socket option for the receive low watermark. ]
-
- ]
+['Inherited from mutable_buffer.]
 
- [
 
- [[link boost_asio.reference.basic_datagram_socket.reuse_address [*reuse_address]]]
- [Socket option to allow the socket to be bound to an address that is already in use. ]
-
- ]
+Create a new modifiable buffer that is offset from the start of another.
 
- [
 
- [[link boost_asio.reference.basic_datagram_socket.send_buffer_size [*send_buffer_size]]]
- [Socket option for the send buffer size of a socket. ]
-
- ]
+ mutable_buffer operator+(
+ std::size_t start,
+ const mutable_buffer & b);
 
- [
 
- [[link boost_asio.reference.basic_datagram_socket.send_low_watermark [*send_low_watermark]]]
- [Socket option for the send low watermark. ]
-
- ]
 
- [
+[endsect]
 
- [[link boost_asio.reference.basic_datagram_socket.service_type [*service_type]]]
- [The type of the service that will be used to provide I/O operations. ]
-
- ]
 
- [
+[endsect]
 
- [[link boost_asio.reference.basic_datagram_socket.shutdown_type [*shutdown_type]]]
- [Different ways a socket may be shutdown. ]
-
- ]
 
-]
+[section:value_type mutable_buffers_1::value_type]
+
+[indexterm2 value_type..mutable_buffers_1]
+The type for each element in the list of buffers.
+
+
+ typedef mutable_buffer value_type;
+
 
 [heading Member Functions]
 [table
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.basic_datagram_socket.assign [*assign]]]
- [Assign an existing native socket to the socket. ]
- ]
-
- [
- [[link boost_asio.reference.basic_datagram_socket.async_connect [*async_connect]]]
- [Start an asynchronous connect. ]
- ]
-
- [
- [[link boost_asio.reference.basic_datagram_socket.async_receive [*async_receive]]]
- [Start an asynchronous receive on a connected socket. ]
- ]
-
- [
- [[link boost_asio.reference.basic_datagram_socket.async_receive_from [*async_receive_from]]]
- [Start an asynchronous receive. ]
- ]
-
- [
- [[link boost_asio.reference.basic_datagram_socket.async_send [*async_send]]]
- [Start an asynchronous send on a connected socket. ]
- ]
-
- [
- [[link boost_asio.reference.basic_datagram_socket.async_send_to [*async_send_to]]]
- [Start an asynchronous send. ]
+ [[link boost_asio.reference.mutable_buffer.mutable_buffer [*mutable_buffer]]]
+ [Construct an empty buffer.
+
+ Construct a buffer to represent a given memory range. ]
   ]
   
+]
+
+[heading Related Functions]
+[table
+ [[Name][Description]]
+
   [
- [[link boost_asio.reference.basic_datagram_socket.at_mark [*at_mark]]]
- [Determine whether the socket is at the out-of-band data mark. ]
+ [[link boost_asio.reference.mutable_buffer.operator_plus_ [*operator+]]]
+ [Create a new modifiable buffer that is offset from the start of another. ]
   ]
   
- [
- [[link boost_asio.reference.basic_datagram_socket.available [*available]]]
- [Determine the number of bytes available for reading. ]
- ]
+]
+
+The [link boost_asio.reference.mutable_buffer `mutable_buffer`] class provides a safe representation of a buffer that can be modified. It does not own the underlying data, and so is cheap to copy or assign.
+
+
+[heading Accessing Buffer Contents]
   
- [
- [[link boost_asio.reference.basic_datagram_socket.basic_datagram_socket [*basic_datagram_socket]]]
- [Construct a basic_datagram_socket without opening it.
 
- Construct and open a basic_datagram_socket.
 
- Construct a basic_datagram_socket, opening it and binding it to the given local endpoint.
+The contents of a buffer may be accessed using the [link boost_asio.reference.buffer_size `buffer_size`] and [link boost_asio.reference.buffer_cast `buffer_cast`] functions:
 
- Construct a basic_datagram_socket on an existing native socket.
 
- Move-construct a basic_datagram_socket from another. ]
- ]
-
- [
- [[link boost_asio.reference.basic_datagram_socket.bind [*bind]]]
- [Bind the socket to the given local endpoint. ]
- ]
-
- [
- [[link boost_asio.reference.basic_datagram_socket.cancel [*cancel]]]
- [Cancel all asynchronous operations associated with the socket. ]
- ]
-
- [
- [[link boost_asio.reference.basic_datagram_socket.close [*close]]]
- [Close the socket. ]
- ]
-
- [
- [[link boost_asio.reference.basic_datagram_socket.connect [*connect]]]
- [Connect the socket to the specified endpoint. ]
- ]
-
- [
- [[link boost_asio.reference.basic_datagram_socket.get_io_service [*get_io_service]]]
- [Get the io_service associated with the object. ]
- ]
-
- [
- [[link boost_asio.reference.basic_datagram_socket.get_option [*get_option]]]
- [Get an option from the socket. ]
- ]
-
- [
- [[link boost_asio.reference.basic_datagram_socket.io_control [*io_control]]]
- [Perform an IO control command on the socket. ]
- ]
-
- [
- [[link boost_asio.reference.basic_datagram_socket.is_open [*is_open]]]
- [Determine whether the socket is open. ]
- ]
-
- [
- [[link boost_asio.reference.basic_datagram_socket.local_endpoint [*local_endpoint]]]
- [Get the local endpoint of the socket. ]
- ]
-
- [
- [[link boost_asio.reference.basic_datagram_socket.lowest_layer [*lowest_layer]]]
- [Get a reference to the lowest layer.
 
- Get a const reference to the lowest layer. ]
- ]
-
- [
- [[link boost_asio.reference.basic_datagram_socket.native [*native]]]
- [(Deprecated: Use native_handle().) Get the native socket representation. ]
- ]
-
- [
- [[link boost_asio.reference.basic_datagram_socket.native_handle [*native_handle]]]
- [Get the native socket representation. ]
- ]
-
- [
- [[link boost_asio.reference.basic_datagram_socket.native_non_blocking [*native_non_blocking]]]
- [Gets the non-blocking mode of the native socket implementation.
+ boost::asio::mutable_buffer b1 = ...;
+ std::size_t s1 = boost::asio::buffer_size(b1);
+ unsigned char* p1 = boost::asio::buffer_cast<unsigned char*>(b1);
 
- Sets the non-blocking mode of the native socket implementation. ]
- ]
-
- [
- [[link boost_asio.reference.basic_datagram_socket.non_blocking [*non_blocking]]]
- [Gets the non-blocking mode of the socket.
 
- Sets the non-blocking mode of the socket. ]
- ]
-
- [
- [[link boost_asio.reference.basic_datagram_socket.open [*open]]]
- [Open the socket using the specified protocol. ]
- ]
-
- [
- [[link boost_asio.reference.basic_datagram_socket.operator_eq_ [*operator=]]]
- [Move-assign a basic_datagram_socket from another. ]
- ]
-
- [
- [[link boost_asio.reference.basic_datagram_socket.receive [*receive]]]
- [Receive some data on a connected socket. ]
- ]
-
- [
- [[link boost_asio.reference.basic_datagram_socket.receive_from [*receive_from]]]
- [Receive a datagram with the endpoint of the sender. ]
- ]
-
- [
- [[link boost_asio.reference.basic_datagram_socket.remote_endpoint [*remote_endpoint]]]
- [Get the remote endpoint of the socket. ]
- ]
-
- [
- [[link boost_asio.reference.basic_datagram_socket.send [*send]]]
- [Send some data on a connected socket. ]
- ]
-
- [
- [[link boost_asio.reference.basic_datagram_socket.send_to [*send_to]]]
- [Send a datagram to the specified endpoint. ]
- ]
-
- [
- [[link boost_asio.reference.basic_datagram_socket.set_option [*set_option]]]
- [Set an option on the socket. ]
- ]
-
- [
- [[link boost_asio.reference.basic_datagram_socket.shutdown [*shutdown]]]
- [Disable sends or receives on the socket. ]
- ]
-
-]
 
-[heading Protected Member Functions]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.basic_datagram_socket.get_implementation [*get_implementation]]]
- [Get the underlying implementation of the I/O object. ]
- ]
-
- [
- [[link boost_asio.reference.basic_datagram_socket.get_service [*get_service]]]
- [Get the service associated with the I/O object. ]
- ]
-
-]
+The `boost::asio::buffer_cast` function permits violations of type safety, so uses of it in application code should be carefully considered.
 
-[heading Data Members]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.basic_datagram_socket.max_connections [*max_connections]]]
- [The maximum length of the queue of pending incoming connections. ]
- ]
+[heading Requirements]
 
- [
- [[link boost_asio.reference.basic_datagram_socket.message_do_not_route [*message_do_not_route]]]
- [Specify that the data should not be subject to routing. ]
- ]
+[*Header: ][^boost/asio/buffer.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
+
+
+[endsect]
+
+
+
+[endsect]
+
+[section:null_buffers null_buffers]
+
+
+An implementation of both the ConstBufferSequence and MutableBufferSequence concepts to represent a null buffer sequence.
+
+
+ class null_buffers
+
+
+[heading Types]
+[table
+ [[Name][Description]]
 
   [
- [[link boost_asio.reference.basic_datagram_socket.message_end_of_record [*message_end_of_record]]]
- [Specifies that the data marks the end of a record. ]
- ]
 
- [
- [[link boost_asio.reference.basic_datagram_socket.message_out_of_band [*message_out_of_band]]]
- [Process out-of-band data. ]
+ [[link boost_asio.reference.null_buffers.const_iterator [*const_iterator]]]
+ [A random-access iterator type that may be used to read elements. ]
+
   ]
 
   [
- [[link boost_asio.reference.basic_datagram_socket.message_peek [*message_peek]]]
- [Peek at incoming data without removing it from the input queue. ]
+
+ [[link boost_asio.reference.null_buffers.value_type [*value_type]]]
+ [The type for each element in the list of buffers. ]
+
   ]
 
 ]
 
-[heading Protected Data Members]
+[heading Member Functions]
 [table
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.basic_datagram_socket.implementation [*implementation]]]
- [(Deprecated: Use get_implementation().) The underlying implementation of the I/O object. ]
+ [[link boost_asio.reference.null_buffers.begin [*begin]]]
+ [Get a random-access iterator to the first element. ]
   ]
-
+
   [
- [[link boost_asio.reference.basic_datagram_socket.service [*service]]]
- [(Deprecated: Use get_service().) The service associated with the I/O object. ]
+ [[link boost_asio.reference.null_buffers.end [*end]]]
+ [Get a random-access iterator for one past the last element. ]
   ]
-
+
 ]
 
-The [link boost_asio.reference.basic_datagram_socket `basic_datagram_socket`] class template provides asynchronous and blocking datagram-oriented socket functionality.
-
+[heading Requirements]
 
-[heading Thread Safety]
-
-[*Distinct] [*objects:] Safe.
+[*Header: ][^boost/asio/buffer.hpp]
 
-[*Shared] [*objects:] Unsafe.
+[*Convenience header: ][^boost/asio.hpp]
 
 
+[section:begin null_buffers::begin]
 
+[indexterm2 begin..null_buffers]
+Get a random-access iterator to the first element.
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/local/datagram_protocol.hpp]
+ const_iterator begin() const;
 
-[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
 
-[section:type local::datagram_protocol::type]
+[section:const_iterator null_buffers::const_iterator]
 
-[indexterm2 type..local::datagram_protocol]
-Obtain an identifier for the type of the protocol.
+[indexterm2 const_iterator..null_buffers]
+A random-access iterator type that may be used to read elements.
 
 
- int type() const;
+ typedef const mutable_buffer * const_iterator;
 
 
 
-[endsect]
+[heading Requirements]
+
+[*Header: ][^boost/asio/buffer.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
-[section:local__stream_protocol local::stream_protocol]
 
 
-Encapsulates the flags needed for stream-oriented UNIX sockets.
+[section:end null_buffers::end]
 
+[indexterm2 end..null_buffers]
+Get a random-access iterator for one past the last element.
 
- class stream_protocol
 
+ const_iterator end() const;
 
-[heading Types]
-[table
- [[Name][Description]]
 
- [
 
- [[link boost_asio.reference.local__stream_protocol.acceptor [*acceptor]]]
- [The UNIX domain acceptor type. ]
-
- ]
+[endsect]
 
- [
 
- [[link boost_asio.reference.local__stream_protocol.endpoint [*endpoint]]]
- [The type of a UNIX domain endpoint. ]
-
- ]
 
- [
+[section:value_type null_buffers::value_type]
 
- [[link boost_asio.reference.local__stream_protocol.iostream [*iostream]]]
- [The UNIX domain iostream type. ]
-
- ]
+[indexterm2 value_type..null_buffers]
+The type for each element in the list of buffers.
 
- [
 
- [[link boost_asio.reference.local__stream_protocol.socket [*socket]]]
- [The UNIX domain socket type. ]
-
- ]
+ typedef mutable_buffer value_type;
 
-]
 
 [heading Member Functions]
 [table
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.local__stream_protocol.family [*family]]]
- [Obtain an identifier for the protocol family. ]
- ]
-
- [
- [[link boost_asio.reference.local__stream_protocol.protocol [*protocol]]]
- [Obtain an identifier for the protocol. ]
+ [[link boost_asio.reference.mutable_buffer.mutable_buffer [*mutable_buffer]]]
+ [Construct an empty buffer.
+
+ Construct a buffer to represent a given memory range. ]
   ]
   
+]
+
+[heading Related Functions]
+[table
+ [[Name][Description]]
+
   [
- [[link boost_asio.reference.local__stream_protocol.type [*type]]]
- [Obtain an identifier for the type of the protocol. ]
+ [[link boost_asio.reference.mutable_buffer.operator_plus_ [*operator+]]]
+ [Create a new modifiable buffer that is offset from the start of another. ]
   ]
   
 ]
 
-The [link boost_asio.reference.local__stream_protocol `local::stream_protocol`] class contains flags necessary for stream-oriented UNIX domain sockets.
+The [link boost_asio.reference.mutable_buffer `mutable_buffer`] class provides a safe representation of a buffer that can be modified. It does not own the underlying data, and so is cheap to copy or assign.
 
 
-[heading Thread Safety]
+[heading Accessing Buffer Contents]
   
-[*Distinct] [*objects:] Safe.
 
-[*Shared] [*objects:] Safe.
+
+The contents of a buffer may be accessed using the [link boost_asio.reference.buffer_size `buffer_size`] and [link boost_asio.reference.buffer_cast `buffer_cast`] functions:
+
+
+
+ boost::asio::mutable_buffer b1 = ...;
+ std::size_t s1 = boost::asio::buffer_size(b1);
+ unsigned char* p1 = boost::asio::buffer_cast<unsigned char*>(b1);
+
 
 
 
+The `boost::asio::buffer_cast` function permits violations of type safety, so uses of it in application code should be carefully considered.
+
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/local/stream_protocol.hpp]
+[*Header: ][^boost/asio/buffer.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
 
-[section:acceptor local::stream_protocol::acceptor]
+[endsect]
 
-[indexterm2 acceptor..local::stream_protocol]
-The UNIX domain acceptor type.
 
 
- typedef basic_socket_acceptor< stream_protocol > acceptor;
+[endsect]
 
 
-[heading Types]
-[table
- [[Name][Description]]
+[section:placeholders__bytes_transferred placeholders::bytes_transferred]
 
- [
+[indexterm1 placeholders::bytes_transferred]
+An argument placeholder, for use with boost::bind(), that corresponds to the bytes\_transferred argument of a handler for asynchronous functions such as `boost::asio::basic_stream_socket::async_write_some` or `boost::asio::async_write`.
 
- [[link boost_asio.reference.basic_socket_acceptor.broadcast [*broadcast]]]
- [Socket option to permit sending of broadcast messages. ]
-
- ]
 
- [
+ unspecified bytes_transferred;
 
- [[link boost_asio.reference.basic_socket_acceptor.bytes_readable [*bytes_readable]]]
- [IO control command to get the amount of data that can be read without blocking. ]
-
- ]
 
- [
+[heading Requirements]
 
- [[link boost_asio.reference.basic_socket_acceptor.debug [*debug]]]
- [Socket option to enable socket-level debugging. ]
-
- ]
+[*Header: ][^boost/asio/placeholders.hpp]
 
- [
+[*Convenience header: ][^boost/asio.hpp]
 
- [[link boost_asio.reference.basic_socket_acceptor.do_not_route [*do_not_route]]]
- [Socket option to prevent routing, use local interfaces only. ]
-
- ]
 
- [
+[endsect]
 
- [[link boost_asio.reference.basic_socket_acceptor.enable_connection_aborted [*enable_connection_aborted]]]
- [Socket option to report aborted connections on accept. ]
-
- ]
 
- [
 
- [[link boost_asio.reference.basic_socket_acceptor.endpoint_type [*endpoint_type]]]
- [The endpoint type. ]
-
- ]
+[section:placeholders__error placeholders::error]
 
- [
+[indexterm1 placeholders::error]
+An argument placeholder, for use with boost::bind(), that corresponds to the error argument of a handler for any of the asynchronous functions.
 
- [[link boost_asio.reference.basic_socket_acceptor.implementation_type [*implementation_type]]]
- [The underlying implementation type of I/O object. ]
-
- ]
 
- [
+ unspecified error;
 
- [[link boost_asio.reference.basic_socket_acceptor.keep_alive [*keep_alive]]]
- [Socket option to send keep-alives. ]
-
- ]
 
- [
+[heading Requirements]
 
- [[link boost_asio.reference.basic_socket_acceptor.linger [*linger]]]
- [Socket option to specify whether the socket lingers on close if unsent data is present. ]
-
- ]
+[*Header: ][^boost/asio/placeholders.hpp]
 
- [
+[*Convenience header: ][^boost/asio.hpp]
 
- [[link boost_asio.reference.basic_socket_acceptor.message_flags [*message_flags]]]
- [Bitmask type for flags that can be passed to send and receive operations. ]
-
- ]
 
- [
+[endsect]
 
- [[link boost_asio.reference.basic_socket_acceptor.native_handle_type [*native_handle_type]]]
- [The native representation of an acceptor. ]
-
- ]
 
- [
 
- [[link boost_asio.reference.basic_socket_acceptor.native_type [*native_type]]]
- [(Deprecated: Use native_handle_type.) The native representation of an acceptor. ]
-
- ]
+[section:placeholders__iterator placeholders::iterator]
 
- [
+[indexterm1 placeholders::iterator]
+An argument placeholder, for use with boost::bind(), that corresponds to the iterator argument of a handler for asynchronous functions such as boost::asio::basic\_resolver::async\_resolve.
 
- [[link boost_asio.reference.basic_socket_acceptor.non_blocking_io [*non_blocking_io]]]
- [(Deprecated: Use non_blocking().) IO control command to set the blocking mode of the socket. ]
-
- ]
 
- [
+ unspecified iterator;
 
- [[link boost_asio.reference.basic_socket_acceptor.protocol_type [*protocol_type]]]
- [The protocol type. ]
-
- ]
+
+[heading Requirements]
+
+[*Header: ][^boost/asio/placeholders.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
+
+
+[endsect]
+
+
+
+[section:placeholders__signal_number placeholders::signal_number]
+
+[indexterm1 placeholders::signal_number]
+An argument placeholder, for use with boost::bind(), that corresponds to the signal\_number argument of a handler for asynchronous functions such as `boost::asio::signal_set::async_wait`.
+
+
+ unspecified signal_number;
+
+
+[heading Requirements]
+
+[*Header: ][^boost/asio/placeholders.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
+
+
+[endsect]
+
+
+[section:posix__basic_descriptor posix::basic_descriptor]
+
+
+Provides POSIX descriptor functionality.
+
+
+ template<
+ typename ``[link boost_asio.reference.DescriptorService DescriptorService]``>
+ class basic_descriptor :
+ public basic_io_object< DescriptorService >,
+ public posix::descriptor_base
+
+
+[heading Types]
+[table
+ [[Name][Description]]
 
   [
 
- [[link boost_asio.reference.basic_socket_acceptor.receive_buffer_size [*receive_buffer_size]]]
- [Socket option for the receive buffer size of a socket. ]
+ [[link boost_asio.reference.posix__basic_descriptor.bytes_readable [*bytes_readable]]]
+ [IO control command to get the amount of data that can be read without blocking. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.basic_socket_acceptor.receive_low_watermark [*receive_low_watermark]]]
- [Socket option for the receive low watermark. ]
+ [[link boost_asio.reference.posix__basic_descriptor.implementation_type [*implementation_type]]]
+ [The underlying implementation type of I/O object. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.basic_socket_acceptor.reuse_address [*reuse_address]]]
- [Socket option to allow the socket to be bound to an address that is already in use. ]
+ [[link boost_asio.reference.posix__basic_descriptor.lowest_layer_type [*lowest_layer_type]]]
+ [A basic_descriptor is always the lowest layer. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.basic_socket_acceptor.send_buffer_size [*send_buffer_size]]]
- [Socket option for the send buffer size of a socket. ]
+ [[link boost_asio.reference.posix__basic_descriptor.native_handle_type [*native_handle_type]]]
+ [The native representation of a descriptor. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.basic_socket_acceptor.send_low_watermark [*send_low_watermark]]]
- [Socket option for the send low watermark. ]
+ [[link boost_asio.reference.posix__basic_descriptor.native_type [*native_type]]]
+ [(Deprecated: Use native_handle_type.) The native representation of a descriptor. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.basic_socket_acceptor.service_type [*service_type]]]
- [The type of the service that will be used to provide I/O operations. ]
+ [[link boost_asio.reference.posix__basic_descriptor.non_blocking_io [*non_blocking_io]]]
+ [(Deprecated: Use non_blocking().) IO control command to set the blocking mode of the descriptor. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.basic_socket_acceptor.shutdown_type [*shutdown_type]]]
- [Different ways a socket may be shutdown. ]
+ [[link boost_asio.reference.posix__basic_descriptor.service_type [*service_type]]]
+ [The type of the service that will be used to provide I/O operations. ]
   
   ]
 
@@ -66608,204 +69888,349 @@
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.basic_socket_acceptor.accept [*accept]]]
- [Accept a new connection.
+ [[link boost_asio.reference.posix__basic_descriptor.assign [*assign]]]
+ [Assign an existing native descriptor to the descriptor. ]
+ ]
+
+ [
+ [[link boost_asio.reference.posix__basic_descriptor.basic_descriptor [*basic_descriptor]]]
+ [Construct a basic_descriptor without opening it.
 
- Accept a new connection and obtain the endpoint of the peer. ]
+ Construct a basic_descriptor on an existing native descriptor.
+
+ Move-construct a basic_descriptor from another. ]
   ]
   
   [
- [[link boost_asio.reference.basic_socket_acceptor.assign [*assign]]]
- [Assigns an existing native acceptor to the acceptor. ]
+ [[link boost_asio.reference.posix__basic_descriptor.cancel [*cancel]]]
+ [Cancel all asynchronous operations associated with the descriptor. ]
   ]
   
   [
- [[link boost_asio.reference.basic_socket_acceptor.async_accept [*async_accept]]]
- [Start an asynchronous accept. ]
+ [[link boost_asio.reference.posix__basic_descriptor.close [*close]]]
+ [Close the descriptor. ]
   ]
   
   [
- [[link boost_asio.reference.basic_socket_acceptor.basic_socket_acceptor [*basic_socket_acceptor]]]
- [Construct an acceptor without opening it.
-
- Construct an open acceptor.
-
- Construct an acceptor opened on the given endpoint.
-
- Construct a basic_socket_acceptor on an existing native acceptor.
-
- Move-construct a basic_socket_acceptor from another. ]
+ [[link boost_asio.reference.posix__basic_descriptor.get_io_service [*get_io_service]]]
+ [Get the io_service associated with the object. ]
   ]
   
   [
- [[link boost_asio.reference.basic_socket_acceptor.bind [*bind]]]
- [Bind the acceptor to the given local endpoint. ]
+ [[link boost_asio.reference.posix__basic_descriptor.io_control [*io_control]]]
+ [Perform an IO control command on the descriptor. ]
   ]
   
   [
- [[link boost_asio.reference.basic_socket_acceptor.cancel [*cancel]]]
- [Cancel all asynchronous operations associated with the acceptor. ]
+ [[link boost_asio.reference.posix__basic_descriptor.is_open [*is_open]]]
+ [Determine whether the descriptor is open. ]
   ]
   
   [
- [[link boost_asio.reference.basic_socket_acceptor.close [*close]]]
- [Close the acceptor. ]
+ [[link boost_asio.reference.posix__basic_descriptor.lowest_layer [*lowest_layer]]]
+ [Get a reference to the lowest layer.
+
+ Get a const reference to the lowest layer. ]
   ]
   
   [
- [[link boost_asio.reference.basic_socket_acceptor.get_io_service [*get_io_service]]]
- [Get the io_service associated with the object. ]
+ [[link boost_asio.reference.posix__basic_descriptor.native [*native]]]
+ [(Deprecated: Use native_handle().) Get the native descriptor representation. ]
   ]
   
   [
- [[link boost_asio.reference.basic_socket_acceptor.get_option [*get_option]]]
- [Get an option from the acceptor. ]
+ [[link boost_asio.reference.posix__basic_descriptor.native_handle [*native_handle]]]
+ [Get the native descriptor representation. ]
   ]
   
   [
- [[link boost_asio.reference.basic_socket_acceptor.io_control [*io_control]]]
- [Perform an IO control command on the acceptor. ]
+ [[link boost_asio.reference.posix__basic_descriptor.native_non_blocking [*native_non_blocking]]]
+ [Gets the non-blocking mode of the native descriptor implementation.
+
+ Sets the non-blocking mode of the native descriptor implementation. ]
   ]
   
   [
- [[link boost_asio.reference.basic_socket_acceptor.is_open [*is_open]]]
- [Determine whether the acceptor is open. ]
+ [[link boost_asio.reference.posix__basic_descriptor.non_blocking [*non_blocking]]]
+ [Gets the non-blocking mode of the descriptor.
+
+ Sets the non-blocking mode of the descriptor. ]
   ]
   
   [
- [[link boost_asio.reference.basic_socket_acceptor.listen [*listen]]]
- [Place the acceptor into the state where it will listen for new connections. ]
+ [[link boost_asio.reference.posix__basic_descriptor.operator_eq_ [*operator=]]]
+ [Move-assign a basic_descriptor from another. ]
   ]
   
   [
- [[link boost_asio.reference.basic_socket_acceptor.local_endpoint [*local_endpoint]]]
- [Get the local endpoint of the acceptor. ]
+ [[link boost_asio.reference.posix__basic_descriptor.release [*release]]]
+ [Release ownership of the native descriptor implementation. ]
+ ]
+
+]
+
+[heading Protected Member Functions]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.posix__basic_descriptor.get_implementation [*get_implementation]]]
+ [Get the underlying implementation of the I/O object. ]
   ]
   
   [
- [[link boost_asio.reference.basic_socket_acceptor.native [*native]]]
- [(Deprecated: Use native_handle().) Get the native acceptor representation. ]
+ [[link boost_asio.reference.posix__basic_descriptor.get_service [*get_service]]]
+ [Get the service associated with the I/O object. ]
   ]
   
   [
- [[link boost_asio.reference.basic_socket_acceptor.native_handle [*native_handle]]]
- [Get the native acceptor representation. ]
+ [[link boost_asio.reference.posix__basic_descriptor._basic_descriptor [*~basic_descriptor]]]
+ [Protected destructor to prevent deletion through this type. ]
   ]
   
+]
+
+[heading Protected Data Members]
+[table
+ [[Name][Description]]
+
   [
- [[link boost_asio.reference.basic_socket_acceptor.native_non_blocking [*native_non_blocking]]]
- [Gets the non-blocking mode of the native acceptor implementation.
+ [[link boost_asio.reference.posix__basic_descriptor.implementation [*implementation]]]
+ [(Deprecated: Use get_implementation().) The underlying implementation of the I/O object. ]
+ ]
+
+ [
+ [[link boost_asio.reference.posix__basic_descriptor.service [*service]]]
+ [(Deprecated: Use get_service().) The service associated with the I/O object. ]
+ ]
+
+]
+
+The [link boost_asio.reference.posix__basic_descriptor `posix::basic_descriptor`] class template provides the ability to wrap a POSIX descriptor.
+
+
+[heading Thread Safety]
+
+[*Distinct] [*objects:] Safe.
+
+[*Shared] [*objects:] Unsafe.
+
+
+
+[heading Requirements]
+
+[*Header: ][^boost/asio/posix/basic_descriptor.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
+
+[section:assign posix::basic_descriptor::assign]
+
+[indexterm2 assign..posix::basic_descriptor]
+Assign an existing native descriptor to the descriptor.
+
+
+ void ``[link boost_asio.reference.posix__basic_descriptor.assign.overload1 assign]``(
+ const native_handle_type & native_descriptor);
+ `` [''''&raquo;''' [link boost_asio.reference.posix__basic_descriptor.assign.overload1 more...]]``
+
+ boost::system::error_code ``[link boost_asio.reference.posix__basic_descriptor.assign.overload2 assign]``(
+ const native_handle_type & native_descriptor,
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.posix__basic_descriptor.assign.overload2 more...]]``
+
+
+[section:overload1 posix::basic_descriptor::assign (1 of 2 overloads)]
+
+
+Assign an existing native descriptor to the descriptor.
+
+
+ void assign(
+ const native_handle_type & native_descriptor);
+
+
+
+[endsect]
+
+
+
+[section:overload2 posix::basic_descriptor::assign (2 of 2 overloads)]
+
+
+Assign an existing native descriptor to the descriptor.
+
+
+ boost::system::error_code assign(
+ const native_handle_type & native_descriptor,
+ boost::system::error_code & ec);
+
+
+
+[endsect]
+
+
+[endsect]
+
+[section:basic_descriptor posix::basic_descriptor::basic_descriptor]
+
+[indexterm2 basic_descriptor..posix::basic_descriptor]
+Construct a [link boost_asio.reference.posix__basic_descriptor `posix::basic_descriptor`] without opening it.
+
+
+ explicit ``[link boost_asio.reference.posix__basic_descriptor.basic_descriptor.overload1 basic_descriptor]``(
+ boost::asio::io_service & io_service);
+ `` [''''&raquo;''' [link boost_asio.reference.posix__basic_descriptor.basic_descriptor.overload1 more...]]``
+
+
+Construct a [link boost_asio.reference.posix__basic_descriptor `posix::basic_descriptor`] on an existing native descriptor.
+
+
+ ``[link boost_asio.reference.posix__basic_descriptor.basic_descriptor.overload2 basic_descriptor]``(
+ boost::asio::io_service & io_service,
+ const native_handle_type & native_descriptor);
+ `` [''''&raquo;''' [link boost_asio.reference.posix__basic_descriptor.basic_descriptor.overload2 more...]]``
+
+
+Move-construct a [link boost_asio.reference.posix__basic_descriptor `posix::basic_descriptor`] from another.
+
+
+ ``[link boost_asio.reference.posix__basic_descriptor.basic_descriptor.overload3 basic_descriptor]``(
+ basic_descriptor && other);
+ `` [''''&raquo;''' [link boost_asio.reference.posix__basic_descriptor.basic_descriptor.overload3 more...]]``
 
- Sets the non-blocking mode of the native acceptor implementation. ]
- ]
-
- [
- [[link boost_asio.reference.basic_socket_acceptor.non_blocking [*non_blocking]]]
- [Gets the non-blocking mode of the acceptor.
 
- Sets the non-blocking mode of the acceptor. ]
- ]
-
- [
- [[link boost_asio.reference.basic_socket_acceptor.open [*open]]]
- [Open the acceptor using the specified protocol. ]
- ]
-
- [
- [[link boost_asio.reference.basic_socket_acceptor.operator_eq_ [*operator=]]]
- [Move-assign a basic_socket_acceptor from another. ]
- ]
-
- [
- [[link boost_asio.reference.basic_socket_acceptor.set_option [*set_option]]]
- [Set an option on the acceptor. ]
- ]
+[section:overload1 posix::basic_descriptor::basic_descriptor (1 of 3 overloads)]
+
+
+Construct a [link boost_asio.reference.posix__basic_descriptor `posix::basic_descriptor`] without opening it.
+
+
+ basic_descriptor(
+ boost::asio::io_service & io_service);
+
+
+This constructor creates a descriptor without opening it.
+
+
+[heading Parameters]
+
+
+[variablelist
   
+[[io_service][The [link boost_asio.reference.io_service `io_service`] object that the descriptor will use to dispatch handlers for any asynchronous operations performed on the descriptor. ]]
+
 ]
 
-[heading Protected Member Functions]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.basic_socket_acceptor.get_implementation [*get_implementation]]]
- [Get the underlying implementation of the I/O object. ]
- ]
+
+
+[endsect]
+
+
+
+[section:overload2 posix::basic_descriptor::basic_descriptor (2 of 3 overloads)]
+
+
+Construct a [link boost_asio.reference.posix__basic_descriptor `posix::basic_descriptor`] on an existing native descriptor.
+
+
+ basic_descriptor(
+ boost::asio::io_service & io_service,
+ const native_handle_type & native_descriptor);
+
+
+This constructor creates a descriptor object to hold an existing native descriptor.
+
+
+[heading Parameters]
+
+
+[variablelist
   
- [
- [[link boost_asio.reference.basic_socket_acceptor.get_service [*get_service]]]
- [Get the service associated with the I/O object. ]
- ]
+[[io_service][The [link boost_asio.reference.io_service `io_service`] object that the descriptor will use to dispatch handlers for any asynchronous operations performed on the descriptor.]]
+
+[[native_descriptor][A native descriptor.]]
+
+]
+
+
+[heading Exceptions]
+
+
+[variablelist
   
+[[boost::system::system_error][Thrown on failure. ]]
+
 ]
 
-[heading Data Members]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.basic_socket_acceptor.max_connections [*max_connections]]]
- [The maximum length of the queue of pending incoming connections. ]
- ]
 
- [
- [[link boost_asio.reference.basic_socket_acceptor.message_do_not_route [*message_do_not_route]]]
- [Specify that the data should not be subject to routing. ]
- ]
 
- [
- [[link boost_asio.reference.basic_socket_acceptor.message_end_of_record [*message_end_of_record]]]
- [Specifies that the data marks the end of a record. ]
- ]
+[endsect]
 
- [
- [[link boost_asio.reference.basic_socket_acceptor.message_out_of_band [*message_out_of_band]]]
- [Process out-of-band data. ]
- ]
 
- [
- [[link boost_asio.reference.basic_socket_acceptor.message_peek [*message_peek]]]
- [Peek at incoming data without removing it from the input queue. ]
- ]
 
-]
+[section:overload3 posix::basic_descriptor::basic_descriptor (3 of 3 overloads)]
 
-[heading Protected Data Members]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.basic_socket_acceptor.implementation [*implementation]]]
- [(Deprecated: Use get_implementation().) The underlying implementation of the I/O object. ]
- ]
+Move-construct a [link boost_asio.reference.posix__basic_descriptor `posix::basic_descriptor`] from another.
 
- [
- [[link boost_asio.reference.basic_socket_acceptor.service [*service]]]
- [(Deprecated: Use get_service().) The service associated with the I/O object. ]
- ]
 
-]
+ basic_descriptor(
+ basic_descriptor && other);
 
-The [link boost_asio.reference.basic_socket_acceptor `basic_socket_acceptor`] class template is used for accepting new socket connections.
 
+This constructor moves a descriptor from one object to another.
 
-[heading Thread Safety]
+
+[heading Parameters]
+
+
+[variablelist
   
-[*Distinct] [*objects:] Safe.
+[[other][The other [link boost_asio.reference.posix__basic_descriptor `posix::basic_descriptor`] object from which the move will occur.]]
+
+]
+
+
+[heading Remarks]
+
+Following the move, the moved-from object is in the same state as if constructed using the `basic_descriptor(io_service&) constructor`.
+
+
+
+
+[endsect]
+
+
+[endsect]
+
+
+[section:bytes_readable posix::basic_descriptor::bytes_readable]
 
-[*Shared] [*objects:] Unsafe.
+
+['Inherited from posix::descriptor_base.]
+
+[indexterm2 bytes_readable..posix::basic_descriptor]
+IO control command to get the amount of data that can be read without blocking.
+
+
+ typedef implementation_defined bytes_readable;
+
+
+
+Implements the FIONREAD IO control command.
 
 
 [heading Example]
   
-Opening a socket acceptor with the SO\_REUSEADDR option enabled:
 
- boost::asio::ip::tcp::acceptor acceptor(io_service);
- boost::asio::ip::tcp::endpoint endpoint(boost::asio::ip::tcp::v4(), port);
- acceptor.open(endpoint.protocol());
- acceptor.set_option(boost::asio::ip::tcp::acceptor::reuse_address(true));
- acceptor.bind(endpoint);
- acceptor.listen();
+
+ boost::asio::posix::stream_descriptor descriptor(io_service);
+ ...
+ boost::asio::descriptor_base::bytes_readable command(true);
+ descriptor.io_control(command);
+ std::size_t bytes_readable = command.get();
 
 
 
@@ -66815,7 +70240,7 @@
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/local/stream_protocol.hpp]
+[*Header: ][^boost/asio/posix/basic_descriptor.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -66823,712 +70248,306 @@
 [endsect]
 
 
+[section:cancel posix::basic_descriptor::cancel]
 
-[section:endpoint local::stream_protocol::endpoint]
+[indexterm2 cancel..posix::basic_descriptor]
+Cancel all asynchronous operations associated with the descriptor.
 
-[indexterm2 endpoint..local::stream_protocol]
-The type of a UNIX domain endpoint.
 
+ void ``[link boost_asio.reference.posix__basic_descriptor.cancel.overload1 cancel]``();
+ `` [''''&raquo;''' [link boost_asio.reference.posix__basic_descriptor.cancel.overload1 more...]]``
 
- typedef basic_endpoint< stream_protocol > endpoint;
+ boost::system::error_code ``[link boost_asio.reference.posix__basic_descriptor.cancel.overload2 cancel]``(
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.posix__basic_descriptor.cancel.overload2 more...]]``
 
 
-[heading Types]
-[table
- [[Name][Description]]
+[section:overload1 posix::basic_descriptor::cancel (1 of 2 overloads)]
 
- [
 
- [[link boost_asio.reference.local__basic_endpoint.data_type [*data_type]]]
- [The type of the endpoint structure. This type is dependent on the underlying implementation of the socket layer. ]
-
- ]
+Cancel all asynchronous operations associated with the descriptor.
 
- [
 
- [[link boost_asio.reference.local__basic_endpoint.protocol_type [*protocol_type]]]
- [The protocol type associated with the endpoint. ]
-
- ]
+ void cancel();
 
-]
 
-[heading Member Functions]
-[table
- [[Name][Description]]
+This function causes all outstanding asynchronous read or write operations to finish immediately, and the handlers for cancelled operations will be passed the `boost::asio::error::operation_aborted` error.
 
- [
- [[link boost_asio.reference.local__basic_endpoint.basic_endpoint [*basic_endpoint]]]
- [Default constructor.
 
- Construct an endpoint using the specified path name.
+[heading Exceptions]
+
 
- Copy constructor. ]
- ]
-
- [
- [[link boost_asio.reference.local__basic_endpoint.capacity [*capacity]]]
- [Get the capacity of the endpoint in the native type. ]
- ]
-
- [
- [[link boost_asio.reference.local__basic_endpoint.data [*data]]]
- [Get the underlying endpoint in the native type. ]
- ]
-
- [
- [[link boost_asio.reference.local__basic_endpoint.operator_eq_ [*operator=]]]
- [Assign from another endpoint. ]
- ]
+[variablelist
   
- [
- [[link boost_asio.reference.local__basic_endpoint.path [*path]]]
- [Get the path associated with the endpoint.
+[[boost::system::system_error][Thrown on failure. ]]
 
- Set the path associated with the endpoint. ]
- ]
-
- [
- [[link boost_asio.reference.local__basic_endpoint.protocol [*protocol]]]
- [The protocol associated with the endpoint. ]
- ]
-
- [
- [[link boost_asio.reference.local__basic_endpoint.resize [*resize]]]
- [Set the underlying size of the endpoint in the native type. ]
- ]
-
- [
- [[link boost_asio.reference.local__basic_endpoint.size [*size]]]
- [Get the underlying size of the endpoint in the native type. ]
- ]
-
 ]
 
-[heading Friends]
-[table
- [[Name][Description]]
-
- [
- [[link boost_asio.reference.local__basic_endpoint.operator_not__eq_ [*operator!=]]]
- [Compare two endpoints for inequality. ]
- ]
-
- [
- [[link boost_asio.reference.local__basic_endpoint.operator_lt_ [*operator<]]]
- [Compare endpoints for ordering. ]
- ]
-
- [
- [[link boost_asio.reference.local__basic_endpoint.operator_lt__eq_ [*operator<=]]]
- [Compare endpoints for ordering. ]
- ]
-
- [
- [[link boost_asio.reference.local__basic_endpoint.operator_eq__eq_ [*operator==]]]
- [Compare two endpoints for equality. ]
- ]
-
- [
- [[link boost_asio.reference.local__basic_endpoint.operator_gt_ [*operator>]]]
- [Compare endpoints for ordering. ]
- ]
-
- [
- [[link boost_asio.reference.local__basic_endpoint.operator_gt__eq_ [*operator>=]]]
- [Compare endpoints for ordering. ]
- ]
-
-]
 
-[heading Related Functions]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.local__basic_endpoint.operator_lt__lt_ [*operator<<]]]
- [Output an endpoint as a string. ]
- ]
-
-]
 
-The [link boost_asio.reference.local__basic_endpoint `local::basic_endpoint`] class template describes an endpoint that may be associated with a particular UNIX socket.
+[endsect]
 
 
-[heading Thread Safety]
-
-[*Distinct] [*objects:] Safe.
 
-[*Shared] [*objects:] Unsafe.
+[section:overload2 posix::basic_descriptor::cancel (2 of 2 overloads)]
 
 
+Cancel all asynchronous operations associated with the descriptor.
 
 
+ boost::system::error_code cancel(
+ boost::system::error_code & ec);
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/local/stream_protocol.hpp]
+This function causes all outstanding asynchronous read or write operations to finish immediately, and the handlers for cancelled operations will be passed the `boost::asio::error::operation_aborted` error.
 
-[*Convenience header: ][^boost/asio.hpp]
 
+[heading Parameters]
+
 
-[endsect]
+[variablelist
+
+[[ec][Set to indicate what error occurred, if any. ]]
 
+]
 
 
-[section:family local::stream_protocol::family]
 
-[indexterm2 family..local::stream_protocol]
-Obtain an identifier for the protocol family.
 
+[endsect]
 
- int family() const;
 
+[endsect]
 
+[section:close posix::basic_descriptor::close]
 
-[endsect]
+[indexterm2 close..posix::basic_descriptor]
+Close the descriptor.
 
 
+ void ``[link boost_asio.reference.posix__basic_descriptor.close.overload1 close]``();
+ `` [''''&raquo;''' [link boost_asio.reference.posix__basic_descriptor.close.overload1 more...]]``
 
-[section:iostream local::stream_protocol::iostream]
+ boost::system::error_code ``[link boost_asio.reference.posix__basic_descriptor.close.overload2 close]``(
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.posix__basic_descriptor.close.overload2 more...]]``
 
-[indexterm2 iostream..local::stream_protocol]
-The UNIX domain iostream type.
 
+[section:overload1 posix::basic_descriptor::close (1 of 2 overloads)]
 
- typedef basic_socket_iostream< stream_protocol > iostream;
 
+Close the descriptor.
 
-[heading Types]
-[table
- [[Name][Description]]
 
- [
+ void close();
 
- [[link boost_asio.reference.basic_socket_iostream.duration_type [*duration_type]]]
- [The duration type. ]
-
- ]
 
- [
+This function is used to close the descriptor. Any asynchronous read or write operations will be cancelled immediately, and will complete with the `boost::asio::error::operation_aborted` error.
 
- [[link boost_asio.reference.basic_socket_iostream.endpoint_type [*endpoint_type]]]
- [The endpoint type. ]
-
- ]
 
- [
+[heading Exceptions]
+
 
- [[link boost_asio.reference.basic_socket_iostream.time_type [*time_type]]]
- [The time type. ]
+[variablelist
   
- ]
+[[boost::system::system_error][Thrown on failure. Note that, even if the function indicates an error, the underlying descriptor is closed. ]]
 
 ]
 
-[heading Member Functions]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.basic_socket_iostream.basic_socket_iostream [*basic_socket_iostream]]]
- [Construct a basic_socket_iostream without establishing a connection.
 
- Establish a connection to an endpoint corresponding to a resolver query. ]
- ]
-
- [
- [[link boost_asio.reference.basic_socket_iostream.close [*close]]]
- [Close the connection. ]
- ]
-
- [
- [[link boost_asio.reference.basic_socket_iostream.connect [*connect]]]
- [Establish a connection to an endpoint corresponding to a resolver query. ]
- ]
-
- [
- [[link boost_asio.reference.basic_socket_iostream.error [*error]]]
- [Get the last error associated with the stream. ]
- ]
-
- [
- [[link boost_asio.reference.basic_socket_iostream.expires_at [*expires_at]]]
- [Get the stream's expiry time as an absolute time.
 
- Set the stream's expiry time as an absolute time. ]
- ]
-
- [
- [[link boost_asio.reference.basic_socket_iostream.expires_from_now [*expires_from_now]]]
- [Get the timer's expiry time relative to now.
+[endsect]
 
- Set the stream's expiry time relative to now. ]
- ]
-
- [
- [[link boost_asio.reference.basic_socket_iostream.rdbuf [*rdbuf]]]
- [Return a pointer to the underlying streambuf. ]
- ]
+
+
+[section:overload2 posix::basic_descriptor::close (2 of 2 overloads)]
+
+
+Close the descriptor.
+
+
+ boost::system::error_code close(
+ boost::system::error_code & ec);
+
+
+This function is used to close the descriptor. Any asynchronous read or write operations will be cancelled immediately, and will complete with the `boost::asio::error::operation_aborted` error.
+
+
+[heading Parameters]
+
+
+[variablelist
   
+[[ec][Set to indicate what error occurred, if any. Note that, even if the function indicates an error, the underlying descriptor is closed. ]]
+
 ]
 
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/local/stream_protocol.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
+[endsect]
 
 
 [endsect]
 
+[section:get_implementation posix::basic_descriptor::get_implementation]
 
+[indexterm2 get_implementation..posix::basic_descriptor]
+Get the underlying implementation of the I/O object.
 
-[section:protocol local::stream_protocol::protocol]
 
-[indexterm2 protocol..local::stream_protocol]
-Obtain an identifier for the protocol.
+ implementation_type & ``[link boost_asio.reference.posix__basic_descriptor.get_implementation.overload1 get_implementation]``();
+ `` [''''&raquo;''' [link boost_asio.reference.posix__basic_descriptor.get_implementation.overload1 more...]]``
 
+ const implementation_type & ``[link boost_asio.reference.posix__basic_descriptor.get_implementation.overload2 get_implementation]``() const;
+ `` [''''&raquo;''' [link boost_asio.reference.posix__basic_descriptor.get_implementation.overload2 more...]]``
 
- int protocol() const;
 
+[section:overload1 posix::basic_descriptor::get_implementation (1 of 2 overloads)]
 
 
-[endsect]
+['Inherited from basic_io_object.]
 
 
+Get the underlying implementation of the I/O object.
 
-[section:socket local::stream_protocol::socket]
 
-[indexterm2 socket..local::stream_protocol]
-The UNIX domain socket type.
+ implementation_type & get_implementation();
 
 
- typedef basic_stream_socket< stream_protocol > socket;
 
+[endsect]
 
-[heading Types]
-[table
- [[Name][Description]]
 
- [
 
- [[link boost_asio.reference.basic_stream_socket.broadcast [*broadcast]]]
- [Socket option to permit sending of broadcast messages. ]
-
- ]
+[section:overload2 posix::basic_descriptor::get_implementation (2 of 2 overloads)]
 
- [
 
- [[link boost_asio.reference.basic_stream_socket.bytes_readable [*bytes_readable]]]
- [IO control command to get the amount of data that can be read without blocking. ]
-
- ]
+['Inherited from basic_io_object.]
 
- [
 
- [[link boost_asio.reference.basic_stream_socket.debug [*debug]]]
- [Socket option to enable socket-level debugging. ]
-
- ]
+Get the underlying implementation of the I/O object.
 
- [
 
- [[link boost_asio.reference.basic_stream_socket.do_not_route [*do_not_route]]]
- [Socket option to prevent routing, use local interfaces only. ]
-
- ]
+ const implementation_type & get_implementation() const;
 
- [
 
- [[link boost_asio.reference.basic_stream_socket.enable_connection_aborted [*enable_connection_aborted]]]
- [Socket option to report aborted connections on accept. ]
-
- ]
 
- [
+[endsect]
 
- [[link boost_asio.reference.basic_stream_socket.endpoint_type [*endpoint_type]]]
- [The endpoint type. ]
-
- ]
 
- [
+[endsect]
 
- [[link boost_asio.reference.basic_stream_socket.implementation_type [*implementation_type]]]
- [The underlying implementation type of I/O object. ]
-
- ]
 
- [
+[section:get_io_service posix::basic_descriptor::get_io_service]
+
+
+['Inherited from basic_io_object.]
+
+[indexterm2 get_io_service..posix::basic_descriptor]
+Get the [link boost_asio.reference.io_service `io_service`] associated with the object.
 
- [[link boost_asio.reference.basic_stream_socket.keep_alive [*keep_alive]]]
- [Socket option to send keep-alives. ]
-
- ]
 
- [
+ boost::asio::io_service & get_io_service();
 
- [[link boost_asio.reference.basic_stream_socket.linger [*linger]]]
- [Socket option to specify whether the socket lingers on close if unsent data is present. ]
-
- ]
 
- [
+This function may be used to obtain the [link boost_asio.reference.io_service `io_service`] object that the I/O object uses to dispatch handlers for asynchronous operations.
 
- [[link boost_asio.reference.basic_stream_socket.lowest_layer_type [*lowest_layer_type]]]
- [A basic_socket is always the lowest layer. ]
-
- ]
 
- [
+[heading Return Value]
+
+A reference to the [link boost_asio.reference.io_service `io_service`] object that the I/O object will use to dispatch handlers. Ownership is not transferred to the caller.
 
- [[link boost_asio.reference.basic_stream_socket.message_flags [*message_flags]]]
- [Bitmask type for flags that can be passed to send and receive operations. ]
-
- ]
 
- [
 
- [[link boost_asio.reference.basic_stream_socket.native_handle_type [*native_handle_type]]]
- [The native representation of a socket. ]
-
- ]
 
- [
+[endsect]
 
- [[link boost_asio.reference.basic_stream_socket.native_type [*native_type]]]
- [(Deprecated: Use native_handle_type.) The native representation of a socket. ]
-
- ]
 
- [
+[section:get_service posix::basic_descriptor::get_service]
 
- [[link boost_asio.reference.basic_stream_socket.non_blocking_io [*non_blocking_io]]]
- [(Deprecated: Use non_blocking().) IO control command to set the blocking mode of the socket. ]
-
- ]
+[indexterm2 get_service..posix::basic_descriptor]
+Get the service associated with the I/O object.
 
- [
 
- [[link boost_asio.reference.basic_stream_socket.protocol_type [*protocol_type]]]
- [The protocol type. ]
-
- ]
+ service_type & ``[link boost_asio.reference.posix__basic_descriptor.get_service.overload1 get_service]``();
+ `` [''''&raquo;''' [link boost_asio.reference.posix__basic_descriptor.get_service.overload1 more...]]``
 
- [
+ const service_type & ``[link boost_asio.reference.posix__basic_descriptor.get_service.overload2 get_service]``() const;
+ `` [''''&raquo;''' [link boost_asio.reference.posix__basic_descriptor.get_service.overload2 more...]]``
 
- [[link boost_asio.reference.basic_stream_socket.receive_buffer_size [*receive_buffer_size]]]
- [Socket option for the receive buffer size of a socket. ]
-
- ]
 
- [
+[section:overload1 posix::basic_descriptor::get_service (1 of 2 overloads)]
 
- [[link boost_asio.reference.basic_stream_socket.receive_low_watermark [*receive_low_watermark]]]
- [Socket option for the receive low watermark. ]
-
- ]
 
- [
+['Inherited from basic_io_object.]
 
- [[link boost_asio.reference.basic_stream_socket.reuse_address [*reuse_address]]]
- [Socket option to allow the socket to be bound to an address that is already in use. ]
-
- ]
 
- [
+Get the service associated with the I/O object.
 
- [[link boost_asio.reference.basic_stream_socket.send_buffer_size [*send_buffer_size]]]
- [Socket option for the send buffer size of a socket. ]
-
- ]
 
- [
+ service_type & get_service();
 
- [[link boost_asio.reference.basic_stream_socket.send_low_watermark [*send_low_watermark]]]
- [Socket option for the send low watermark. ]
-
- ]
 
- [
 
- [[link boost_asio.reference.basic_stream_socket.service_type [*service_type]]]
- [The type of the service that will be used to provide I/O operations. ]
-
- ]
+[endsect]
 
- [
 
- [[link boost_asio.reference.basic_stream_socket.shutdown_type [*shutdown_type]]]
- [Different ways a socket may be shutdown. ]
-
- ]
 
-]
+[section:overload2 posix::basic_descriptor::get_service (2 of 2 overloads)]
 
-[heading Member Functions]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.basic_stream_socket.assign [*assign]]]
- [Assign an existing native socket to the socket. ]
- ]
-
- [
- [[link boost_asio.reference.basic_stream_socket.async_connect [*async_connect]]]
- [Start an asynchronous connect. ]
- ]
-
- [
- [[link boost_asio.reference.basic_stream_socket.async_read_some [*async_read_some]]]
- [Start an asynchronous read. ]
- ]
-
- [
- [[link boost_asio.reference.basic_stream_socket.async_receive [*async_receive]]]
- [Start an asynchronous receive. ]
- ]
-
- [
- [[link boost_asio.reference.basic_stream_socket.async_send [*async_send]]]
- [Start an asynchronous send. ]
- ]
-
- [
- [[link boost_asio.reference.basic_stream_socket.async_write_some [*async_write_some]]]
- [Start an asynchronous write. ]
- ]
-
- [
- [[link boost_asio.reference.basic_stream_socket.at_mark [*at_mark]]]
- [Determine whether the socket is at the out-of-band data mark. ]
- ]
-
- [
- [[link boost_asio.reference.basic_stream_socket.available [*available]]]
- [Determine the number of bytes available for reading. ]
- ]
-
- [
- [[link boost_asio.reference.basic_stream_socket.basic_stream_socket [*basic_stream_socket]]]
- [Construct a basic_stream_socket without opening it.
+['Inherited from basic_io_object.]
 
- Construct and open a basic_stream_socket.
 
- Construct a basic_stream_socket, opening it and binding it to the given local endpoint.
+Get the service associated with the I/O object.
 
- Construct a basic_stream_socket on an existing native socket.
 
- Move-construct a basic_stream_socket from another. ]
- ]
-
- [
- [[link boost_asio.reference.basic_stream_socket.bind [*bind]]]
- [Bind the socket to the given local endpoint. ]
- ]
-
- [
- [[link boost_asio.reference.basic_stream_socket.cancel [*cancel]]]
- [Cancel all asynchronous operations associated with the socket. ]
- ]
-
- [
- [[link boost_asio.reference.basic_stream_socket.close [*close]]]
- [Close the socket. ]
- ]
-
- [
- [[link boost_asio.reference.basic_stream_socket.connect [*connect]]]
- [Connect the socket to the specified endpoint. ]
- ]
-
- [
- [[link boost_asio.reference.basic_stream_socket.get_io_service [*get_io_service]]]
- [Get the io_service associated with the object. ]
- ]
-
- [
- [[link boost_asio.reference.basic_stream_socket.get_option [*get_option]]]
- [Get an option from the socket. ]
- ]
-
- [
- [[link boost_asio.reference.basic_stream_socket.io_control [*io_control]]]
- [Perform an IO control command on the socket. ]
- ]
-
- [
- [[link boost_asio.reference.basic_stream_socket.is_open [*is_open]]]
- [Determine whether the socket is open. ]
- ]
-
- [
- [[link boost_asio.reference.basic_stream_socket.local_endpoint [*local_endpoint]]]
- [Get the local endpoint of the socket. ]
- ]
-
- [
- [[link boost_asio.reference.basic_stream_socket.lowest_layer [*lowest_layer]]]
- [Get a reference to the lowest layer.
+ const service_type & get_service() const;
 
- Get a const reference to the lowest layer. ]
- ]
-
- [
- [[link boost_asio.reference.basic_stream_socket.native [*native]]]
- [(Deprecated: Use native_handle().) Get the native socket representation. ]
- ]
-
- [
- [[link boost_asio.reference.basic_stream_socket.native_handle [*native_handle]]]
- [Get the native socket representation. ]
- ]
-
- [
- [[link boost_asio.reference.basic_stream_socket.native_non_blocking [*native_non_blocking]]]
- [Gets the non-blocking mode of the native socket implementation.
 
- Sets the non-blocking mode of the native socket implementation. ]
- ]
-
- [
- [[link boost_asio.reference.basic_stream_socket.non_blocking [*non_blocking]]]
- [Gets the non-blocking mode of the socket.
 
- Sets the non-blocking mode of the socket. ]
- ]
-
- [
- [[link boost_asio.reference.basic_stream_socket.open [*open]]]
- [Open the socket using the specified protocol. ]
- ]
-
- [
- [[link boost_asio.reference.basic_stream_socket.operator_eq_ [*operator=]]]
- [Move-assign a basic_stream_socket from another. ]
- ]
-
- [
- [[link boost_asio.reference.basic_stream_socket.read_some [*read_some]]]
- [Read some data from the socket. ]
- ]
-
- [
- [[link boost_asio.reference.basic_stream_socket.receive [*receive]]]
- [Receive some data on the socket.
+[endsect]
 
- Receive some data on a connected socket. ]
- ]
-
- [
- [[link boost_asio.reference.basic_stream_socket.remote_endpoint [*remote_endpoint]]]
- [Get the remote endpoint of the socket. ]
- ]
-
- [
- [[link boost_asio.reference.basic_stream_socket.send [*send]]]
- [Send some data on the socket. ]
- ]
-
- [
- [[link boost_asio.reference.basic_stream_socket.set_option [*set_option]]]
- [Set an option on the socket. ]
- ]
-
- [
- [[link boost_asio.reference.basic_stream_socket.shutdown [*shutdown]]]
- [Disable sends or receives on the socket. ]
- ]
-
- [
- [[link boost_asio.reference.basic_stream_socket.write_some [*write_some]]]
- [Write some data to the socket. ]
- ]
-
-]
 
-[heading Protected Member Functions]
-[table
- [[Name][Description]]
+[endsect]
 
- [
- [[link boost_asio.reference.basic_stream_socket.get_implementation [*get_implementation]]]
- [Get the underlying implementation of the I/O object. ]
- ]
-
- [
- [[link boost_asio.reference.basic_stream_socket.get_service [*get_service]]]
- [Get the service associated with the I/O object. ]
- ]
-
-]
 
-[heading Data Members]
-[table
- [[Name][Description]]
+[section:implementation posix::basic_descriptor::implementation]
 
- [
- [[link boost_asio.reference.basic_stream_socket.max_connections [*max_connections]]]
- [The maximum length of the queue of pending incoming connections. ]
- ]
 
- [
- [[link boost_asio.reference.basic_stream_socket.message_do_not_route [*message_do_not_route]]]
- [Specify that the data should not be subject to routing. ]
- ]
+['Inherited from basic_io_object.]
 
- [
- [[link boost_asio.reference.basic_stream_socket.message_end_of_record [*message_end_of_record]]]
- [Specifies that the data marks the end of a record. ]
- ]
+[indexterm2 implementation..posix::basic_descriptor]
+(Deprecated: Use `get_implementation()`.) The underlying implementation of the I/O object.
 
- [
- [[link boost_asio.reference.basic_stream_socket.message_out_of_band [*message_out_of_band]]]
- [Process out-of-band data. ]
- ]
 
- [
- [[link boost_asio.reference.basic_stream_socket.message_peek [*message_peek]]]
- [Peek at incoming data without removing it from the input queue. ]
- ]
+ implementation_type implementation;
 
-]
 
-[heading Protected Data Members]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.basic_stream_socket.implementation [*implementation]]]
- [(Deprecated: Use get_implementation().) The underlying implementation of the I/O object. ]
- ]
+[endsect]
 
- [
- [[link boost_asio.reference.basic_stream_socket.service [*service]]]
- [(Deprecated: Use get_service().) The service associated with the I/O object. ]
- ]
 
-]
 
-The [link boost_asio.reference.basic_stream_socket `basic_stream_socket`] class template provides asynchronous and blocking stream-oriented socket functionality.
+[section:implementation_type posix::basic_descriptor::implementation_type]
 
 
-[heading Thread Safety]
-
-[*Distinct] [*objects:] Safe.
+['Inherited from basic_io_object.]
 
-[*Shared] [*objects:] Unsafe.
+[indexterm2 implementation_type..posix::basic_descriptor]
+The underlying implementation type of I/O object.
 
 
+ typedef service_type::implementation_type implementation_type;
 
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/local/stream_protocol.hpp]
+[*Header: ][^boost/asio/posix/basic_descriptor.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -67536,158 +70555,184 @@
 [endsect]
 
 
+[section:io_control posix::basic_descriptor::io_control]
 
-[section:type local::stream_protocol::type]
+[indexterm2 io_control..posix::basic_descriptor]
+Perform an IO control command on the descriptor.
 
-[indexterm2 type..local::stream_protocol]
-Obtain an identifier for the type of the protocol.
 
+ template<
+ typename ``[link boost_asio.reference.IoControlCommand IoControlCommand]``>
+ void ``[link boost_asio.reference.posix__basic_descriptor.io_control.overload1 io_control]``(
+ IoControlCommand & command);
+ `` [''''&raquo;''' [link boost_asio.reference.posix__basic_descriptor.io_control.overload1 more...]]``
 
- int type() const;
+ template<
+ typename ``[link boost_asio.reference.IoControlCommand IoControlCommand]``>
+ boost::system::error_code ``[link boost_asio.reference.posix__basic_descriptor.io_control.overload2 io_control]``(
+ IoControlCommand & command,
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.posix__basic_descriptor.io_control.overload2 more...]]``
 
 
+[section:overload1 posix::basic_descriptor::io_control (1 of 2 overloads)]
 
-[endsect]
 
+Perform an IO control command on the descriptor.
 
 
-[endsect]
+ template<
+ typename ``[link boost_asio.reference.IoControlCommand IoControlCommand]``>
+ void io_control(
+ IoControlCommand & command);
 
-[section:mutable_buffer mutable_buffer]
 
+This function is used to execute an IO control command on the descriptor.
 
-Holds a buffer that can be modified.
 
+[heading Parameters]
+
 
- class mutable_buffer
+[variablelist
+
+[[command][The IO control command to be performed on the descriptor.]]
 
+]
 
-[heading Member Functions]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.mutable_buffer.mutable_buffer [*mutable_buffer]]]
- [Construct an empty buffer.
+[heading Exceptions]
+
 
- Construct a buffer to represent a given memory range. ]
- ]
+[variablelist
   
+[[boost::system::system_error][Thrown on failure.]]
+
 ]
 
-[heading Related Functions]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.mutable_buffer.operator_plus_ [*operator+]]]
- [Create a new modifiable buffer that is offset from the start of another. ]
- ]
+
+[heading Example]
   
-]
+Getting the number of bytes ready to read:
 
-The [link boost_asio.reference.mutable_buffer `mutable_buffer`] class provides a safe representation of a buffer that can be modified. It does not own the underlying data, and so is cheap to copy or assign.
+ boost::asio::posix::stream_descriptor descriptor(io_service);
+ ...
+ boost::asio::posix::stream_descriptor::bytes_readable command;
+ descriptor.io_control(command);
+ std::size_t bytes_readable = command.get();
 
 
-[heading Accessing Buffer Contents]
-
 
 
-The contents of a buffer may be accessed using the [link boost_asio.reference.buffer_size `buffer_size`] and [link boost_asio.reference.buffer_cast `buffer_cast`] functions:
 
 
 
- boost::asio::mutable_buffer b1 = ...;
- std::size_t s1 = boost::asio::buffer_size(b1);
- unsigned char* p1 = boost::asio::buffer_cast<unsigned char*>(b1);
+[endsect]
 
 
 
+[section:overload2 posix::basic_descriptor::io_control (2 of 2 overloads)]
 
-The `boost::asio::buffer_cast` function permits violations of type safety, so uses of it in application code should be carefully considered.
 
-[heading Requirements]
+Perform an IO control command on the descriptor.
 
-[*Header: ][^boost/asio/buffer.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
+ template<
+ typename ``[link boost_asio.reference.IoControlCommand IoControlCommand]``>
+ boost::system::error_code io_control(
+ IoControlCommand & command,
+ boost::system::error_code & ec);
 
-[section:mutable_buffer mutable_buffer::mutable_buffer]
 
-[indexterm2 mutable_buffer..mutable_buffer]
-Construct an empty buffer.
+This function is used to execute an IO control command on the descriptor.
 
 
- ``[link boost_asio.reference.mutable_buffer.mutable_buffer.overload1 mutable_buffer]``();
- `` [''''&raquo;''' [link boost_asio.reference.mutable_buffer.mutable_buffer.overload1 more...]]``
+[heading Parameters]
+
 
+[variablelist
+
+[[command][The IO control command to be performed on the descriptor.]]
 
-Construct a buffer to represent a given memory range.
+[[ec][Set to indicate what error occurred, if any.]]
 
+]
 
- ``[link boost_asio.reference.mutable_buffer.mutable_buffer.overload2 mutable_buffer]``(
- void * data,
- std::size_t size);
- `` [''''&raquo;''' [link boost_asio.reference.mutable_buffer.mutable_buffer.overload2 more...]]``
 
 
-[section:overload1 mutable_buffer::mutable_buffer (1 of 2 overloads)]
+[heading Example]
+
+Getting the number of bytes ready to read:
+
+ boost::asio::posix::stream_descriptor descriptor(io_service);
+ ...
+ boost::asio::posix::stream_descriptor::bytes_readable command;
+ boost::system::error_code ec;
+ descriptor.io_control(command, ec);
+ if (ec)
+ {
+ // An error occurred.
+ }
+ std::size_t bytes_readable = command.get();
 
 
-Construct an empty buffer.
 
 
- mutable_buffer();
 
 
 
 [endsect]
 
 
+[endsect]
 
-[section:overload2 mutable_buffer::mutable_buffer (2 of 2 overloads)]
 
+[section:is_open posix::basic_descriptor::is_open]
 
-Construct a buffer to represent a given memory range.
+[indexterm2 is_open..posix::basic_descriptor]
+Determine whether the descriptor is open.
 
 
- mutable_buffer(
- void * data,
- std::size_t size);
+ bool is_open() const;
 
 
 
 [endsect]
 
 
-[endsect]
+[section:lowest_layer posix::basic_descriptor::lowest_layer]
 
-[section:operator_plus_ mutable_buffer::operator+]
+[indexterm2 lowest_layer..posix::basic_descriptor]
+Get a reference to the lowest layer.
 
-[indexterm2 operator+..mutable_buffer]
-Create a new modifiable buffer that is offset from the start of another.
 
+ lowest_layer_type & ``[link boost_asio.reference.posix__basic_descriptor.lowest_layer.overload1 lowest_layer]``();
+ `` [''''&raquo;''' [link boost_asio.reference.posix__basic_descriptor.lowest_layer.overload1 more...]]``
 
- mutable_buffer ``[link boost_asio.reference.mutable_buffer.operator_plus_.overload1 operator+]``(
- const mutable_buffer & b,
- std::size_t start);
- `` [''''&raquo;''' [link boost_asio.reference.mutable_buffer.operator_plus_.overload1 more...]]``
 
- mutable_buffer ``[link boost_asio.reference.mutable_buffer.operator_plus_.overload2 operator+]``(
- std::size_t start,
- const mutable_buffer & b);
- `` [''''&raquo;''' [link boost_asio.reference.mutable_buffer.operator_plus_.overload2 more...]]``
+Get a const reference to the lowest layer.
 
 
-[section:overload1 mutable_buffer::operator+ (1 of 2 overloads)]
+ const lowest_layer_type & ``[link boost_asio.reference.posix__basic_descriptor.lowest_layer.overload2 lowest_layer]``() const;
+ `` [''''&raquo;''' [link boost_asio.reference.posix__basic_descriptor.lowest_layer.overload2 more...]]``
 
 
-Create a new modifiable buffer that is offset from the start of another.
+[section:overload1 posix::basic_descriptor::lowest_layer (1 of 2 overloads)]
 
 
- mutable_buffer operator+(
- const mutable_buffer & b,
- std::size_t start);
+Get a reference to the lowest layer.
+
+
+ lowest_layer_type & lowest_layer();
+
+
+This function returns a reference to the lowest layer in a stack of layers. Since a [link boost_asio.reference.posix__basic_descriptor `posix::basic_descriptor`] cannot contain any further layers, it simply returns a reference to itself.
+
+
+[heading Return Value]
+
+A reference to the lowest layer in the stack of layers. Ownership is not transferred to the caller.
+
 
 
 
@@ -67695,19 +70740,23 @@
 
 
 
-[section:overload2 mutable_buffer::operator+ (2 of 2 overloads)]
+[section:overload2 posix::basic_descriptor::lowest_layer (2 of 2 overloads)]
+
+
+Get a const reference to the lowest layer.
+
 
+ const lowest_layer_type & lowest_layer() const;
 
-Create a new modifiable buffer that is offset from the start of another.
 
+This function returns a const reference to the lowest layer in a stack of layers. Since a [link boost_asio.reference.posix__basic_descriptor `posix::basic_descriptor`] cannot contain any further layers, it simply returns a reference to itself.
 
- mutable_buffer operator+(
- std::size_t start,
- const mutable_buffer & b);
 
+[heading Return Value]
+
+A const reference to the lowest layer in the stack of layers. Ownership is not transferred to the caller.
 
 
-[endsect]
 
 
 [endsect]
@@ -67715,14 +70764,14 @@
 
 [endsect]
 
-[section:mutable_buffers_1 mutable_buffers_1]
 
+[section:lowest_layer_type posix::basic_descriptor::lowest_layer_type]
 
-Adapts a single modifiable buffer so that it meets the requirements of the MutableBufferSequence concept.
+[indexterm2 lowest_layer_type..posix::basic_descriptor]
+A [link boost_asio.reference.posix__basic_descriptor `posix::basic_descriptor`] is always the lowest layer.
 
 
- class mutable_buffers_1 :
- public mutable_buffer
+ typedef basic_descriptor< DescriptorService > lowest_layer_type;
 
 
 [heading Types]
@@ -67731,15 +70780,50 @@
 
   [
 
- [[link boost_asio.reference.mutable_buffers_1.const_iterator [*const_iterator]]]
- [A random-access iterator type that may be used to read elements. ]
+ [[link boost_asio.reference.posix__basic_descriptor.bytes_readable [*bytes_readable]]]
+ [IO control command to get the amount of data that can be read without blocking. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.mutable_buffers_1.value_type [*value_type]]]
- [The type for each element in the list of buffers. ]
+ [[link boost_asio.reference.posix__basic_descriptor.implementation_type [*implementation_type]]]
+ [The underlying implementation type of I/O object. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.posix__basic_descriptor.lowest_layer_type [*lowest_layer_type]]]
+ [A basic_descriptor is always the lowest layer. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.posix__basic_descriptor.native_handle_type [*native_handle_type]]]
+ [The native representation of a descriptor. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.posix__basic_descriptor.native_type [*native_type]]]
+ [(Deprecated: Use native_handle_type.) The native representation of a descriptor. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.posix__basic_descriptor.non_blocking_io [*non_blocking_io]]]
+ [(Deprecated: Use non_blocking().) IO control command to set the blocking mode of the descriptor. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.posix__basic_descriptor.service_type [*service_type]]]
+ [The type of the service that will be used to provide I/O operations. ]
   
   ]
 
@@ -67750,256 +70834,336 @@
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.mutable_buffers_1.begin [*begin]]]
- [Get a random-access iterator to the first element. ]
+ [[link boost_asio.reference.posix__basic_descriptor.assign [*assign]]]
+ [Assign an existing native descriptor to the descriptor. ]
   ]
   
   [
- [[link boost_asio.reference.mutable_buffers_1.end [*end]]]
- [Get a random-access iterator for one past the last element. ]
+ [[link boost_asio.reference.posix__basic_descriptor.basic_descriptor [*basic_descriptor]]]
+ [Construct a basic_descriptor without opening it.
+
+ Construct a basic_descriptor on an existing native descriptor.
+
+ Move-construct a basic_descriptor from another. ]
   ]
   
   [
- [[link boost_asio.reference.mutable_buffers_1.mutable_buffers_1 [*mutable_buffers_1]]]
- [Construct to represent a given memory range.
+ [[link boost_asio.reference.posix__basic_descriptor.cancel [*cancel]]]
+ [Cancel all asynchronous operations associated with the descriptor. ]
+ ]
+
+ [
+ [[link boost_asio.reference.posix__basic_descriptor.close [*close]]]
+ [Close the descriptor. ]
+ ]
+
+ [
+ [[link boost_asio.reference.posix__basic_descriptor.get_io_service [*get_io_service]]]
+ [Get the io_service associated with the object. ]
+ ]
+
+ [
+ [[link boost_asio.reference.posix__basic_descriptor.io_control [*io_control]]]
+ [Perform an IO control command on the descriptor. ]
+ ]
+
+ [
+ [[link boost_asio.reference.posix__basic_descriptor.is_open [*is_open]]]
+ [Determine whether the descriptor is open. ]
+ ]
+
+ [
+ [[link boost_asio.reference.posix__basic_descriptor.lowest_layer [*lowest_layer]]]
+ [Get a reference to the lowest layer.
 
- Construct to represent a single modifiable buffer. ]
+ Get a const reference to the lowest layer. ]
+ ]
+
+ [
+ [[link boost_asio.reference.posix__basic_descriptor.native [*native]]]
+ [(Deprecated: Use native_handle().) Get the native descriptor representation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.posix__basic_descriptor.native_handle [*native_handle]]]
+ [Get the native descriptor representation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.posix__basic_descriptor.native_non_blocking [*native_non_blocking]]]
+ [Gets the non-blocking mode of the native descriptor implementation.
+
+ Sets the non-blocking mode of the native descriptor implementation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.posix__basic_descriptor.non_blocking [*non_blocking]]]
+ [Gets the non-blocking mode of the descriptor.
+
+ Sets the non-blocking mode of the descriptor. ]
+ ]
+
+ [
+ [[link boost_asio.reference.posix__basic_descriptor.operator_eq_ [*operator=]]]
+ [Move-assign a basic_descriptor from another. ]
+ ]
+
+ [
+ [[link boost_asio.reference.posix__basic_descriptor.release [*release]]]
+ [Release ownership of the native descriptor implementation. ]
   ]
   
 ]
 
-[heading Related Functions]
+[heading Protected Member Functions]
 [table
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.mutable_buffers_1.operator_plus_ [*operator+]]]
- [Create a new modifiable buffer that is offset from the start of another. ]
+ [[link boost_asio.reference.posix__basic_descriptor.get_implementation [*get_implementation]]]
+ [Get the underlying implementation of the I/O object. ]
+ ]
+
+ [
+ [[link boost_asio.reference.posix__basic_descriptor.get_service [*get_service]]]
+ [Get the service associated with the I/O object. ]
+ ]
+
+ [
+ [[link boost_asio.reference.posix__basic_descriptor._basic_descriptor [*~basic_descriptor]]]
+ [Protected destructor to prevent deletion through this type. ]
   ]
   
 ]
 
-[heading Requirements]
+[heading Protected Data Members]
+[table
+ [[Name][Description]]
 
-[*Header: ][^boost/asio/buffer.hpp]
+ [
+ [[link boost_asio.reference.posix__basic_descriptor.implementation [*implementation]]]
+ [(Deprecated: Use get_implementation().) The underlying implementation of the I/O object. ]
+ ]
 
-[*Convenience header: ][^boost/asio.hpp]
+ [
+ [[link boost_asio.reference.posix__basic_descriptor.service [*service]]]
+ [(Deprecated: Use get_service().) The service associated with the I/O object. ]
+ ]
 
+]
 
-[section:begin mutable_buffers_1::begin]
+The [link boost_asio.reference.posix__basic_descriptor `posix::basic_descriptor`] class template provides the ability to wrap a POSIX descriptor.
 
-[indexterm2 begin..mutable_buffers_1]
-Get a random-access iterator to the first element.
 
+[heading Thread Safety]
+
+[*Distinct] [*objects:] Safe.
 
- const_iterator begin() const;
+[*Shared] [*objects:] Unsafe.
 
 
 
-[endsect]
 
+[heading Requirements]
 
+[*Header: ][^boost/asio/posix/basic_descriptor.hpp]
 
-[section:const_iterator mutable_buffers_1::const_iterator]
+[*Convenience header: ][^boost/asio.hpp]
 
-[indexterm2 const_iterator..mutable_buffers_1]
-A random-access iterator type that may be used to read elements.
 
+[endsect]
 
- typedef const mutable_buffer * const_iterator;
 
 
+[section:native posix::basic_descriptor::native]
 
-[heading Requirements]
+[indexterm2 native..posix::basic_descriptor]
+(Deprecated: Use `native_handle()`.) Get the native descriptor representation.
 
-[*Header: ][^boost/asio/buffer.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
+ native_type native();
+
+
+This function may be used to obtain the underlying representation of the descriptor. This is intended to allow access to native descriptor functionality that is not otherwise provided.
 
 
 [endsect]
 
 
 
-[section:end mutable_buffers_1::end]
+[section:native_handle posix::basic_descriptor::native_handle]
 
-[indexterm2 end..mutable_buffers_1]
-Get a random-access iterator for one past the last element.
+[indexterm2 native_handle..posix::basic_descriptor]
+Get the native descriptor representation.
 
 
- const_iterator end() const;
+ native_handle_type native_handle();
 
 
+This function may be used to obtain the underlying representation of the descriptor. This is intended to allow access to native descriptor functionality that is not otherwise provided.
+
 
 [endsect]
 
 
-[section:mutable_buffers_1 mutable_buffers_1::mutable_buffers_1]
 
-[indexterm2 mutable_buffers_1..mutable_buffers_1]
-Construct to represent a given memory range.
+[section:native_handle_type posix::basic_descriptor::native_handle_type]
 
+[indexterm2 native_handle_type..posix::basic_descriptor]
+The native representation of a descriptor.
 
- ``[link boost_asio.reference.mutable_buffers_1.mutable_buffers_1.overload1 mutable_buffers_1]``(
- void * data,
- std::size_t size);
- `` [''''&raquo;''' [link boost_asio.reference.mutable_buffers_1.mutable_buffers_1.overload1 more...]]``
 
+ typedef DescriptorService::native_handle_type native_handle_type;
 
-Construct to represent a single modifiable buffer.
 
 
- explicit ``[link boost_asio.reference.mutable_buffers_1.mutable_buffers_1.overload2 mutable_buffers_1]``(
- const mutable_buffer & b);
- `` [''''&raquo;''' [link boost_asio.reference.mutable_buffers_1.mutable_buffers_1.overload2 more...]]``
+[heading Requirements]
 
+[*Header: ][^boost/asio/posix/basic_descriptor.hpp]
 
-[section:overload1 mutable_buffers_1::mutable_buffers_1 (1 of 2 overloads)]
+[*Convenience header: ][^boost/asio.hpp]
 
 
-Construct to represent a given memory range.
+[endsect]
 
 
- mutable_buffers_1(
- void * data,
- std::size_t size);
+[section:native_non_blocking posix::basic_descriptor::native_non_blocking]
 
+[indexterm2 native_non_blocking..posix::basic_descriptor]
+Gets the non-blocking mode of the native descriptor implementation.
 
 
-[endsect]
+ bool ``[link boost_asio.reference.posix__basic_descriptor.native_non_blocking.overload1 native_non_blocking]``() const;
+ `` [''''&raquo;''' [link boost_asio.reference.posix__basic_descriptor.native_non_blocking.overload1 more...]]``
 
 
+Sets the non-blocking mode of the native descriptor implementation.
 
-[section:overload2 mutable_buffers_1::mutable_buffers_1 (2 of 2 overloads)]
 
+ void ``[link boost_asio.reference.posix__basic_descriptor.native_non_blocking.overload2 native_non_blocking]``(
+ bool mode);
+ `` [''''&raquo;''' [link boost_asio.reference.posix__basic_descriptor.native_non_blocking.overload2 more...]]``
 
-Construct to represent a single modifiable buffer.
+ boost::system::error_code ``[link boost_asio.reference.posix__basic_descriptor.native_non_blocking.overload3 native_non_blocking]``(
+ bool mode,
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.posix__basic_descriptor.native_non_blocking.overload3 more...]]``
 
 
- mutable_buffers_1(
- const mutable_buffer & b);
+[section:overload1 posix::basic_descriptor::native_non_blocking (1 of 3 overloads)]
+
 
+Gets the non-blocking mode of the native descriptor implementation.
 
 
-[endsect]
+ bool native_non_blocking() const;
 
 
-[endsect]
+This function is used to retrieve the non-blocking mode of the underlying native descriptor. This mode has no effect on the behaviour of the descriptor object's synchronous operations.
 
-[section:operator_plus_ mutable_buffers_1::operator+]
 
-[indexterm2 operator+..mutable_buffers_1]
-Create a new modifiable buffer that is offset from the start of another.
+[heading Return Value]
+
+`true` if the underlying descriptor is in non-blocking mode and direct system calls may fail with `boost::asio::error::would_block` (or the equivalent system error).
 
 
- mutable_buffer ``[link boost_asio.reference.mutable_buffers_1.operator_plus_.overload1 operator+]``(
- const mutable_buffer & b,
- std::size_t start);
- `` [''''&raquo;''' [link boost_asio.reference.mutable_buffers_1.operator_plus_.overload1 more...]]``
+[heading Remarks]
+
+The current non-blocking mode is cached by the descriptor object. Consequently, the return value may be incorrect if the non-blocking mode was set directly on the native descriptor.
 
- mutable_buffer ``[link boost_asio.reference.mutable_buffers_1.operator_plus_.overload2 operator+]``(
- std::size_t start,
- const mutable_buffer & b);
- `` [''''&raquo;''' [link boost_asio.reference.mutable_buffers_1.operator_plus_.overload2 more...]]``
 
 
-[section:overload1 mutable_buffers_1::operator+ (1 of 2 overloads)]
 
+[endsect]
 
-['Inherited from mutable_buffer.]
 
 
-Create a new modifiable buffer that is offset from the start of another.
+[section:overload2 posix::basic_descriptor::native_non_blocking (2 of 3 overloads)]
 
 
- mutable_buffer operator+(
- const mutable_buffer & b,
- std::size_t start);
+Sets the non-blocking mode of the native descriptor implementation.
 
 
+ void native_non_blocking(
+ bool mode);
 
-[endsect]
 
+This function is used to modify the non-blocking mode of the underlying native descriptor. It has no effect on the behaviour of the descriptor object's synchronous operations.
 
 
-[section:overload2 mutable_buffers_1::operator+ (2 of 2 overloads)]
+[heading Parameters]
+
 
+[variablelist
+
+[[mode][If `true`, the underlying descriptor is put into non-blocking mode and direct system calls may fail with `boost::asio::error::would_block` (or the equivalent system error).]]
 
-['Inherited from mutable_buffer.]
+]
 
 
-Create a new modifiable buffer that is offset from the start of another.
+[heading Exceptions]
+
 
+[variablelist
+
+[[boost::system::system_error][Thrown on failure. If the `mode` is `false`, but the current value of `non_blocking()` is `true`, this function fails with `boost::asio::error::invalid_argument`, as the combination does not make sense. ]]
+
+]
 
- mutable_buffer operator+(
- std::size_t start,
- const mutable_buffer & b);
 
 
 
 [endsect]
 
 
-[endsect]
 
+[section:overload3 posix::basic_descriptor::native_non_blocking (3 of 3 overloads)]
 
-[section:value_type mutable_buffers_1::value_type]
 
-[indexterm2 value_type..mutable_buffers_1]
-The type for each element in the list of buffers.
+Sets the non-blocking mode of the native descriptor implementation.
 
 
- typedef mutable_buffer value_type;
+ boost::system::error_code native_non_blocking(
+ bool mode,
+ boost::system::error_code & ec);
 
 
-[heading Member Functions]
-[table
- [[Name][Description]]
+This function is used to modify the non-blocking mode of the underlying native descriptor. It has no effect on the behaviour of the descriptor object's synchronous operations.
 
- [
- [[link boost_asio.reference.mutable_buffer.mutable_buffer [*mutable_buffer]]]
- [Construct an empty buffer.
 
- Construct a buffer to represent a given memory range. ]
- ]
+[heading Parameters]
+
+
+[variablelist
   
-]
+[[mode][If `true`, the underlying descriptor is put into non-blocking mode and direct system calls may fail with `boost::asio::error::would_block` (or the equivalent system error).]]
 
-[heading Related Functions]
-[table
- [[Name][Description]]
+[[ec][Set to indicate what error occurred, if any. If the `mode` is `false`, but the current value of `non_blocking()` is `true`, this function fails with `boost::asio::error::invalid_argument`, as the combination does not make sense. ]]
 
- [
- [[link boost_asio.reference.mutable_buffer.operator_plus_ [*operator+]]]
- [Create a new modifiable buffer that is offset from the start of another. ]
- ]
-
 ]
 
-The [link boost_asio.reference.mutable_buffer `mutable_buffer`] class provides a safe representation of a buffer that can be modified. It does not own the underlying data, and so is cheap to copy or assign.
 
 
-[heading Accessing Buffer Contents]
-
 
+[endsect]
 
-The contents of a buffer may be accessed using the [link boost_asio.reference.buffer_size `buffer_size`] and [link boost_asio.reference.buffer_cast `buffer_cast`] functions:
 
+[endsect]
 
 
- boost::asio::mutable_buffer b1 = ...;
- std::size_t s1 = boost::asio::buffer_size(b1);
- unsigned char* p1 = boost::asio::buffer_cast<unsigned char*>(b1);
+[section:native_type posix::basic_descriptor::native_type]
 
+[indexterm2 native_type..posix::basic_descriptor]
+(Deprecated: Use native\_handle\_type.) The native representation of a descriptor.
 
 
+ typedef DescriptorService::native_handle_type native_type;
 
-The `boost::asio::buffer_cast` function permits violations of type safety, so uses of it in application code should be carefully considered.
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/buffer.hpp]
+[*Header: ][^boost/asio/posix/basic_descriptor.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -68007,230 +71171,268 @@
 [endsect]
 
 
+[section:non_blocking posix::basic_descriptor::non_blocking]
+
+[indexterm2 non_blocking..posix::basic_descriptor]
+Gets the non-blocking mode of the descriptor.
+
+
+ bool ``[link boost_asio.reference.posix__basic_descriptor.non_blocking.overload1 non_blocking]``() const;
+ `` [''''&raquo;''' [link boost_asio.reference.posix__basic_descriptor.non_blocking.overload1 more...]]``
+
+
+Sets the non-blocking mode of the descriptor.
+
+
+ void ``[link boost_asio.reference.posix__basic_descriptor.non_blocking.overload2 non_blocking]``(
+ bool mode);
+ `` [''''&raquo;''' [link boost_asio.reference.posix__basic_descriptor.non_blocking.overload2 more...]]``
+
+ boost::system::error_code ``[link boost_asio.reference.posix__basic_descriptor.non_blocking.overload3 non_blocking]``(
+ bool mode,
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.posix__basic_descriptor.non_blocking.overload3 more...]]``
+
+
+[section:overload1 posix::basic_descriptor::non_blocking (1 of 3 overloads)]
+
+
+Gets the non-blocking mode of the descriptor.
+
+
+ bool non_blocking() const;
+
+
+
+[heading Return Value]
+
+`true` if the descriptor's synchronous operations will fail with `boost::asio::error::would_block` if they are unable to perform the requested operation immediately. If `false`, synchronous operations will block until complete.
+
+
+[heading Remarks]
+
+The non-blocking mode has no effect on the behaviour of asynchronous operations. Asynchronous operations will never fail with the error `boost::asio::error::would_block`.
+
+
+
 
 [endsect]
 
-[section:null_buffers null_buffers]
 
 
-An implementation of both the ConstBufferSequence and MutableBufferSequence concepts to represent a null buffer sequence.
+[section:overload2 posix::basic_descriptor::non_blocking (2 of 3 overloads)]
 
 
- class null_buffers
+Sets the non-blocking mode of the descriptor.
 
 
-[heading Types]
-[table
- [[Name][Description]]
+ void non_blocking(
+ bool mode);
 
- [
 
- [[link boost_asio.reference.null_buffers.const_iterator [*const_iterator]]]
- [A random-access iterator type that may be used to read elements. ]
-
- ]
 
- [
+[heading Parameters]
+
 
- [[link boost_asio.reference.null_buffers.value_type [*value_type]]]
- [The type for each element in the list of buffers. ]
+[variablelist
   
- ]
+[[mode][If `true`, the descriptor's synchronous operations will fail with `boost::asio::error::would_block` if they are unable to perform the requested operation immediately. If `false`, synchronous operations will block until complete.]]
 
 ]
 
-[heading Member Functions]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.null_buffers.begin [*begin]]]
- [Get a random-access iterator to the first element. ]
- ]
-
- [
- [[link boost_asio.reference.null_buffers.end [*end]]]
- [Get a random-access iterator for one past the last element. ]
- ]
+[heading Exceptions]
+
+
+[variablelist
   
+[[boost::system::system_error][Thrown on failure.]]
+
 ]
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/buffer.hpp]
+[heading Remarks]
+
+The non-blocking mode has no effect on the behaviour of asynchronous operations. Asynchronous operations will never fail with the error `boost::asio::error::would_block`.
 
-[*Convenience header: ][^boost/asio.hpp]
 
 
-[section:begin null_buffers::begin]
 
-[indexterm2 begin..null_buffers]
-Get a random-access iterator to the first element.
+[endsect]
 
 
- const_iterator begin() const;
 
+[section:overload3 posix::basic_descriptor::non_blocking (3 of 3 overloads)]
 
 
-[endsect]
+Sets the non-blocking mode of the descriptor.
+
 
+ boost::system::error_code non_blocking(
+ bool mode,
+ boost::system::error_code & ec);
 
 
-[section:const_iterator null_buffers::const_iterator]
 
-[indexterm2 const_iterator..null_buffers]
-A random-access iterator type that may be used to read elements.
+[heading Parameters]
+
 
+[variablelist
+
+[[mode][If `true`, the descriptor's synchronous operations will fail with `boost::asio::error::would_block` if they are unable to perform the requested operation immediately. If `false`, synchronous operations will block until complete.]]
 
- typedef const mutable_buffer * const_iterator;
+[[ec][Set to indicate what error occurred, if any.]]
 
+]
 
 
-[heading Requirements]
+[heading Remarks]
+
+The non-blocking mode has no effect on the behaviour of asynchronous operations. Asynchronous operations will never fail with the error `boost::asio::error::would_block`.
 
-[*Header: ][^boost/asio/buffer.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
+[endsect]
 
-[section:end null_buffers::end]
 
-[indexterm2 end..null_buffers]
-Get a random-access iterator for one past the last element.
+[section:non_blocking_io posix::basic_descriptor::non_blocking_io]
 
 
- const_iterator end() const;
+['Inherited from posix::descriptor_base.]
 
+[indexterm2 non_blocking_io..posix::basic_descriptor]
+(Deprecated: Use non\_blocking().) IO control command to set the blocking mode of the descriptor.
 
 
-[endsect]
+ typedef implementation_defined non_blocking_io;
 
 
 
-[section:value_type null_buffers::value_type]
+Implements the FIONBIO IO control command.
 
-[indexterm2 value_type..null_buffers]
-The type for each element in the list of buffers.
 
+[heading Example]
+
+
+
+ boost::asio::posix::stream_descriptor descriptor(io_service);
+ ...
+ boost::asio::descriptor_base::non_blocking_io command(true);
+ descriptor.io_control(command);
 
- typedef mutable_buffer value_type;
 
 
-[heading Member Functions]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.mutable_buffer.mutable_buffer [*mutable_buffer]]]
- [Construct an empty buffer.
 
- Construct a buffer to represent a given memory range. ]
- ]
-
-]
 
-[heading Related Functions]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.mutable_buffer.operator_plus_ [*operator+]]]
- [Create a new modifiable buffer that is offset from the start of another. ]
- ]
-
-]
+[heading Requirements]
 
-The [link boost_asio.reference.mutable_buffer `mutable_buffer`] class provides a safe representation of a buffer that can be modified. It does not own the underlying data, and so is cheap to copy or assign.
+[*Header: ][^boost/asio/posix/basic_descriptor.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
-[heading Accessing Buffer Contents]
-
 
+[endsect]
 
-The contents of a buffer may be accessed using the [link boost_asio.reference.buffer_size `buffer_size`] and [link boost_asio.reference.buffer_cast `buffer_cast`] functions:
 
 
+[section:operator_eq_ posix::basic_descriptor::operator=]
 
- boost::asio::mutable_buffer b1 = ...;
- std::size_t s1 = boost::asio::buffer_size(b1);
- unsigned char* p1 = boost::asio::buffer_cast<unsigned char*>(b1);
+[indexterm2 operator=..posix::basic_descriptor]
+Move-assign a [link boost_asio.reference.posix__basic_descriptor `posix::basic_descriptor`] from another.
 
 
+ basic_descriptor & operator=(
+ basic_descriptor && other);
 
 
-The `boost::asio::buffer_cast` function permits violations of type safety, so uses of it in application code should be carefully considered.
+This assignment operator moves a descriptor from one object to another.
 
 
-[heading Requirements]
+[heading Parameters]
+
 
-[*Header: ][^boost/asio/buffer.hpp]
+[variablelist
+
+[[other][The other [link boost_asio.reference.posix__basic_descriptor `posix::basic_descriptor`] object from which the move will occur.]]
 
-[*Convenience header: ][^boost/asio.hpp]
+]
 
 
-[endsect]
+[heading Remarks]
+
+Following the move, the moved-from object is in the same state as if constructed using the `basic_descriptor(io_service&) constructor`.
+
 
 
 
 [endsect]
 
 
-[section:placeholders__bytes_transferred placeholders::bytes_transferred]
 
-[indexterm1 placeholders::bytes_transferred]
-An argument placeholder, for use with boost::bind(), that corresponds to the bytes\_transferred argument of a handler for asynchronous functions such as `boost::asio::basic_stream_socket::async_write_some` or `boost::asio::async_write`.
+[section:release posix::basic_descriptor::release]
 
+[indexterm2 release..posix::basic_descriptor]
+Release ownership of the native descriptor implementation.
 
- unspecified bytes_transferred;
 
+ native_handle_type release();
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/placeholders.hpp]
+This function may be used to obtain the underlying representation of the descriptor. After calling this function, `is_open()` returns false. The caller is responsible for closing the descriptor.
 
-[*Convenience header: ][^boost/asio.hpp]
+All outstanding asynchronous read or write operations will finish immediately, and the handlers for cancelled operations will be passed the `boost::asio::error::operation_aborted` error.
 
 
 [endsect]
 
 
 
-[section:placeholders__error placeholders::error]
+[section:service posix::basic_descriptor::service]
 
-[indexterm1 placeholders::error]
-An argument placeholder, for use with boost::bind(), that corresponds to the error argument of a handler for any of the asynchronous functions.
 
+['Inherited from basic_io_object.]
 
- unspecified error;
+[indexterm2 service..posix::basic_descriptor]
+(Deprecated: Use `get_service()`.) The service associated with the I/O object.
 
 
-[heading Requirements]
+ service_type & service;
+
+
+
+[heading Remarks]
+
+Available only for services that do not support movability.
 
-[*Header: ][^boost/asio/placeholders.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
 
-[section:placeholders__iterator placeholders::iterator]
+[section:service_type posix::basic_descriptor::service_type]
 
-[indexterm1 placeholders::iterator]
-An argument placeholder, for use with boost::bind(), that corresponds to the iterator argument of a handler for asynchronous functions such as boost::asio::basic\_resolver::async\_resolve.
 
+['Inherited from basic_io_object.]
+
+[indexterm2 service_type..posix::basic_descriptor]
+The type of the service that will be used to provide I/O operations.
+
+
+ typedef DescriptorService service_type;
 
- unspecified iterator;
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/placeholders.hpp]
+[*Header: ][^boost/asio/posix/basic_descriptor.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -68239,36 +71441,32 @@
 
 
 
-[section:placeholders__signal_number placeholders::signal_number]
+[section:_basic_descriptor posix::basic_descriptor::~basic_descriptor]
 
-[indexterm1 placeholders::signal_number]
-An argument placeholder, for use with boost::bind(), that corresponds to the signal\_number argument of a handler for asynchronous functions such as `boost::asio::signal_set::async_wait`.
+[indexterm2 ~basic_descriptor..posix::basic_descriptor]
+Protected destructor to prevent deletion through this type.
 
 
- unspecified signal_number;
+ ~basic_descriptor();
 
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/placeholders.hpp]
+[endsect]
 
-[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
-
-[section:posix__basic_descriptor posix::basic_descriptor]
+[section:posix__basic_stream_descriptor posix::basic_stream_descriptor]
 
 
-Provides POSIX descriptor functionality.
+Provides stream-oriented descriptor functionality.
 
 
   template<
- typename ``[link boost_asio.reference.DescriptorService DescriptorService]``>
- class basic_descriptor :
- public basic_io_object< DescriptorService >,
- public posix::descriptor_base
+ typename ``[link boost_asio.reference.StreamDescriptorService StreamDescriptorService]`` = stream_descriptor_service>
+ class basic_stream_descriptor :
+ public posix::basic_descriptor< StreamDescriptorService >
 
 
 [heading Types]
@@ -68277,49 +71475,49 @@
 
   [
 
- [[link boost_asio.reference.posix__basic_descriptor.bytes_readable [*bytes_readable]]]
+ [[link boost_asio.reference.posix__basic_stream_descriptor.bytes_readable [*bytes_readable]]]
     [IO control command to get the amount of data that can be read without blocking. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.posix__basic_descriptor.implementation_type [*implementation_type]]]
+ [[link boost_asio.reference.posix__basic_stream_descriptor.implementation_type [*implementation_type]]]
     [The underlying implementation type of I/O object. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.posix__basic_descriptor.lowest_layer_type [*lowest_layer_type]]]
+ [[link boost_asio.reference.posix__basic_stream_descriptor.lowest_layer_type [*lowest_layer_type]]]
     [A basic_descriptor is always the lowest layer. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.posix__basic_descriptor.native_handle_type [*native_handle_type]]]
+ [[link boost_asio.reference.posix__basic_stream_descriptor.native_handle_type [*native_handle_type]]]
     [The native representation of a descriptor. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.posix__basic_descriptor.native_type [*native_type]]]
+ [[link boost_asio.reference.posix__basic_stream_descriptor.native_type [*native_type]]]
     [(Deprecated: Use native_handle_type.) The native representation of a descriptor. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.posix__basic_descriptor.non_blocking_io [*non_blocking_io]]]
+ [[link boost_asio.reference.posix__basic_stream_descriptor.non_blocking_io [*non_blocking_io]]]
     [(Deprecated: Use non_blocking().) IO control command to set the blocking mode of the descriptor. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.posix__basic_descriptor.service_type [*service_type]]]
+ [[link boost_asio.reference.posix__basic_stream_descriptor.service_type [*service_type]]]
     [The type of the service that will be used to provide I/O operations. ]
   
   ]
@@ -68331,85 +71529,105 @@
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.posix__basic_descriptor.assign [*assign]]]
+ [[link boost_asio.reference.posix__basic_stream_descriptor.assign [*assign]]]
     [Assign an existing native descriptor to the descriptor. ]
   ]
   
   [
- [[link boost_asio.reference.posix__basic_descriptor.basic_descriptor [*basic_descriptor]]]
- [Construct a basic_descriptor without opening it.
+ [[link boost_asio.reference.posix__basic_stream_descriptor.async_read_some [*async_read_some]]]
+ [Start an asynchronous read. ]
+ ]
+
+ [
+ [[link boost_asio.reference.posix__basic_stream_descriptor.async_write_some [*async_write_some]]]
+ [Start an asynchronous write. ]
+ ]
+
+ [
+ [[link boost_asio.reference.posix__basic_stream_descriptor.basic_stream_descriptor [*basic_stream_descriptor]]]
+ [Construct a basic_stream_descriptor without opening it.
 
- Construct a basic_descriptor on an existing native descriptor.
+ Construct a basic_stream_descriptor on an existing native descriptor.
 
- Move-construct a basic_descriptor from another. ]
+ Move-construct a basic_stream_descriptor from another. ]
   ]
   
   [
- [[link boost_asio.reference.posix__basic_descriptor.cancel [*cancel]]]
+ [[link boost_asio.reference.posix__basic_stream_descriptor.cancel [*cancel]]]
     [Cancel all asynchronous operations associated with the descriptor. ]
   ]
   
   [
- [[link boost_asio.reference.posix__basic_descriptor.close [*close]]]
+ [[link boost_asio.reference.posix__basic_stream_descriptor.close [*close]]]
     [Close the descriptor. ]
   ]
   
   [
- [[link boost_asio.reference.posix__basic_descriptor.get_io_service [*get_io_service]]]
+ [[link boost_asio.reference.posix__basic_stream_descriptor.get_io_service [*get_io_service]]]
     [Get the io_service associated with the object. ]
   ]
   
   [
- [[link boost_asio.reference.posix__basic_descriptor.io_control [*io_control]]]
+ [[link boost_asio.reference.posix__basic_stream_descriptor.io_control [*io_control]]]
     [Perform an IO control command on the descriptor. ]
   ]
   
   [
- [[link boost_asio.reference.posix__basic_descriptor.is_open [*is_open]]]
+ [[link boost_asio.reference.posix__basic_stream_descriptor.is_open [*is_open]]]
     [Determine whether the descriptor is open. ]
   ]
   
   [
- [[link boost_asio.reference.posix__basic_descriptor.lowest_layer [*lowest_layer]]]
+ [[link boost_asio.reference.posix__basic_stream_descriptor.lowest_layer [*lowest_layer]]]
     [Get a reference to the lowest layer.
 
      Get a const reference to the lowest layer. ]
   ]
   
   [
- [[link boost_asio.reference.posix__basic_descriptor.native [*native]]]
+ [[link boost_asio.reference.posix__basic_stream_descriptor.native [*native]]]
     [(Deprecated: Use native_handle().) Get the native descriptor representation. ]
   ]
   
   [
- [[link boost_asio.reference.posix__basic_descriptor.native_handle [*native_handle]]]
+ [[link boost_asio.reference.posix__basic_stream_descriptor.native_handle [*native_handle]]]
     [Get the native descriptor representation. ]
   ]
   
   [
- [[link boost_asio.reference.posix__basic_descriptor.native_non_blocking [*native_non_blocking]]]
+ [[link boost_asio.reference.posix__basic_stream_descriptor.native_non_blocking [*native_non_blocking]]]
     [Gets the non-blocking mode of the native descriptor implementation.
 
      Sets the non-blocking mode of the native descriptor implementation. ]
   ]
   
   [
- [[link boost_asio.reference.posix__basic_descriptor.non_blocking [*non_blocking]]]
+ [[link boost_asio.reference.posix__basic_stream_descriptor.non_blocking [*non_blocking]]]
     [Gets the non-blocking mode of the descriptor.
 
      Sets the non-blocking mode of the descriptor. ]
   ]
   
   [
- [[link boost_asio.reference.posix__basic_descriptor.operator_eq_ [*operator=]]]
- [Move-assign a basic_descriptor from another. ]
+ [[link boost_asio.reference.posix__basic_stream_descriptor.operator_eq_ [*operator=]]]
+ [Move-assign a basic_stream_descriptor from another. ]
   ]
   
   [
- [[link boost_asio.reference.posix__basic_descriptor.release [*release]]]
+ [[link boost_asio.reference.posix__basic_stream_descriptor.read_some [*read_some]]]
+ [Read some data from the descriptor. ]
+ ]
+
+ [
+ [[link boost_asio.reference.posix__basic_stream_descriptor.release [*release]]]
     [Release ownership of the native descriptor implementation. ]
   ]
   
+ [
+ [[link boost_asio.reference.posix__basic_stream_descriptor.write_some [*write_some]]]
+ [Write some data to the descriptor. ]
+ ]
+
 ]
 
 [heading Protected Member Functions]
@@ -68417,20 +71635,15 @@
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.posix__basic_descriptor.get_implementation [*get_implementation]]]
+ [[link boost_asio.reference.posix__basic_stream_descriptor.get_implementation [*get_implementation]]]
     [Get the underlying implementation of the I/O object. ]
   ]
   
   [
- [[link boost_asio.reference.posix__basic_descriptor.get_service [*get_service]]]
+ [[link boost_asio.reference.posix__basic_stream_descriptor.get_service [*get_service]]]
     [Get the service associated with the I/O object. ]
   ]
   
- [
- [[link boost_asio.reference.posix__basic_descriptor._basic_descriptor [*~basic_descriptor]]]
- [Protected destructor to prevent deletion through this type. ]
- ]
-
 ]
 
 [heading Protected Data Members]
@@ -68438,51 +71651,55 @@
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.posix__basic_descriptor.implementation [*implementation]]]
+ [[link boost_asio.reference.posix__basic_stream_descriptor.implementation [*implementation]]]
     [(Deprecated: Use get_implementation().) The underlying implementation of the I/O object. ]
   ]
 
   [
- [[link boost_asio.reference.posix__basic_descriptor.service [*service]]]
+ [[link boost_asio.reference.posix__basic_stream_descriptor.service [*service]]]
     [(Deprecated: Use get_service().) The service associated with the I/O object. ]
   ]
 
 ]
 
-The [link boost_asio.reference.posix__basic_descriptor `posix::basic_descriptor`] class template provides the ability to wrap a POSIX descriptor.
+The [link boost_asio.reference.posix__basic_stream_descriptor `posix::basic_stream_descriptor`] class template provides asynchronous and blocking stream-oriented descriptor functionality.
 
 
 [heading Thread Safety]
   
 [*Distinct] [*objects:] Safe.
 
-[*Shared] [*objects:] Unsafe.
+[*Shared] [*objects:] Unsafe.
+
 
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/posix/basic_descriptor.hpp]
+[*Header: ][^boost/asio/posix/basic_stream_descriptor.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
-[section:assign posix::basic_descriptor::assign]
+[section:assign posix::basic_stream_descriptor::assign]
 
-[indexterm2 assign..posix::basic_descriptor]
+[indexterm2 assign..posix::basic_stream_descriptor]
 Assign an existing native descriptor to the descriptor.
 
 
- void ``[link boost_asio.reference.posix__basic_descriptor.assign.overload1 assign]``(
+ void ``[link boost_asio.reference.posix__basic_stream_descriptor.assign.overload1 assign]``(
       const native_handle_type & native_descriptor);
- `` [''''&raquo;''' [link boost_asio.reference.posix__basic_descriptor.assign.overload1 more...]]``
+ `` [''''&raquo;''' [link boost_asio.reference.posix__basic_stream_descriptor.assign.overload1 more...]]``
 
- boost::system::error_code ``[link boost_asio.reference.posix__basic_descriptor.assign.overload2 assign]``(
+ boost::system::error_code ``[link boost_asio.reference.posix__basic_stream_descriptor.assign.overload2 assign]``(
       const native_handle_type & native_descriptor,
       boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.posix__basic_descriptor.assign.overload2 more...]]``
+ `` [''''&raquo;''' [link boost_asio.reference.posix__basic_stream_descriptor.assign.overload2 more...]]``
 
 
-[section:overload1 posix::basic_descriptor::assign (1 of 2 overloads)]
+[section:overload1 posix::basic_stream_descriptor::assign (1 of 2 overloads)]
+
+
+['Inherited from posix::basic_descriptor.]
 
 
 Assign an existing native descriptor to the descriptor.
@@ -68497,7 +71714,10 @@
 
 
 
-[section:overload2 posix::basic_descriptor::assign (2 of 2 overloads)]
+[section:overload2 posix::basic_stream_descriptor::assign (2 of 2 overloads)]
+
+
+['Inherited from posix::basic_descriptor.]
 
 
 Assign an existing native descriptor to the descriptor.
@@ -68514,45 +71734,159 @@
 
 [endsect]
 
-[section:basic_descriptor posix::basic_descriptor::basic_descriptor]
 
-[indexterm2 basic_descriptor..posix::basic_descriptor]
-Construct a [link boost_asio.reference.posix__basic_descriptor `posix::basic_descriptor`] without opening it.
+[section:async_read_some posix::basic_stream_descriptor::async_read_some]
+
+[indexterm2 async_read_some..posix::basic_stream_descriptor]
+Start an asynchronous read.
 
 
- explicit ``[link boost_asio.reference.posix__basic_descriptor.basic_descriptor.overload1 basic_descriptor]``(
+ template<
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``,
+ typename ``[link boost_asio.reference.ReadHandler ReadHandler]``>
+ void async_read_some(
+ const MutableBufferSequence & buffers,
+ ReadHandler handler);
+
+
+This function is used to asynchronously read data from the stream descriptor. The function call always returns immediately.
+
+
+[heading Parameters]
+
+
+[variablelist
+
+[[buffers][One or more buffers into which the data will be read. Although the buffers object may be copied as necessary, ownership of the underlying memory blocks is retained by the caller, which must guarantee that they remain valid until the handler is called.]]
+
+[[handler][The handler to be called when the read operation completes. Copies will be made of the handler as required. The function signature of the handler must be:
+``
+ void handler(
+ const boost::system::error_code& error, // Result of operation.
+ std::size_t bytes_transferred // Number of bytes read.
+ );
+``
+Regardless of whether the asynchronous operation completes immediately or not, the handler will not be invoked from within this function. Invocation of the handler will be performed in a manner equivalent to using `boost::asio::io_service::post()`.]]
+
+]
+
+
+[heading Remarks]
+
+The read operation may not read all of the requested number of bytes. Consider using the [link boost_asio.reference.async_read `async_read`] function if you need to ensure that the requested amount of data is read before the asynchronous operation completes.
+
+
+[heading Example]
+
+To read into a single data buffer use the [link boost_asio.reference.buffer `buffer`] function as follows:
+
+ descriptor.async_read_some(boost::asio::buffer(data, size), handler);
+
+
+See the [link boost_asio.reference.buffer `buffer`] documentation for information on reading into multiple buffers in one go, and how to use it with arrays, boost::array or std::vector.
+
+
+
+
+[endsect]
+
+
+
+[section:async_write_some posix::basic_stream_descriptor::async_write_some]
+
+[indexterm2 async_write_some..posix::basic_stream_descriptor]
+Start an asynchronous write.
+
+
+ template<
+ typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``,
+ typename ``[link boost_asio.reference.WriteHandler WriteHandler]``>
+ void async_write_some(
+ const ConstBufferSequence & buffers,
+ WriteHandler handler);
+
+
+This function is used to asynchronously write data to the stream descriptor. The function call always returns immediately.
+
+
+[heading Parameters]
+
+
+[variablelist
+
+[[buffers][One or more data buffers to be written to the descriptor. Although the buffers object may be copied as necessary, ownership of the underlying memory blocks is retained by the caller, which must guarantee that they remain valid until the handler is called.]]
+
+[[handler][The handler to be called when the write operation completes. Copies will be made of the handler as required. The function signature of the handler must be:
+``
+ void handler(
+ const boost::system::error_code& error, // Result of operation.
+ std::size_t bytes_transferred // Number of bytes written.
+ );
+``
+Regardless of whether the asynchronous operation completes immediately or not, the handler will not be invoked from within this function. Invocation of the handler will be performed in a manner equivalent to using `boost::asio::io_service::post()`.]]
+
+]
+
+
+[heading Remarks]
+
+The write operation may not transmit all of the data to the peer. Consider using the [link boost_asio.reference.async_write `async_write`] function if you need to ensure that all data is written before the asynchronous operation completes.
+
+
+[heading Example]
+
+To write a single data buffer use the [link boost_asio.reference.buffer `buffer`] function as follows:
+
+ descriptor.async_write_some(boost::asio::buffer(data, size), handler);
+
+
+See the [link boost_asio.reference.buffer `buffer`] documentation for information on writing multiple buffers in one go, and how to use it with arrays, boost::array or std::vector.
+
+
+
+
+[endsect]
+
+
+[section:basic_stream_descriptor posix::basic_stream_descriptor::basic_stream_descriptor]
+
+[indexterm2 basic_stream_descriptor..posix::basic_stream_descriptor]
+Construct a [link boost_asio.reference.posix__basic_stream_descriptor `posix::basic_stream_descriptor`] without opening it.
+
+
+ explicit ``[link boost_asio.reference.posix__basic_stream_descriptor.basic_stream_descriptor.overload1 basic_stream_descriptor]``(
       boost::asio::io_service & io_service);
- `` [''''&raquo;''' [link boost_asio.reference.posix__basic_descriptor.basic_descriptor.overload1 more...]]``
+ `` [''''&raquo;''' [link boost_asio.reference.posix__basic_stream_descriptor.basic_stream_descriptor.overload1 more...]]``
 
 
-Construct a [link boost_asio.reference.posix__basic_descriptor `posix::basic_descriptor`] on an existing native descriptor.
+Construct a [link boost_asio.reference.posix__basic_stream_descriptor `posix::basic_stream_descriptor`] on an existing native descriptor.
 
 
- ``[link boost_asio.reference.posix__basic_descriptor.basic_descriptor.overload2 basic_descriptor]``(
+ ``[link boost_asio.reference.posix__basic_stream_descriptor.basic_stream_descriptor.overload2 basic_stream_descriptor]``(
       boost::asio::io_service & io_service,
       const native_handle_type & native_descriptor);
- `` [''''&raquo;''' [link boost_asio.reference.posix__basic_descriptor.basic_descriptor.overload2 more...]]``
+ `` [''''&raquo;''' [link boost_asio.reference.posix__basic_stream_descriptor.basic_stream_descriptor.overload2 more...]]``
 
 
-Move-construct a [link boost_asio.reference.posix__basic_descriptor `posix::basic_descriptor`] from another.
+Move-construct a [link boost_asio.reference.posix__basic_stream_descriptor `posix::basic_stream_descriptor`] from another.
 
 
- ``[link boost_asio.reference.posix__basic_descriptor.basic_descriptor.overload3 basic_descriptor]``(
- basic_descriptor && other);
- `` [''''&raquo;''' [link boost_asio.reference.posix__basic_descriptor.basic_descriptor.overload3 more...]]``
+ ``[link boost_asio.reference.posix__basic_stream_descriptor.basic_stream_descriptor.overload3 basic_stream_descriptor]``(
+ basic_stream_descriptor && other);
+ `` [''''&raquo;''' [link boost_asio.reference.posix__basic_stream_descriptor.basic_stream_descriptor.overload3 more...]]``
 
 
-[section:overload1 posix::basic_descriptor::basic_descriptor (1 of 3 overloads)]
+[section:overload1 posix::basic_stream_descriptor::basic_stream_descriptor (1 of 3 overloads)]
 
 
-Construct a [link boost_asio.reference.posix__basic_descriptor `posix::basic_descriptor`] without opening it.
+Construct a [link boost_asio.reference.posix__basic_stream_descriptor `posix::basic_stream_descriptor`] without opening it.
 
 
- basic_descriptor(
+ basic_stream_descriptor(
       boost::asio::io_service & io_service);
 
 
-This constructor creates a descriptor without opening it.
+This constructor creates a stream descriptor without opening it. The descriptor needs to be opened and then connected or accepted before data can be sent or received on it.
 
 
 [heading Parameters]
@@ -68560,7 +71894,7 @@
 
 [variablelist
   
-[[io_service][The [link boost_asio.reference.io_service `io_service`] object that the descriptor will use to dispatch handlers for any asynchronous operations performed on the descriptor. ]]
+[[io_service][The [link boost_asio.reference.io_service `io_service`] object that the stream descriptor will use to dispatch handlers for any asynchronous operations performed on the descriptor. ]]
 
 ]
 
@@ -68571,18 +71905,18 @@
 
 
 
-[section:overload2 posix::basic_descriptor::basic_descriptor (2 of 3 overloads)]
+[section:overload2 posix::basic_stream_descriptor::basic_stream_descriptor (2 of 3 overloads)]
 
 
-Construct a [link boost_asio.reference.posix__basic_descriptor `posix::basic_descriptor`] on an existing native descriptor.
+Construct a [link boost_asio.reference.posix__basic_stream_descriptor `posix::basic_stream_descriptor`] on an existing native descriptor.
 
 
- basic_descriptor(
+ basic_stream_descriptor(
       boost::asio::io_service & io_service,
       const native_handle_type & native_descriptor);
 
 
-This constructor creates a descriptor object to hold an existing native descriptor.
+This constructor creates a stream descriptor object to hold an existing native descriptor.
 
 
 [heading Parameters]
@@ -68590,9 +71924,9 @@
 
 [variablelist
   
-[[io_service][The [link boost_asio.reference.io_service `io_service`] object that the descriptor will use to dispatch handlers for any asynchronous operations performed on the descriptor.]]
+[[io_service][The [link boost_asio.reference.io_service `io_service`] object that the stream descriptor will use to dispatch handlers for any asynchronous operations performed on the descriptor.]]
 
-[[native_descriptor][A native descriptor.]]
+[[native_descriptor][The new underlying descriptor implementation.]]
 
 ]
 
@@ -68613,17 +71947,17 @@
 
 
 
-[section:overload3 posix::basic_descriptor::basic_descriptor (3 of 3 overloads)]
+[section:overload3 posix::basic_stream_descriptor::basic_stream_descriptor (3 of 3 overloads)]
 
 
-Move-construct a [link boost_asio.reference.posix__basic_descriptor `posix::basic_descriptor`] from another.
+Move-construct a [link boost_asio.reference.posix__basic_stream_descriptor `posix::basic_stream_descriptor`] from another.
 
 
- basic_descriptor(
- basic_descriptor && other);
+ basic_stream_descriptor(
+ basic_stream_descriptor && other);
 
 
-This constructor moves a descriptor from one object to another.
+This constructor moves a stream descriptor from one object to another.
 
 
 [heading Parameters]
@@ -68631,14 +71965,14 @@
 
 [variablelist
   
-[[other][The other [link boost_asio.reference.posix__basic_descriptor `posix::basic_descriptor`] object from which the move will occur.]]
+[[other][The other [link boost_asio.reference.posix__basic_stream_descriptor `posix::basic_stream_descriptor`] object from which the move will occur.]]
 
 ]
 
 
 [heading Remarks]
       
-Following the move, the moved-from object is in the same state as if constructed using the `basic_descriptor(io_service&) constructor`.
+Following the move, the moved-from object is in the same state as if constructed using the `basic_stream_descriptor(io_service&) constructor`.
 
 
 
@@ -68649,12 +71983,12 @@
 [endsect]
 
 
-[section:bytes_readable posix::basic_descriptor::bytes_readable]
+[section:bytes_readable posix::basic_stream_descriptor::bytes_readable]
 
 
 ['Inherited from posix::descriptor_base.]
 
-[indexterm2 bytes_readable..posix::basic_descriptor]
+[indexterm2 bytes_readable..posix::basic_stream_descriptor]
 IO control command to get the amount of data that can be read without blocking.
 
 
@@ -68683,7 +72017,7 @@
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/posix/basic_descriptor.hpp]
+[*Header: ][^boost/asio/posix/basic_stream_descriptor.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -68691,21 +72025,24 @@
 [endsect]
 
 
-[section:cancel posix::basic_descriptor::cancel]
+[section:cancel posix::basic_stream_descriptor::cancel]
 
-[indexterm2 cancel..posix::basic_descriptor]
+[indexterm2 cancel..posix::basic_stream_descriptor]
 Cancel all asynchronous operations associated with the descriptor.
 
 
- void ``[link boost_asio.reference.posix__basic_descriptor.cancel.overload1 cancel]``();
- `` [''''&raquo;''' [link boost_asio.reference.posix__basic_descriptor.cancel.overload1 more...]]``
+ void ``[link boost_asio.reference.posix__basic_stream_descriptor.cancel.overload1 cancel]``();
+ `` [''''&raquo;''' [link boost_asio.reference.posix__basic_stream_descriptor.cancel.overload1 more...]]``
 
- boost::system::error_code ``[link boost_asio.reference.posix__basic_descriptor.cancel.overload2 cancel]``(
+ boost::system::error_code ``[link boost_asio.reference.posix__basic_stream_descriptor.cancel.overload2 cancel]``(
       boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.posix__basic_descriptor.cancel.overload2 more...]]``
+ `` [''''&raquo;''' [link boost_asio.reference.posix__basic_stream_descriptor.cancel.overload2 more...]]``
 
 
-[section:overload1 posix::basic_descriptor::cancel (1 of 2 overloads)]
+[section:overload1 posix::basic_stream_descriptor::cancel (1 of 2 overloads)]
+
+
+['Inherited from posix::basic_descriptor.]
 
 
 Cancel all asynchronous operations associated with the descriptor.
@@ -68733,7 +72070,10 @@
 
 
 
-[section:overload2 posix::basic_descriptor::cancel (2 of 2 overloads)]
+[section:overload2 posix::basic_stream_descriptor::cancel (2 of 2 overloads)]
+
+
+['Inherited from posix::basic_descriptor.]
 
 
 Cancel all asynchronous operations associated with the descriptor.
@@ -68763,21 +72103,24 @@
 
 [endsect]
 
-[section:close posix::basic_descriptor::close]
+[section:close posix::basic_stream_descriptor::close]
 
-[indexterm2 close..posix::basic_descriptor]
+[indexterm2 close..posix::basic_stream_descriptor]
 Close the descriptor.
 
 
- void ``[link boost_asio.reference.posix__basic_descriptor.close.overload1 close]``();
- `` [''''&raquo;''' [link boost_asio.reference.posix__basic_descriptor.close.overload1 more...]]``
+ void ``[link boost_asio.reference.posix__basic_stream_descriptor.close.overload1 close]``();
+ `` [''''&raquo;''' [link boost_asio.reference.posix__basic_stream_descriptor.close.overload1 more...]]``
 
- boost::system::error_code ``[link boost_asio.reference.posix__basic_descriptor.close.overload2 close]``(
+ boost::system::error_code ``[link boost_asio.reference.posix__basic_stream_descriptor.close.overload2 close]``(
       boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.posix__basic_descriptor.close.overload2 more...]]``
+ `` [''''&raquo;''' [link boost_asio.reference.posix__basic_stream_descriptor.close.overload2 more...]]``
 
 
-[section:overload1 posix::basic_descriptor::close (1 of 2 overloads)]
+[section:overload1 posix::basic_stream_descriptor::close (1 of 2 overloads)]
+
+
+['Inherited from posix::basic_descriptor.]
 
 
 Close the descriptor.
@@ -68805,7 +72148,10 @@
 
 
 
-[section:overload2 posix::basic_descriptor::close (2 of 2 overloads)]
+[section:overload2 posix::basic_stream_descriptor::close (2 of 2 overloads)]
+
+
+['Inherited from posix::basic_descriptor.]
 
 
 Close the descriptor.
@@ -68835,20 +72181,20 @@
 
 [endsect]
 
-[section:get_implementation posix::basic_descriptor::get_implementation]
+[section:get_implementation posix::basic_stream_descriptor::get_implementation]
 
-[indexterm2 get_implementation..posix::basic_descriptor]
+[indexterm2 get_implementation..posix::basic_stream_descriptor]
 Get the underlying implementation of the I/O object.
 
 
- implementation_type & ``[link boost_asio.reference.posix__basic_descriptor.get_implementation.overload1 get_implementation]``();
- `` [''''&raquo;''' [link boost_asio.reference.posix__basic_descriptor.get_implementation.overload1 more...]]``
+ implementation_type & ``[link boost_asio.reference.posix__basic_stream_descriptor.get_implementation.overload1 get_implementation]``();
+ `` [''''&raquo;''' [link boost_asio.reference.posix__basic_stream_descriptor.get_implementation.overload1 more...]]``
 
- const implementation_type & ``[link boost_asio.reference.posix__basic_descriptor.get_implementation.overload2 get_implementation]``() const;
- `` [''''&raquo;''' [link boost_asio.reference.posix__basic_descriptor.get_implementation.overload2 more...]]``
+ const implementation_type & ``[link boost_asio.reference.posix__basic_stream_descriptor.get_implementation.overload2 get_implementation]``() const;
+ `` [''''&raquo;''' [link boost_asio.reference.posix__basic_stream_descriptor.get_implementation.overload2 more...]]``
 
 
-[section:overload1 posix::basic_descriptor::get_implementation (1 of 2 overloads)]
+[section:overload1 posix::basic_stream_descriptor::get_implementation (1 of 2 overloads)]
 
 
 ['Inherited from basic_io_object.]
@@ -68865,7 +72211,7 @@
 
 
 
-[section:overload2 posix::basic_descriptor::get_implementation (2 of 2 overloads)]
+[section:overload2 posix::basic_stream_descriptor::get_implementation (2 of 2 overloads)]
 
 
 ['Inherited from basic_io_object.]
@@ -68884,12 +72230,12 @@
 [endsect]
 
 
-[section:get_io_service posix::basic_descriptor::get_io_service]
+[section:get_io_service posix::basic_stream_descriptor::get_io_service]
 
 
 ['Inherited from basic_io_object.]
 
-[indexterm2 get_io_service..posix::basic_descriptor]
+[indexterm2 get_io_service..posix::basic_stream_descriptor]
 Get the [link boost_asio.reference.io_service `io_service`] associated with the object.
 
 
@@ -68909,20 +72255,20 @@
 [endsect]
 
 
-[section:get_service posix::basic_descriptor::get_service]
+[section:get_service posix::basic_stream_descriptor::get_service]
 
-[indexterm2 get_service..posix::basic_descriptor]
+[indexterm2 get_service..posix::basic_stream_descriptor]
 Get the service associated with the I/O object.
 
 
- service_type & ``[link boost_asio.reference.posix__basic_descriptor.get_service.overload1 get_service]``();
- `` [''''&raquo;''' [link boost_asio.reference.posix__basic_descriptor.get_service.overload1 more...]]``
+ service_type & ``[link boost_asio.reference.posix__basic_stream_descriptor.get_service.overload1 get_service]``();
+ `` [''''&raquo;''' [link boost_asio.reference.posix__basic_stream_descriptor.get_service.overload1 more...]]``
 
- const service_type & ``[link boost_asio.reference.posix__basic_descriptor.get_service.overload2 get_service]``() const;
- `` [''''&raquo;''' [link boost_asio.reference.posix__basic_descriptor.get_service.overload2 more...]]``
+ const service_type & ``[link boost_asio.reference.posix__basic_stream_descriptor.get_service.overload2 get_service]``() const;
+ `` [''''&raquo;''' [link boost_asio.reference.posix__basic_stream_descriptor.get_service.overload2 more...]]``
 
 
-[section:overload1 posix::basic_descriptor::get_service (1 of 2 overloads)]
+[section:overload1 posix::basic_stream_descriptor::get_service (1 of 2 overloads)]
 
 
 ['Inherited from basic_io_object.]
@@ -68939,7 +72285,7 @@
 
 
 
-[section:overload2 posix::basic_descriptor::get_service (2 of 2 overloads)]
+[section:overload2 posix::basic_stream_descriptor::get_service (2 of 2 overloads)]
 
 
 ['Inherited from basic_io_object.]
@@ -68958,12 +72304,12 @@
 [endsect]
 
 
-[section:implementation posix::basic_descriptor::implementation]
+[section:implementation posix::basic_stream_descriptor::implementation]
 
 
 ['Inherited from basic_io_object.]
 
-[indexterm2 implementation..posix::basic_descriptor]
+[indexterm2 implementation..posix::basic_stream_descriptor]
 (Deprecated: Use `get_implementation()`.) The underlying implementation of the I/O object.
 
 
@@ -68975,12 +72321,12 @@
 
 
 
-[section:implementation_type posix::basic_descriptor::implementation_type]
+[section:implementation_type posix::basic_stream_descriptor::implementation_type]
 
 
 ['Inherited from basic_io_object.]
 
-[indexterm2 implementation_type..posix::basic_descriptor]
+[indexterm2 implementation_type..posix::basic_stream_descriptor]
 The underlying implementation type of I/O object.
 
 
@@ -68990,7 +72336,7 @@
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/posix/basic_descriptor.hpp]
+[*Header: ][^boost/asio/posix/basic_stream_descriptor.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -68998,27 +72344,26 @@
 [endsect]
 
 
-[section:io_control posix::basic_descriptor::io_control]
+[section:io_control posix::basic_stream_descriptor::io_control]
 
-[indexterm2 io_control..posix::basic_descriptor]
+[indexterm2 io_control..posix::basic_stream_descriptor]
 Perform an IO control command on the descriptor.
 
 
- template<
- typename ``[link boost_asio.reference.IoControlCommand IoControlCommand]``>
- void ``[link boost_asio.reference.posix__basic_descriptor.io_control.overload1 io_control]``(
+ void ``[link boost_asio.reference.posix__basic_stream_descriptor.io_control.overload1 io_control]``(
       IoControlCommand & command);
- `` [''''&raquo;''' [link boost_asio.reference.posix__basic_descriptor.io_control.overload1 more...]]``
+ `` [''''&raquo;''' [link boost_asio.reference.posix__basic_stream_descriptor.io_control.overload1 more...]]``
 
- template<
- typename ``[link boost_asio.reference.IoControlCommand IoControlCommand]``>
- boost::system::error_code ``[link boost_asio.reference.posix__basic_descriptor.io_control.overload2 io_control]``(
+ boost::system::error_code ``[link boost_asio.reference.posix__basic_stream_descriptor.io_control.overload2 io_control]``(
       IoControlCommand & command,
       boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.posix__basic_descriptor.io_control.overload2 more...]]``
+ `` [''''&raquo;''' [link boost_asio.reference.posix__basic_stream_descriptor.io_control.overload2 more...]]``
 
 
-[section:overload1 posix::basic_descriptor::io_control (1 of 2 overloads)]
+[section:overload1 posix::basic_stream_descriptor::io_control (1 of 2 overloads)]
+
+
+['Inherited from posix::basic_descriptor.]
 
 
 Perform an IO control command on the descriptor.
@@ -69074,7 +72419,10 @@
 
 
 
-[section:overload2 posix::basic_descriptor::io_control (2 of 2 overloads)]
+[section:overload2 posix::basic_stream_descriptor::io_control (2 of 2 overloads)]
+
+
+['Inherited from posix::basic_descriptor.]
 
 
 Perform an IO control command on the descriptor.
@@ -69130,9 +72478,12 @@
 [endsect]
 
 
-[section:is_open posix::basic_descriptor::is_open]
+[section:is_open posix::basic_stream_descriptor::is_open]
 
-[indexterm2 is_open..posix::basic_descriptor]
+
+['Inherited from posix::basic_descriptor.]
+
+[indexterm2 is_open..posix::basic_stream_descriptor]
 Determine whether the descriptor is open.
 
 
@@ -69143,24 +72494,27 @@
 [endsect]
 
 
-[section:lowest_layer posix::basic_descriptor::lowest_layer]
+[section:lowest_layer posix::basic_stream_descriptor::lowest_layer]
 
-[indexterm2 lowest_layer..posix::basic_descriptor]
+[indexterm2 lowest_layer..posix::basic_stream_descriptor]
 Get a reference to the lowest layer.
 
 
- lowest_layer_type & ``[link boost_asio.reference.posix__basic_descriptor.lowest_layer.overload1 lowest_layer]``();
- `` [''''&raquo;''' [link boost_asio.reference.posix__basic_descriptor.lowest_layer.overload1 more...]]``
+ lowest_layer_type & ``[link boost_asio.reference.posix__basic_stream_descriptor.lowest_layer.overload1 lowest_layer]``();
+ `` [''''&raquo;''' [link boost_asio.reference.posix__basic_stream_descriptor.lowest_layer.overload1 more...]]``
 
 
 Get a const reference to the lowest layer.
 
 
- const lowest_layer_type & ``[link boost_asio.reference.posix__basic_descriptor.lowest_layer.overload2 lowest_layer]``() const;
- `` [''''&raquo;''' [link boost_asio.reference.posix__basic_descriptor.lowest_layer.overload2 more...]]``
+ const lowest_layer_type & ``[link boost_asio.reference.posix__basic_stream_descriptor.lowest_layer.overload2 lowest_layer]``() const;
+ `` [''''&raquo;''' [link boost_asio.reference.posix__basic_stream_descriptor.lowest_layer.overload2 more...]]``
 
 
-[section:overload1 posix::basic_descriptor::lowest_layer (1 of 2 overloads)]
+[section:overload1 posix::basic_stream_descriptor::lowest_layer (1 of 2 overloads)]
+
+
+['Inherited from posix::basic_descriptor.]
 
 
 Get a reference to the lowest layer.
@@ -69183,7 +72537,10 @@
 
 
 
-[section:overload2 posix::basic_descriptor::lowest_layer (2 of 2 overloads)]
+[section:overload2 posix::basic_stream_descriptor::lowest_layer (2 of 2 overloads)]
+
+
+['Inherited from posix::basic_descriptor.]
 
 
 Get a const reference to the lowest layer.
@@ -69208,13 +72565,16 @@
 [endsect]
 
 
-[section:lowest_layer_type posix::basic_descriptor::lowest_layer_type]
+[section:lowest_layer_type posix::basic_stream_descriptor::lowest_layer_type]
 
-[indexterm2 lowest_layer_type..posix::basic_descriptor]
+
+['Inherited from posix::basic_descriptor.]
+
+[indexterm2 lowest_layer_type..posix::basic_stream_descriptor]
 A [link boost_asio.reference.posix__basic_descriptor `posix::basic_descriptor`] is always the lowest layer.
 
 
- typedef basic_descriptor< DescriptorService > lowest_layer_type;
+ typedef basic_descriptor< StreamDescriptorService > lowest_layer_type;
 
 
 [heading Types]
@@ -69409,7 +72769,7 @@
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/posix/basic_descriptor.hpp]
+[*Header: ][^boost/asio/posix/basic_stream_descriptor.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -69418,9 +72778,12 @@
 
 
 
-[section:native posix::basic_descriptor::native]
+[section:native posix::basic_stream_descriptor::native]
 
-[indexterm2 native..posix::basic_descriptor]
+
+['Inherited from posix::basic_descriptor.]
+
+[indexterm2 native..posix::basic_stream_descriptor]
 (Deprecated: Use `native_handle()`.) Get the native descriptor representation.
 
 
@@ -69434,9 +72797,12 @@
 
 
 
-[section:native_handle posix::basic_descriptor::native_handle]
+[section:native_handle posix::basic_stream_descriptor::native_handle]
 
-[indexterm2 native_handle..posix::basic_descriptor]
+
+['Inherited from posix::basic_descriptor.]
+
+[indexterm2 native_handle..posix::basic_stream_descriptor]
 Get the native descriptor representation.
 
 
@@ -69450,19 +72816,19 @@
 
 
 
-[section:native_handle_type posix::basic_descriptor::native_handle_type]
+[section:native_handle_type posix::basic_stream_descriptor::native_handle_type]
 
-[indexterm2 native_handle_type..posix::basic_descriptor]
+[indexterm2 native_handle_type..posix::basic_stream_descriptor]
 The native representation of a descriptor.
 
 
- typedef DescriptorService::native_handle_type native_handle_type;
+ typedef StreamDescriptorService::native_handle_type native_handle_type;
 
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/posix/basic_descriptor.hpp]
+[*Header: ][^boost/asio/posix/basic_stream_descriptor.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -69470,30 +72836,33 @@
 [endsect]
 
 
-[section:native_non_blocking posix::basic_descriptor::native_non_blocking]
+[section:native_non_blocking posix::basic_stream_descriptor::native_non_blocking]
 
-[indexterm2 native_non_blocking..posix::basic_descriptor]
+[indexterm2 native_non_blocking..posix::basic_stream_descriptor]
 Gets the non-blocking mode of the native descriptor implementation.
 
 
- bool ``[link boost_asio.reference.posix__basic_descriptor.native_non_blocking.overload1 native_non_blocking]``() const;
- `` [''''&raquo;''' [link boost_asio.reference.posix__basic_descriptor.native_non_blocking.overload1 more...]]``
+ bool ``[link boost_asio.reference.posix__basic_stream_descriptor.native_non_blocking.overload1 native_non_blocking]``() const;
+ `` [''''&raquo;''' [link boost_asio.reference.posix__basic_stream_descriptor.native_non_blocking.overload1 more...]]``
 
 
 Sets the non-blocking mode of the native descriptor implementation.
 
 
- void ``[link boost_asio.reference.posix__basic_descriptor.native_non_blocking.overload2 native_non_blocking]``(
+ void ``[link boost_asio.reference.posix__basic_stream_descriptor.native_non_blocking.overload2 native_non_blocking]``(
       bool mode);
- `` [''''&raquo;''' [link boost_asio.reference.posix__basic_descriptor.native_non_blocking.overload2 more...]]``
+ `` [''''&raquo;''' [link boost_asio.reference.posix__basic_stream_descriptor.native_non_blocking.overload2 more...]]``
 
- boost::system::error_code ``[link boost_asio.reference.posix__basic_descriptor.native_non_blocking.overload3 native_non_blocking]``(
+ boost::system::error_code ``[link boost_asio.reference.posix__basic_stream_descriptor.native_non_blocking.overload3 native_non_blocking]``(
       bool mode,
       boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.posix__basic_descriptor.native_non_blocking.overload3 more...]]``
+ `` [''''&raquo;''' [link boost_asio.reference.posix__basic_stream_descriptor.native_non_blocking.overload3 more...]]``
 
 
-[section:overload1 posix::basic_descriptor::native_non_blocking (1 of 3 overloads)]
+[section:overload1 posix::basic_stream_descriptor::native_non_blocking (1 of 3 overloads)]
+
+
+['Inherited from posix::basic_descriptor.]
 
 
 Gets the non-blocking mode of the native descriptor implementation.
@@ -69521,7 +72890,10 @@
 
 
 
-[section:overload2 posix::basic_descriptor::native_non_blocking (2 of 3 overloads)]
+[section:overload2 posix::basic_stream_descriptor::native_non_blocking (2 of 3 overloads)]
+
+
+['Inherited from posix::basic_descriptor.]
 
 
 Sets the non-blocking mode of the native descriptor implementation.
@@ -69560,7 +72932,10 @@
 
 
 
-[section:overload3 posix::basic_descriptor::native_non_blocking (3 of 3 overloads)]
+[section:overload3 posix::basic_stream_descriptor::native_non_blocking (3 of 3 overloads)]
+
+
+['Inherited from posix::basic_descriptor.]
 
 
 Sets the non-blocking mode of the native descriptor implementation.
@@ -69594,19 +72969,19 @@
 [endsect]
 
 
-[section:native_type posix::basic_descriptor::native_type]
+[section:native_type posix::basic_stream_descriptor::native_type]
 
-[indexterm2 native_type..posix::basic_descriptor]
+[indexterm2 native_type..posix::basic_stream_descriptor]
 (Deprecated: Use native\_handle\_type.) The native representation of a descriptor.
 
 
- typedef DescriptorService::native_handle_type native_type;
+ typedef StreamDescriptorService::native_handle_type native_type;
 
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/posix/basic_descriptor.hpp]
+[*Header: ][^boost/asio/posix/basic_stream_descriptor.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -69614,30 +72989,33 @@
 [endsect]
 
 
-[section:non_blocking posix::basic_descriptor::non_blocking]
+[section:non_blocking posix::basic_stream_descriptor::non_blocking]
 
-[indexterm2 non_blocking..posix::basic_descriptor]
+[indexterm2 non_blocking..posix::basic_stream_descriptor]
 Gets the non-blocking mode of the descriptor.
 
 
- bool ``[link boost_asio.reference.posix__basic_descriptor.non_blocking.overload1 non_blocking]``() const;
- `` [''''&raquo;''' [link boost_asio.reference.posix__basic_descriptor.non_blocking.overload1 more...]]``
+ bool ``[link boost_asio.reference.posix__basic_stream_descriptor.non_blocking.overload1 non_blocking]``() const;
+ `` [''''&raquo;''' [link boost_asio.reference.posix__basic_stream_descriptor.non_blocking.overload1 more...]]``
 
 
 Sets the non-blocking mode of the descriptor.
 
 
- void ``[link boost_asio.reference.posix__basic_descriptor.non_blocking.overload2 non_blocking]``(
+ void ``[link boost_asio.reference.posix__basic_stream_descriptor.non_blocking.overload2 non_blocking]``(
       bool mode);
- `` [''''&raquo;''' [link boost_asio.reference.posix__basic_descriptor.non_blocking.overload2 more...]]``
+ `` [''''&raquo;''' [link boost_asio.reference.posix__basic_stream_descriptor.non_blocking.overload2 more...]]``
 
- boost::system::error_code ``[link boost_asio.reference.posix__basic_descriptor.non_blocking.overload3 non_blocking]``(
+ boost::system::error_code ``[link boost_asio.reference.posix__basic_stream_descriptor.non_blocking.overload3 non_blocking]``(
       bool mode,
       boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.posix__basic_descriptor.non_blocking.overload3 more...]]``
+ `` [''''&raquo;''' [link boost_asio.reference.posix__basic_stream_descriptor.non_blocking.overload3 more...]]``
 
 
-[section:overload1 posix::basic_descriptor::non_blocking (1 of 3 overloads)]
+[section:overload1 posix::basic_stream_descriptor::non_blocking (1 of 3 overloads)]
+
+
+['Inherited from posix::basic_descriptor.]
 
 
 Gets the non-blocking mode of the descriptor.
@@ -69663,7 +73041,10 @@
 
 
 
-[section:overload2 posix::basic_descriptor::non_blocking (2 of 3 overloads)]
+[section:overload2 posix::basic_stream_descriptor::non_blocking (2 of 3 overloads)]
+
+
+['Inherited from posix::basic_descriptor.]
 
 
 Sets the non-blocking mode of the descriptor.
@@ -69681,7 +73062,388 @@
   
 [[mode][If `true`, the descriptor's synchronous operations will fail with `boost::asio::error::would_block` if they are unable to perform the requested operation immediately. If `false`, synchronous operations will block until complete.]]
 
-]
+]
+
+
+[heading Exceptions]
+
+
+[variablelist
+
+[[boost::system::system_error][Thrown on failure.]]
+
+]
+
+
+[heading Remarks]
+
+The non-blocking mode has no effect on the behaviour of asynchronous operations. Asynchronous operations will never fail with the error `boost::asio::error::would_block`.
+
+
+
+
+[endsect]
+
+
+
+[section:overload3 posix::basic_stream_descriptor::non_blocking (3 of 3 overloads)]
+
+
+['Inherited from posix::basic_descriptor.]
+
+
+Sets the non-blocking mode of the descriptor.
+
+
+ boost::system::error_code non_blocking(
+ bool mode,
+ boost::system::error_code & ec);
+
+
+
+[heading Parameters]
+
+
+[variablelist
+
+[[mode][If `true`, the descriptor's synchronous operations will fail with `boost::asio::error::would_block` if they are unable to perform the requested operation immediately. If `false`, synchronous operations will block until complete.]]
+
+[[ec][Set to indicate what error occurred, if any.]]
+
+]
+
+
+[heading Remarks]
+
+The non-blocking mode has no effect on the behaviour of asynchronous operations. Asynchronous operations will never fail with the error `boost::asio::error::would_block`.
+
+
+
+
+[endsect]
+
+
+[endsect]
+
+
+[section:non_blocking_io posix::basic_stream_descriptor::non_blocking_io]
+
+
+['Inherited from posix::descriptor_base.]
+
+[indexterm2 non_blocking_io..posix::basic_stream_descriptor]
+(Deprecated: Use non\_blocking().) IO control command to set the blocking mode of the descriptor.
+
+
+ typedef implementation_defined non_blocking_io;
+
+
+
+Implements the FIONBIO IO control command.
+
+
+[heading Example]
+
+
+
+ boost::asio::posix::stream_descriptor descriptor(io_service);
+ ...
+ boost::asio::descriptor_base::non_blocking_io command(true);
+ descriptor.io_control(command);
+
+
+
+
+
+
+
+[heading Requirements]
+
+[*Header: ][^boost/asio/posix/basic_stream_descriptor.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
+
+
+[endsect]
+
+
+
+[section:operator_eq_ posix::basic_stream_descriptor::operator=]
+
+[indexterm2 operator=..posix::basic_stream_descriptor]
+Move-assign a [link boost_asio.reference.posix__basic_stream_descriptor `posix::basic_stream_descriptor`] from another.
+
+
+ basic_stream_descriptor & operator=(
+ basic_stream_descriptor && other);
+
+
+This assignment operator moves a stream descriptor from one object to another.
+
+
+[heading Parameters]
+
+
+[variablelist
+
+[[other][The other [link boost_asio.reference.posix__basic_stream_descriptor `posix::basic_stream_descriptor`] object from which the move will occur.]]
+
+]
+
+
+[heading Remarks]
+
+Following the move, the moved-from object is in the same state as if constructed using the `basic_stream_descriptor(io_service&) constructor`.
+
+
+
+
+[endsect]
+
+
+[section:read_some posix::basic_stream_descriptor::read_some]
+
+[indexterm2 read_some..posix::basic_stream_descriptor]
+Read some data from the descriptor.
+
+
+ template<
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
+ std::size_t ``[link boost_asio.reference.posix__basic_stream_descriptor.read_some.overload1 read_some]``(
+ const MutableBufferSequence & buffers);
+ `` [''''&raquo;''' [link boost_asio.reference.posix__basic_stream_descriptor.read_some.overload1 more...]]``
+
+ template<
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
+ std::size_t ``[link boost_asio.reference.posix__basic_stream_descriptor.read_some.overload2 read_some]``(
+ const MutableBufferSequence & buffers,
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.posix__basic_stream_descriptor.read_some.overload2 more...]]``
+
+
+[section:overload1 posix::basic_stream_descriptor::read_some (1 of 2 overloads)]
+
+
+Read some data from the descriptor.
+
+
+ template<
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
+ std::size_t read_some(
+ const MutableBufferSequence & buffers);
+
+
+This function is used to read data from the stream descriptor. The function call will block until one or more bytes of data has been read successfully, or until an error occurs.
+
+
+[heading Parameters]
+
+
+[variablelist
+
+[[buffers][One or more buffers into which the data will be read.]]
+
+]
+
+
+[heading Return Value]
+
+The number of bytes read.
+
+
+[heading Exceptions]
+
+
+[variablelist
+
+[[boost::system::system_error][Thrown on failure. An error code of `boost::asio::error::eof` indicates that the connection was closed by the peer.]]
+
+]
+
+
+[heading Remarks]
+
+The read\_some operation may not read all of the requested number of bytes. Consider using the [link boost_asio.reference.read `read`] function if you need to ensure that the requested amount of data is read before the blocking operation completes.
+
+
+[heading Example]
+
+To read into a single data buffer use the [link boost_asio.reference.buffer `buffer`] function as follows:
+
+ descriptor.read_some(boost::asio::buffer(data, size));
+
+
+See the [link boost_asio.reference.buffer `buffer`] documentation for information on reading into multiple buffers in one go, and how to use it with arrays, boost::array or std::vector.
+
+
+
+
+[endsect]
+
+
+
+[section:overload2 posix::basic_stream_descriptor::read_some (2 of 2 overloads)]
+
+
+Read some data from the descriptor.
+
+
+ template<
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
+ std::size_t read_some(
+ const MutableBufferSequence & buffers,
+ boost::system::error_code & ec);
+
+
+This function is used to read data from the stream descriptor. The function call will block until one or more bytes of data has been read successfully, or until an error occurs.
+
+
+[heading Parameters]
+
+
+[variablelist
+
+[[buffers][One or more buffers into which the data will be read.]]
+
+[[ec][Set to indicate what error occurred, if any.]]
+
+]
+
+
+[heading Return Value]
+
+The number of bytes read. Returns 0 if an error occurred.
+
+
+[heading Remarks]
+
+The read\_some operation may not read all of the requested number of bytes. Consider using the [link boost_asio.reference.read `read`] function if you need to ensure that the requested amount of data is read before the blocking operation completes.
+
+
+
+
+[endsect]
+
+
+[endsect]
+
+
+[section:release posix::basic_stream_descriptor::release]
+
+
+['Inherited from posix::basic_descriptor.]
+
+[indexterm2 release..posix::basic_stream_descriptor]
+Release ownership of the native descriptor implementation.
+
+
+ native_handle_type release();
+
+
+This function may be used to obtain the underlying representation of the descriptor. After calling this function, `is_open()` returns false. The caller is responsible for closing the descriptor.
+
+All outstanding asynchronous read or write operations will finish immediately, and the handlers for cancelled operations will be passed the `boost::asio::error::operation_aborted` error.
+
+
+[endsect]
+
+
+
+[section:service posix::basic_stream_descriptor::service]
+
+
+['Inherited from basic_io_object.]
+
+[indexterm2 service..posix::basic_stream_descriptor]
+(Deprecated: Use `get_service()`.) The service associated with the I/O object.
+
+
+ service_type & service;
+
+
+
+[heading Remarks]
+
+Available only for services that do not support movability.
+
+
+
+
+[endsect]
+
+
+
+[section:service_type posix::basic_stream_descriptor::service_type]
+
+
+['Inherited from basic_io_object.]
+
+[indexterm2 service_type..posix::basic_stream_descriptor]
+The type of the service that will be used to provide I/O operations.
+
+
+ typedef StreamDescriptorService service_type;
+
+
+
+[heading Requirements]
+
+[*Header: ][^boost/asio/posix/basic_stream_descriptor.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
+
+
+[endsect]
+
+
+[section:write_some posix::basic_stream_descriptor::write_some]
+
+[indexterm2 write_some..posix::basic_stream_descriptor]
+Write some data to the descriptor.
+
+
+ template<
+ typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
+ std::size_t ``[link boost_asio.reference.posix__basic_stream_descriptor.write_some.overload1 write_some]``(
+ const ConstBufferSequence & buffers);
+ `` [''''&raquo;''' [link boost_asio.reference.posix__basic_stream_descriptor.write_some.overload1 more...]]``
+
+ template<
+ typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
+ std::size_t ``[link boost_asio.reference.posix__basic_stream_descriptor.write_some.overload2 write_some]``(
+ const ConstBufferSequence & buffers,
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.posix__basic_stream_descriptor.write_some.overload2 more...]]``
+
+
+[section:overload1 posix::basic_stream_descriptor::write_some (1 of 2 overloads)]
+
+
+Write some data to the descriptor.
+
+
+ template<
+ typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
+ std::size_t write_some(
+ const ConstBufferSequence & buffers);
+
+
+This function is used to write data to the stream descriptor. The function call will block until one or more bytes of the data has been written successfully, or until an error occurs.
+
+
+[heading Parameters]
+
+
+[variablelist
+
+[[buffers][One or more data buffers to be written to the descriptor.]]
+
+]
+
+
+[heading Return Value]
+
+The number of bytes written.
 
 
 [heading Exceptions]
@@ -69689,14 +73451,24 @@
 
 [variablelist
   
-[[boost::system::system_error][Thrown on failure.]]
+[[boost::system::system_error][Thrown on failure. An error code of `boost::asio::error::eof` indicates that the connection was closed by the peer.]]
 
 ]
 
 
 [heading Remarks]
       
-The non-blocking mode has no effect on the behaviour of asynchronous operations. Asynchronous operations will never fail with the error `boost::asio::error::would_block`.
+The write\_some operation may not transmit all of the data to the peer. Consider using the [link boost_asio.reference.write `write`] function if you need to ensure that all data is written before the blocking operation completes.
+
+
+[heading Example]
+
+To write a single data buffer use the [link boost_asio.reference.buffer `buffer`] function as follows:
+
+ descriptor.write_some(boost::asio::buffer(data, size));
+
+
+See the [link boost_asio.reference.buffer `buffer`] documentation for information on writing multiple buffers in one go, and how to use it with arrays, boost::array or std::vector.
 
 
 
@@ -69705,33 +73477,42 @@
 
 
 
-[section:overload3 posix::basic_descriptor::non_blocking (3 of 3 overloads)]
+[section:overload2 posix::basic_stream_descriptor::write_some (2 of 2 overloads)]
 
 
-Sets the non-blocking mode of the descriptor.
+Write some data to the descriptor.
 
 
- boost::system::error_code non_blocking(
- bool mode,
+ template<
+ typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
+ std::size_t write_some(
+ const ConstBufferSequence & buffers,
       boost::system::error_code & ec);
 
 
+This function is used to write data to the stream descriptor. The function call will block until one or more bytes of the data has been written successfully, or until an error occurs.
+
 
 [heading Parameters]
     
 
 [variablelist
   
-[[mode][If `true`, the descriptor's synchronous operations will fail with `boost::asio::error::would_block` if they are unable to perform the requested operation immediately. If `false`, synchronous operations will block until complete.]]
+[[buffers][One or more data buffers to be written to the descriptor.]]
 
 [[ec][Set to indicate what error occurred, if any.]]
 
 ]
 
 
+[heading Return Value]
+
+The number of bytes written. Returns 0 if an error occurred.
+
+
 [heading Remarks]
       
-The non-blocking mode has no effect on the behaviour of asynchronous operations. Asynchronous operations will never fail with the error `boost::asio::error::would_block`.
+The write\_some operation may not transmit all of the data to the peer. Consider using the [link boost_asio.reference.write `write`] function if you need to ensure that all data is written before the blocking operation completes.
 
 
 
@@ -69742,140 +73523,126 @@
 [endsect]
 
 
-[section:non_blocking_io posix::basic_descriptor::non_blocking_io]
-
+[endsect]
 
-['Inherited from posix::descriptor_base.]
+[section:posix__descriptor_base posix::descriptor_base]
 
-[indexterm2 non_blocking_io..posix::basic_descriptor]
-(Deprecated: Use non\_blocking().) IO control command to set the blocking mode of the descriptor.
 
+The [link boost_asio.reference.posix__descriptor_base `posix::descriptor_base`] class is used as a base for the [link boost_asio.reference.posix__basic_stream_descriptor `posix::basic_stream_descriptor`] class template so that we have a common place to define the associated IO control commands.
 
- typedef implementation_defined non_blocking_io;
 
+ class descriptor_base
 
 
-Implements the FIONBIO IO control command.
+[heading Types]
+[table
+ [[Name][Description]]
 
+ [
 
-[heading Example]
+ [[link boost_asio.reference.posix__descriptor_base.bytes_readable [*bytes_readable]]]
+ [IO control command to get the amount of data that can be read without blocking. ]
   
+ ]
 
+ [
 
- boost::asio::posix::stream_descriptor descriptor(io_service);
- ...
- boost::asio::descriptor_base::non_blocking_io command(true);
- descriptor.io_control(command);
-
-
-
+ [[link boost_asio.reference.posix__descriptor_base.non_blocking_io [*non_blocking_io]]]
+ [(Deprecated: Use non_blocking().) IO control command to set the blocking mode of the descriptor. ]
+
+ ]
 
+]
 
+[heading Protected Member Functions]
+[table
+ [[Name][Description]]
 
+ [
+ [[link boost_asio.reference.posix__descriptor_base._descriptor_base [*~descriptor_base]]]
+ [Protected destructor to prevent deletion through this type. ]
+ ]
+
+]
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/posix/basic_descriptor.hpp]
+[*Header: ][^boost/asio/posix/descriptor_base.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
 
-[endsect]
-
-
-
-[section:operator_eq_ posix::basic_descriptor::operator=]
+[section:bytes_readable posix::descriptor_base::bytes_readable]
 
-[indexterm2 operator=..posix::basic_descriptor]
-Move-assign a [link boost_asio.reference.posix__basic_descriptor `posix::basic_descriptor`] from another.
+[indexterm2 bytes_readable..posix::descriptor_base]
+IO control command to get the amount of data that can be read without blocking.
 
 
- basic_descriptor & operator=(
- basic_descriptor && other);
+ typedef implementation_defined bytes_readable;
 
 
-This assignment operator moves a descriptor from one object to another.
 
+Implements the FIONREAD IO control command.
 
-[heading Parameters]
-
 
-[variablelist
+[heading Example]
   
-[[other][The other [link boost_asio.reference.posix__basic_descriptor `posix::basic_descriptor`] object from which the move will occur.]]
-
-]
 
 
-[heading Remarks]
-
-Following the move, the moved-from object is in the same state as if constructed using the `basic_descriptor(io_service&) constructor`.
-
-
-
-
-[endsect]
+ boost::asio::posix::stream_descriptor descriptor(io_service);
+ ...
+ boost::asio::descriptor_base::bytes_readable command(true);
+ descriptor.io_control(command);
+ std::size_t bytes_readable = command.get();
 
 
 
-[section:release posix::basic_descriptor::release]
 
-[indexterm2 release..posix::basic_descriptor]
-Release ownership of the native descriptor implementation.
 
 
- native_handle_type release();
 
+[heading Requirements]
 
-This function may be used to obtain the underlying representation of the descriptor. After calling this function, `is_open()` returns false. The caller is responsible for closing the descriptor.
+[*Header: ][^boost/asio/posix/descriptor_base.hpp]
 
-All outstanding asynchronous read or write operations will finish immediately, and the handlers for cancelled operations will be passed the `boost::asio::error::operation_aborted` error.
+[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
 
-[section:service posix::basic_descriptor::service]
-
-
-['Inherited from basic_io_object.]
-
-[indexterm2 service..posix::basic_descriptor]
-(Deprecated: Use `get_service()`.) The service associated with the I/O object.
-
-
- service_type & service;
-
+[section:non_blocking_io posix::descriptor_base::non_blocking_io]
 
+[indexterm2 non_blocking_io..posix::descriptor_base]
+(Deprecated: Use non\_blocking().) IO control command to set the blocking mode of the descriptor.
 
-[heading Remarks]
-
-Available only for services that do not support movability.
 
+ typedef implementation_defined non_blocking_io;
 
 
 
-[endsect]
+Implements the FIONBIO IO control command.
 
 
+[heading Example]
+
 
-[section:service_type posix::basic_descriptor::service_type]
 
+ boost::asio::posix::stream_descriptor descriptor(io_service);
+ ...
+ boost::asio::descriptor_base::non_blocking_io command(true);
+ descriptor.io_control(command);
 
-['Inherited from basic_io_object.]
 
-[indexterm2 service_type..posix::basic_descriptor]
-The type of the service that will be used to provide I/O operations.
 
 
- typedef DescriptorService service_type;
 
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/posix/basic_descriptor.hpp]
+[*Header: ][^boost/asio/posix/descriptor_base.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -69884,13 +73651,13 @@
 
 
 
-[section:_basic_descriptor posix::basic_descriptor::~basic_descriptor]
+[section:_descriptor_base posix::descriptor_base::~descriptor_base]
 
-[indexterm2 ~basic_descriptor..posix::basic_descriptor]
+[indexterm2 ~descriptor_base..posix::descriptor_base]
 Protected destructor to prevent deletion through this type.
 
 
- ~basic_descriptor();
+ ~descriptor_base();
 
 
 
@@ -69900,16 +73667,14 @@
 
 [endsect]
 
-[section:posix__basic_stream_descriptor posix::basic_stream_descriptor]
 
+[section:posix__stream_descriptor posix::stream_descriptor]
 
-Provides stream-oriented descriptor functionality.
+[indexterm1 posix::stream_descriptor]
+Typedef for the typical usage of a stream-oriented descriptor.
 
 
- template<
- typename ``[link boost_asio.reference.StreamDescriptorService StreamDescriptorService]`` = stream_descriptor_service>
- class basic_stream_descriptor :
- public posix::basic_descriptor< StreamDescriptorService >
+ typedef basic_stream_descriptor stream_descriptor;
 
 
 [heading Types]
@@ -70039,420 +73804,80 @@
   
   [
     [[link boost_asio.reference.posix__basic_stream_descriptor.native_non_blocking [*native_non_blocking]]]
- [Gets the non-blocking mode of the native descriptor implementation.
-
- Sets the non-blocking mode of the native descriptor implementation. ]
- ]
-
- [
- [[link boost_asio.reference.posix__basic_stream_descriptor.non_blocking [*non_blocking]]]
- [Gets the non-blocking mode of the descriptor.
-
- Sets the non-blocking mode of the descriptor. ]
- ]
-
- [
- [[link boost_asio.reference.posix__basic_stream_descriptor.operator_eq_ [*operator=]]]
- [Move-assign a basic_stream_descriptor from another. ]
- ]
-
- [
- [[link boost_asio.reference.posix__basic_stream_descriptor.read_some [*read_some]]]
- [Read some data from the descriptor. ]
- ]
-
- [
- [[link boost_asio.reference.posix__basic_stream_descriptor.release [*release]]]
- [Release ownership of the native descriptor implementation. ]
- ]
-
- [
- [[link boost_asio.reference.posix__basic_stream_descriptor.write_some [*write_some]]]
- [Write some data to the descriptor. ]
- ]
-
-]
-
-[heading Protected Member Functions]
-[table
- [[Name][Description]]
-
- [
- [[link boost_asio.reference.posix__basic_stream_descriptor.get_implementation [*get_implementation]]]
- [Get the underlying implementation of the I/O object. ]
- ]
-
- [
- [[link boost_asio.reference.posix__basic_stream_descriptor.get_service [*get_service]]]
- [Get the service associated with the I/O object. ]
- ]
-
-]
-
-[heading Protected Data Members]
-[table
- [[Name][Description]]
-
- [
- [[link boost_asio.reference.posix__basic_stream_descriptor.implementation [*implementation]]]
- [(Deprecated: Use get_implementation().) The underlying implementation of the I/O object. ]
- ]
-
- [
- [[link boost_asio.reference.posix__basic_stream_descriptor.service [*service]]]
- [(Deprecated: Use get_service().) The service associated with the I/O object. ]
- ]
-
-]
-
-The [link boost_asio.reference.posix__basic_stream_descriptor `posix::basic_stream_descriptor`] class template provides asynchronous and blocking stream-oriented descriptor functionality.
-
-
-[heading Thread Safety]
-
-[*Distinct] [*objects:] Safe.
-
-[*Shared] [*objects:] Unsafe.
-
-
-
-
-[heading Requirements]
-
-[*Header: ][^boost/asio/posix/basic_stream_descriptor.hpp]
-
-[*Convenience header: ][^boost/asio.hpp]
-
-[section:assign posix::basic_stream_descriptor::assign]
-
-[indexterm2 assign..posix::basic_stream_descriptor]
-Assign an existing native descriptor to the descriptor.
-
-
- void ``[link boost_asio.reference.posix__basic_stream_descriptor.assign.overload1 assign]``(
- const native_handle_type & native_descriptor);
- `` [''''&raquo;''' [link boost_asio.reference.posix__basic_stream_descriptor.assign.overload1 more...]]``
-
- boost::system::error_code ``[link boost_asio.reference.posix__basic_stream_descriptor.assign.overload2 assign]``(
- const native_handle_type & native_descriptor,
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.posix__basic_stream_descriptor.assign.overload2 more...]]``
-
-
-[section:overload1 posix::basic_stream_descriptor::assign (1 of 2 overloads)]
-
-
-['Inherited from posix::basic_descriptor.]
-
-
-Assign an existing native descriptor to the descriptor.
-
-
- void assign(
- const native_handle_type & native_descriptor);
-
-
-
-[endsect]
-
-
-
-[section:overload2 posix::basic_stream_descriptor::assign (2 of 2 overloads)]
-
-
-['Inherited from posix::basic_descriptor.]
-
-
-Assign an existing native descriptor to the descriptor.
-
-
- boost::system::error_code assign(
- const native_handle_type & native_descriptor,
- boost::system::error_code & ec);
-
-
-
-[endsect]
-
-
-[endsect]
-
-
-[section:async_read_some posix::basic_stream_descriptor::async_read_some]
-
-[indexterm2 async_read_some..posix::basic_stream_descriptor]
-Start an asynchronous read.
-
-
- template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``,
- typename ``[link boost_asio.reference.ReadHandler ReadHandler]``>
- void async_read_some(
- const MutableBufferSequence & buffers,
- ReadHandler handler);
-
-
-This function is used to asynchronously read data from the stream descriptor. The function call always returns immediately.
-
-
-[heading Parameters]
-
-
-[variablelist
-
-[[buffers][One or more buffers into which the data will be read. Although the buffers object may be copied as necessary, ownership of the underlying memory blocks is retained by the caller, which must guarantee that they remain valid until the handler is called.]]
-
-[[handler][The handler to be called when the read operation completes. Copies will be made of the handler as required. The function signature of the handler must be:
-``
- void handler(
- const boost::system::error_code& error, // Result of operation.
- std::size_t bytes_transferred // Number of bytes read.
- );
-``
-Regardless of whether the asynchronous operation completes immediately or not, the handler will not be invoked from within this function. Invocation of the handler will be performed in a manner equivalent to using `boost::asio::io_service::post()`.]]
-
-]
-
-
-[heading Remarks]
-
-The read operation may not read all of the requested number of bytes. Consider using the [link boost_asio.reference.async_read `async_read`] function if you need to ensure that the requested amount of data is read before the asynchronous operation completes.
-
-
-[heading Example]
-
-To read into a single data buffer use the [link boost_asio.reference.buffer `buffer`] function as follows:
-
- descriptor.async_read_some(boost::asio::buffer(data, size), handler);
-
-
-See the [link boost_asio.reference.buffer `buffer`] documentation for information on reading into multiple buffers in one go, and how to use it with arrays, boost::array or std::vector.
-
-
-
-
-[endsect]
-
-
-
-[section:async_write_some posix::basic_stream_descriptor::async_write_some]
-
-[indexterm2 async_write_some..posix::basic_stream_descriptor]
-Start an asynchronous write.
-
-
- template<
- typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``,
- typename ``[link boost_asio.reference.WriteHandler WriteHandler]``>
- void async_write_some(
- const ConstBufferSequence & buffers,
- WriteHandler handler);
-
-
-This function is used to asynchronously write data to the stream descriptor. The function call always returns immediately.
-
-
-[heading Parameters]
-
-
-[variablelist
-
-[[buffers][One or more data buffers to be written to the descriptor. Although the buffers object may be copied as necessary, ownership of the underlying memory blocks is retained by the caller, which must guarantee that they remain valid until the handler is called.]]
-
-[[handler][The handler to be called when the write operation completes. Copies will be made of the handler as required. The function signature of the handler must be:
-``
- void handler(
- const boost::system::error_code& error, // Result of operation.
- std::size_t bytes_transferred // Number of bytes written.
- );
-``
-Regardless of whether the asynchronous operation completes immediately or not, the handler will not be invoked from within this function. Invocation of the handler will be performed in a manner equivalent to using `boost::asio::io_service::post()`.]]
-
-]
-
-
-[heading Remarks]
-
-The write operation may not transmit all of the data to the peer. Consider using the [link boost_asio.reference.async_write `async_write`] function if you need to ensure that all data is written before the asynchronous operation completes.
-
-
-[heading Example]
-
-To write a single data buffer use the [link boost_asio.reference.buffer `buffer`] function as follows:
-
- descriptor.async_write_some(boost::asio::buffer(data, size), handler);
-
-
-See the [link boost_asio.reference.buffer `buffer`] documentation for information on writing multiple buffers in one go, and how to use it with arrays, boost::array or std::vector.
-
-
-
-
-[endsect]
-
-
-[section:basic_stream_descriptor posix::basic_stream_descriptor::basic_stream_descriptor]
-
-[indexterm2 basic_stream_descriptor..posix::basic_stream_descriptor]
-Construct a [link boost_asio.reference.posix__basic_stream_descriptor `posix::basic_stream_descriptor`] without opening it.
-
-
- explicit ``[link boost_asio.reference.posix__basic_stream_descriptor.basic_stream_descriptor.overload1 basic_stream_descriptor]``(
- boost::asio::io_service & io_service);
- `` [''''&raquo;''' [link boost_asio.reference.posix__basic_stream_descriptor.basic_stream_descriptor.overload1 more...]]``
-
-
-Construct a [link boost_asio.reference.posix__basic_stream_descriptor `posix::basic_stream_descriptor`] on an existing native descriptor.
-
-
- ``[link boost_asio.reference.posix__basic_stream_descriptor.basic_stream_descriptor.overload2 basic_stream_descriptor]``(
- boost::asio::io_service & io_service,
- const native_handle_type & native_descriptor);
- `` [''''&raquo;''' [link boost_asio.reference.posix__basic_stream_descriptor.basic_stream_descriptor.overload2 more...]]``
-
-
-Move-construct a [link boost_asio.reference.posix__basic_stream_descriptor `posix::basic_stream_descriptor`] from another.
-
-
- ``[link boost_asio.reference.posix__basic_stream_descriptor.basic_stream_descriptor.overload3 basic_stream_descriptor]``(
- basic_stream_descriptor && other);
- `` [''''&raquo;''' [link boost_asio.reference.posix__basic_stream_descriptor.basic_stream_descriptor.overload3 more...]]``
-
-
-[section:overload1 posix::basic_stream_descriptor::basic_stream_descriptor (1 of 3 overloads)]
-
-
-Construct a [link boost_asio.reference.posix__basic_stream_descriptor `posix::basic_stream_descriptor`] without opening it.
-
-
- basic_stream_descriptor(
- boost::asio::io_service & io_service);
-
-
-This constructor creates a stream descriptor without opening it. The descriptor needs to be opened and then connected or accepted before data can be sent or received on it.
-
-
-[heading Parameters]
-
-
-[variablelist
-
-[[io_service][The [link boost_asio.reference.io_service `io_service`] object that the stream descriptor will use to dispatch handlers for any asynchronous operations performed on the descriptor. ]]
-
-]
-
-
-
-
-[endsect]
-
-
-
-[section:overload2 posix::basic_stream_descriptor::basic_stream_descriptor (2 of 3 overloads)]
-
-
-Construct a [link boost_asio.reference.posix__basic_stream_descriptor `posix::basic_stream_descriptor`] on an existing native descriptor.
-
-
- basic_stream_descriptor(
- boost::asio::io_service & io_service,
- const native_handle_type & native_descriptor);
-
-
-This constructor creates a stream descriptor object to hold an existing native descriptor.
-
-
-[heading Parameters]
-
-
-[variablelist
-
-[[io_service][The [link boost_asio.reference.io_service `io_service`] object that the stream descriptor will use to dispatch handlers for any asynchronous operations performed on the descriptor.]]
-
-[[native_descriptor][The new underlying descriptor implementation.]]
-
-]
-
-
-[heading Exceptions]
-
+ [Gets the non-blocking mode of the native descriptor implementation.
 
-[variablelist
+ Sets the non-blocking mode of the native descriptor implementation. ]
+ ]
   
-[[boost::system::system_error][Thrown on failure. ]]
+ [
+ [[link boost_asio.reference.posix__basic_stream_descriptor.non_blocking [*non_blocking]]]
+ [Gets the non-blocking mode of the descriptor.
 
+ Sets the non-blocking mode of the descriptor. ]
+ ]
+
+ [
+ [[link boost_asio.reference.posix__basic_stream_descriptor.operator_eq_ [*operator=]]]
+ [Move-assign a basic_stream_descriptor from another. ]
+ ]
+
+ [
+ [[link boost_asio.reference.posix__basic_stream_descriptor.read_some [*read_some]]]
+ [Read some data from the descriptor. ]
+ ]
+
+ [
+ [[link boost_asio.reference.posix__basic_stream_descriptor.release [*release]]]
+ [Release ownership of the native descriptor implementation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.posix__basic_stream_descriptor.write_some [*write_some]]]
+ [Write some data to the descriptor. ]
+ ]
+
 ]
 
+[heading Protected Member Functions]
+[table
+ [[Name][Description]]
 
-
-
-[endsect]
-
-
-
-[section:overload3 posix::basic_stream_descriptor::basic_stream_descriptor (3 of 3 overloads)]
-
-
-Move-construct a [link boost_asio.reference.posix__basic_stream_descriptor `posix::basic_stream_descriptor`] from another.
-
-
- basic_stream_descriptor(
- basic_stream_descriptor && other);
-
-
-This constructor moves a stream descriptor from one object to another.
-
-
-[heading Parameters]
-
-
-[variablelist
+ [
+ [[link boost_asio.reference.posix__basic_stream_descriptor.get_implementation [*get_implementation]]]
+ [Get the underlying implementation of the I/O object. ]
+ ]
+
+ [
+ [[link boost_asio.reference.posix__basic_stream_descriptor.get_service [*get_service]]]
+ [Get the service associated with the I/O object. ]
+ ]
   
-[[other][The other [link boost_asio.reference.posix__basic_stream_descriptor `posix::basic_stream_descriptor`] object from which the move will occur.]]
-
 ]
 
+[heading Protected Data Members]
+[table
+ [[Name][Description]]
 
-[heading Remarks]
-
-Following the move, the moved-from object is in the same state as if constructed using the `basic_stream_descriptor(io_service&) constructor`.
-
-
-
-
-[endsect]
-
-
-[endsect]
-
-
-[section:bytes_readable posix::basic_stream_descriptor::bytes_readable]
-
-
-['Inherited from posix::descriptor_base.]
-
-[indexterm2 bytes_readable..posix::basic_stream_descriptor]
-IO control command to get the amount of data that can be read without blocking.
-
-
- typedef implementation_defined bytes_readable;
+ [
+ [[link boost_asio.reference.posix__basic_stream_descriptor.implementation [*implementation]]]
+ [(Deprecated: Use get_implementation().) The underlying implementation of the I/O object. ]
+ ]
 
+ [
+ [[link boost_asio.reference.posix__basic_stream_descriptor.service [*service]]]
+ [(Deprecated: Use get_service().) The service associated with the I/O object. ]
+ ]
 
+]
 
-Implements the FIONREAD IO control command.
+The [link boost_asio.reference.posix__basic_stream_descriptor `posix::basic_stream_descriptor`] class template provides asynchronous and blocking stream-oriented descriptor functionality.
 
 
-[heading Example]
+[heading Thread Safety]
   
+[*Distinct] [*objects:] Safe.
 
-
- boost::asio::posix::stream_descriptor descriptor(io_service);
- ...
- boost::asio::descriptor_base::bytes_readable command(true);
- descriptor.io_control(command);
- std::size_t bytes_readable = command.get();
-
-
+[*Shared] [*objects:] Unsafe.
 
 
 
@@ -70460,7 +73885,7 @@
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/posix/basic_stream_descriptor.hpp]
+[*Header: ][^boost/asio/posix/stream_descriptor.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -70468,122 +73893,237 @@
 [endsect]
 
 
-[section:cancel posix::basic_stream_descriptor::cancel]
-
-[indexterm2 cancel..posix::basic_stream_descriptor]
-Cancel all asynchronous operations associated with the descriptor.
+[section:posix__stream_descriptor_service posix::stream_descriptor_service]
 
 
- void ``[link boost_asio.reference.posix__basic_stream_descriptor.cancel.overload1 cancel]``();
- `` [''''&raquo;''' [link boost_asio.reference.posix__basic_stream_descriptor.cancel.overload1 more...]]``
+Default service implementation for a stream descriptor.
 
- boost::system::error_code ``[link boost_asio.reference.posix__basic_stream_descriptor.cancel.overload2 cancel]``(
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.posix__basic_stream_descriptor.cancel.overload2 more...]]``
 
+ class stream_descriptor_service :
+ public io_service::service
 
-[section:overload1 posix::basic_stream_descriptor::cancel (1 of 2 overloads)]
 
+[heading Types]
+[table
+ [[Name][Description]]
 
-['Inherited from posix::basic_descriptor.]
+ [
 
+ [[link boost_asio.reference.posix__stream_descriptor_service.implementation_type [*implementation_type]]]
+ [The type of a stream descriptor implementation. ]
+
+ ]
 
-Cancel all asynchronous operations associated with the descriptor.
+ [
 
+ [[link boost_asio.reference.posix__stream_descriptor_service.native_handle_type [*native_handle_type]]]
+ [The native descriptor type. ]
+
+ ]
 
- void cancel();
+ [
 
+ [[link boost_asio.reference.posix__stream_descriptor_service.native_type [*native_type]]]
+ [(Deprecated: Use native_handle_type.) The native descriptor type. ]
+
+ ]
 
-This function causes all outstanding asynchronous read or write operations to finish immediately, and the handlers for cancelled operations will be passed the `boost::asio::error::operation_aborted` error.
+]
 
+[heading Member Functions]
+[table
+ [[Name][Description]]
 
-[heading Exceptions]
-
+ [
+ [[link boost_asio.reference.posix__stream_descriptor_service.assign [*assign]]]
+ [Assign an existing native descriptor to a stream descriptor. ]
+ ]
+
+ [
+ [[link boost_asio.reference.posix__stream_descriptor_service.async_read_some [*async_read_some]]]
+ [Start an asynchronous read. ]
+ ]
+
+ [
+ [[link boost_asio.reference.posix__stream_descriptor_service.async_write_some [*async_write_some]]]
+ [Start an asynchronous write. ]
+ ]
+
+ [
+ [[link boost_asio.reference.posix__stream_descriptor_service.cancel [*cancel]]]
+ [Cancel all asynchronous operations associated with the descriptor. ]
+ ]
+
+ [
+ [[link boost_asio.reference.posix__stream_descriptor_service.close [*close]]]
+ [Close a stream descriptor implementation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.posix__stream_descriptor_service.construct [*construct]]]
+ [Construct a new stream descriptor implementation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.posix__stream_descriptor_service.destroy [*destroy]]]
+ [Destroy a stream descriptor implementation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.posix__stream_descriptor_service.get_io_service [*get_io_service]]]
+ [Get the io_service object that owns the service. ]
+ ]
+
+ [
+ [[link boost_asio.reference.posix__stream_descriptor_service.io_control [*io_control]]]
+ [Perform an IO control command on the descriptor. ]
+ ]
+
+ [
+ [[link boost_asio.reference.posix__stream_descriptor_service.is_open [*is_open]]]
+ [Determine whether the descriptor is open. ]
+ ]
+
+ [
+ [[link boost_asio.reference.posix__stream_descriptor_service.move_assign [*move_assign]]]
+ [Move-assign from another stream descriptor implementation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.posix__stream_descriptor_service.move_construct [*move_construct]]]
+ [Move-construct a new stream descriptor implementation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.posix__stream_descriptor_service.native [*native]]]
+ [(Deprecated: Use native_handle().) Get the native descriptor implementation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.posix__stream_descriptor_service.native_handle [*native_handle]]]
+ [Get the native descriptor implementation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.posix__stream_descriptor_service.native_non_blocking [*native_non_blocking]]]
+ [Gets the non-blocking mode of the native descriptor implementation.
 
-[variablelist
+ Sets the non-blocking mode of the native descriptor implementation. ]
+ ]
   
-[[boost::system::system_error][Thrown on failure. ]]
+ [
+ [[link boost_asio.reference.posix__stream_descriptor_service.non_blocking [*non_blocking]]]
+ [Gets the non-blocking mode of the descriptor.
 
+ Sets the non-blocking mode of the descriptor. ]
+ ]
+
+ [
+ [[link boost_asio.reference.posix__stream_descriptor_service.read_some [*read_some]]]
+ [Read some data from the stream. ]
+ ]
+
+ [
+ [[link boost_asio.reference.posix__stream_descriptor_service.release [*release]]]
+ [Release ownership of the native descriptor implementation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.posix__stream_descriptor_service.stream_descriptor_service [*stream_descriptor_service]]]
+ [Construct a new stream descriptor service for the specified io_service. ]
+ ]
+
+ [
+ [[link boost_asio.reference.posix__stream_descriptor_service.write_some [*write_some]]]
+ [Write the given data to the stream. ]
+ ]
+
 ]
 
+[heading Data Members]
+[table
+ [[Name][Description]]
 
+ [
+ [[link boost_asio.reference.posix__stream_descriptor_service.id [*id]]]
+ [The unique service identifier. ]
+ ]
 
+]
 
-[endsect]
-
-
+[heading Requirements]
 
-[section:overload2 posix::basic_stream_descriptor::cancel (2 of 2 overloads)]
+[*Header: ][^boost/asio/posix/stream_descriptor_service.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
-['Inherited from posix::basic_descriptor.]
 
+[section:assign posix::stream_descriptor_service::assign]
 
-Cancel all asynchronous operations associated with the descriptor.
+[indexterm2 assign..posix::stream_descriptor_service]
+Assign an existing native descriptor to a stream descriptor.
 
 
- boost::system::error_code cancel(
+ boost::system::error_code assign(
+ implementation_type & impl,
+ const native_handle_type & native_descriptor,
       boost::system::error_code & ec);
 
 
-This function causes all outstanding asynchronous read or write operations to finish immediately, and the handlers for cancelled operations will be passed the `boost::asio::error::operation_aborted` error.
 
+[endsect]
 
-[heading Parameters]
-
 
-[variablelist
-
-[[ec][Set to indicate what error occurred, if any. ]]
 
-]
+[section:async_read_some posix::stream_descriptor_service::async_read_some]
 
+[indexterm2 async_read_some..posix::stream_descriptor_service]
+Start an asynchronous read.
 
 
+ template<
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``,
+ typename ``[link boost_asio.reference.ReadHandler ReadHandler]``>
+ void async_read_some(
+ implementation_type & impl,
+ const MutableBufferSequence & buffers,
+ ReadHandler handler);
 
-[endsect]
 
 
 [endsect]
 
-[section:close posix::basic_stream_descriptor::close]
-
-[indexterm2 close..posix::basic_stream_descriptor]
-Close the descriptor.
-
-
- void ``[link boost_asio.reference.posix__basic_stream_descriptor.close.overload1 close]``();
- `` [''''&raquo;''' [link boost_asio.reference.posix__basic_stream_descriptor.close.overload1 more...]]``
-
- boost::system::error_code ``[link boost_asio.reference.posix__basic_stream_descriptor.close.overload2 close]``(
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.posix__basic_stream_descriptor.close.overload2 more...]]``
-
 
-[section:overload1 posix::basic_stream_descriptor::close (1 of 2 overloads)]
 
+[section:async_write_some posix::stream_descriptor_service::async_write_some]
 
-['Inherited from posix::basic_descriptor.]
+[indexterm2 async_write_some..posix::stream_descriptor_service]
+Start an asynchronous write.
 
 
-Close the descriptor.
+ template<
+ typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``,
+ typename ``[link boost_asio.reference.WriteHandler WriteHandler]``>
+ void async_write_some(
+ implementation_type & impl,
+ const ConstBufferSequence & buffers,
+ WriteHandler handler);
 
 
- void close();
 
+[endsect]
 
-This function is used to close the descriptor. Any asynchronous read or write operations will be cancelled immediately, and will complete with the `boost::asio::error::operation_aborted` error.
 
 
-[heading Exceptions]
-
+[section:cancel posix::stream_descriptor_service::cancel]
 
-[variablelist
-
-[[boost::system::system_error][Thrown on failure. Note that, even if the function indicates an error, the underlying descriptor is closed. ]]
+[indexterm2 cancel..posix::stream_descriptor_service]
+Cancel all asynchronous operations associated with the descriptor.
 
-]
 
+ boost::system::error_code cancel(
+ implementation_type & impl,
+ boost::system::error_code & ec);
 
 
 
@@ -70591,485 +74131,469 @@
 
 
 
-[section:overload2 posix::basic_stream_descriptor::close (2 of 2 overloads)]
-
-
-['Inherited from posix::basic_descriptor.]
-
+[section:close posix::stream_descriptor_service::close]
 
-Close the descriptor.
+[indexterm2 close..posix::stream_descriptor_service]
+Close a stream descriptor implementation.
 
 
   boost::system::error_code close(
+ implementation_type & impl,
       boost::system::error_code & ec);
 
 
-This function is used to close the descriptor. Any asynchronous read or write operations will be cancelled immediately, and will complete with the `boost::asio::error::operation_aborted` error.
 
+[endsect]
 
-[heading Parameters]
-
 
-[variablelist
-
-[[ec][Set to indicate what error occurred, if any. Note that, even if the function indicates an error, the underlying descriptor is closed. ]]
 
-]
+[section:construct posix::stream_descriptor_service::construct]
 
+[indexterm2 construct..posix::stream_descriptor_service]
+Construct a new stream descriptor implementation.
 
 
+ void construct(
+ implementation_type & impl);
 
-[endsect]
 
 
 [endsect]
 
-[section:get_implementation posix::basic_stream_descriptor::get_implementation]
-
-[indexterm2 get_implementation..posix::basic_stream_descriptor]
-Get the underlying implementation of the I/O object.
 
 
- implementation_type & ``[link boost_asio.reference.posix__basic_stream_descriptor.get_implementation.overload1 get_implementation]``();
- `` [''''&raquo;''' [link boost_asio.reference.posix__basic_stream_descriptor.get_implementation.overload1 more...]]``
+[section:destroy posix::stream_descriptor_service::destroy]
 
- const implementation_type & ``[link boost_asio.reference.posix__basic_stream_descriptor.get_implementation.overload2 get_implementation]``() const;
- `` [''''&raquo;''' [link boost_asio.reference.posix__basic_stream_descriptor.get_implementation.overload2 more...]]``
+[indexterm2 destroy..posix::stream_descriptor_service]
+Destroy a stream descriptor implementation.
 
 
-[section:overload1 posix::basic_stream_descriptor::get_implementation (1 of 2 overloads)]
+ void destroy(
+ implementation_type & impl);
 
 
-['Inherited from basic_io_object.]
 
+[endsect]
 
-Get the underlying implementation of the I/O object.
 
 
- implementation_type & get_implementation();
+[section:get_io_service posix::stream_descriptor_service::get_io_service]
 
 
+['Inherited from io_service.]
 
-[endsect]
+[indexterm2 get_io_service..posix::stream_descriptor_service]
+Get the [link boost_asio.reference.io_service `io_service`] object that owns the service.
 
 
+ boost::asio::io_service & get_io_service();
 
-[section:overload2 posix::basic_stream_descriptor::get_implementation (2 of 2 overloads)]
 
 
-['Inherited from basic_io_object.]
+[endsect]
 
 
-Get the underlying implementation of the I/O object.
 
+[section:id posix::stream_descriptor_service::id]
 
- const implementation_type & get_implementation() const;
+[indexterm2 id..posix::stream_descriptor_service]
+The unique service identifier.
 
 
+ static boost::asio::io_service::id id;
 
-[endsect]
 
 
 [endsect]
 
 
-[section:get_io_service posix::basic_stream_descriptor::get_io_service]
-
-
-['Inherited from basic_io_object.]
 
-[indexterm2 get_io_service..posix::basic_stream_descriptor]
-Get the [link boost_asio.reference.io_service `io_service`] associated with the object.
+[section:implementation_type posix::stream_descriptor_service::implementation_type]
 
+[indexterm2 implementation_type..posix::stream_descriptor_service]
+The type of a stream descriptor implementation.
 
- boost::asio::io_service & get_io_service();
 
+ typedef implementation_defined implementation_type;
 
-This function may be used to obtain the [link boost_asio.reference.io_service `io_service`] object that the I/O object uses to dispatch handlers for asynchronous operations.
 
 
-[heading Return Value]
-
-A reference to the [link boost_asio.reference.io_service `io_service`] object that the I/O object will use to dispatch handlers. Ownership is not transferred to the caller.
+[heading Requirements]
 
+[*Header: ][^boost/asio/posix/stream_descriptor_service.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
-[section:get_service posix::basic_stream_descriptor::get_service]
-
-[indexterm2 get_service..posix::basic_stream_descriptor]
-Get the service associated with the I/O object.
 
+[section:io_control posix::stream_descriptor_service::io_control]
 
- service_type & ``[link boost_asio.reference.posix__basic_stream_descriptor.get_service.overload1 get_service]``();
- `` [''''&raquo;''' [link boost_asio.reference.posix__basic_stream_descriptor.get_service.overload1 more...]]``
-
- const service_type & ``[link boost_asio.reference.posix__basic_stream_descriptor.get_service.overload2 get_service]``() const;
- `` [''''&raquo;''' [link boost_asio.reference.posix__basic_stream_descriptor.get_service.overload2 more...]]``
+[indexterm2 io_control..posix::stream_descriptor_service]
+Perform an IO control command on the descriptor.
 
 
-[section:overload1 posix::basic_stream_descriptor::get_service (1 of 2 overloads)]
+ template<
+ typename ``[link boost_asio.reference.IoControlCommand IoControlCommand]``>
+ boost::system::error_code io_control(
+ implementation_type & impl,
+ IoControlCommand & command,
+ boost::system::error_code & ec);
 
 
-['Inherited from basic_io_object.]
 
+[endsect]
 
-Get the service associated with the I/O object.
 
 
- service_type & get_service();
+[section:is_open posix::stream_descriptor_service::is_open]
 
+[indexterm2 is_open..posix::stream_descriptor_service]
+Determine whether the descriptor is open.
 
 
-[endsect]
+ bool is_open(
+ const implementation_type & impl) const;
 
 
 
-[section:overload2 posix::basic_stream_descriptor::get_service (2 of 2 overloads)]
+[endsect]
 
 
-['Inherited from basic_io_object.]
 
+[section:move_assign posix::stream_descriptor_service::move_assign]
 
-Get the service associated with the I/O object.
+[indexterm2 move_assign..posix::stream_descriptor_service]
+Move-assign from another stream descriptor implementation.
 
 
- const service_type & get_service() const;
+ void move_assign(
+ implementation_type & impl,
+ stream_descriptor_service & other_service,
+ implementation_type & other_impl);
 
 
 
 [endsect]
 
 
-[endsect]
 
+[section:move_construct posix::stream_descriptor_service::move_construct]
 
-[section:implementation posix::basic_stream_descriptor::implementation]
+[indexterm2 move_construct..posix::stream_descriptor_service]
+Move-construct a new stream descriptor implementation.
 
 
-['Inherited from basic_io_object.]
+ void move_construct(
+ implementation_type & impl,
+ implementation_type & other_impl);
 
-[indexterm2 implementation..posix::basic_stream_descriptor]
-(Deprecated: Use `get_implementation()`.) The underlying implementation of the I/O object.
 
 
- implementation_type implementation;
+[endsect]
 
 
 
-[endsect]
+[section:native posix::stream_descriptor_service::native]
 
+[indexterm2 native..posix::stream_descriptor_service]
+(Deprecated: Use `native_handle()`.) Get the native descriptor implementation.
 
 
-[section:implementation_type posix::basic_stream_descriptor::implementation_type]
+ native_type native(
+ implementation_type & impl);
 
 
-['Inherited from basic_io_object.]
 
-[indexterm2 implementation_type..posix::basic_stream_descriptor]
-The underlying implementation type of I/O object.
+[endsect]
 
 
- typedef service_type::implementation_type implementation_type;
 
+[section:native_handle posix::stream_descriptor_service::native_handle]
 
+[indexterm2 native_handle..posix::stream_descriptor_service]
+Get the native descriptor implementation.
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/posix/basic_stream_descriptor.hpp]
+ native_handle_type native_handle(
+ implementation_type & impl);
 
-[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
-[section:io_control posix::basic_stream_descriptor::io_control]
-
-[indexterm2 io_control..posix::basic_stream_descriptor]
-Perform an IO control command on the descriptor.
-
 
- void ``[link boost_asio.reference.posix__basic_stream_descriptor.io_control.overload1 io_control]``(
- IoControlCommand & command);
- `` [''''&raquo;''' [link boost_asio.reference.posix__basic_stream_descriptor.io_control.overload1 more...]]``
+[section:native_handle_type posix::stream_descriptor_service::native_handle_type]
 
- boost::system::error_code ``[link boost_asio.reference.posix__basic_stream_descriptor.io_control.overload2 io_control]``(
- IoControlCommand & command,
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.posix__basic_stream_descriptor.io_control.overload2 more...]]``
+[indexterm2 native_handle_type..posix::stream_descriptor_service]
+The native descriptor type.
 
 
-[section:overload1 posix::basic_stream_descriptor::io_control (1 of 2 overloads)]
+ typedef implementation_defined native_handle_type;
 
 
-['Inherited from posix::basic_descriptor.]
 
+[heading Requirements]
 
-Perform an IO control command on the descriptor.
+[*Header: ][^boost/asio/posix/stream_descriptor_service.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
- template<
- typename ``[link boost_asio.reference.IoControlCommand IoControlCommand]``>
- void io_control(
- IoControlCommand & command);
 
+[endsect]
 
-This function is used to execute an IO control command on the descriptor.
 
+[section:native_non_blocking posix::stream_descriptor_service::native_non_blocking]
 
-[heading Parameters]
-
+[indexterm2 native_non_blocking..posix::stream_descriptor_service]
+Gets the non-blocking mode of the native descriptor implementation.
 
-[variablelist
-
-[[command][The IO control command to be performed on the descriptor.]]
 
-]
+ bool ``[link boost_asio.reference.posix__stream_descriptor_service.native_non_blocking.overload1 native_non_blocking]``(
+ const implementation_type & impl) const;
+ `` [''''&raquo;''' [link boost_asio.reference.posix__stream_descriptor_service.native_non_blocking.overload1 more...]]``
 
 
-[heading Exceptions]
-
+Sets the non-blocking mode of the native descriptor implementation.
 
-[variablelist
-
-[[boost::system::system_error][Thrown on failure.]]
 
-]
+ boost::system::error_code ``[link boost_asio.reference.posix__stream_descriptor_service.native_non_blocking.overload2 native_non_blocking]``(
+ implementation_type & impl,
+ bool mode,
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.posix__stream_descriptor_service.native_non_blocking.overload2 more...]]``
 
 
+[section:overload1 posix::stream_descriptor_service::native_non_blocking (1 of 2 overloads)]
 
-[heading Example]
-
-Getting the number of bytes ready to read:
 
- boost::asio::posix::stream_descriptor descriptor(io_service);
- ...
- boost::asio::posix::stream_descriptor::bytes_readable command;
- descriptor.io_control(command);
- std::size_t bytes_readable = command.get();
+Gets the non-blocking mode of the native descriptor implementation.
 
 
+ bool native_non_blocking(
+ const implementation_type & impl) const;
 
 
 
+[endsect]
 
 
-[endsect]
 
+[section:overload2 posix::stream_descriptor_service::native_non_blocking (2 of 2 overloads)]
 
 
-[section:overload2 posix::basic_stream_descriptor::io_control (2 of 2 overloads)]
+Sets the non-blocking mode of the native descriptor implementation.
 
 
-['Inherited from posix::basic_descriptor.]
+ boost::system::error_code native_non_blocking(
+ implementation_type & impl,
+ bool mode,
+ boost::system::error_code & ec);
 
 
-Perform an IO control command on the descriptor.
 
+[endsect]
 
- template<
- typename ``[link boost_asio.reference.IoControlCommand IoControlCommand]``>
- boost::system::error_code io_control(
- IoControlCommand & command,
- boost::system::error_code & ec);
 
+[endsect]
 
-This function is used to execute an IO control command on the descriptor.
 
+[section:native_type posix::stream_descriptor_service::native_type]
 
-[heading Parameters]
-
+[indexterm2 native_type..posix::stream_descriptor_service]
+(Deprecated: Use native\_handle\_type.) The native descriptor type.
 
-[variablelist
-
-[[command][The IO control command to be performed on the descriptor.]]
 
-[[ec][Set to indicate what error occurred, if any.]]
+ typedef implementation_defined native_type;
 
-]
 
 
+[heading Requirements]
 
-[heading Example]
-
-Getting the number of bytes ready to read:
+[*Header: ][^boost/asio/posix/stream_descriptor_service.hpp]
 
- boost::asio::posix::stream_descriptor descriptor(io_service);
- ...
- boost::asio::posix::stream_descriptor::bytes_readable command;
- boost::system::error_code ec;
- descriptor.io_control(command, ec);
- if (ec)
- {
- // An error occurred.
- }
- std::size_t bytes_readable = command.get();
+[*Convenience header: ][^boost/asio.hpp]
 
 
+[endsect]
 
 
+[section:non_blocking posix::stream_descriptor_service::non_blocking]
 
+[indexterm2 non_blocking..posix::stream_descriptor_service]
+Gets the non-blocking mode of the descriptor.
 
 
-[endsect]
+ bool ``[link boost_asio.reference.posix__stream_descriptor_service.non_blocking.overload1 non_blocking]``(
+ const implementation_type & impl) const;
+ `` [''''&raquo;''' [link boost_asio.reference.posix__stream_descriptor_service.non_blocking.overload1 more...]]``
 
 
-[endsect]
+Sets the non-blocking mode of the descriptor.
 
 
-[section:is_open posix::basic_stream_descriptor::is_open]
+ boost::system::error_code ``[link boost_asio.reference.posix__stream_descriptor_service.non_blocking.overload2 non_blocking]``(
+ implementation_type & impl,
+ bool mode,
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.posix__stream_descriptor_service.non_blocking.overload2 more...]]``
 
 
-['Inherited from posix::basic_descriptor.]
+[section:overload1 posix::stream_descriptor_service::non_blocking (1 of 2 overloads)]
 
-[indexterm2 is_open..posix::basic_stream_descriptor]
-Determine whether the descriptor is open.
 
+Gets the non-blocking mode of the descriptor.
 
- bool is_open() const;
+
+ bool non_blocking(
+ const implementation_type & impl) const;
 
 
 
 [endsect]
 
 
-[section:lowest_layer posix::basic_stream_descriptor::lowest_layer]
 
-[indexterm2 lowest_layer..posix::basic_stream_descriptor]
-Get a reference to the lowest layer.
+[section:overload2 posix::stream_descriptor_service::non_blocking (2 of 2 overloads)]
 
 
- lowest_layer_type & ``[link boost_asio.reference.posix__basic_stream_descriptor.lowest_layer.overload1 lowest_layer]``();
- `` [''''&raquo;''' [link boost_asio.reference.posix__basic_stream_descriptor.lowest_layer.overload1 more...]]``
+Sets the non-blocking mode of the descriptor.
 
 
-Get a const reference to the lowest layer.
+ boost::system::error_code non_blocking(
+ implementation_type & impl,
+ bool mode,
+ boost::system::error_code & ec);
 
 
- const lowest_layer_type & ``[link boost_asio.reference.posix__basic_stream_descriptor.lowest_layer.overload2 lowest_layer]``() const;
- `` [''''&raquo;''' [link boost_asio.reference.posix__basic_stream_descriptor.lowest_layer.overload2 more...]]``
 
+[endsect]
 
-[section:overload1 posix::basic_stream_descriptor::lowest_layer (1 of 2 overloads)]
 
+[endsect]
 
-['Inherited from posix::basic_descriptor.]
 
+[section:read_some posix::stream_descriptor_service::read_some]
 
-Get a reference to the lowest layer.
+[indexterm2 read_some..posix::stream_descriptor_service]
+Read some data from the stream.
 
 
- lowest_layer_type & lowest_layer();
+ template<
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
+ std::size_t read_some(
+ implementation_type & impl,
+ const MutableBufferSequence & buffers,
+ boost::system::error_code & ec);
 
 
-This function returns a reference to the lowest layer in a stack of layers. Since a [link boost_asio.reference.posix__basic_descriptor `posix::basic_descriptor`] cannot contain any further layers, it simply returns a reference to itself.
 
+[endsect]
 
-[heading Return Value]
-
-A reference to the lowest layer in the stack of layers. Ownership is not transferred to the caller.
 
 
+[section:release posix::stream_descriptor_service::release]
 
+[indexterm2 release..posix::stream_descriptor_service]
+Release ownership of the native descriptor implementation.
 
-[endsect]
 
+ native_handle_type release(
+ implementation_type & impl);
 
 
-[section:overload2 posix::basic_stream_descriptor::lowest_layer (2 of 2 overloads)]
 
+[endsect]
 
-['Inherited from posix::basic_descriptor.]
 
 
-Get a const reference to the lowest layer.
+[section:stream_descriptor_service posix::stream_descriptor_service::stream_descriptor_service]
 
+[indexterm2 stream_descriptor_service..posix::stream_descriptor_service]
+Construct a new stream descriptor service for the specified [link boost_asio.reference.io_service `io_service`].
 
- const lowest_layer_type & lowest_layer() const;
 
+ stream_descriptor_service(
+ boost::asio::io_service & io_service);
 
-This function returns a const reference to the lowest layer in a stack of layers. Since a [link boost_asio.reference.posix__basic_descriptor `posix::basic_descriptor`] cannot contain any further layers, it simply returns a reference to itself.
 
 
-[heading Return Value]
-
-A const reference to the lowest layer in the stack of layers. Ownership is not transferred to the caller.
+[endsect]
 
 
 
+[section:write_some posix::stream_descriptor_service::write_some]
 
-[endsect]
+[indexterm2 write_some..posix::stream_descriptor_service]
+Write the given data to the stream.
 
 
-[endsect]
+ template<
+ typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
+ std::size_t write_some(
+ implementation_type & impl,
+ const ConstBufferSequence & buffers,
+ boost::system::error_code & ec);
 
 
-[section:lowest_layer_type posix::basic_stream_descriptor::lowest_layer_type]
 
+[endsect]
 
-['Inherited from posix::basic_descriptor.]
 
-[indexterm2 lowest_layer_type..posix::basic_stream_descriptor]
-A [link boost_asio.reference.posix__basic_descriptor `posix::basic_descriptor`] is always the lowest layer.
 
+[endsect]
 
- typedef basic_descriptor< StreamDescriptorService > lowest_layer_type;
+[section:raw_socket_service raw_socket_service]
 
 
-[heading Types]
-[table
- [[Name][Description]]
+Default service implementation for a raw socket.
 
- [
 
- [[link boost_asio.reference.posix__basic_descriptor.bytes_readable [*bytes_readable]]]
- [IO control command to get the amount of data that can be read without blocking. ]
-
- ]
+ template<
+ typename ``[link boost_asio.reference.Protocol Protocol]``>
+ class raw_socket_service :
+ public io_service::service
 
- [
 
- [[link boost_asio.reference.posix__basic_descriptor.implementation_type [*implementation_type]]]
- [The underlying implementation type of I/O object. ]
-
- ]
+[heading Types]
+[table
+ [[Name][Description]]
 
   [
 
- [[link boost_asio.reference.posix__basic_descriptor.lowest_layer_type [*lowest_layer_type]]]
- [A basic_descriptor is always the lowest layer. ]
+ [[link boost_asio.reference.raw_socket_service.endpoint_type [*endpoint_type]]]
+ [The endpoint type. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.posix__basic_descriptor.native_handle_type [*native_handle_type]]]
- [The native representation of a descriptor. ]
+ [[link boost_asio.reference.raw_socket_service.implementation_type [*implementation_type]]]
+ [The type of a raw socket. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.posix__basic_descriptor.native_type [*native_type]]]
- [(Deprecated: Use native_handle_type.) The native representation of a descriptor. ]
+ [[link boost_asio.reference.raw_socket_service.native_handle_type [*native_handle_type]]]
+ [The native socket type. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.posix__basic_descriptor.non_blocking_io [*non_blocking_io]]]
- [(Deprecated: Use non_blocking().) IO control command to set the blocking mode of the descriptor. ]
+ [[link boost_asio.reference.raw_socket_service.native_type [*native_type]]]
+ [(Deprecated: Use native_handle_type.) The native socket type. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.posix__basic_descriptor.service_type [*service_type]]]
- [The type of the service that will be used to provide I/O operations. ]
+ [[link boost_asio.reference.raw_socket_service.protocol_type [*protocol_type]]]
+ [The protocol type. ]
   
   ]
 
@@ -71080,294 +74604,272 @@
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.posix__basic_descriptor.assign [*assign]]]
- [Assign an existing native descriptor to the descriptor. ]
+ [[link boost_asio.reference.raw_socket_service.assign [*assign]]]
+ [Assign an existing native socket to a raw socket. ]
   ]
   
   [
- [[link boost_asio.reference.posix__basic_descriptor.basic_descriptor [*basic_descriptor]]]
- [Construct a basic_descriptor without opening it.
-
- Construct a basic_descriptor on an existing native descriptor.
-
- Move-construct a basic_descriptor from another. ]
+ [[link boost_asio.reference.raw_socket_service.async_connect [*async_connect]]]
+ [Start an asynchronous connect. ]
   ]
   
   [
- [[link boost_asio.reference.posix__basic_descriptor.cancel [*cancel]]]
- [Cancel all asynchronous operations associated with the descriptor. ]
+ [[link boost_asio.reference.raw_socket_service.async_receive [*async_receive]]]
+ [Start an asynchronous receive. ]
   ]
   
   [
- [[link boost_asio.reference.posix__basic_descriptor.close [*close]]]
- [Close the descriptor. ]
+ [[link boost_asio.reference.raw_socket_service.async_receive_from [*async_receive_from]]]
+ [Start an asynchronous receive that will get the endpoint of the sender. ]
   ]
   
   [
- [[link boost_asio.reference.posix__basic_descriptor.get_io_service [*get_io_service]]]
- [Get the io_service associated with the object. ]
+ [[link boost_asio.reference.raw_socket_service.async_send [*async_send]]]
+ [Start an asynchronous send. ]
   ]
   
   [
- [[link boost_asio.reference.posix__basic_descriptor.io_control [*io_control]]]
- [Perform an IO control command on the descriptor. ]
+ [[link boost_asio.reference.raw_socket_service.async_send_to [*async_send_to]]]
+ [Start an asynchronous send. ]
   ]
   
   [
- [[link boost_asio.reference.posix__basic_descriptor.is_open [*is_open]]]
- [Determine whether the descriptor is open. ]
+ [[link boost_asio.reference.raw_socket_service.at_mark [*at_mark]]]
+ [Determine whether the socket is at the out-of-band data mark. ]
   ]
   
   [
- [[link boost_asio.reference.posix__basic_descriptor.lowest_layer [*lowest_layer]]]
- [Get a reference to the lowest layer.
-
- Get a const reference to the lowest layer. ]
+ [[link boost_asio.reference.raw_socket_service.available [*available]]]
+ [Determine the number of bytes available for reading. ]
   ]
   
   [
- [[link boost_asio.reference.posix__basic_descriptor.native [*native]]]
- [(Deprecated: Use native_handle().) Get the native descriptor representation. ]
+ [[link boost_asio.reference.raw_socket_service.bind [*bind]]]
+ []
   ]
   
   [
- [[link boost_asio.reference.posix__basic_descriptor.native_handle [*native_handle]]]
- [Get the native descriptor representation. ]
+ [[link boost_asio.reference.raw_socket_service.cancel [*cancel]]]
+ [Cancel all asynchronous operations associated with the socket. ]
   ]
   
   [
- [[link boost_asio.reference.posix__basic_descriptor.native_non_blocking [*native_non_blocking]]]
- [Gets the non-blocking mode of the native descriptor implementation.
-
- Sets the non-blocking mode of the native descriptor implementation. ]
+ [[link boost_asio.reference.raw_socket_service.close [*close]]]
+ [Close a raw socket implementation. ]
   ]
   
   [
- [[link boost_asio.reference.posix__basic_descriptor.non_blocking [*non_blocking]]]
- [Gets the non-blocking mode of the descriptor.
-
- Sets the non-blocking mode of the descriptor. ]
+ [[link boost_asio.reference.raw_socket_service.connect [*connect]]]
+ [Connect the raw socket to the specified endpoint. ]
   ]
   
   [
- [[link boost_asio.reference.posix__basic_descriptor.operator_eq_ [*operator=]]]
- [Move-assign a basic_descriptor from another. ]
+ [[link boost_asio.reference.raw_socket_service.construct [*construct]]]
+ [Construct a new raw socket implementation. ]
   ]
   
   [
- [[link boost_asio.reference.posix__basic_descriptor.release [*release]]]
- [Release ownership of the native descriptor implementation. ]
+ [[link boost_asio.reference.raw_socket_service.destroy [*destroy]]]
+ [Destroy a raw socket implementation. ]
   ]
   
-]
-
-[heading Protected Member Functions]
-[table
- [[Name][Description]]
-
   [
- [[link boost_asio.reference.posix__basic_descriptor.get_implementation [*get_implementation]]]
- [Get the underlying implementation of the I/O object. ]
+ [[link boost_asio.reference.raw_socket_service.get_io_service [*get_io_service]]]
+ [Get the io_service object that owns the service. ]
   ]
   
   [
- [[link boost_asio.reference.posix__basic_descriptor.get_service [*get_service]]]
- [Get the service associated with the I/O object. ]
+ [[link boost_asio.reference.raw_socket_service.get_option [*get_option]]]
+ [Get a socket option. ]
   ]
   
   [
- [[link boost_asio.reference.posix__basic_descriptor._basic_descriptor [*~basic_descriptor]]]
- [Protected destructor to prevent deletion through this type. ]
+ [[link boost_asio.reference.raw_socket_service.io_control [*io_control]]]
+ [Perform an IO control command on the socket. ]
   ]
   
-]
-
-[heading Protected Data Members]
-[table
- [[Name][Description]]
-
   [
- [[link boost_asio.reference.posix__basic_descriptor.implementation [*implementation]]]
- [(Deprecated: Use get_implementation().) The underlying implementation of the I/O object. ]
+ [[link boost_asio.reference.raw_socket_service.is_open [*is_open]]]
+ [Determine whether the socket is open. ]
   ]
-
+
   [
- [[link boost_asio.reference.posix__basic_descriptor.service [*service]]]
- [(Deprecated: Use get_service().) The service associated with the I/O object. ]
+ [[link boost_asio.reference.raw_socket_service.local_endpoint [*local_endpoint]]]
+ [Get the local endpoint. ]
   ]
-
-]
-
-The [link boost_asio.reference.posix__basic_descriptor `posix::basic_descriptor`] class template provides the ability to wrap a POSIX descriptor.
-
-
-[heading Thread Safety]
   
-[*Distinct] [*objects:] Safe.
-
-[*Shared] [*objects:] Unsafe.
-
-
-
-
-[heading Requirements]
-
-[*Header: ][^boost/asio/posix/basic_stream_descriptor.hpp]
-
-[*Convenience header: ][^boost/asio.hpp]
-
-
-[endsect]
-
-
-
-[section:native posix::basic_stream_descriptor::native]
-
-
-['Inherited from posix::basic_descriptor.]
-
-[indexterm2 native..posix::basic_stream_descriptor]
-(Deprecated: Use `native_handle()`.) Get the native descriptor representation.
-
-
- native_type native();
-
-
-This function may be used to obtain the underlying representation of the descriptor. This is intended to allow access to native descriptor functionality that is not otherwise provided.
-
-
-[endsect]
-
-
-
-[section:native_handle posix::basic_stream_descriptor::native_handle]
-
-
-['Inherited from posix::basic_descriptor.]
-
-[indexterm2 native_handle..posix::basic_stream_descriptor]
-Get the native descriptor representation.
-
-
- native_handle_type native_handle();
-
-
-This function may be used to obtain the underlying representation of the descriptor. This is intended to allow access to native descriptor functionality that is not otherwise provided.
-
-
-[endsect]
-
-
-
-[section:native_handle_type posix::basic_stream_descriptor::native_handle_type]
-
-[indexterm2 native_handle_type..posix::basic_stream_descriptor]
-The native representation of a descriptor.
-
-
- typedef StreamDescriptorService::native_handle_type native_handle_type;
-
-
-
-[heading Requirements]
-
-[*Header: ][^boost/asio/posix/basic_stream_descriptor.hpp]
-
-[*Convenience header: ][^boost/asio.hpp]
-
-
-[endsect]
-
-
-[section:native_non_blocking posix::basic_stream_descriptor::native_non_blocking]
-
-[indexterm2 native_non_blocking..posix::basic_stream_descriptor]
-Gets the non-blocking mode of the native descriptor implementation.
-
-
- bool ``[link boost_asio.reference.posix__basic_stream_descriptor.native_non_blocking.overload1 native_non_blocking]``() const;
- `` [''''&raquo;''' [link boost_asio.reference.posix__basic_stream_descriptor.native_non_blocking.overload1 more...]]``
-
-
-Sets the non-blocking mode of the native descriptor implementation.
-
+ [
+ [[link boost_asio.reference.raw_socket_service.move_assign [*move_assign]]]
+ [Move-assign from another raw socket implementation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.raw_socket_service.move_construct [*move_construct]]]
+ [Move-construct a new raw socket implementation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.raw_socket_service.native [*native]]]
+ [(Deprecated: Use native_handle().) Get the native socket implementation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.raw_socket_service.native_handle [*native_handle]]]
+ [Get the native socket implementation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.raw_socket_service.native_non_blocking [*native_non_blocking]]]
+ [Gets the non-blocking mode of the native socket implementation.
 
- void ``[link boost_asio.reference.posix__basic_stream_descriptor.native_non_blocking.overload2 native_non_blocking]``(
- bool mode);
- `` [''''&raquo;''' [link boost_asio.reference.posix__basic_stream_descriptor.native_non_blocking.overload2 more...]]``
+ Sets the non-blocking mode of the native socket implementation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.raw_socket_service.non_blocking [*non_blocking]]]
+ [Gets the non-blocking mode of the socket.
 
- boost::system::error_code ``[link boost_asio.reference.posix__basic_stream_descriptor.native_non_blocking.overload3 native_non_blocking]``(
- bool mode,
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.posix__basic_stream_descriptor.native_non_blocking.overload3 more...]]``
+ Sets the non-blocking mode of the socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.raw_socket_service.open [*open]]]
+ []
+ ]
+
+ [
+ [[link boost_asio.reference.raw_socket_service.raw_socket_service [*raw_socket_service]]]
+ [Construct a new raw socket service for the specified io_service. ]
+ ]
+
+ [
+ [[link boost_asio.reference.raw_socket_service.receive [*receive]]]
+ [Receive some data from the peer. ]
+ ]
+
+ [
+ [[link boost_asio.reference.raw_socket_service.receive_from [*receive_from]]]
+ [Receive raw data with the endpoint of the sender. ]
+ ]
+
+ [
+ [[link boost_asio.reference.raw_socket_service.remote_endpoint [*remote_endpoint]]]
+ [Get the remote endpoint. ]
+ ]
+
+ [
+ [[link boost_asio.reference.raw_socket_service.send [*send]]]
+ [Send the given data to the peer. ]
+ ]
+
+ [
+ [[link boost_asio.reference.raw_socket_service.send_to [*send_to]]]
+ [Send raw data to the specified endpoint. ]
+ ]
+
+ [
+ [[link boost_asio.reference.raw_socket_service.set_option [*set_option]]]
+ [Set a socket option. ]
+ ]
+
+ [
+ [[link boost_asio.reference.raw_socket_service.shutdown [*shutdown]]]
+ [Disable sends or receives on the socket. ]
+ ]
+
+]
 
+[heading Data Members]
+[table
+ [[Name][Description]]
 
-[section:overload1 posix::basic_stream_descriptor::native_non_blocking (1 of 3 overloads)]
+ [
+ [[link boost_asio.reference.raw_socket_service.id [*id]]]
+ [The unique service identifier. ]
+ ]
 
+]
 
-['Inherited from posix::basic_descriptor.]
+[heading Requirements]
 
+[*Header: ][^boost/asio/raw_socket_service.hpp]
 
-Gets the non-blocking mode of the native descriptor implementation.
+[*Convenience header: ][^boost/asio.hpp]
 
 
- bool native_non_blocking() const;
+[section:assign raw_socket_service::assign]
 
+[indexterm2 assign..raw_socket_service]
+Assign an existing native socket to a raw socket.
 
-This function is used to retrieve the non-blocking mode of the underlying native descriptor. This mode has no effect on the behaviour of the descriptor object's synchronous operations.
 
+ boost::system::error_code assign(
+ implementation_type & impl,
+ const protocol_type & protocol,
+ const native_handle_type & native_socket,
+ boost::system::error_code & ec);
 
-[heading Return Value]
-
-`true` if the underlying descriptor is in non-blocking mode and direct system calls may fail with `boost::asio::error::would_block` (or the equivalent system error).
 
 
-[heading Remarks]
-
-The current non-blocking mode is cached by the descriptor object. Consequently, the return value may be incorrect if the non-blocking mode was set directly on the native descriptor.
+[endsect]
 
 
 
+[section:async_connect raw_socket_service::async_connect]
 
-[endsect]
+[indexterm2 async_connect..raw_socket_service]
+Start an asynchronous connect.
 
 
+ template<
+ typename ``[link boost_asio.reference.ConnectHandler ConnectHandler]``>
+ void async_connect(
+ implementation_type & impl,
+ const endpoint_type & peer_endpoint,
+ ConnectHandler handler);
 
-[section:overload2 posix::basic_stream_descriptor::native_non_blocking (2 of 3 overloads)]
 
 
-['Inherited from posix::basic_descriptor.]
+[endsect]
 
 
-Sets the non-blocking mode of the native descriptor implementation.
 
+[section:async_receive raw_socket_service::async_receive]
 
- void native_non_blocking(
- bool mode);
+[indexterm2 async_receive..raw_socket_service]
+Start an asynchronous receive.
 
 
-This function is used to modify the non-blocking mode of the underlying native descriptor. It has no effect on the behaviour of the descriptor object's synchronous operations.
+ template<
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``,
+ typename ``[link boost_asio.reference.ReadHandler ReadHandler]``>
+ void async_receive(
+ implementation_type & impl,
+ const MutableBufferSequence & buffers,
+ socket_base::message_flags flags,
+ ReadHandler handler);
 
 
-[heading Parameters]
-
 
-[variablelist
-
-[[mode][If `true`, the underlying descriptor is put into non-blocking mode and direct system calls may fail with `boost::asio::error::would_block` (or the equivalent system error).]]
+[endsect]
 
-]
 
 
-[heading Exceptions]
-
+[section:async_receive_from raw_socket_service::async_receive_from]
 
-[variablelist
-
-[[boost::system::system_error][Thrown on failure. If the `mode` is `false`, but the current value of `non_blocking()` is `true`, this function fails with `boost::asio::error::invalid_argument`, as the combination does not make sense. ]]
+[indexterm2 async_receive_from..raw_socket_service]
+Start an asynchronous receive that will get the endpoint of the sender.
 
-]
 
+ template<
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``,
+ typename ``[link boost_asio.reference.ReadHandler ReadHandler]``>
+ void async_receive_from(
+ implementation_type & impl,
+ const MutableBufferSequence & buffers,
+ endpoint_type & sender_endpoint,
+ socket_base::message_flags flags,
+ ReadHandler handler);
 
 
 
@@ -71375,153 +74877,153 @@
 
 
 
-[section:overload3 posix::basic_stream_descriptor::native_non_blocking (3 of 3 overloads)]
-
-
-['Inherited from posix::basic_descriptor.]
+[section:async_send raw_socket_service::async_send]
 
+[indexterm2 async_send..raw_socket_service]
+Start an asynchronous send.
 
-Sets the non-blocking mode of the native descriptor implementation.
 
+ template<
+ typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``,
+ typename ``[link boost_asio.reference.WriteHandler WriteHandler]``>
+ void async_send(
+ implementation_type & impl,
+ const ConstBufferSequence & buffers,
+ socket_base::message_flags flags,
+ WriteHandler handler);
 
- boost::system::error_code native_non_blocking(
- bool mode,
- boost::system::error_code & ec);
 
 
-This function is used to modify the non-blocking mode of the underlying native descriptor. It has no effect on the behaviour of the descriptor object's synchronous operations.
+[endsect]
 
 
-[heading Parameters]
-
 
-[variablelist
-
-[[mode][If `true`, the underlying descriptor is put into non-blocking mode and direct system calls may fail with `boost::asio::error::would_block` (or the equivalent system error).]]
+[section:async_send_to raw_socket_service::async_send_to]
 
-[[ec][Set to indicate what error occurred, if any. If the `mode` is `false`, but the current value of `non_blocking()` is `true`, this function fails with `boost::asio::error::invalid_argument`, as the combination does not make sense. ]]
+[indexterm2 async_send_to..raw_socket_service]
+Start an asynchronous send.
 
-]
 
+ template<
+ typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``,
+ typename ``[link boost_asio.reference.WriteHandler WriteHandler]``>
+ void async_send_to(
+ implementation_type & impl,
+ const ConstBufferSequence & buffers,
+ const endpoint_type & destination,
+ socket_base::message_flags flags,
+ WriteHandler handler);
 
 
 
 [endsect]
 
 
-[endsect]
-
 
-[section:native_type posix::basic_stream_descriptor::native_type]
+[section:at_mark raw_socket_service::at_mark]
 
-[indexterm2 native_type..posix::basic_stream_descriptor]
-(Deprecated: Use native\_handle\_type.) The native representation of a descriptor.
+[indexterm2 at_mark..raw_socket_service]
+Determine whether the socket is at the out-of-band data mark.
 
 
- typedef StreamDescriptorService::native_handle_type native_type;
+ bool at_mark(
+ const implementation_type & impl,
+ boost::system::error_code & ec) const;
 
 
 
-[heading Requirements]
+[endsect]
 
-[*Header: ][^boost/asio/posix/basic_stream_descriptor.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
 
+[section:available raw_socket_service::available]
 
-[endsect]
+[indexterm2 available..raw_socket_service]
+Determine the number of bytes available for reading.
 
 
-[section:non_blocking posix::basic_stream_descriptor::non_blocking]
+ std::size_t available(
+ const implementation_type & impl,
+ boost::system::error_code & ec) const;
 
-[indexterm2 non_blocking..posix::basic_stream_descriptor]
-Gets the non-blocking mode of the descriptor.
 
 
- bool ``[link boost_asio.reference.posix__basic_stream_descriptor.non_blocking.overload1 non_blocking]``() const;
- `` [''''&raquo;''' [link boost_asio.reference.posix__basic_stream_descriptor.non_blocking.overload1 more...]]``
+[endsect]
 
 
-Sets the non-blocking mode of the descriptor.
 
+[section:bind raw_socket_service::bind]
 
- void ``[link boost_asio.reference.posix__basic_stream_descriptor.non_blocking.overload2 non_blocking]``(
- bool mode);
- `` [''''&raquo;''' [link boost_asio.reference.posix__basic_stream_descriptor.non_blocking.overload2 more...]]``
+[indexterm2 bind..raw_socket_service]
 
- boost::system::error_code ``[link boost_asio.reference.posix__basic_stream_descriptor.non_blocking.overload3 non_blocking]``(
- bool mode,
+ boost::system::error_code bind(
+ implementation_type & impl,
+ const endpoint_type & endpoint,
       boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.posix__basic_stream_descriptor.non_blocking.overload3 more...]]``
-
-
-[section:overload1 posix::basic_stream_descriptor::non_blocking (1 of 3 overloads)]
 
 
-['Inherited from posix::basic_descriptor.]
 
+[endsect]
 
-Gets the non-blocking mode of the descriptor.
 
 
- bool non_blocking() const;
+[section:cancel raw_socket_service::cancel]
 
+[indexterm2 cancel..raw_socket_service]
+Cancel all asynchronous operations associated with the socket.
 
 
-[heading Return Value]
-
-`true` if the descriptor's synchronous operations will fail with `boost::asio::error::would_block` if they are unable to perform the requested operation immediately. If `false`, synchronous operations will block until complete.
+ boost::system::error_code cancel(
+ implementation_type & impl,
+ boost::system::error_code & ec);
 
 
-[heading Remarks]
-
-The non-blocking mode has no effect on the behaviour of asynchronous operations. Asynchronous operations will never fail with the error `boost::asio::error::would_block`.
 
+[endsect]
 
 
 
-[endsect]
+[section:close raw_socket_service::close]
 
+[indexterm2 close..raw_socket_service]
+Close a raw socket implementation.
 
 
-[section:overload2 posix::basic_stream_descriptor::non_blocking (2 of 3 overloads)]
+ boost::system::error_code close(
+ implementation_type & impl,
+ boost::system::error_code & ec);
 
 
-['Inherited from posix::basic_descriptor.]
 
+[endsect]
 
-Sets the non-blocking mode of the descriptor.
 
 
- void non_blocking(
- bool mode);
+[section:connect raw_socket_service::connect]
 
+[indexterm2 connect..raw_socket_service]
+Connect the raw socket to the specified endpoint.
 
 
-[heading Parameters]
-
+ boost::system::error_code connect(
+ implementation_type & impl,
+ const endpoint_type & peer_endpoint,
+ boost::system::error_code & ec);
 
-[variablelist
-
-[[mode][If `true`, the descriptor's synchronous operations will fail with `boost::asio::error::would_block` if they are unable to perform the requested operation immediately. If `false`, synchronous operations will block until complete.]]
 
-]
 
+[endsect]
 
-[heading Exceptions]
-
 
-[variablelist
-
-[[boost::system::system_error][Thrown on failure.]]
 
-]
+[section:construct raw_socket_service::construct]
 
+[indexterm2 construct..raw_socket_service]
+Construct a new raw socket implementation.
 
-[heading Remarks]
-
-The non-blocking mode has no effect on the behaviour of asynchronous operations. Asynchronous operations will never fail with the error `boost::asio::error::would_block`.
 
+ void construct(
+ implementation_type & impl);
 
 
 
@@ -71529,195 +75031,156 @@
 
 
 
-[section:overload3 posix::basic_stream_descriptor::non_blocking (3 of 3 overloads)]
-
+[section:destroy raw_socket_service::destroy]
 
-['Inherited from posix::basic_descriptor.]
+[indexterm2 destroy..raw_socket_service]
+Destroy a raw socket implementation.
 
 
-Sets the non-blocking mode of the descriptor.
+ void destroy(
+ implementation_type & impl);
 
 
- boost::system::error_code non_blocking(
- bool mode,
- boost::system::error_code & ec);
 
+[endsect]
 
 
-[heading Parameters]
-
 
-[variablelist
-
-[[mode][If `true`, the descriptor's synchronous operations will fail with `boost::asio::error::would_block` if they are unable to perform the requested operation immediately. If `false`, synchronous operations will block until complete.]]
+[section:endpoint_type raw_socket_service::endpoint_type]
 
-[[ec][Set to indicate what error occurred, if any.]]
+[indexterm2 endpoint_type..raw_socket_service]
+The endpoint type.
 
-]
 
+ typedef Protocol::endpoint endpoint_type;
 
-[heading Remarks]
-
-The non-blocking mode has no effect on the behaviour of asynchronous operations. Asynchronous operations will never fail with the error `boost::asio::error::would_block`.
 
 
+[heading Requirements]
 
+[*Header: ][^boost/asio/raw_socket_service.hpp]
 
-[endsect]
+[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
-[section:non_blocking_io posix::basic_stream_descriptor::non_blocking_io]
-
 
-['Inherited from posix::descriptor_base.]
+[section:get_io_service raw_socket_service::get_io_service]
 
-[indexterm2 non_blocking_io..posix::basic_stream_descriptor]
-(Deprecated: Use non\_blocking().) IO control command to set the blocking mode of the descriptor.
 
+['Inherited from io_service.]
 
- typedef implementation_defined non_blocking_io;
+[indexterm2 get_io_service..raw_socket_service]
+Get the [link boost_asio.reference.io_service `io_service`] object that owns the service.
 
 
+ boost::asio::io_service & get_io_service();
 
-Implements the FIONBIO IO control command.
 
 
-[heading Example]
-
+[endsect]
 
 
- boost::asio::posix::stream_descriptor descriptor(io_service);
- ...
- boost::asio::descriptor_base::non_blocking_io command(true);
- descriptor.io_control(command);
 
+[section:get_option raw_socket_service::get_option]
 
+[indexterm2 get_option..raw_socket_service]
+Get a socket option.
 
 
+ template<
+ typename ``[link boost_asio.reference.GettableSocketOption GettableSocketOption]``>
+ boost::system::error_code get_option(
+ const implementation_type & impl,
+ GettableSocketOption & option,
+ boost::system::error_code & ec) const;
 
 
 
-[heading Requirements]
+[endsect]
 
-[*Header: ][^boost/asio/posix/basic_stream_descriptor.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
 
+[section:id raw_socket_service::id]
 
-[endsect]
+[indexterm2 id..raw_socket_service]
+The unique service identifier.
 
 
+ static boost::asio::io_service::id id;
 
-[section:operator_eq_ posix::basic_stream_descriptor::operator=]
 
-[indexterm2 operator=..posix::basic_stream_descriptor]
-Move-assign a [link boost_asio.reference.posix__basic_stream_descriptor `posix::basic_stream_descriptor`] from another.
 
+[endsect]
 
- basic_stream_descriptor & operator=(
- basic_stream_descriptor && other);
 
 
-This assignment operator moves a stream descriptor from one object to another.
+[section:implementation_type raw_socket_service::implementation_type]
 
+[indexterm2 implementation_type..raw_socket_service]
+The type of a raw socket.
 
-[heading Parameters]
-
 
-[variablelist
-
-[[other][The other [link boost_asio.reference.posix__basic_stream_descriptor `posix::basic_stream_descriptor`] object from which the move will occur.]]
+ typedef implementation_defined implementation_type;
 
-]
 
 
-[heading Remarks]
-
-Following the move, the moved-from object is in the same state as if constructed using the `basic_stream_descriptor(io_service&) constructor`.
+[heading Requirements]
 
+[*Header: ][^boost/asio/raw_socket_service.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
-[section:read_some posix::basic_stream_descriptor::read_some]
 
-[indexterm2 read_some..posix::basic_stream_descriptor]
-Read some data from the descriptor.
+[section:io_control raw_socket_service::io_control]
 
+[indexterm2 io_control..raw_socket_service]
+Perform an IO control command on the socket.
 
- template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
- std::size_t ``[link boost_asio.reference.posix__basic_stream_descriptor.read_some.overload1 read_some]``(
- const MutableBufferSequence & buffers);
- `` [''''&raquo;''' [link boost_asio.reference.posix__basic_stream_descriptor.read_some.overload1 more...]]``
 
   template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
- std::size_t ``[link boost_asio.reference.posix__basic_stream_descriptor.read_some.overload2 read_some]``(
- const MutableBufferSequence & buffers,
+ typename ``[link boost_asio.reference.IoControlCommand IoControlCommand]``>
+ boost::system::error_code io_control(
+ implementation_type & impl,
+ IoControlCommand & command,
       boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.posix__basic_stream_descriptor.read_some.overload2 more...]]``
-
-
-[section:overload1 posix::basic_stream_descriptor::read_some (1 of 2 overloads)]
-
-
-Read some data from the descriptor.
-
-
- template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
- std::size_t read_some(
- const MutableBufferSequence & buffers);
 
 
-This function is used to read data from the stream descriptor. The function call will block until one or more bytes of data has been read successfully, or until an error occurs.
-
-
-[heading Parameters]
-
 
-[variablelist
-
-[[buffers][One or more buffers into which the data will be read.]]
+[endsect]
 
-]
 
 
-[heading Return Value]
-
-The number of bytes read.
+[section:is_open raw_socket_service::is_open]
 
+[indexterm2 is_open..raw_socket_service]
+Determine whether the socket is open.
 
-[heading Exceptions]
-
 
-[variablelist
-
-[[boost::system::system_error][Thrown on failure. An error code of `boost::asio::error::eof` indicates that the connection was closed by the peer.]]
+ bool is_open(
+ const implementation_type & impl) const;
 
-]
 
 
-[heading Remarks]
-
-The read\_some operation may not read all of the requested number of bytes. Consider using the [link boost_asio.reference.read `read`] function if you need to ensure that the requested amount of data is read before the blocking operation completes.
+[endsect]
 
 
-[heading Example]
-
-To read into a single data buffer use the [link boost_asio.reference.buffer `buffer`] function as follows:
 
- descriptor.read_some(boost::asio::buffer(data, size));
+[section:local_endpoint raw_socket_service::local_endpoint]
 
+[indexterm2 local_endpoint..raw_socket_service]
+Get the local endpoint.
 
-See the [link boost_asio.reference.buffer `buffer`] documentation for information on reading into multiple buffers in one go, and how to use it with arrays, boost::array or std::vector.
 
+ endpoint_type local_endpoint(
+ const implementation_type & impl,
+ boost::system::error_code & ec) const;
 
 
 
@@ -71725,242 +75188,211 @@
 
 
 
-[section:overload2 posix::basic_stream_descriptor::read_some (2 of 2 overloads)]
-
-
-Read some data from the descriptor.
-
-
- template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
- std::size_t read_some(
- const MutableBufferSequence & buffers,
- boost::system::error_code & ec);
-
-
-This function is used to read data from the stream descriptor. The function call will block until one or more bytes of data has been read successfully, or until an error occurs.
+[section:move_assign raw_socket_service::move_assign]
 
+[indexterm2 move_assign..raw_socket_service]
+Move-assign from another raw socket implementation.
 
-[heading Parameters]
-
 
-[variablelist
-
-[[buffers][One or more buffers into which the data will be read.]]
+ void move_assign(
+ implementation_type & impl,
+ raw_socket_service & other_service,
+ implementation_type & other_impl);
 
-[[ec][Set to indicate what error occurred, if any.]]
 
-]
 
+[endsect]
 
-[heading Return Value]
-
-The number of bytes read. Returns 0 if an error occurred.
 
 
-[heading Remarks]
-
-The read\_some operation may not read all of the requested number of bytes. Consider using the [link boost_asio.reference.read `read`] function if you need to ensure that the requested amount of data is read before the blocking operation completes.
+[section:move_construct raw_socket_service::move_construct]
 
+[indexterm2 move_construct..raw_socket_service]
+Move-construct a new raw socket implementation.
 
 
+ void move_construct(
+ implementation_type & impl,
+ implementation_type & other_impl);
 
-[endsect]
 
 
 [endsect]
 
 
-[section:release posix::basic_stream_descriptor::release]
-
-
-['Inherited from posix::basic_descriptor.]
-
-[indexterm2 release..posix::basic_stream_descriptor]
-Release ownership of the native descriptor implementation.
 
+[section:native raw_socket_service::native]
 
- native_handle_type release();
+[indexterm2 native..raw_socket_service]
+(Deprecated: Use `native_handle()`.) Get the native socket implementation.
 
 
-This function may be used to obtain the underlying representation of the descriptor. After calling this function, `is_open()` returns false. The caller is responsible for closing the descriptor.
+ native_type native(
+ implementation_type & impl);
 
-All outstanding asynchronous read or write operations will finish immediately, and the handlers for cancelled operations will be passed the `boost::asio::error::operation_aborted` error.
 
 
 [endsect]
 
 
 
-[section:service posix::basic_stream_descriptor::service]
-
+[section:native_handle raw_socket_service::native_handle]
 
-['Inherited from basic_io_object.]
+[indexterm2 native_handle..raw_socket_service]
+Get the native socket implementation.
 
-[indexterm2 service..posix::basic_stream_descriptor]
-(Deprecated: Use `get_service()`.) The service associated with the I/O object.
 
+ native_handle_type native_handle(
+ implementation_type & impl);
 
- service_type & service;
 
 
+[endsect]
 
-[heading Remarks]
-
-Available only for services that do not support movability.
 
 
+[section:native_handle_type raw_socket_service::native_handle_type]
 
+[indexterm2 native_handle_type..raw_socket_service]
+The native socket type.
 
-[endsect]
 
+ typedef implementation_defined native_handle_type;
 
 
-[section:service_type posix::basic_stream_descriptor::service_type]
 
+[heading Requirements]
 
-['Inherited from basic_io_object.]
+[*Header: ][^boost/asio/raw_socket_service.hpp]
 
-[indexterm2 service_type..posix::basic_stream_descriptor]
-The type of the service that will be used to provide I/O operations.
+[*Convenience header: ][^boost/asio.hpp]
 
 
- typedef StreamDescriptorService service_type;
+[endsect]
 
 
+[section:native_non_blocking raw_socket_service::native_non_blocking]
 
-[heading Requirements]
+[indexterm2 native_non_blocking..raw_socket_service]
+Gets the non-blocking mode of the native socket implementation.
 
-[*Header: ][^boost/asio/posix/basic_stream_descriptor.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
+ bool ``[link boost_asio.reference.raw_socket_service.native_non_blocking.overload1 native_non_blocking]``(
+ const implementation_type & impl) const;
+ `` [''''&raquo;''' [link boost_asio.reference.raw_socket_service.native_non_blocking.overload1 more...]]``
 
 
-[endsect]
+Sets the non-blocking mode of the native socket implementation.
 
 
-[section:write_some posix::basic_stream_descriptor::write_some]
+ boost::system::error_code ``[link boost_asio.reference.raw_socket_service.native_non_blocking.overload2 native_non_blocking]``(
+ implementation_type & impl,
+ bool mode,
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.raw_socket_service.native_non_blocking.overload2 more...]]``
 
-[indexterm2 write_some..posix::basic_stream_descriptor]
-Write some data to the descriptor.
 
+[section:overload1 raw_socket_service::native_non_blocking (1 of 2 overloads)]
 
- template<
- typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
- std::size_t ``[link boost_asio.reference.posix__basic_stream_descriptor.write_some.overload1 write_some]``(
- const ConstBufferSequence & buffers);
- `` [''''&raquo;''' [link boost_asio.reference.posix__basic_stream_descriptor.write_some.overload1 more...]]``
 
- template<
- typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
- std::size_t ``[link boost_asio.reference.posix__basic_stream_descriptor.write_some.overload2 write_some]``(
- const ConstBufferSequence & buffers,
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.posix__basic_stream_descriptor.write_some.overload2 more...]]``
+Gets the non-blocking mode of the native socket implementation.
 
 
-[section:overload1 posix::basic_stream_descriptor::write_some (1 of 2 overloads)]
+ bool native_non_blocking(
+ const implementation_type & impl) const;
 
 
-Write some data to the descriptor.
 
+[endsect]
 
- template<
- typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
- std::size_t write_some(
- const ConstBufferSequence & buffers);
 
 
-This function is used to write data to the stream descriptor. The function call will block until one or more bytes of the data has been written successfully, or until an error occurs.
+[section:overload2 raw_socket_service::native_non_blocking (2 of 2 overloads)]
 
 
-[heading Parameters]
-
+Sets the non-blocking mode of the native socket implementation.
 
-[variablelist
-
-[[buffers][One or more data buffers to be written to the descriptor.]]
 
-]
+ boost::system::error_code native_non_blocking(
+ implementation_type & impl,
+ bool mode,
+ boost::system::error_code & ec);
 
 
-[heading Return Value]
-
-The number of bytes written.
 
+[endsect]
 
-[heading Exceptions]
-
 
-[variablelist
-
-[[boost::system::system_error][Thrown on failure. An error code of `boost::asio::error::eof` indicates that the connection was closed by the peer.]]
+[endsect]
 
-]
 
+[section:native_type raw_socket_service::native_type]
 
-[heading Remarks]
-
-The write\_some operation may not transmit all of the data to the peer. Consider using the [link boost_asio.reference.write `write`] function if you need to ensure that all data is written before the blocking operation completes.
+[indexterm2 native_type..raw_socket_service]
+(Deprecated: Use native\_handle\_type.) The native socket type.
 
 
-[heading Example]
-
-To write a single data buffer use the [link boost_asio.reference.buffer `buffer`] function as follows:
+ typedef implementation_defined native_type;
 
- descriptor.write_some(boost::asio::buffer(data, size));
 
 
-See the [link boost_asio.reference.buffer `buffer`] documentation for information on writing multiple buffers in one go, and how to use it with arrays, boost::array or std::vector.
+[heading Requirements]
 
+[*Header: ][^boost/asio/raw_socket_service.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
+[section:non_blocking raw_socket_service::non_blocking]
 
-[section:overload2 posix::basic_stream_descriptor::write_some (2 of 2 overloads)]
+[indexterm2 non_blocking..raw_socket_service]
+Gets the non-blocking mode of the socket.
 
 
-Write some data to the descriptor.
+ bool ``[link boost_asio.reference.raw_socket_service.non_blocking.overload1 non_blocking]``(
+ const implementation_type & impl) const;
+ `` [''''&raquo;''' [link boost_asio.reference.raw_socket_service.non_blocking.overload1 more...]]``
 
 
- template<
- typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
- std::size_t write_some(
- const ConstBufferSequence & buffers,
+Sets the non-blocking mode of the socket.
+
+
+ boost::system::error_code ``[link boost_asio.reference.raw_socket_service.non_blocking.overload2 non_blocking]``(
+ implementation_type & impl,
+ bool mode,
       boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.raw_socket_service.non_blocking.overload2 more...]]``
 
 
-This function is used to write data to the stream descriptor. The function call will block until one or more bytes of the data has been written successfully, or until an error occurs.
+[section:overload1 raw_socket_service::non_blocking (1 of 2 overloads)]
 
 
-[heading Parameters]
-
+Gets the non-blocking mode of the socket.
 
-[variablelist
-
-[[buffers][One or more data buffers to be written to the descriptor.]]
 
-[[ec][Set to indicate what error occurred, if any.]]
+ bool non_blocking(
+ const implementation_type & impl) const;
 
-]
 
 
-[heading Return Value]
-
-The number of bytes written. Returns 0 if an error occurred.
+[endsect]
 
 
-[heading Remarks]
-
-The write\_some operation may not transmit all of the data to the peer. Consider using the [link boost_asio.reference.write `write`] function if you need to ensure that all data is written before the blocking operation completes.
+
+[section:overload2 raw_socket_service::non_blocking (2 of 2 overloads)]
 
 
+Sets the non-blocking mode of the socket.
 
 
-[endsect]
+ boost::system::error_code non_blocking(
+ implementation_type & impl,
+ bool mode,
+ boost::system::error_code & ec);
+
 
 
 [endsect]
@@ -71968,139 +75400,149 @@
 
 [endsect]
 
-[section:posix__descriptor_base posix::descriptor_base]
 
+[section:open raw_socket_service::open]
 
-The [link boost_asio.reference.posix__descriptor_base `posix::descriptor_base`] class is used as a base for the [link boost_asio.reference.posix__basic_stream_descriptor `posix::basic_stream_descriptor`] class template so that we have a common place to define the associated IO control commands.
+[indexterm2 open..raw_socket_service]
 
+ boost::system::error_code open(
+ implementation_type & impl,
+ const protocol_type & protocol,
+ boost::system::error_code & ec);
 
- class descriptor_base
 
 
-[heading Types]
-[table
- [[Name][Description]]
+[endsect]
 
- [
 
- [[link boost_asio.reference.posix__descriptor_base.bytes_readable [*bytes_readable]]]
- [IO control command to get the amount of data that can be read without blocking. ]
-
- ]
 
- [
+[section:protocol_type raw_socket_service::protocol_type]
 
- [[link boost_asio.reference.posix__descriptor_base.non_blocking_io [*non_blocking_io]]]
- [(Deprecated: Use non_blocking().) IO control command to set the blocking mode of the descriptor. ]
-
- ]
+[indexterm2 protocol_type..raw_socket_service]
+The protocol type.
 
-]
 
-[heading Protected Member Functions]
-[table
- [[Name][Description]]
+ typedef Protocol protocol_type;
+
 
- [
- [[link boost_asio.reference.posix__descriptor_base._descriptor_base [*~descriptor_base]]]
- [Protected destructor to prevent deletion through this type. ]
- ]
-
-]
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/posix/descriptor_base.hpp]
+[*Header: ][^boost/asio/raw_socket_service.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
 
-[section:bytes_readable posix::descriptor_base::bytes_readable]
+[endsect]
 
-[indexterm2 bytes_readable..posix::descriptor_base]
-IO control command to get the amount of data that can be read without blocking.
 
 
- typedef implementation_defined bytes_readable;
+[section:raw_socket_service raw_socket_service::raw_socket_service]
 
+[indexterm2 raw_socket_service..raw_socket_service]
+Construct a new raw socket service for the specified [link boost_asio.reference.io_service `io_service`].
 
 
-Implements the FIONREAD IO control command.
+ raw_socket_service(
+ boost::asio::io_service & io_service);
 
 
-[heading Example]
-
 
+[endsect]
 
- boost::asio::posix::stream_descriptor descriptor(io_service);
- ...
- boost::asio::descriptor_base::bytes_readable command(true);
- descriptor.io_control(command);
- std::size_t bytes_readable = command.get();
 
 
+[section:receive raw_socket_service::receive]
 
+[indexterm2 receive..raw_socket_service]
+Receive some data from the peer.
 
 
+ template<
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
+ std::size_t receive(
+ implementation_type & impl,
+ const MutableBufferSequence & buffers,
+ socket_base::message_flags flags,
+ boost::system::error_code & ec);
 
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/posix/descriptor_base.hpp]
+[endsect]
 
-[*Convenience header: ][^boost/asio.hpp]
 
 
-[endsect]
+[section:receive_from raw_socket_service::receive_from]
 
+[indexterm2 receive_from..raw_socket_service]
+Receive raw data with the endpoint of the sender.
 
 
-[section:non_blocking_io posix::descriptor_base::non_blocking_io]
+ template<
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
+ std::size_t receive_from(
+ implementation_type & impl,
+ const MutableBufferSequence & buffers,
+ endpoint_type & sender_endpoint,
+ socket_base::message_flags flags,
+ boost::system::error_code & ec);
 
-[indexterm2 non_blocking_io..posix::descriptor_base]
-(Deprecated: Use non\_blocking().) IO control command to set the blocking mode of the descriptor.
 
 
- typedef implementation_defined non_blocking_io;
+[endsect]
 
 
 
-Implements the FIONBIO IO control command.
+[section:remote_endpoint raw_socket_service::remote_endpoint]
 
+[indexterm2 remote_endpoint..raw_socket_service]
+Get the remote endpoint.
 
-[heading Example]
-
 
+ endpoint_type remote_endpoint(
+ const implementation_type & impl,
+ boost::system::error_code & ec) const;
 
- boost::asio::posix::stream_descriptor descriptor(io_service);
- ...
- boost::asio::descriptor_base::non_blocking_io command(true);
- descriptor.io_control(command);
 
 
+[endsect]
 
 
 
+[section:send raw_socket_service::send]
 
+[indexterm2 send..raw_socket_service]
+Send the given data to the peer.
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/posix/descriptor_base.hpp]
+ template<
+ typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
+ std::size_t send(
+ implementation_type & impl,
+ const ConstBufferSequence & buffers,
+ socket_base::message_flags flags,
+ boost::system::error_code & ec);
 
-[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
 
-[section:_descriptor_base posix::descriptor_base::~descriptor_base]
+[section:send_to raw_socket_service::send_to]
 
-[indexterm2 ~descriptor_base..posix::descriptor_base]
-Protected destructor to prevent deletion through this type.
+[indexterm2 send_to..raw_socket_service]
+Send raw data to the specified endpoint.
 
 
- ~descriptor_base();
+ template<
+ typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
+ std::size_t send_to(
+ implementation_type & impl,
+ const ConstBufferSequence & buffers,
+ const endpoint_type & destination,
+ socket_base::message_flags flags,
+ boost::system::error_code & ec);
 
 
 
@@ -72108,465 +75550,279 @@
 
 
 
-[endsect]
-
+[section:set_option raw_socket_service::set_option]
 
-[section:posix__stream_descriptor posix::stream_descriptor]
+[indexterm2 set_option..raw_socket_service]
+Set a socket option.
 
-[indexterm1 posix::stream_descriptor]
-Typedef for the typical usage of a stream-oriented descriptor.
 
+ template<
+ typename ``[link boost_asio.reference.SettableSocketOption SettableSocketOption]``>
+ boost::system::error_code set_option(
+ implementation_type & impl,
+ const SettableSocketOption & option,
+ boost::system::error_code & ec);
 
- typedef basic_stream_descriptor stream_descriptor;
 
 
-[heading Types]
-[table
- [[Name][Description]]
+[endsect]
 
- [
 
- [[link boost_asio.reference.posix__basic_stream_descriptor.bytes_readable [*bytes_readable]]]
- [IO control command to get the amount of data that can be read without blocking. ]
-
- ]
 
- [
+[section:shutdown raw_socket_service::shutdown]
 
- [[link boost_asio.reference.posix__basic_stream_descriptor.implementation_type [*implementation_type]]]
- [The underlying implementation type of I/O object. ]
-
- ]
+[indexterm2 shutdown..raw_socket_service]
+Disable sends or receives on the socket.
 
- [
 
- [[link boost_asio.reference.posix__basic_stream_descriptor.lowest_layer_type [*lowest_layer_type]]]
- [A basic_descriptor is always the lowest layer. ]
-
- ]
+ boost::system::error_code shutdown(
+ implementation_type & impl,
+ socket_base::shutdown_type what,
+ boost::system::error_code & ec);
 
- [
 
- [[link boost_asio.reference.posix__basic_stream_descriptor.native_handle_type [*native_handle_type]]]
- [The native representation of a descriptor. ]
-
- ]
 
- [
+[endsect]
 
- [[link boost_asio.reference.posix__basic_stream_descriptor.native_type [*native_type]]]
- [(Deprecated: Use native_handle_type.) The native representation of a descriptor. ]
-
- ]
 
- [
 
- [[link boost_asio.reference.posix__basic_stream_descriptor.non_blocking_io [*non_blocking_io]]]
- [(Deprecated: Use non_blocking().) IO control command to set the blocking mode of the descriptor. ]
-
- ]
+[endsect]
 
- [
+[section:read read]
 
- [[link boost_asio.reference.posix__basic_stream_descriptor.service_type [*service_type]]]
- [The type of the service that will be used to provide I/O operations. ]
-
- ]
+[indexterm1 read]
+Attempt to read a certain amount of data from a stream before returning.
 
-]
+
+ template<
+ typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
+ std::size_t ``[link boost_asio.reference.read.overload1 read]``(
+ SyncReadStream & s,
+ const MutableBufferSequence & buffers);
+ `` [''''&raquo;''' [link boost_asio.reference.read.overload1 more...]]``
 
-[heading Member Functions]
-[table
- [[Name][Description]]
+ template<
+ typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
+ std::size_t ``[link boost_asio.reference.read.overload2 read]``(
+ SyncReadStream & s,
+ const MutableBufferSequence & buffers,
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.read.overload2 more...]]``
 
- [
- [[link boost_asio.reference.posix__basic_stream_descriptor.assign [*assign]]]
- [Assign an existing native descriptor to the descriptor. ]
- ]
-
- [
- [[link boost_asio.reference.posix__basic_stream_descriptor.async_read_some [*async_read_some]]]
- [Start an asynchronous read. ]
- ]
-
- [
- [[link boost_asio.reference.posix__basic_stream_descriptor.async_write_some [*async_write_some]]]
- [Start an asynchronous write. ]
- ]
-
- [
- [[link boost_asio.reference.posix__basic_stream_descriptor.basic_stream_descriptor [*basic_stream_descriptor]]]
- [Construct a basic_stream_descriptor without opening it.
+ template<
+ typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``,
+ typename CompletionCondition>
+ std::size_t ``[link boost_asio.reference.read.overload3 read]``(
+ SyncReadStream & s,
+ const MutableBufferSequence & buffers,
+ CompletionCondition completion_condition);
+ `` [''''&raquo;''' [link boost_asio.reference.read.overload3 more...]]``
 
- Construct a basic_stream_descriptor on an existing native descriptor.
+ template<
+ typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``,
+ typename CompletionCondition>
+ std::size_t ``[link boost_asio.reference.read.overload4 read]``(
+ SyncReadStream & s,
+ const MutableBufferSequence & buffers,
+ CompletionCondition completion_condition,
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.read.overload4 more...]]``
 
- Move-construct a basic_stream_descriptor from another. ]
- ]
-
- [
- [[link boost_asio.reference.posix__basic_stream_descriptor.cancel [*cancel]]]
- [Cancel all asynchronous operations associated with the descriptor. ]
- ]
-
- [
- [[link boost_asio.reference.posix__basic_stream_descriptor.close [*close]]]
- [Close the descriptor. ]
- ]
-
- [
- [[link boost_asio.reference.posix__basic_stream_descriptor.get_io_service [*get_io_service]]]
- [Get the io_service associated with the object. ]
- ]
-
- [
- [[link boost_asio.reference.posix__basic_stream_descriptor.io_control [*io_control]]]
- [Perform an IO control command on the descriptor. ]
- ]
-
- [
- [[link boost_asio.reference.posix__basic_stream_descriptor.is_open [*is_open]]]
- [Determine whether the descriptor is open. ]
- ]
-
- [
- [[link boost_asio.reference.posix__basic_stream_descriptor.lowest_layer [*lowest_layer]]]
- [Get a reference to the lowest layer.
+ template<
+ typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
+ typename Allocator>
+ std::size_t ``[link boost_asio.reference.read.overload5 read]``(
+ SyncReadStream & s,
+ basic_streambuf< Allocator > & b);
+ `` [''''&raquo;''' [link boost_asio.reference.read.overload5 more...]]``
 
- Get a const reference to the lowest layer. ]
- ]
-
- [
- [[link boost_asio.reference.posix__basic_stream_descriptor.native [*native]]]
- [(Deprecated: Use native_handle().) Get the native descriptor representation. ]
- ]
-
- [
- [[link boost_asio.reference.posix__basic_stream_descriptor.native_handle [*native_handle]]]
- [Get the native descriptor representation. ]
- ]
-
- [
- [[link boost_asio.reference.posix__basic_stream_descriptor.native_non_blocking [*native_non_blocking]]]
- [Gets the non-blocking mode of the native descriptor implementation.
+ template<
+ typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
+ typename Allocator>
+ std::size_t ``[link boost_asio.reference.read.overload6 read]``(
+ SyncReadStream & s,
+ basic_streambuf< Allocator > & b,
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.read.overload6 more...]]``
 
- Sets the non-blocking mode of the native descriptor implementation. ]
- ]
-
- [
- [[link boost_asio.reference.posix__basic_stream_descriptor.non_blocking [*non_blocking]]]
- [Gets the non-blocking mode of the descriptor.
+ template<
+ typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
+ typename Allocator,
+ typename CompletionCondition>
+ std::size_t ``[link boost_asio.reference.read.overload7 read]``(
+ SyncReadStream & s,
+ basic_streambuf< Allocator > & b,
+ CompletionCondition completion_condition);
+ `` [''''&raquo;''' [link boost_asio.reference.read.overload7 more...]]``
 
- Sets the non-blocking mode of the descriptor. ]
- ]
-
- [
- [[link boost_asio.reference.posix__basic_stream_descriptor.operator_eq_ [*operator=]]]
- [Move-assign a basic_stream_descriptor from another. ]
- ]
-
- [
- [[link boost_asio.reference.posix__basic_stream_descriptor.read_some [*read_some]]]
- [Read some data from the descriptor. ]
- ]
-
- [
- [[link boost_asio.reference.posix__basic_stream_descriptor.release [*release]]]
- [Release ownership of the native descriptor implementation. ]
- ]
-
- [
- [[link boost_asio.reference.posix__basic_stream_descriptor.write_some [*write_some]]]
- [Write some data to the descriptor. ]
- ]
-
-]
+ template<
+ typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
+ typename Allocator,
+ typename CompletionCondition>
+ std::size_t ``[link boost_asio.reference.read.overload8 read]``(
+ SyncReadStream & s,
+ basic_streambuf< Allocator > & b,
+ CompletionCondition completion_condition,
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.read.overload8 more...]]``
 
-[heading Protected Member Functions]
-[table
- [[Name][Description]]
+[heading Requirements]
 
- [
- [[link boost_asio.reference.posix__basic_stream_descriptor.get_implementation [*get_implementation]]]
- [Get the underlying implementation of the I/O object. ]
- ]
-
- [
- [[link boost_asio.reference.posix__basic_stream_descriptor.get_service [*get_service]]]
- [Get the service associated with the I/O object. ]
- ]
-
-]
+[*Header: ][^boost/asio/read.hpp]
 
-[heading Protected Data Members]
-[table
- [[Name][Description]]
+[*Convenience header: ][^boost/asio.hpp]
 
- [
- [[link boost_asio.reference.posix__basic_stream_descriptor.implementation [*implementation]]]
- [(Deprecated: Use get_implementation().) The underlying implementation of the I/O object. ]
- ]
 
- [
- [[link boost_asio.reference.posix__basic_stream_descriptor.service [*service]]]
- [(Deprecated: Use get_service().) The service associated with the I/O object. ]
- ]
+[section:overload1 read (1 of 8 overloads)]
 
-]
 
-The [link boost_asio.reference.posix__basic_stream_descriptor `posix::basic_stream_descriptor`] class template provides asynchronous and blocking stream-oriented descriptor functionality.
+Attempt to read a certain amount of data from a stream before returning.
 
 
-[heading Thread Safety]
-
-[*Distinct] [*objects:] Safe.
+ template<
+ typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
+ std::size_t read(
+ SyncReadStream & s,
+ const MutableBufferSequence & buffers);
 
-[*Shared] [*objects:] Unsafe.
 
+This function is used to read a certain number of bytes of data from a stream. The call will block until one of the following conditions is true:
 
 
+* The supplied buffers are full. That is, the bytes transferred is equal to the sum of the buffer sizes.
 
 
-[heading Requirements]
+* An error occurred.
 
-[*Header: ][^boost/asio/posix/stream_descriptor.hpp]
+This operation is implemented in terms of zero or more calls to the stream's read\_some function.
 
-[*Convenience header: ][^boost/asio.hpp]
 
+[heading Parameters]
+
 
-[endsect]
+[variablelist
+
+[[s][The stream from which the data is to be read. The type must support the SyncReadStream concept.]]
 
+[[buffers][One or more buffers into which the data will be read. The sum of the buffer sizes indicates the maximum number of bytes to read from the stream.]]
 
-[section:posix__stream_descriptor_service posix::stream_descriptor_service]
+]
 
 
-Default service implementation for a stream descriptor.
+[heading Return Value]
+
+The number of bytes transferred.
 
 
- class stream_descriptor_service :
- public io_service::service
+[heading Exceptions]
+
 
+[variablelist
+
+[[boost::system::system_error][Thrown on failure.]]
 
-[heading Types]
-[table
- [[Name][Description]]
+]
 
- [
 
- [[link boost_asio.reference.posix__stream_descriptor_service.implementation_type [*implementation_type]]]
- [The type of a stream descriptor implementation. ]
+[heading Example]
   
- ]
+To read into a single data buffer use the [link boost_asio.reference.buffer `buffer`] function as follows:
 
- [
+ boost::asio::read(s, boost::asio::buffer(data, size));
 
- [[link boost_asio.reference.posix__stream_descriptor_service.native_handle_type [*native_handle_type]]]
- [The native descriptor type. ]
-
- ]
 
- [
+See the [link boost_asio.reference.buffer `buffer`] documentation for information on reading into multiple buffers in one go, and how to use it with arrays, boost::array or std::vector.
 
- [[link boost_asio.reference.posix__stream_descriptor_service.native_type [*native_type]]]
- [(Deprecated: Use native_handle_type.) The native descriptor type. ]
-
- ]
 
-]
+[heading Remarks]
+
+This overload is equivalent to calling:
 
-[heading Member Functions]
-[table
- [[Name][Description]]
+ boost::asio::read(
+ s, buffers,
+ boost::asio::transfer_all());
 
- [
- [[link boost_asio.reference.posix__stream_descriptor_service.assign [*assign]]]
- [Assign an existing native descriptor to a stream descriptor. ]
- ]
-
- [
- [[link boost_asio.reference.posix__stream_descriptor_service.async_read_some [*async_read_some]]]
- [Start an asynchronous read. ]
- ]
-
- [
- [[link boost_asio.reference.posix__stream_descriptor_service.async_write_some [*async_write_some]]]
- [Start an asynchronous write. ]
- ]
-
- [
- [[link boost_asio.reference.posix__stream_descriptor_service.cancel [*cancel]]]
- [Cancel all asynchronous operations associated with the descriptor. ]
- ]
-
- [
- [[link boost_asio.reference.posix__stream_descriptor_service.close [*close]]]
- [Close a stream descriptor implementation. ]
- ]
-
- [
- [[link boost_asio.reference.posix__stream_descriptor_service.construct [*construct]]]
- [Construct a new stream descriptor implementation. ]
- ]
-
- [
- [[link boost_asio.reference.posix__stream_descriptor_service.destroy [*destroy]]]
- [Destroy a stream descriptor implementation. ]
- ]
-
- [
- [[link boost_asio.reference.posix__stream_descriptor_service.get_io_service [*get_io_service]]]
- [Get the io_service object that owns the service. ]
- ]
-
- [
- [[link boost_asio.reference.posix__stream_descriptor_service.io_control [*io_control]]]
- [Perform an IO control command on the descriptor. ]
- ]
-
- [
- [[link boost_asio.reference.posix__stream_descriptor_service.is_open [*is_open]]]
- [Determine whether the descriptor is open. ]
- ]
-
- [
- [[link boost_asio.reference.posix__stream_descriptor_service.move_assign [*move_assign]]]
- [Move-assign from another stream descriptor implementation. ]
- ]
-
- [
- [[link boost_asio.reference.posix__stream_descriptor_service.move_construct [*move_construct]]]
- [Move-construct a new stream descriptor implementation. ]
- ]
-
- [
- [[link boost_asio.reference.posix__stream_descriptor_service.native [*native]]]
- [(Deprecated: Use native_handle().) Get the native descriptor implementation. ]
- ]
-
- [
- [[link boost_asio.reference.posix__stream_descriptor_service.native_handle [*native_handle]]]
- [Get the native descriptor implementation. ]
- ]
-
- [
- [[link boost_asio.reference.posix__stream_descriptor_service.native_non_blocking [*native_non_blocking]]]
- [Gets the non-blocking mode of the native descriptor implementation.
 
- Sets the non-blocking mode of the native descriptor implementation. ]
- ]
-
- [
- [[link boost_asio.reference.posix__stream_descriptor_service.non_blocking [*non_blocking]]]
- [Gets the non-blocking mode of the descriptor.
 
- Sets the non-blocking mode of the descriptor. ]
- ]
-
- [
- [[link boost_asio.reference.posix__stream_descriptor_service.read_some [*read_some]]]
- [Read some data from the stream. ]
- ]
-
- [
- [[link boost_asio.reference.posix__stream_descriptor_service.release [*release]]]
- [Release ownership of the native descriptor implementation. ]
- ]
-
- [
- [[link boost_asio.reference.posix__stream_descriptor_service.stream_descriptor_service [*stream_descriptor_service]]]
- [Construct a new stream descriptor service for the specified io_service. ]
- ]
-
- [
- [[link boost_asio.reference.posix__stream_descriptor_service.write_some [*write_some]]]
- [Write the given data to the stream. ]
- ]
-
-]
 
-[heading Data Members]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.posix__stream_descriptor_service.id [*id]]]
- [The unique service identifier. ]
- ]
 
-]
 
-[heading Requirements]
+[endsect]
 
-[*Header: ][^boost/asio/posix/stream_descriptor_service.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
 
+[section:overload2 read (2 of 8 overloads)]
 
-[section:assign posix::stream_descriptor_service::assign]
 
-[indexterm2 assign..posix::stream_descriptor_service]
-Assign an existing native descriptor to a stream descriptor.
+Attempt to read a certain amount of data from a stream before returning.
 
 
- boost::system::error_code assign(
- implementation_type & impl,
- const native_handle_type & native_descriptor,
+ template<
+ typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
+ std::size_t read(
+ SyncReadStream & s,
+ const MutableBufferSequence & buffers,
       boost::system::error_code & ec);
 
 
+This function is used to read a certain number of bytes of data from a stream. The call will block until one of the following conditions is true:
 
-[endsect]
 
+* The supplied buffers are full. That is, the bytes transferred is equal to the sum of the buffer sizes.
 
 
-[section:async_read_some posix::stream_descriptor_service::async_read_some]
+* An error occurred.
 
-[indexterm2 async_read_some..posix::stream_descriptor_service]
-Start an asynchronous read.
+This operation is implemented in terms of zero or more calls to the stream's read\_some function.
 
 
- template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``,
- typename ``[link boost_asio.reference.ReadHandler ReadHandler]``>
- void async_read_some(
- implementation_type & impl,
- const MutableBufferSequence & buffers,
- ReadHandler handler);
+[heading Parameters]
+
 
+[variablelist
+
+[[s][The stream from which the data is to be read. The type must support the SyncReadStream concept.]]
 
+[[buffers][One or more buffers into which the data will be read. The sum of the buffer sizes indicates the maximum number of bytes to read from the stream.]]
 
-[endsect]
+[[ec][Set to indicate what error occurred, if any.]]
 
+]
 
 
-[section:async_write_some posix::stream_descriptor_service::async_write_some]
+[heading Return Value]
+
+The number of bytes transferred.
 
-[indexterm2 async_write_some..posix::stream_descriptor_service]
-Start an asynchronous write.
 
+[heading Example]
+
+To read into a single data buffer use the [link boost_asio.reference.buffer `buffer`] function as follows:
 
- template<
- typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``,
- typename ``[link boost_asio.reference.WriteHandler WriteHandler]``>
- void async_write_some(
- implementation_type & impl,
- const ConstBufferSequence & buffers,
- WriteHandler handler);
+ boost::asio::read(s, boost::asio::buffer(data, size), ec);
 
 
+See the [link boost_asio.reference.buffer `buffer`] documentation for information on reading into multiple buffers in one go, and how to use it with arrays, boost::array or std::vector.
 
-[endsect]
 
+[heading Remarks]
+
+This overload is equivalent to calling:
 
+ boost::asio::read(
+ s, buffers,
+ boost::asio::transfer_all(), ec);
 
-[section:cancel posix::stream_descriptor_service::cancel]
 
-[indexterm2 cancel..posix::stream_descriptor_service]
-Cancel all asynchronous operations associated with the descriptor.
 
 
- boost::system::error_code cancel(
- implementation_type & impl,
- boost::system::error_code & ec);
 
 
 
@@ -72574,164 +75830,217 @@
 
 
 
-[section:close posix::stream_descriptor_service::close]
+[section:overload3 read (3 of 8 overloads)]
 
-[indexterm2 close..posix::stream_descriptor_service]
-Close a stream descriptor implementation.
 
+Attempt to read a certain amount of data from a stream before returning.
 
- boost::system::error_code close(
- implementation_type & impl,
- boost::system::error_code & ec);
 
+ template<
+ typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``,
+ typename CompletionCondition>
+ std::size_t read(
+ SyncReadStream & s,
+ const MutableBufferSequence & buffers,
+ CompletionCondition completion_condition);
 
 
-[endsect]
+This function is used to read a certain number of bytes of data from a stream. The call will block until one of the following conditions is true:
 
 
+* The supplied buffers are full. That is, the bytes transferred is equal to the sum of the buffer sizes.
 
-[section:construct posix::stream_descriptor_service::construct]
 
-[indexterm2 construct..posix::stream_descriptor_service]
-Construct a new stream descriptor implementation.
+* The completion\_condition function object returns 0.
+
+This operation is implemented in terms of zero or more calls to the stream's read\_some function.
 
 
- void construct(
- implementation_type & impl);
+[heading Parameters]
+
 
+[variablelist
+
+[[s][The stream from which the data is to be read. The type must support the SyncReadStream concept.]]
 
+[[buffers][One or more buffers into which the data will be read. The sum of the buffer sizes indicates the maximum number of bytes to read from the stream.]]
 
-[endsect]
+[[completion_condition][The function object to be called to determine whether the read operation is complete. The signature of the function object must be:
+``
+ std::size_t completion_condition(
+ // Result of latest read_some operation.
+ const boost::system::error_code& error,
 
+ // Number of bytes transferred so far.
+ std::size_t bytes_transferred
+ );
+``
+A return value of 0 indicates that the read operation is complete. A non-zero return value indicates the maximum number of bytes to be read on the next call to the stream's read\_some function.]]
 
+]
 
-[section:destroy posix::stream_descriptor_service::destroy]
 
-[indexterm2 destroy..posix::stream_descriptor_service]
-Destroy a stream descriptor implementation.
+[heading Return Value]
+
+The number of bytes transferred.
 
 
- void destroy(
- implementation_type & impl);
+[heading Exceptions]
+
 
+[variablelist
+
+[[boost::system::system_error][Thrown on failure.]]
 
+]
 
-[endsect]
 
+[heading Example]
+
+To read into a single data buffer use the [link boost_asio.reference.buffer `buffer`] function as follows:
 
+ boost::asio::read(s, boost::asio::buffer(data, size),
+ boost::asio::transfer_at_least(32));
 
-[section:get_io_service posix::stream_descriptor_service::get_io_service]
 
+See the [link boost_asio.reference.buffer `buffer`] documentation for information on reading into multiple buffers in one go, and how to use it with arrays, boost::array or std::vector.
 
-['Inherited from io_service.]
 
-[indexterm2 get_io_service..posix::stream_descriptor_service]
-Get the [link boost_asio.reference.io_service `io_service`] object that owns the service.
 
 
- boost::asio::io_service & get_io_service();
+[endsect]
 
 
 
-[endsect]
+[section:overload4 read (4 of 8 overloads)]
 
 
+Attempt to read a certain amount of data from a stream before returning.
 
-[section:id posix::stream_descriptor_service::id]
 
-[indexterm2 id..posix::stream_descriptor_service]
-The unique service identifier.
+ template<
+ typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``,
+ typename CompletionCondition>
+ std::size_t read(
+ SyncReadStream & s,
+ const MutableBufferSequence & buffers,
+ CompletionCondition completion_condition,
+ boost::system::error_code & ec);
 
 
- static boost::asio::io_service::id id;
+This function is used to read a certain number of bytes of data from a stream. The call will block until one of the following conditions is true:
 
 
+* The supplied buffers are full. That is, the bytes transferred is equal to the sum of the buffer sizes.
 
-[endsect]
 
+* The completion\_condition function object returns 0.
 
+This operation is implemented in terms of zero or more calls to the stream's read\_some function.
 
-[section:implementation_type posix::stream_descriptor_service::implementation_type]
 
-[indexterm2 implementation_type..posix::stream_descriptor_service]
-The type of a stream descriptor implementation.
+[heading Parameters]
+
+
+[variablelist
+
+[[s][The stream from which the data is to be read. The type must support the SyncReadStream concept.]]
 
+[[buffers][One or more buffers into which the data will be read. The sum of the buffer sizes indicates the maximum number of bytes to read from the stream.]]
 
- typedef implementation_defined implementation_type;
+[[completion_condition][The function object to be called to determine whether the read operation is complete. The signature of the function object must be:
+``
+ std::size_t completion_condition(
+ // Result of latest read_some operation.
+ const boost::system::error_code& error,
 
+ // Number of bytes transferred so far.
+ std::size_t bytes_transferred
+ );
+``
+A return value of 0 indicates that the read operation is complete. A non-zero return value indicates the maximum number of bytes to be read on the next call to the stream's read\_some function.]]
 
+[[ec][Set to indicate what error occurred, if any.]]
 
-[heading Requirements]
+]
 
-[*Header: ][^boost/asio/posix/stream_descriptor_service.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
+[heading Return Value]
+
+The number of bytes read. If an error occurs, returns the total number of bytes successfully transferred prior to the error.
 
 
-[endsect]
 
 
+[endsect]
 
-[section:io_control posix::stream_descriptor_service::io_control]
 
-[indexterm2 io_control..posix::stream_descriptor_service]
-Perform an IO control command on the descriptor.
 
+[section:overload5 read (5 of 8 overloads)]
 
- template<
- typename ``[link boost_asio.reference.IoControlCommand IoControlCommand]``>
- boost::system::error_code io_control(
- implementation_type & impl,
- IoControlCommand & command,
- boost::system::error_code & ec);
 
+Attempt to read a certain amount of data from a stream before returning.
 
 
-[endsect]
+ template<
+ typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
+ typename Allocator>
+ std::size_t read(
+ SyncReadStream & s,
+ basic_streambuf< Allocator > & b);
 
 
+This function is used to read a certain number of bytes of data from a stream. The call will block until one of the following conditions is true:
 
-[section:is_open posix::stream_descriptor_service::is_open]
 
-[indexterm2 is_open..posix::stream_descriptor_service]
-Determine whether the descriptor is open.
+* The supplied buffer is full (that is, it has reached maximum size).
 
 
- bool is_open(
- const implementation_type & impl) const;
+* An error occurred.
 
+This operation is implemented in terms of zero or more calls to the stream's read\_some function.
 
 
-[endsect]
+[heading Parameters]
+
 
+[variablelist
+
+[[s][The stream from which the data is to be read. The type must support the SyncReadStream concept.]]
 
+[[b][The [link boost_asio.reference.basic_streambuf `basic_streambuf`] object into which the data will be read.]]
 
-[section:move_assign posix::stream_descriptor_service::move_assign]
+]
 
-[indexterm2 move_assign..posix::stream_descriptor_service]
-Move-assign from another stream descriptor implementation.
 
+[heading Return Value]
+
+The number of bytes transferred.
 
- void move_assign(
- implementation_type & impl,
- stream_descriptor_service & other_service,
- implementation_type & other_impl);
 
+[heading Exceptions]
+
 
+[variablelist
+
+[[boost::system::system_error][Thrown on failure.]]
 
-[endsect]
+]
 
 
+[heading Remarks]
+
+This overload is equivalent to calling:
+
+ boost::asio::read(
+ s, b,
+ boost::asio::transfer_all());
 
-[section:move_construct posix::stream_descriptor_service::move_construct]
 
-[indexterm2 move_construct..posix::stream_descriptor_service]
-Move-construct a new stream descriptor implementation.
 
 
- void move_construct(
- implementation_type & impl,
- implementation_type & other_impl);
 
 
 
@@ -72739,518 +76048,457 @@
 
 
 
-[section:native posix::stream_descriptor_service::native]
+[section:overload6 read (6 of 8 overloads)]
 
-[indexterm2 native..posix::stream_descriptor_service]
-(Deprecated: Use `native_handle()`.) Get the native descriptor implementation.
 
+Attempt to read a certain amount of data from a stream before returning.
 
- native_type native(
- implementation_type & impl);
+
+ template<
+ typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
+ typename Allocator>
+ std::size_t read(
+ SyncReadStream & s,
+ basic_streambuf< Allocator > & b,
+ boost::system::error_code & ec);
 
 
+This function is used to read a certain number of bytes of data from a stream. The call will block until one of the following conditions is true:
 
-[endsect]
 
+* The supplied buffer is full (that is, it has reached maximum size).
 
 
-[section:native_handle posix::stream_descriptor_service::native_handle]
+* An error occurred.
 
-[indexterm2 native_handle..posix::stream_descriptor_service]
-Get the native descriptor implementation.
+This operation is implemented in terms of zero or more calls to the stream's read\_some function.
 
 
- native_handle_type native_handle(
- implementation_type & impl);
+[heading Parameters]
+
 
+[variablelist
+
+[[s][The stream from which the data is to be read. The type must support the SyncReadStream concept.]]
 
+[[b][The [link boost_asio.reference.basic_streambuf `basic_streambuf`] object into which the data will be read.]]
 
-[endsect]
+[[ec][Set to indicate what error occurred, if any.]]
 
+]
 
 
-[section:native_handle_type posix::stream_descriptor_service::native_handle_type]
+[heading Return Value]
+
+The number of bytes transferred.
 
-[indexterm2 native_handle_type..posix::stream_descriptor_service]
-The native descriptor type.
 
+[heading Remarks]
+
+This overload is equivalent to calling:
 
- typedef implementation_defined native_handle_type;
+ boost::asio::read(
+ s, b,
+ boost::asio::transfer_all(), ec);
 
 
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/posix/stream_descriptor_service.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
-[section:native_non_blocking posix::stream_descriptor_service::native_non_blocking]
 
-[indexterm2 native_non_blocking..posix::stream_descriptor_service]
-Gets the non-blocking mode of the native descriptor implementation.
+[section:overload7 read (7 of 8 overloads)]
 
 
- bool ``[link boost_asio.reference.posix__stream_descriptor_service.native_non_blocking.overload1 native_non_blocking]``(
- const implementation_type & impl) const;
- `` [''''&raquo;''' [link boost_asio.reference.posix__stream_descriptor_service.native_non_blocking.overload1 more...]]``
+Attempt to read a certain amount of data from a stream before returning.
 
 
-Sets the non-blocking mode of the native descriptor implementation.
+ template<
+ typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
+ typename Allocator,
+ typename CompletionCondition>
+ std::size_t read(
+ SyncReadStream & s,
+ basic_streambuf< Allocator > & b,
+ CompletionCondition completion_condition);
 
 
- boost::system::error_code ``[link boost_asio.reference.posix__stream_descriptor_service.native_non_blocking.overload2 native_non_blocking]``(
- implementation_type & impl,
- bool mode,
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.posix__stream_descriptor_service.native_non_blocking.overload2 more...]]``
+This function is used to read a certain number of bytes of data from a stream. The call will block until one of the following conditions is true:
 
 
-[section:overload1 posix::stream_descriptor_service::native_non_blocking (1 of 2 overloads)]
+* The supplied buffer is full (that is, it has reached maximum size).
 
 
-Gets the non-blocking mode of the native descriptor implementation.
+* The completion\_condition function object returns 0.
 
+This operation is implemented in terms of zero or more calls to the stream's read\_some function.
 
- bool native_non_blocking(
- const implementation_type & impl) const;
 
+[heading Parameters]
+
+
+[variablelist
+
+[[s][The stream from which the data is to be read. The type must support the SyncReadStream concept.]]
 
+[[b][The [link boost_asio.reference.basic_streambuf `basic_streambuf`] object into which the data will be read.]]
 
-[endsect]
+[[completion_condition][The function object to be called to determine whether the read operation is complete. The signature of the function object must be:
+``
+ std::size_t completion_condition(
+ // Result of latest read_some operation.
+ const boost::system::error_code& error,
 
+ // Number of bytes transferred so far.
+ std::size_t bytes_transferred
+ );
+``
+A return value of 0 indicates that the read operation is complete. A non-zero return value indicates the maximum number of bytes to be read on the next call to the stream's read\_some function.]]
 
+]
 
-[section:overload2 posix::stream_descriptor_service::native_non_blocking (2 of 2 overloads)]
 
+[heading Return Value]
+
+The number of bytes transferred.
 
-Sets the non-blocking mode of the native descriptor implementation.
 
+[heading Exceptions]
+
 
- boost::system::error_code native_non_blocking(
- implementation_type & impl,
- bool mode,
- boost::system::error_code & ec);
+[variablelist
+
+[[boost::system::system_error][Thrown on failure. ]]
 
+]
 
 
-[endsect]
 
 
 [endsect]
 
 
-[section:native_type posix::stream_descriptor_service::native_type]
 
-[indexterm2 native_type..posix::stream_descriptor_service]
-(Deprecated: Use native\_handle\_type.) The native descriptor type.
+[section:overload8 read (8 of 8 overloads)]
 
 
- typedef implementation_defined native_type;
+Attempt to read a certain amount of data from a stream before returning.
 
 
+ template<
+ typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
+ typename Allocator,
+ typename CompletionCondition>
+ std::size_t read(
+ SyncReadStream & s,
+ basic_streambuf< Allocator > & b,
+ CompletionCondition completion_condition,
+ boost::system::error_code & ec);
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/posix/stream_descriptor_service.hpp]
+This function is used to read a certain number of bytes of data from a stream. The call will block until one of the following conditions is true:
 
-[*Convenience header: ][^boost/asio.hpp]
 
+* The supplied buffer is full (that is, it has reached maximum size).
 
-[endsect]
 
+* The completion\_condition function object returns 0.
 
-[section:non_blocking posix::stream_descriptor_service::non_blocking]
+This operation is implemented in terms of zero or more calls to the stream's read\_some function.
 
-[indexterm2 non_blocking..posix::stream_descriptor_service]
-Gets the non-blocking mode of the descriptor.
 
+[heading Parameters]
+
 
- bool ``[link boost_asio.reference.posix__stream_descriptor_service.non_blocking.overload1 non_blocking]``(
- const implementation_type & impl) const;
- `` [''''&raquo;''' [link boost_asio.reference.posix__stream_descriptor_service.non_blocking.overload1 more...]]``
+[variablelist
+
+[[s][The stream from which the data is to be read. The type must support the SyncReadStream concept.]]
 
+[[b][The [link boost_asio.reference.basic_streambuf `basic_streambuf`] object into which the data will be read.]]
 
-Sets the non-blocking mode of the descriptor.
+[[completion_condition][The function object to be called to determine whether the read operation is complete. The signature of the function object must be:
+``
+ std::size_t completion_condition(
+ // Result of latest read_some operation.
+ const boost::system::error_code& error,
 
+ // Number of bytes transferred so far.
+ std::size_t bytes_transferred
+ );
+``
+A return value of 0 indicates that the read operation is complete. A non-zero return value indicates the maximum number of bytes to be read on the next call to the stream's read\_some function.]]
 
- boost::system::error_code ``[link boost_asio.reference.posix__stream_descriptor_service.non_blocking.overload2 non_blocking]``(
- implementation_type & impl,
- bool mode,
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.posix__stream_descriptor_service.non_blocking.overload2 more...]]``
+[[ec][Set to indicate what error occurred, if any.]]
 
+]
 
-[section:overload1 posix::stream_descriptor_service::non_blocking (1 of 2 overloads)]
 
+[heading Return Value]
+
+The number of bytes read. If an error occurs, returns the total number of bytes successfully transferred prior to the error.
 
-Gets the non-blocking mode of the descriptor.
 
 
- bool non_blocking(
- const implementation_type & impl) const;
 
+[endsect]
 
 
 [endsect]
 
+[section:read_at read_at]
 
+[indexterm1 read_at]
+Attempt to read a certain amount of data at the specified offset before returning.
 
-[section:overload2 posix::stream_descriptor_service::non_blocking (2 of 2 overloads)]
+
+ template<
+ typename ``[link boost_asio.reference.SyncRandomAccessReadDevice SyncRandomAccessReadDevice]``,
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
+ std::size_t ``[link boost_asio.reference.read_at.overload1 read_at]``(
+ SyncRandomAccessReadDevice & d,
+ boost::uint64_t offset,
+ const MutableBufferSequence & buffers);
+ `` [''''&raquo;''' [link boost_asio.reference.read_at.overload1 more...]]``
 
+ template<
+ typename ``[link boost_asio.reference.SyncRandomAccessReadDevice SyncRandomAccessReadDevice]``,
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
+ std::size_t ``[link boost_asio.reference.read_at.overload2 read_at]``(
+ SyncRandomAccessReadDevice & d,
+ boost::uint64_t offset,
+ const MutableBufferSequence & buffers,
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.read_at.overload2 more...]]``
 
-Sets the non-blocking mode of the descriptor.
+ template<
+ typename ``[link boost_asio.reference.SyncRandomAccessReadDevice SyncRandomAccessReadDevice]``,
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``,
+ typename CompletionCondition>
+ std::size_t ``[link boost_asio.reference.read_at.overload3 read_at]``(
+ SyncRandomAccessReadDevice & d,
+ boost::uint64_t offset,
+ const MutableBufferSequence & buffers,
+ CompletionCondition completion_condition);
+ `` [''''&raquo;''' [link boost_asio.reference.read_at.overload3 more...]]``
+
+ template<
+ typename ``[link boost_asio.reference.SyncRandomAccessReadDevice SyncRandomAccessReadDevice]``,
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``,
+ typename CompletionCondition>
+ std::size_t ``[link boost_asio.reference.read_at.overload4 read_at]``(
+ SyncRandomAccessReadDevice & d,
+ boost::uint64_t offset,
+ const MutableBufferSequence & buffers,
+ CompletionCondition completion_condition,
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.read_at.overload4 more...]]``
 
+ template<
+ typename ``[link boost_asio.reference.SyncRandomAccessReadDevice SyncRandomAccessReadDevice]``,
+ typename Allocator>
+ std::size_t ``[link boost_asio.reference.read_at.overload5 read_at]``(
+ SyncRandomAccessReadDevice & d,
+ boost::uint64_t offset,
+ basic_streambuf< Allocator > & b);
+ `` [''''&raquo;''' [link boost_asio.reference.read_at.overload5 more...]]``
 
- boost::system::error_code non_blocking(
- implementation_type & impl,
- bool mode,
+ template<
+ typename ``[link boost_asio.reference.SyncRandomAccessReadDevice SyncRandomAccessReadDevice]``,
+ typename Allocator>
+ std::size_t ``[link boost_asio.reference.read_at.overload6 read_at]``(
+ SyncRandomAccessReadDevice & d,
+ boost::uint64_t offset,
+ basic_streambuf< Allocator > & b,
       boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.read_at.overload6 more...]]``
+
+ template<
+ typename ``[link boost_asio.reference.SyncRandomAccessReadDevice SyncRandomAccessReadDevice]``,
+ typename Allocator,
+ typename CompletionCondition>
+ std::size_t ``[link boost_asio.reference.read_at.overload7 read_at]``(
+ SyncRandomAccessReadDevice & d,
+ boost::uint64_t offset,
+ basic_streambuf< Allocator > & b,
+ CompletionCondition completion_condition);
+ `` [''''&raquo;''' [link boost_asio.reference.read_at.overload7 more...]]``
 
+ template<
+ typename ``[link boost_asio.reference.SyncRandomAccessReadDevice SyncRandomAccessReadDevice]``,
+ typename Allocator,
+ typename CompletionCondition>
+ std::size_t ``[link boost_asio.reference.read_at.overload8 read_at]``(
+ SyncRandomAccessReadDevice & d,
+ boost::uint64_t offset,
+ basic_streambuf< Allocator > & b,
+ CompletionCondition completion_condition,
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.read_at.overload8 more...]]``
 
+[heading Requirements]
 
-[endsect]
+[*Header: ][^boost/asio/read_at.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
-[endsect]
 
+[section:overload1 read_at (1 of 8 overloads)]
 
-[section:read_some posix::stream_descriptor_service::read_some]
 
-[indexterm2 read_some..posix::stream_descriptor_service]
-Read some data from the stream.
+Attempt to read a certain amount of data at the specified offset before returning.
 
 
   template<
+ typename ``[link boost_asio.reference.SyncRandomAccessReadDevice SyncRandomAccessReadDevice]``,
       typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
- std::size_t read_some(
- implementation_type & impl,
- const MutableBufferSequence & buffers,
- boost::system::error_code & ec);
+ std::size_t read_at(
+ SyncRandomAccessReadDevice & d,
+ boost::uint64_t offset,
+ const MutableBufferSequence & buffers);
 
 
+This function is used to read a certain number of bytes of data from a random access device at the specified offset. The call will block until one of the following conditions is true:
 
-[endsect]
 
+* The supplied buffers are full. That is, the bytes transferred is equal to the sum of the buffer sizes.
 
 
-[section:release posix::stream_descriptor_service::release]
+* An error occurred.
 
-[indexterm2 release..posix::stream_descriptor_service]
-Release ownership of the native descriptor implementation.
+This operation is implemented in terms of zero or more calls to the device's read\_some\_at function.
 
 
- native_handle_type release(
- implementation_type & impl);
+[heading Parameters]
+
 
+[variablelist
+
+[[d][The device from which the data is to be read. The type must support the SyncRandomAccessReadDevice concept.]]
 
+[[offset][The offset at which the data will be read.]]
 
-[endsect]
+[[buffers][One or more buffers into which the data will be read. The sum of the buffer sizes indicates the maximum number of bytes to read from the device.]]
 
+]
 
 
-[section:stream_descriptor_service posix::stream_descriptor_service::stream_descriptor_service]
+[heading Return Value]
+
+The number of bytes transferred.
 
-[indexterm2 stream_descriptor_service..posix::stream_descriptor_service]
-Construct a new stream descriptor service for the specified [link boost_asio.reference.io_service `io_service`].
 
+[heading Exceptions]
+
 
- stream_descriptor_service(
- boost::asio::io_service & io_service);
+[variablelist
+
+[[boost::system::system_error][Thrown on failure.]]
 
+]
 
 
-[endsect]
+[heading Example]
+
+To read into a single data buffer use the [link boost_asio.reference.buffer `buffer`] function as follows:
 
+ boost::asio::read_at(d, 42, boost::asio::buffer(data, size));
 
 
-[section:write_some posix::stream_descriptor_service::write_some]
+See the [link boost_asio.reference.buffer `buffer`] documentation for information on reading into multiple buffers in one go, and how to use it with arrays, boost::array or std::vector.
 
-[indexterm2 write_some..posix::stream_descriptor_service]
-Write the given data to the stream.
 
+[heading Remarks]
+
+This overload is equivalent to calling:
+
+ boost::asio::read_at(
+ d, 42, buffers,
+ boost::asio::transfer_all());
 
- template<
- typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
- std::size_t write_some(
- implementation_type & impl,
- const ConstBufferSequence & buffers,
- boost::system::error_code & ec);
 
 
 
-[endsect]
 
 
 
 [endsect]
 
-[section:raw_socket_service raw_socket_service]
 
 
-Default service implementation for a raw socket.
+[section:overload2 read_at (2 of 8 overloads)]
 
 
- template<
- typename ``[link boost_asio.reference.Protocol Protocol]``>
- class raw_socket_service :
- public io_service::service
+Attempt to read a certain amount of data at the specified offset before returning.
 
 
-[heading Types]
-[table
- [[Name][Description]]
+ template<
+ typename ``[link boost_asio.reference.SyncRandomAccessReadDevice SyncRandomAccessReadDevice]``,
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
+ std::size_t read_at(
+ SyncRandomAccessReadDevice & d,
+ boost::uint64_t offset,
+ const MutableBufferSequence & buffers,
+ boost::system::error_code & ec);
 
- [
 
- [[link boost_asio.reference.raw_socket_service.endpoint_type [*endpoint_type]]]
- [The endpoint type. ]
-
- ]
+This function is used to read a certain number of bytes of data from a random access device at the specified offset. The call will block until one of the following conditions is true:
 
- [
 
- [[link boost_asio.reference.raw_socket_service.implementation_type [*implementation_type]]]
- [The type of a raw socket. ]
-
- ]
+* The supplied buffers are full. That is, the bytes transferred is equal to the sum of the buffer sizes.
 
- [
 
- [[link boost_asio.reference.raw_socket_service.native_handle_type [*native_handle_type]]]
- [The native socket type. ]
-
- ]
+* An error occurred.
 
- [
+This operation is implemented in terms of zero or more calls to the device's read\_some\_at function.
 
- [[link boost_asio.reference.raw_socket_service.native_type [*native_type]]]
- [(Deprecated: Use native_handle_type.) The native socket type. ]
-
- ]
 
- [
+[heading Parameters]
+
 
- [[link boost_asio.reference.raw_socket_service.protocol_type [*protocol_type]]]
- [The protocol type. ]
+[variablelist
   
- ]
-
-]
+[[d][The device from which the data is to be read. The type must support the SyncRandomAccessReadDevice concept.]]
 
-[heading Member Functions]
-[table
- [[Name][Description]]
+[[offset][The offset at which the data will be read.]]
 
- [
- [[link boost_asio.reference.raw_socket_service.assign [*assign]]]
- [Assign an existing native socket to a raw socket. ]
- ]
-
- [
- [[link boost_asio.reference.raw_socket_service.async_connect [*async_connect]]]
- [Start an asynchronous connect. ]
- ]
-
- [
- [[link boost_asio.reference.raw_socket_service.async_receive [*async_receive]]]
- [Start an asynchronous receive. ]
- ]
-
- [
- [[link boost_asio.reference.raw_socket_service.async_receive_from [*async_receive_from]]]
- [Start an asynchronous receive that will get the endpoint of the sender. ]
- ]
-
- [
- [[link boost_asio.reference.raw_socket_service.async_send [*async_send]]]
- [Start an asynchronous send. ]
- ]
-
- [
- [[link boost_asio.reference.raw_socket_service.async_send_to [*async_send_to]]]
- [Start an asynchronous send. ]
- ]
-
- [
- [[link boost_asio.reference.raw_socket_service.at_mark [*at_mark]]]
- [Determine whether the socket is at the out-of-band data mark. ]
- ]
-
- [
- [[link boost_asio.reference.raw_socket_service.available [*available]]]
- [Determine the number of bytes available for reading. ]
- ]
-
- [
- [[link boost_asio.reference.raw_socket_service.bind [*bind]]]
- []
- ]
-
- [
- [[link boost_asio.reference.raw_socket_service.cancel [*cancel]]]
- [Cancel all asynchronous operations associated with the socket. ]
- ]
-
- [
- [[link boost_asio.reference.raw_socket_service.close [*close]]]
- [Close a raw socket implementation. ]
- ]
-
- [
- [[link boost_asio.reference.raw_socket_service.connect [*connect]]]
- [Connect the raw socket to the specified endpoint. ]
- ]
-
- [
- [[link boost_asio.reference.raw_socket_service.construct [*construct]]]
- [Construct a new raw socket implementation. ]
- ]
-
- [
- [[link boost_asio.reference.raw_socket_service.destroy [*destroy]]]
- [Destroy a raw socket implementation. ]
- ]
-
- [
- [[link boost_asio.reference.raw_socket_service.get_io_service [*get_io_service]]]
- [Get the io_service object that owns the service. ]
- ]
-
- [
- [[link boost_asio.reference.raw_socket_service.get_option [*get_option]]]
- [Get a socket option. ]
- ]
-
- [
- [[link boost_asio.reference.raw_socket_service.io_control [*io_control]]]
- [Perform an IO control command on the socket. ]
- ]
-
- [
- [[link boost_asio.reference.raw_socket_service.is_open [*is_open]]]
- [Determine whether the socket is open. ]
- ]
-
- [
- [[link boost_asio.reference.raw_socket_service.local_endpoint [*local_endpoint]]]
- [Get the local endpoint. ]
- ]
-
- [
- [[link boost_asio.reference.raw_socket_service.move_assign [*move_assign]]]
- [Move-assign from another raw socket implementation. ]
- ]
-
- [
- [[link boost_asio.reference.raw_socket_service.move_construct [*move_construct]]]
- [Move-construct a new raw socket implementation. ]
- ]
-
- [
- [[link boost_asio.reference.raw_socket_service.native [*native]]]
- [(Deprecated: Use native_handle().) Get the native socket implementation. ]
- ]
-
- [
- [[link boost_asio.reference.raw_socket_service.native_handle [*native_handle]]]
- [Get the native socket implementation. ]
- ]
-
- [
- [[link boost_asio.reference.raw_socket_service.native_non_blocking [*native_non_blocking]]]
- [Gets the non-blocking mode of the native socket implementation.
+[[buffers][One or more buffers into which the data will be read. The sum of the buffer sizes indicates the maximum number of bytes to read from the device.]]
 
- Sets the non-blocking mode of the native socket implementation. ]
- ]
-
- [
- [[link boost_asio.reference.raw_socket_service.non_blocking [*non_blocking]]]
- [Gets the non-blocking mode of the socket.
+[[ec][Set to indicate what error occurred, if any.]]
 
- Sets the non-blocking mode of the socket. ]
- ]
-
- [
- [[link boost_asio.reference.raw_socket_service.open [*open]]]
- []
- ]
-
- [
- [[link boost_asio.reference.raw_socket_service.raw_socket_service [*raw_socket_service]]]
- [Construct a new raw socket service for the specified io_service. ]
- ]
-
- [
- [[link boost_asio.reference.raw_socket_service.receive [*receive]]]
- [Receive some data from the peer. ]
- ]
-
- [
- [[link boost_asio.reference.raw_socket_service.receive_from [*receive_from]]]
- [Receive raw data with the endpoint of the sender. ]
- ]
-
- [
- [[link boost_asio.reference.raw_socket_service.remote_endpoint [*remote_endpoint]]]
- [Get the remote endpoint. ]
- ]
-
- [
- [[link boost_asio.reference.raw_socket_service.send [*send]]]
- [Send the given data to the peer. ]
- ]
-
- [
- [[link boost_asio.reference.raw_socket_service.send_to [*send_to]]]
- [Send raw data to the specified endpoint. ]
- ]
-
- [
- [[link boost_asio.reference.raw_socket_service.set_option [*set_option]]]
- [Set a socket option. ]
- ]
-
- [
- [[link boost_asio.reference.raw_socket_service.shutdown [*shutdown]]]
- [Disable sends or receives on the socket. ]
- ]
-
 ]
 
-[heading Data Members]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.raw_socket_service.id [*id]]]
- [The unique service identifier. ]
- ]
+[heading Return Value]
+
+The number of bytes transferred.
 
-]
 
-[heading Requirements]
+[heading Example]
+
+To read into a single data buffer use the [link boost_asio.reference.buffer `buffer`] function as follows:
 
-[*Header: ][^boost/asio/raw_socket_service.hpp]
+ boost::asio::read_at(d, 42,
+ boost::asio::buffer(data, size), ec);
 
-[*Convenience header: ][^boost/asio.hpp]
 
+See the [link boost_asio.reference.buffer `buffer`] documentation for information on reading into multiple buffers in one go, and how to use it with arrays, boost::array or std::vector.
+
+
+[heading Remarks]
+
+This overload is equivalent to calling:
+
+ boost::asio::read_at(
+ d, 42, buffers,
+ boost::asio::transfer_all(), ec);
 
-[section:assign raw_socket_service::assign]
 
-[indexterm2 assign..raw_socket_service]
-Assign an existing native socket to a raw socket.
 
 
- boost::system::error_code assign(
- implementation_type & impl,
- const protocol_type & protocol,
- const native_handle_type & native_socket,
- boost::system::error_code & ec);
 
 
 
@@ -73258,82 +76506,85 @@
 
 
 
-[section:async_connect raw_socket_service::async_connect]
+[section:overload3 read_at (3 of 8 overloads)]
 
-[indexterm2 async_connect..raw_socket_service]
-Start an asynchronous connect.
+
+Attempt to read a certain amount of data at the specified offset before returning.
 
 
   template<
- typename ``[link boost_asio.reference.ConnectHandler ConnectHandler]``>
- void async_connect(
- implementation_type & impl,
- const endpoint_type & peer_endpoint,
- ConnectHandler handler);
+ typename ``[link boost_asio.reference.SyncRandomAccessReadDevice SyncRandomAccessReadDevice]``,
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``,
+ typename CompletionCondition>
+ std::size_t read_at(
+ SyncRandomAccessReadDevice & d,
+ boost::uint64_t offset,
+ const MutableBufferSequence & buffers,
+ CompletionCondition completion_condition);
 
 
+This function is used to read a certain number of bytes of data from a random access device at the specified offset. The call will block until one of the following conditions is true:
 
-[endsect]
 
+* The supplied buffers are full. That is, the bytes transferred is equal to the sum of the buffer sizes.
 
 
-[section:async_receive raw_socket_service::async_receive]
+* The completion\_condition function object returns 0.
 
-[indexterm2 async_receive..raw_socket_service]
-Start an asynchronous receive.
+This operation is implemented in terms of zero or more calls to the device's read\_some\_at function.
 
 
- template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``,
- typename ``[link boost_asio.reference.ReadHandler ReadHandler]``>
- void async_receive(
- implementation_type & impl,
- const MutableBufferSequence & buffers,
- socket_base::message_flags flags,
- ReadHandler handler);
+[heading Parameters]
+
 
+[variablelist
+
+[[d][The device from which the data is to be read. The type must support the SyncRandomAccessReadDevice concept.]]
 
+[[offset][The offset at which the data will be read.]]
 
-[endsect]
+[[buffers][One or more buffers into which the data will be read. The sum of the buffer sizes indicates the maximum number of bytes to read from the device.]]
 
+[[completion_condition][The function object to be called to determine whether the read operation is complete. The signature of the function object must be:
+``
+ std::size_t completion_condition(
+ // Result of latest read_some_at operation.
+ const boost::system::error_code& error,
 
+ // Number of bytes transferred so far.
+ std::size_t bytes_transferred
+ );
+``
+A return value of 0 indicates that the read operation is complete. A non-zero return value indicates the maximum number of bytes to be read on the next call to the device's read\_some\_at function.]]
 
-[section:async_receive_from raw_socket_service::async_receive_from]
+]
 
-[indexterm2 async_receive_from..raw_socket_service]
-Start an asynchronous receive that will get the endpoint of the sender.
 
+[heading Return Value]
+
+The number of bytes transferred.
 
- template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``,
- typename ``[link boost_asio.reference.ReadHandler ReadHandler]``>
- void async_receive_from(
- implementation_type & impl,
- const MutableBufferSequence & buffers,
- endpoint_type & sender_endpoint,
- socket_base::message_flags flags,
- ReadHandler handler);
 
+[heading Exceptions]
+
 
+[variablelist
+
+[[boost::system::system_error][Thrown on failure.]]
 
-[endsect]
+]
 
 
+[heading Example]
+
+To read into a single data buffer use the [link boost_asio.reference.buffer `buffer`] function as follows:
 
-[section:async_send raw_socket_service::async_send]
+ boost::asio::read_at(d, 42, boost::asio::buffer(data, size),
+ boost::asio::transfer_at_least(32));
 
-[indexterm2 async_send..raw_socket_service]
-Start an asynchronous send.
 
+See the [link boost_asio.reference.buffer `buffer`] documentation for information on reading into multiple buffers in one go, and how to use it with arrays, boost::array or std::vector.
 
- template<
- typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``,
- typename ``[link boost_asio.reference.WriteHandler WriteHandler]``>
- void async_send(
- implementation_type & impl,
- const ConstBufferSequence & buffers,
- socket_base::message_flags flags,
- WriteHandler handler);
 
 
 
@@ -73341,53 +76592,67 @@
 
 
 
-[section:async_send_to raw_socket_service::async_send_to]
+[section:overload4 read_at (4 of 8 overloads)]
 
-[indexterm2 async_send_to..raw_socket_service]
-Start an asynchronous send.
+
+Attempt to read a certain amount of data at the specified offset before returning.
 
 
   template<
- typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``,
- typename ``[link boost_asio.reference.WriteHandler WriteHandler]``>
- void async_send_to(
- implementation_type & impl,
- const ConstBufferSequence & buffers,
- const endpoint_type & destination,
- socket_base::message_flags flags,
- WriteHandler handler);
+ typename ``[link boost_asio.reference.SyncRandomAccessReadDevice SyncRandomAccessReadDevice]``,
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``,
+ typename CompletionCondition>
+ std::size_t read_at(
+ SyncRandomAccessReadDevice & d,
+ boost::uint64_t offset,
+ const MutableBufferSequence & buffers,
+ CompletionCondition completion_condition,
+ boost::system::error_code & ec);
 
 
+This function is used to read a certain number of bytes of data from a random access device at the specified offset. The call will block until one of the following conditions is true:
 
-[endsect]
 
+* The supplied buffers are full. That is, the bytes transferred is equal to the sum of the buffer sizes.
 
 
-[section:at_mark raw_socket_service::at_mark]
+* The completion\_condition function object returns 0.
 
-[indexterm2 at_mark..raw_socket_service]
-Determine whether the socket is at the out-of-band data mark.
+This operation is implemented in terms of zero or more calls to the device's read\_some\_at function.
 
 
- bool at_mark(
- const implementation_type & impl,
- boost::system::error_code & ec) const;
+[heading Parameters]
+
 
+[variablelist
+
+[[d][The device from which the data is to be read. The type must support the SyncRandomAccessReadDevice concept.]]
 
+[[offset][The offset at which the data will be read.]]
 
-[endsect]
+[[buffers][One or more buffers into which the data will be read. The sum of the buffer sizes indicates the maximum number of bytes to read from the device.]]
+
+[[completion_condition][The function object to be called to determine whether the read operation is complete. The signature of the function object must be:
+``
+ std::size_t completion_condition(
+ // Result of latest read_some_at operation.
+ const boost::system::error_code& error,
 
+ // Number of bytes transferred so far.
+ std::size_t bytes_transferred
+ );
+``
+A return value of 0 indicates that the read operation is complete. A non-zero return value indicates the maximum number of bytes to be read on the next call to the device's read\_some\_at function.]]
 
+[[ec][Set to indicate what error occurred, if any.]]
 
-[section:available raw_socket_service::available]
+]
 
-[indexterm2 available..raw_socket_service]
-Determine the number of bytes available for reading.
 
+[heading Return Value]
+
+The number of bytes read. If an error occurs, returns the total number of bytes successfully transferred prior to the error.
 
- std::size_t available(
- const implementation_type & impl,
- boost::system::error_code & ec) const;
 
 
 
@@ -73395,63 +76660,69 @@
 
 
 
-[section:bind raw_socket_service::bind]
-
-[indexterm2 bind..raw_socket_service]
+[section:overload5 read_at (5 of 8 overloads)]
 
- boost::system::error_code bind(
- implementation_type & impl,
- const endpoint_type & endpoint,
- boost::system::error_code & ec);
 
+Attempt to read a certain amount of data at the specified offset before returning.
 
 
-[endsect]
+ template<
+ typename ``[link boost_asio.reference.SyncRandomAccessReadDevice SyncRandomAccessReadDevice]``,
+ typename Allocator>
+ std::size_t read_at(
+ SyncRandomAccessReadDevice & d,
+ boost::uint64_t offset,
+ basic_streambuf< Allocator > & b);
 
 
+This function is used to read a certain number of bytes of data from a random access device at the specified offset. The call will block until one of the following conditions is true:
 
-[section:cancel raw_socket_service::cancel]
 
-[indexterm2 cancel..raw_socket_service]
-Cancel all asynchronous operations associated with the socket.
+* An error occurred.
 
+This operation is implemented in terms of zero or more calls to the device's read\_some\_at function.
 
- boost::system::error_code cancel(
- implementation_type & impl,
- boost::system::error_code & ec);
 
+[heading Parameters]
+
 
+[variablelist
+
+[[d][The device from which the data is to be read. The type must support the SyncRandomAccessReadDevice concept.]]
 
-[endsect]
+[[offset][The offset at which the data will be read.]]
 
+[[b][The [link boost_asio.reference.basic_streambuf `basic_streambuf`] object into which the data will be read.]]
 
+]
 
-[section:close raw_socket_service::close]
 
-[indexterm2 close..raw_socket_service]
-Close a raw socket implementation.
+[heading Return Value]
+
+The number of bytes transferred.
 
 
- boost::system::error_code close(
- implementation_type & impl,
- boost::system::error_code & ec);
+[heading Exceptions]
+
 
+[variablelist
+
+[[boost::system::system_error][Thrown on failure.]]
 
+]
 
-[endsect]
 
+[heading Remarks]
+
+This overload is equivalent to calling:
 
+ boost::asio::read_at(
+ d, 42, b,
+ boost::asio::transfer_all());
 
-[section:connect raw_socket_service::connect]
 
-[indexterm2 connect..raw_socket_service]
-Connect the raw socket to the specified endpoint.
 
 
- boost::system::error_code connect(
- implementation_type & impl,
- const endpoint_type & peer_endpoint,
- boost::system::error_code & ec);
 
 
 
@@ -73459,435 +76730,601 @@
 
 
 
-[section:construct raw_socket_service::construct]
+[section:overload6 read_at (6 of 8 overloads)]
 
-[indexterm2 construct..raw_socket_service]
-Construct a new raw socket implementation.
 
+Attempt to read a certain amount of data at the specified offset before returning.
 
- void construct(
- implementation_type & impl);
 
+ template<
+ typename ``[link boost_asio.reference.SyncRandomAccessReadDevice SyncRandomAccessReadDevice]``,
+ typename Allocator>
+ std::size_t read_at(
+ SyncRandomAccessReadDevice & d,
+ boost::uint64_t offset,
+ basic_streambuf< Allocator > & b,
+ boost::system::error_code & ec);
 
 
-[endsect]
+This function is used to read a certain number of bytes of data from a random access device at the specified offset. The call will block until one of the following conditions is true:
 
 
+* An error occurred.
 
-[section:destroy raw_socket_service::destroy]
+This operation is implemented in terms of zero or more calls to the device's read\_some\_at function.
 
-[indexterm2 destroy..raw_socket_service]
-Destroy a raw socket implementation.
 
+[heading Parameters]
+
 
- void destroy(
- implementation_type & impl);
+[variablelist
+
+[[d][The device from which the data is to be read. The type must support the SyncRandomAccessReadDevice concept.]]
 
+[[offset][The offset at which the data will be read.]]
 
+[[b][The [link boost_asio.reference.basic_streambuf `basic_streambuf`] object into which the data will be read.]]
 
-[endsect]
+[[ec][Set to indicate what error occurred, if any.]]
 
+]
 
 
-[section:endpoint_type raw_socket_service::endpoint_type]
+[heading Return Value]
+
+The number of bytes transferred.
 
-[indexterm2 endpoint_type..raw_socket_service]
-The endpoint type.
 
+[heading Remarks]
+
+This overload is equivalent to calling:
 
- typedef Protocol::endpoint endpoint_type;
+ boost::asio::read_at(
+ d, 42, b,
+ boost::asio::transfer_all(), ec);
 
 
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/raw_socket_service.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
 
-[section:get_io_service raw_socket_service::get_io_service]
-
+[section:overload7 read_at (7 of 8 overloads)]
 
-['Inherited from io_service.]
 
-[indexterm2 get_io_service..raw_socket_service]
-Get the [link boost_asio.reference.io_service `io_service`] object that owns the service.
+Attempt to read a certain amount of data at the specified offset before returning.
 
 
- boost::asio::io_service & get_io_service();
+ template<
+ typename ``[link boost_asio.reference.SyncRandomAccessReadDevice SyncRandomAccessReadDevice]``,
+ typename Allocator,
+ typename CompletionCondition>
+ std::size_t read_at(
+ SyncRandomAccessReadDevice & d,
+ boost::uint64_t offset,
+ basic_streambuf< Allocator > & b,
+ CompletionCondition completion_condition);
 
 
+This function is used to read a certain number of bytes of data from a random access device at the specified offset. The call will block until one of the following conditions is true:
 
-[endsect]
 
+* The completion\_condition function object returns 0.
 
+This operation is implemented in terms of zero or more calls to the device's read\_some\_at function.
 
-[section:get_option raw_socket_service::get_option]
 
-[indexterm2 get_option..raw_socket_service]
-Get a socket option.
+[heading Parameters]
+
 
+[variablelist
+
+[[d][The device from which the data is to be read. The type must support the SyncRandomAccessReadDevice concept.]]
 
- template<
- typename ``[link boost_asio.reference.GettableSocketOption GettableSocketOption]``>
- boost::system::error_code get_option(
- const implementation_type & impl,
- GettableSocketOption & option,
- boost::system::error_code & ec) const;
+[[offset][The offset at which the data will be read.]]
 
+[[b][The [link boost_asio.reference.basic_streambuf `basic_streambuf`] object into which the data will be read.]]
 
+[[completion_condition][The function object to be called to determine whether the read operation is complete. The signature of the function object must be:
+``
+ std::size_t completion_condition(
+ // Result of latest read_some_at operation.
+ const boost::system::error_code& error,
 
-[endsect]
+ // Number of bytes transferred so far.
+ std::size_t bytes_transferred
+ );
+``
+A return value of 0 indicates that the read operation is complete. A non-zero return value indicates the maximum number of bytes to be read on the next call to the device's read\_some\_at function.]]
 
+]
 
 
-[section:id raw_socket_service::id]
+[heading Return Value]
+
+The number of bytes transferred.
 
-[indexterm2 id..raw_socket_service]
-The unique service identifier.
 
+[heading Exceptions]
+
 
- static boost::asio::io_service::id id;
+[variablelist
+
+[[boost::system::system_error][Thrown on failure. ]]
 
+]
 
 
-[endsect]
 
 
+[endsect]
 
-[section:implementation_type raw_socket_service::implementation_type]
 
-[indexterm2 implementation_type..raw_socket_service]
-The type of a raw socket.
 
+[section:overload8 read_at (8 of 8 overloads)]
 
- typedef implementation_defined implementation_type;
 
+Attempt to read a certain amount of data at the specified offset before returning.
 
 
-[heading Requirements]
+ template<
+ typename ``[link boost_asio.reference.SyncRandomAccessReadDevice SyncRandomAccessReadDevice]``,
+ typename Allocator,
+ typename CompletionCondition>
+ std::size_t read_at(
+ SyncRandomAccessReadDevice & d,
+ boost::uint64_t offset,
+ basic_streambuf< Allocator > & b,
+ CompletionCondition completion_condition,
+ boost::system::error_code & ec);
 
-[*Header: ][^boost/asio/raw_socket_service.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
+This function is used to read a certain number of bytes of data from a random access device at the specified offset. The call will block until one of the following conditions is true:
 
 
-[endsect]
+* The completion\_condition function object returns 0.
 
+This operation is implemented in terms of zero or more calls to the device's read\_some\_at function.
 
 
-[section:io_control raw_socket_service::io_control]
+[heading Parameters]
+
 
-[indexterm2 io_control..raw_socket_service]
-Perform an IO control command on the socket.
+[variablelist
+
+[[d][The device from which the data is to be read. The type must support the SyncRandomAccessReadDevice concept.]]
 
+[[offset][The offset at which the data will be read.]]
 
- template<
- typename ``[link boost_asio.reference.IoControlCommand IoControlCommand]``>
- boost::system::error_code io_control(
- implementation_type & impl,
- IoControlCommand & command,
- boost::system::error_code & ec);
+[[b][The [link boost_asio.reference.basic_streambuf `basic_streambuf`] object into which the data will be read.]]
 
+[[completion_condition][The function object to be called to determine whether the read operation is complete. The signature of the function object must be:
+``
+ std::size_t completion_condition(
+ // Result of latest read_some_at operation.
+ const boost::system::error_code& error,
 
+ // Number of bytes transferred so far.
+ std::size_t bytes_transferred
+ );
+``
+A return value of 0 indicates that the read operation is complete. A non-zero return value indicates the maximum number of bytes to be read on the next call to the device's read\_some\_at function.]]
 
-[endsect]
+[[ec][Set to indicate what error occurred, if any.]]
 
+]
 
 
-[section:is_open raw_socket_service::is_open]
+[heading Return Value]
+
+The number of bytes read. If an error occurs, returns the total number of bytes successfully transferred prior to the error.
 
-[indexterm2 is_open..raw_socket_service]
-Determine whether the socket is open.
 
 
- bool is_open(
- const implementation_type & impl) const;
 
+[endsect]
 
 
 [endsect]
 
+[section:read_until read_until]
 
+[indexterm1 read_until]
+Read data into a streambuf until it contains a delimiter, matches a regular expression, or a function object indicates a match.
 
-[section:local_endpoint raw_socket_service::local_endpoint]
+
+ template<
+ typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
+ typename Allocator>
+ std::size_t ``[link boost_asio.reference.read_until.overload1 read_until]``(
+ SyncReadStream & s,
+ boost::asio::basic_streambuf< Allocator > & b,
+ char delim);
+ `` [''''&raquo;''' [link boost_asio.reference.read_until.overload1 more...]]``
 
-[indexterm2 local_endpoint..raw_socket_service]
-Get the local endpoint.
+ template<
+ typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
+ typename Allocator>
+ std::size_t ``[link boost_asio.reference.read_until.overload2 read_until]``(
+ SyncReadStream & s,
+ boost::asio::basic_streambuf< Allocator > & b,
+ char delim,
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.read_until.overload2 more...]]``
 
+ template<
+ typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
+ typename Allocator>
+ std::size_t ``[link boost_asio.reference.read_until.overload3 read_until]``(
+ SyncReadStream & s,
+ boost::asio::basic_streambuf< Allocator > & b,
+ const std::string & delim);
+ `` [''''&raquo;''' [link boost_asio.reference.read_until.overload3 more...]]``
 
- endpoint_type local_endpoint(
- const implementation_type & impl,
- boost::system::error_code & ec) const;
+ template<
+ typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
+ typename Allocator>
+ std::size_t ``[link boost_asio.reference.read_until.overload4 read_until]``(
+ SyncReadStream & s,
+ boost::asio::basic_streambuf< Allocator > & b,
+ const std::string & delim,
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.read_until.overload4 more...]]``
 
+ template<
+ typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
+ typename Allocator>
+ std::size_t ``[link boost_asio.reference.read_until.overload5 read_until]``(
+ SyncReadStream & s,
+ boost::asio::basic_streambuf< Allocator > & b,
+ const boost::regex & expr);
+ `` [''''&raquo;''' [link boost_asio.reference.read_until.overload5 more...]]``
 
+ template<
+ typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
+ typename Allocator>
+ std::size_t ``[link boost_asio.reference.read_until.overload6 read_until]``(
+ SyncReadStream & s,
+ boost::asio::basic_streambuf< Allocator > & b,
+ const boost::regex & expr,
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.read_until.overload6 more...]]``
 
-[endsect]
+ template<
+ typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
+ typename Allocator,
+ typename MatchCondition>
+ std::size_t ``[link boost_asio.reference.read_until.overload7 read_until]``(
+ SyncReadStream & s,
+ boost::asio::basic_streambuf< Allocator > & b,
+ MatchCondition match_condition,
+ typename boost::enable_if< is_match_condition< MatchCondition > >::type * = 0);
+ `` [''''&raquo;''' [link boost_asio.reference.read_until.overload7 more...]]``
 
+ template<
+ typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
+ typename Allocator,
+ typename MatchCondition>
+ std::size_t ``[link boost_asio.reference.read_until.overload8 read_until]``(
+ SyncReadStream & s,
+ boost::asio::basic_streambuf< Allocator > & b,
+ MatchCondition match_condition,
+ boost::system::error_code & ec,
+ typename boost::enable_if< is_match_condition< MatchCondition > >::type * = 0);
+ `` [''''&raquo;''' [link boost_asio.reference.read_until.overload8 more...]]``
 
+[heading Requirements]
 
-[section:move_assign raw_socket_service::move_assign]
+[*Header: ][^boost/asio/read_until.hpp]
 
-[indexterm2 move_assign..raw_socket_service]
-Move-assign from another raw socket implementation.
+[*Convenience header: ][^boost/asio.hpp]
 
 
- void move_assign(
- implementation_type & impl,
- raw_socket_service & other_service,
- implementation_type & other_impl);
+[section:overload1 read_until (1 of 8 overloads)]
 
 
+Read data into a streambuf until it contains a specified delimiter.
 
-[endsect]
 
+ template<
+ typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
+ typename Allocator>
+ std::size_t read_until(
+ SyncReadStream & s,
+ boost::asio::basic_streambuf< Allocator > & b,
+ char delim);
 
 
-[section:move_construct raw_socket_service::move_construct]
+This function is used to read data into the specified streambuf until the streambuf's get area contains the specified delimiter. The call will block until one of the following conditions is true:
 
-[indexterm2 move_construct..raw_socket_service]
-Move-construct a new raw socket implementation.
 
+* The get area of the streambuf contains the specified delimiter.
 
- void move_construct(
- implementation_type & impl,
- implementation_type & other_impl);
 
+* An error occurred.
 
+This operation is implemented in terms of zero or more calls to the stream's read\_some function. If the streambuf's get area already contains the delimiter, the function returns immediately.
 
-[endsect]
 
+[heading Parameters]
+
 
+[variablelist
+
+[[s][The stream from which the data is to be read. The type must support the SyncReadStream concept.]]
 
-[section:native raw_socket_service::native]
+[[b][A streambuf object into which the data will be read.]]
 
-[indexterm2 native..raw_socket_service]
-(Deprecated: Use `native_handle()`.) Get the native socket implementation.
+[[delim][The delimiter character.]]
 
+]
 
- native_type native(
- implementation_type & impl);
 
+[heading Return Value]
+
+The number of bytes in the streambuf's get area up to and including the delimiter.
 
 
-[endsect]
+[heading Exceptions]
+
 
+[variablelist
+
+[[boost::system::system_error][Thrown on failure.]]
 
+]
 
-[section:native_handle raw_socket_service::native_handle]
 
-[indexterm2 native_handle..raw_socket_service]
-Get the native socket implementation.
+[heading Remarks]
+
+After a successful read\_until operation, the streambuf may contain additional data beyond the delimiter. An application will typically leave that data in the streambuf for a subsequent read\_until operation to examine.
 
 
- native_handle_type native_handle(
- implementation_type & impl);
+[heading Example]
+
+To read data into a streambuf until a newline is encountered:
 
+ boost::asio::streambuf b;
+ boost::asio::read_until(s, b, '\n');
+ std::istream is(&b);
+ std::string line;
+ std::getline(is, line);
 
 
-[endsect]
+After the `read_until` operation completes successfully, the buffer `b` contains the delimiter:
 
+ { 'a', 'b', ..., 'c', '\n', 'd', 'e', ... }
 
 
-[section:native_handle_type raw_socket_service::native_handle_type]
+The call to `std::getline` then extracts the data up to and including the delimiter, so that the string `line` contains:
 
-[indexterm2 native_handle_type..raw_socket_service]
-The native socket type.
+ { 'a', 'b', ..., 'c', '\n' }
 
 
- typedef implementation_defined native_handle_type;
+The remaining data is left in the buffer `b` as follows:
 
+ { 'd', 'e', ... }
 
 
-[heading Requirements]
+This data may be the start of a new line, to be extracted by a subsequent `read_until` operation.
 
-[*Header: ][^boost/asio/raw_socket_service.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
-[section:native_non_blocking raw_socket_service::native_non_blocking]
 
-[indexterm2 native_non_blocking..raw_socket_service]
-Gets the non-blocking mode of the native socket implementation.
+[section:overload2 read_until (2 of 8 overloads)]
 
 
- bool ``[link boost_asio.reference.raw_socket_service.native_non_blocking.overload1 native_non_blocking]``(
- const implementation_type & impl) const;
- `` [''''&raquo;''' [link boost_asio.reference.raw_socket_service.native_non_blocking.overload1 more...]]``
+Read data into a streambuf until it contains a specified delimiter.
 
 
-Sets the non-blocking mode of the native socket implementation.
+ template<
+ typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
+ typename Allocator>
+ std::size_t read_until(
+ SyncReadStream & s,
+ boost::asio::basic_streambuf< Allocator > & b,
+ char delim,
+ boost::system::error_code & ec);
 
 
- boost::system::error_code ``[link boost_asio.reference.raw_socket_service.native_non_blocking.overload2 native_non_blocking]``(
- implementation_type & impl,
- bool mode,
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.raw_socket_service.native_non_blocking.overload2 more...]]``
+This function is used to read data into the specified streambuf until the streambuf's get area contains the specified delimiter. The call will block until one of the following conditions is true:
 
 
-[section:overload1 raw_socket_service::native_non_blocking (1 of 2 overloads)]
+* The get area of the streambuf contains the specified delimiter.
 
 
-Gets the non-blocking mode of the native socket implementation.
+* An error occurred.
 
+This operation is implemented in terms of zero or more calls to the stream's read\_some function. If the streambuf's get area already contains the delimiter, the function returns immediately.
 
- bool native_non_blocking(
- const implementation_type & impl) const;
 
+[heading Parameters]
+
 
+[variablelist
+
+[[s][The stream from which the data is to be read. The type must support the SyncReadStream concept.]]
 
-[endsect]
+[[b][A streambuf object into which the data will be read.]]
 
+[[delim][The delimiter character.]]
 
+[[ec][Set to indicate what error occurred, if any.]]
 
-[section:overload2 raw_socket_service::native_non_blocking (2 of 2 overloads)]
+]
 
 
-Sets the non-blocking mode of the native socket implementation.
+[heading Return Value]
+
+The number of bytes in the streambuf's get area up to and including the delimiter. Returns 0 if an error occurred.
 
 
- boost::system::error_code native_non_blocking(
- implementation_type & impl,
- bool mode,
- boost::system::error_code & ec);
+[heading Remarks]
+
+After a successful read\_until operation, the streambuf may contain additional data beyond the delimiter. An application will typically leave that data in the streambuf for a subsequent read\_until operation to examine.
+
 
 
 
 [endsect]
 
 
-[endsect]
 
+[section:overload3 read_until (3 of 8 overloads)]
 
-[section:native_type raw_socket_service::native_type]
 
-[indexterm2 native_type..raw_socket_service]
-(Deprecated: Use native\_handle\_type.) The native socket type.
+Read data into a streambuf until it contains a specified delimiter.
 
 
- typedef implementation_defined native_type;
+ template<
+ typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
+ typename Allocator>
+ std::size_t read_until(
+ SyncReadStream & s,
+ boost::asio::basic_streambuf< Allocator > & b,
+ const std::string & delim);
 
 
+This function is used to read data into the specified streambuf until the streambuf's get area contains the specified delimiter. The call will block until one of the following conditions is true:
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/raw_socket_service.hpp]
+* The get area of the streambuf contains the specified delimiter.
 
-[*Convenience header: ][^boost/asio.hpp]
 
+* An error occurred.
 
-[endsect]
+This operation is implemented in terms of zero or more calls to the stream's read\_some function. If the streambuf's get area already contains the delimiter, the function returns immediately.
 
 
-[section:non_blocking raw_socket_service::non_blocking]
+[heading Parameters]
+
 
-[indexterm2 non_blocking..raw_socket_service]
-Gets the non-blocking mode of the socket.
+[variablelist
+
+[[s][The stream from which the data is to be read. The type must support the SyncReadStream concept.]]
 
+[[b][A streambuf object into which the data will be read.]]
 
- bool ``[link boost_asio.reference.raw_socket_service.non_blocking.overload1 non_blocking]``(
- const implementation_type & impl) const;
- `` [''''&raquo;''' [link boost_asio.reference.raw_socket_service.non_blocking.overload1 more...]]``
+[[delim][The delimiter string.]]
 
+]
 
-Sets the non-blocking mode of the socket.
 
+[heading Return Value]
+
+The number of bytes in the streambuf's get area up to and including the delimiter.
 
- boost::system::error_code ``[link boost_asio.reference.raw_socket_service.non_blocking.overload2 non_blocking]``(
- implementation_type & impl,
- bool mode,
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.raw_socket_service.non_blocking.overload2 more...]]``
 
+[heading Exceptions]
+
 
-[section:overload1 raw_socket_service::non_blocking (1 of 2 overloads)]
+[variablelist
+
+[[boost::system::system_error][Thrown on failure.]]
 
+]
 
-Gets the non-blocking mode of the socket.
 
+[heading Remarks]
+
+After a successful read\_until operation, the streambuf may contain additional data beyond the delimiter. An application will typically leave that data in the streambuf for a subsequent read\_until operation to examine.
 
- bool non_blocking(
- const implementation_type & impl) const;
 
+[heading Example]
+
+To read data into a streambuf until a newline is encountered:
+
+ boost::asio::streambuf b;
+ boost::asio::read_until(s, b, "\r\n");
+ std::istream is(&b);
+ std::string line;
+ std::getline(is, line);
 
 
-[endsect]
+After the `read_until` operation completes successfully, the buffer `b` contains the delimiter:
 
+ { 'a', 'b', ..., 'c', '\r', '\n', 'd', 'e', ... }
 
 
-[section:overload2 raw_socket_service::non_blocking (2 of 2 overloads)]
+The call to `std::getline` then extracts the data up to and including the delimiter, so that the string `line` contains:
 
+ { 'a', 'b', ..., 'c', '\r', '\n' }
 
-Sets the non-blocking mode of the socket.
 
+The remaining data is left in the buffer `b` as follows:
+
+ { 'd', 'e', ... }
 
- boost::system::error_code non_blocking(
- implementation_type & impl,
- bool mode,
- boost::system::error_code & ec);
 
+This data may be the start of a new line, to be extracted by a subsequent `read_until` operation.
 
 
-[endsect]
 
 
 [endsect]
 
 
-[section:open raw_socket_service::open]
 
-[indexterm2 open..raw_socket_service]
+[section:overload4 read_until (4 of 8 overloads)]
 
- boost::system::error_code open(
- implementation_type & impl,
- const protocol_type & protocol,
- boost::system::error_code & ec);
 
+Read data into a streambuf until it contains a specified delimiter.
 
 
-[endsect]
+ template<
+ typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
+ typename Allocator>
+ std::size_t read_until(
+ SyncReadStream & s,
+ boost::asio::basic_streambuf< Allocator > & b,
+ const std::string & delim,
+ boost::system::error_code & ec);
 
 
+This function is used to read data into the specified streambuf until the streambuf's get area contains the specified delimiter. The call will block until one of the following conditions is true:
 
-[section:protocol_type raw_socket_service::protocol_type]
 
-[indexterm2 protocol_type..raw_socket_service]
-The protocol type.
+* The get area of the streambuf contains the specified delimiter.
 
 
- typedef Protocol protocol_type;
+* An error occurred.
 
+This operation is implemented in terms of zero or more calls to the stream's read\_some function. If the streambuf's get area already contains the delimiter, the function returns immediately.
 
 
-[heading Requirements]
+[heading Parameters]
+
 
-[*Header: ][^boost/asio/raw_socket_service.hpp]
+[variablelist
+
+[[s][The stream from which the data is to be read. The type must support the SyncReadStream concept.]]
 
-[*Convenience header: ][^boost/asio.hpp]
+[[b][A streambuf object into which the data will be read.]]
 
+[[delim][The delimiter string.]]
 
-[endsect]
+[[ec][Set to indicate what error occurred, if any.]]
 
+]
 
 
-[section:raw_socket_service raw_socket_service::raw_socket_service]
+[heading Return Value]
+
+The number of bytes in the streambuf's get area up to and including the delimiter. Returns 0 if an error occurred.
 
-[indexterm2 raw_socket_service..raw_socket_service]
-Construct a new raw socket service for the specified [link boost_asio.reference.io_service `io_service`].
 
+[heading Remarks]
+
+After a successful read\_until operation, the streambuf may contain additional data beyond the delimiter. An application will typically leave that data in the streambuf for a subsequent read\_until operation to examine.
 
- raw_socket_service(
- boost::asio::io_service & io_service);
 
 
 
@@ -73895,97 +77332,94 @@
 
 
 
-[section:receive raw_socket_service::receive]
+[section:overload5 read_until (5 of 8 overloads)]
 
-[indexterm2 receive..raw_socket_service]
-Receive some data from the peer.
+
+Read data into a streambuf until some part of the data it contains matches a regular expression.
 
 
   template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
- std::size_t receive(
- implementation_type & impl,
- const MutableBufferSequence & buffers,
- socket_base::message_flags flags,
- boost::system::error_code & ec);
+ typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
+ typename Allocator>
+ std::size_t read_until(
+ SyncReadStream & s,
+ boost::asio::basic_streambuf< Allocator > & b,
+ const boost::regex & expr);
 
 
+This function is used to read data into the specified streambuf until the streambuf's get area contains some data that matches a regular expression. The call will block until one of the following conditions is true:
 
-[endsect]
 
+* A substring of the streambuf's get area matches the regular expression.
 
 
-[section:receive_from raw_socket_service::receive_from]
+* An error occurred.
 
-[indexterm2 receive_from..raw_socket_service]
-Receive raw data with the endpoint of the sender.
+This operation is implemented in terms of zero or more calls to the stream's read\_some function. If the streambuf's get area already contains data that matches the regular expression, the function returns immediately.
 
 
- template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
- std::size_t receive_from(
- implementation_type & impl,
- const MutableBufferSequence & buffers,
- endpoint_type & sender_endpoint,
- socket_base::message_flags flags,
- boost::system::error_code & ec);
+[heading Parameters]
+
 
+[variablelist
+
+[[s][The stream from which the data is to be read. The type must support the SyncReadStream concept.]]
 
+[[b][A streambuf object into which the data will be read.]]
 
-[endsect]
+[[expr][The regular expression.]]
 
+]
 
 
-[section:remote_endpoint raw_socket_service::remote_endpoint]
+[heading Return Value]
+
+The number of bytes in the streambuf's get area up to and including the substring that matches the regular expression.
 
-[indexterm2 remote_endpoint..raw_socket_service]
-Get the remote endpoint.
 
+[heading Exceptions]
+
 
- endpoint_type remote_endpoint(
- const implementation_type & impl,
- boost::system::error_code & ec) const;
+[variablelist
+
+[[boost::system::system_error][Thrown on failure.]]
 
+]
 
 
-[endsect]
+[heading Remarks]
+
+After a successful read\_until operation, the streambuf may contain additional data beyond that which matched the regular expression. An application will typically leave that data in the streambuf for a subsequent read\_until operation to examine.
 
 
+[heading Example]
+
+To read data into a streambuf until a CR-LF sequence is encountered:
 
-[section:send raw_socket_service::send]
+ boost::asio::streambuf b;
+ boost::asio::read_until(s, b, boost::regex("\r\n"));
+ std::istream is(&b);
+ std::string line;
+ std::getline(is, line);
 
-[indexterm2 send..raw_socket_service]
-Send the given data to the peer.
 
+After the `read_until` operation completes successfully, the buffer `b` contains the data which matched the regular expression:
 
- template<
- typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
- std::size_t send(
- implementation_type & impl,
- const ConstBufferSequence & buffers,
- socket_base::message_flags flags,
- boost::system::error_code & ec);
+ { 'a', 'b', ..., 'c', '\r', '\n', 'd', 'e', ... }
 
 
+The call to `std::getline` then extracts the data up to and including the match, so that the string `line` contains:
 
-[endsect]
+ { 'a', 'b', ..., 'c', '\r', '\n' }
 
 
+The remaining data is left in the buffer `b` as follows:
 
-[section:send_to raw_socket_service::send_to]
+ { 'd', 'e', ... }
 
-[indexterm2 send_to..raw_socket_service]
-Send raw data to the specified endpoint.
 
+This data may be the start of a new line, to be extracted by a subsequent `read_until` operation.
 
- template<
- typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
- std::size_t send_to(
- implementation_type & impl,
- const ConstBufferSequence & buffers,
- const endpoint_type & destination,
- socket_base::message_flags flags,
- boost::system::error_code & ec);
 
 
 
@@ -73993,156 +77427,91 @@
 
 
 
-[section:set_option raw_socket_service::set_option]
+[section:overload6 read_until (6 of 8 overloads)]
 
-[indexterm2 set_option..raw_socket_service]
-Set a socket option.
+
+Read data into a streambuf until some part of the data it contains matches a regular expression.
 
 
   template<
- typename ``[link boost_asio.reference.SettableSocketOption SettableSocketOption]``>
- boost::system::error_code set_option(
- implementation_type & impl,
- const SettableSocketOption & option,
+ typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
+ typename Allocator>
+ std::size_t read_until(
+ SyncReadStream & s,
+ boost::asio::basic_streambuf< Allocator > & b,
+ const boost::regex & expr,
       boost::system::error_code & ec);
 
 
-
-[endsect]
-
+This function is used to read data into the specified streambuf until the streambuf's get area contains some data that matches a regular expression. The call will block until one of the following conditions is true:
 
 
-[section:shutdown raw_socket_service::shutdown]
+* A substring of the streambuf's get area matches the regular expression.
 
-[indexterm2 shutdown..raw_socket_service]
-Disable sends or receives on the socket.
 
+* An error occurred.
 
- boost::system::error_code shutdown(
- implementation_type & impl,
- socket_base::shutdown_type what,
- boost::system::error_code & ec);
+This operation is implemented in terms of zero or more calls to the stream's read\_some function. If the streambuf's get area already contains data that matches the regular expression, the function returns immediately.
 
 
+[heading Parameters]
+
 
-[endsect]
+[variablelist
+
+[[s][The stream from which the data is to be read. The type must support the SyncReadStream concept.]]
 
+[[b][A streambuf object into which the data will be read.]]
 
+[[expr][The regular expression.]]
 
-[endsect]
+[[ec][Set to indicate what error occurred, if any.]]
 
-[section:read read]
+]
 
-[indexterm1 read]
-Attempt to read a certain amount of data from a stream before returning.
 
+[heading Return Value]
       
- template<
- typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
- std::size_t ``[link boost_asio.reference.read.overload1 read]``(
- SyncReadStream & s,
- const MutableBufferSequence & buffers);
- `` [''''&raquo;''' [link boost_asio.reference.read.overload1 more...]]``
-
- template<
- typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
- std::size_t ``[link boost_asio.reference.read.overload2 read]``(
- SyncReadStream & s,
- const MutableBufferSequence & buffers,
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.read.overload2 more...]]``
-
- template<
- typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``,
- typename CompletionCondition>
- std::size_t ``[link boost_asio.reference.read.overload3 read]``(
- SyncReadStream & s,
- const MutableBufferSequence & buffers,
- CompletionCondition completion_condition);
- `` [''''&raquo;''' [link boost_asio.reference.read.overload3 more...]]``
-
- template<
- typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``,
- typename CompletionCondition>
- std::size_t ``[link boost_asio.reference.read.overload4 read]``(
- SyncReadStream & s,
- const MutableBufferSequence & buffers,
- CompletionCondition completion_condition,
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.read.overload4 more...]]``
+The number of bytes in the streambuf's get area up to and including the substring that matches the regular expression. Returns 0 if an error occurred.
 
- template<
- typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
- typename Allocator>
- std::size_t ``[link boost_asio.reference.read.overload5 read]``(
- SyncReadStream & s,
- basic_streambuf< Allocator > & b);
- `` [''''&raquo;''' [link boost_asio.reference.read.overload5 more...]]``
 
- template<
- typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
- typename Allocator>
- std::size_t ``[link boost_asio.reference.read.overload6 read]``(
- SyncReadStream & s,
- basic_streambuf< Allocator > & b,
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.read.overload6 more...]]``
+[heading Remarks]
+
+After a successful read\_until operation, the streambuf may contain additional data beyond that which matched the regular expression. An application will typically leave that data in the streambuf for a subsequent read\_until operation to examine.
 
- template<
- typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
- typename Allocator,
- typename CompletionCondition>
- std::size_t ``[link boost_asio.reference.read.overload7 read]``(
- SyncReadStream & s,
- basic_streambuf< Allocator > & b,
- CompletionCondition completion_condition);
- `` [''''&raquo;''' [link boost_asio.reference.read.overload7 more...]]``
 
- template<
- typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
- typename Allocator,
- typename CompletionCondition>
- std::size_t ``[link boost_asio.reference.read.overload8 read]``(
- SyncReadStream & s,
- basic_streambuf< Allocator > & b,
- CompletionCondition completion_condition,
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.read.overload8 more...]]``
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/read.hpp]
+[endsect]
 
-[*Convenience header: ][^boost/asio.hpp]
 
 
-[section:overload1 read (1 of 8 overloads)]
+[section:overload7 read_until (7 of 8 overloads)]
 
 
-Attempt to read a certain amount of data from a stream before returning.
+Read data into a streambuf until a function object indicates a match.
 
 
   template<
       typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
- std::size_t read(
+ typename Allocator,
+ typename MatchCondition>
+ std::size_t read_until(
       SyncReadStream & s,
- const MutableBufferSequence & buffers);
+ boost::asio::basic_streambuf< Allocator > & b,
+ MatchCondition match_condition,
+ typename boost::enable_if< is_match_condition< MatchCondition > >::type * = 0);
 
 
-This function is used to read a certain number of bytes of data from a stream. The call will block until one of the following conditions is true:
+This function is used to read data into the specified streambuf until a user-defined match condition function object, when applied to the data contained in the streambuf, indicates a successful match. The call will block until one of the following conditions is true:
 
 
-* The supplied buffers are full. That is, the bytes transferred is equal to the sum of the buffer sizes.
+* The match condition function object returns a std::pair where the second element evaluates to true.
 
 
 * An error occurred.
 
-This operation is implemented in terms of zero or more calls to the stream's read\_some function.
+This operation is implemented in terms of zero or more calls to the stream's read\_some function. If the match condition function object already indicates a match, the function returns immediately.
 
 
 [heading Parameters]
@@ -74152,14 +77521,24 @@
   
 [[s][The stream from which the data is to be read. The type must support the SyncReadStream concept.]]
 
-[[buffers][One or more buffers into which the data will be read. The sum of the buffer sizes indicates the maximum number of bytes to read from the stream.]]
+[[b][A streambuf object into which the data will be read.]]
+
+[[match_condition][The function object to be called to determine whether a match exists. The signature of the function object must be:
+``
+ pair<iterator, bool> match_condition(iterator begin, iterator end);
+``
+where `iterator` represents the type:
+``
+ buffers_iterator<basic_streambuf<Allocator>::const_buffers_type>
+``
+The iterator parameters `begin` and `end` define the range of bytes to be scanned to determine whether there is a match. The `first` member of the return value is an iterator marking one-past-the-end of the bytes that have been consumed by the match function. This iterator is used to calculate the `begin` parameter for any subsequent invocation of the match condition. The `second` member of the return value is true if a match has been found, false otherwise.]]
 
 ]
 
 
 [heading Return Value]
       
-The number of bytes transferred.
+The number of bytes in the streambuf's get area that have been fully consumed by the match function.
 
 
 [heading Exceptions]
@@ -74172,25 +77551,65 @@
 ]
 
 
-[heading Example]
+[heading Remarks]
+
+After a successful read\_until operation, the streambuf may contain additional data beyond that which matched the function object. An application will typically leave that data in the streambuf for a subsequent
+
+The default implementation of the `is_match_condition` type trait evaluates to true for function pointers and function objects with a `result_type` typedef. It must be specialised for other user-defined function objects.
+
+
+[heading Examples]
   
-To read into a single data buffer use the [link boost_asio.reference.buffer `buffer`] function as follows:
+To read data into a streambuf until whitespace is encountered:
+
+ typedef boost::asio::buffers_iterator<
+ boost::asio::streambuf::const_buffers_type> iterator;
+
+ std::pair<iterator, bool>
+ match_whitespace(iterator begin, iterator end)
+ {
+ iterator i = begin;
+ while (i != end)
+ if (std::isspace(*i++))
+ return std::make_pair(i, true);
+ return std::make_pair(i, false);
+ }
+ ...
+ boost::asio::streambuf b;
+ boost::asio::read_until(s, b, match_whitespace);
 
- boost::asio::read(s, boost::asio::buffer(data, size));
 
 
-See the [link boost_asio.reference.buffer `buffer`] documentation for information on reading into multiple buffers in one go, and how to use it with arrays, boost::array or std::vector.
 
+To read data into a streambuf until a matching character is found:
 
-[heading Remarks]
-
-This overload is equivalent to calling:
+ class match_char
+ {
+ public:
+ explicit match_char(char c) : c_(c) {}
 
- boost::asio::read(
- s, buffers,
- boost::asio::transfer_all());
+ template <typename Iterator>
+ std::pair<Iterator, bool> operator()(
+ Iterator begin, Iterator end) const
+ {
+ Iterator i = begin;
+ while (i != end)
+ if (c_ == *i++)
+ return std::make_pair(i, true);
+ return std::make_pair(i, false);
+ }
 
+ private:
+ char c_;
+ };
 
+ namespace asio {
+ template <> struct is_match_condition<match_char>
+ : public boost::true_type {};
+ } // namespace asio
+ ...
+ boost::asio::streambuf b;
+ boost::asio::read_until(s, b, match_char('a'));
 
 
 
@@ -74200,30 +77619,33 @@
 
 
 
-[section:overload2 read (2 of 8 overloads)]
+[section:overload8 read_until (8 of 8 overloads)]
 
 
-Attempt to read a certain amount of data from a stream before returning.
+Read data into a streambuf until a function object indicates a match.
 
 
   template<
       typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
- std::size_t read(
+ typename Allocator,
+ typename MatchCondition>
+ std::size_t read_until(
       SyncReadStream & s,
- const MutableBufferSequence & buffers,
- boost::system::error_code & ec);
+ boost::asio::basic_streambuf< Allocator > & b,
+ MatchCondition match_condition,
+ boost::system::error_code & ec,
+ typename boost::enable_if< is_match_condition< MatchCondition > >::type * = 0);
 
 
-This function is used to read a certain number of bytes of data from a stream. The call will block until one of the following conditions is true:
+This function is used to read data into the specified streambuf until a user-defined match condition function object, when applied to the data contained in the streambuf, indicates a successful match. The call will block until one of the following conditions is true:
 
 
-* The supplied buffers are full. That is, the bytes transferred is equal to the sum of the buffer sizes.
+* The match condition function object returns a std::pair where the second element evaluates to true.
 
 
 * An error occurred.
 
-This operation is implemented in terms of zero or more calls to the stream's read\_some function.
+This operation is implemented in terms of zero or more calls to the stream's read\_some function. If the match condition function object already indicates a match, the function returns immediately.
 
 
 [heading Parameters]
@@ -74233,7 +77655,17 @@
   
 [[s][The stream from which the data is to be read. The type must support the SyncReadStream concept.]]
 
-[[buffers][One or more buffers into which the data will be read. The sum of the buffer sizes indicates the maximum number of bytes to read from the stream.]]
+[[b][A streambuf object into which the data will be read.]]
+
+[[match_condition][The function object to be called to determine whether a match exists. The signature of the function object must be:
+``
+ pair<iterator, bool> match_condition(iterator begin, iterator end);
+``
+where `iterator` represents the type:
+``
+ buffers_iterator<basic_streambuf<Allocator>::const_buffers_type>
+``
+The iterator parameters `begin` and `end` define the range of bytes to be scanned to determine whether there is a match. The `first` member of the return value is an iterator marking one-past-the-end of the bytes that have been consumed by the match function. This iterator is used to calculate the `begin` parameter for any subsequent invocation of the match condition. The `second` member of the return value is true if a match has been found, false otherwise.]]
 
 [[ec][Set to indicate what error occurred, if any.]]
 
@@ -74242,29 +77674,14 @@
 
 [heading Return Value]
       
-The number of bytes transferred.
-
-
-[heading Example]
-
-To read into a single data buffer use the [link boost_asio.reference.buffer `buffer`] function as follows:
-
- boost::asio::read(s, boost::asio::buffer(data, size), ec);
-
-
-See the [link boost_asio.reference.buffer `buffer`] documentation for information on reading into multiple buffers in one go, and how to use it with arrays, boost::array or std::vector.
+The number of bytes in the streambuf's get area that have been fully consumed by the match function. Returns 0 if an error occurred.
 
 
 [heading Remarks]
       
-This overload is equivalent to calling:
-
- boost::asio::read(
- s, buffers,
- boost::asio::transfer_all(), ec);
-
-
+After a successful read\_until operation, the streambuf may contain additional data beyond that which matched the function object. An application will typically leave that data in the streambuf for a subsequent
 
+The default implementation of the `is_match_condition` type trait evaluates to true for function pointers and function objects with a `result_type` typedef. It must be specialised for other user-defined function objects.
 
 
 
@@ -74272,281 +77689,425 @@
 [endsect]
 
 
+[endsect]
 
-[section:overload3 read (3 of 8 overloads)]
+[section:seq_packet_socket_service seq_packet_socket_service]
 
 
-Attempt to read a certain amount of data from a stream before returning.
+Default service implementation for a sequenced packet socket.
 
 
   template<
- typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``,
- typename CompletionCondition>
- std::size_t read(
- SyncReadStream & s,
- const MutableBufferSequence & buffers,
- CompletionCondition completion_condition);
+ typename ``[link boost_asio.reference.Protocol Protocol]``>
+ class seq_packet_socket_service :
+ public io_service::service
 
 
-This function is used to read a certain number of bytes of data from a stream. The call will block until one of the following conditions is true:
+[heading Types]
+[table
+ [[Name][Description]]
 
+ [
 
-* The supplied buffers are full. That is, the bytes transferred is equal to the sum of the buffer sizes.
+ [[link boost_asio.reference.seq_packet_socket_service.endpoint_type [*endpoint_type]]]
+ [The endpoint type. ]
+
+ ]
 
+ [
 
-* The completion\_condition function object returns 0.
+ [[link boost_asio.reference.seq_packet_socket_service.implementation_type [*implementation_type]]]
+ [The type of a sequenced packet socket implementation. ]
+
+ ]
 
-This operation is implemented in terms of zero or more calls to the stream's read\_some function.
+ [
 
+ [[link boost_asio.reference.seq_packet_socket_service.native_handle_type [*native_handle_type]]]
+ [The native socket type. ]
+
+ ]
 
-[heading Parameters]
-
+ [
 
-[variablelist
+ [[link boost_asio.reference.seq_packet_socket_service.native_type [*native_type]]]
+ [(Deprecated: Use native_handle_type.) The native socket type. ]
   
-[[s][The stream from which the data is to be read. The type must support the SyncReadStream concept.]]
-
-[[buffers][One or more buffers into which the data will be read. The sum of the buffer sizes indicates the maximum number of bytes to read from the stream.]]
+ ]
 
-[[completion_condition][The function object to be called to determine whether the read operation is complete. The signature of the function object must be:
-``
- std::size_t completion_condition(
- // Result of latest read_some operation.
- const boost::system::error_code& error,
+ [
 
- // Number of bytes transferred so far.
- std::size_t bytes_transferred
- );
-``
-A return value of 0 indicates that the read operation is complete. A non-zero return value indicates the maximum number of bytes to be read on the next call to the stream's read\_some function.]]
+ [[link boost_asio.reference.seq_packet_socket_service.protocol_type [*protocol_type]]]
+ [The protocol type. ]
+
+ ]
 
 ]
 
+[heading Member Functions]
+[table
+ [[Name][Description]]
 
-[heading Return Value]
-
-The number of bytes transferred.
-
-
-[heading Exceptions]
-
+ [
+ [[link boost_asio.reference.seq_packet_socket_service.assign [*assign]]]
+ [Assign an existing native socket to a sequenced packet socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.seq_packet_socket_service.async_connect [*async_connect]]]
+ [Start an asynchronous connect. ]
+ ]
+
+ [
+ [[link boost_asio.reference.seq_packet_socket_service.async_receive [*async_receive]]]
+ [Start an asynchronous receive. ]
+ ]
+
+ [
+ [[link boost_asio.reference.seq_packet_socket_service.async_send [*async_send]]]
+ [Start an asynchronous send. ]
+ ]
+
+ [
+ [[link boost_asio.reference.seq_packet_socket_service.at_mark [*at_mark]]]
+ [Determine whether the socket is at the out-of-band data mark. ]
+ ]
+
+ [
+ [[link boost_asio.reference.seq_packet_socket_service.available [*available]]]
+ [Determine the number of bytes available for reading. ]
+ ]
+
+ [
+ [[link boost_asio.reference.seq_packet_socket_service.bind [*bind]]]
+ [Bind the sequenced packet socket to the specified local endpoint. ]
+ ]
+
+ [
+ [[link boost_asio.reference.seq_packet_socket_service.cancel [*cancel]]]
+ [Cancel all asynchronous operations associated with the socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.seq_packet_socket_service.close [*close]]]
+ [Close a sequenced packet socket implementation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.seq_packet_socket_service.connect [*connect]]]
+ [Connect the sequenced packet socket to the specified endpoint. ]
+ ]
+
+ [
+ [[link boost_asio.reference.seq_packet_socket_service.construct [*construct]]]
+ [Construct a new sequenced packet socket implementation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.seq_packet_socket_service.destroy [*destroy]]]
+ [Destroy a sequenced packet socket implementation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.seq_packet_socket_service.get_io_service [*get_io_service]]]
+ [Get the io_service object that owns the service. ]
+ ]
+
+ [
+ [[link boost_asio.reference.seq_packet_socket_service.get_option [*get_option]]]
+ [Get a socket option. ]
+ ]
+
+ [
+ [[link boost_asio.reference.seq_packet_socket_service.io_control [*io_control]]]
+ [Perform an IO control command on the socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.seq_packet_socket_service.is_open [*is_open]]]
+ [Determine whether the socket is open. ]
+ ]
+
+ [
+ [[link boost_asio.reference.seq_packet_socket_service.local_endpoint [*local_endpoint]]]
+ [Get the local endpoint. ]
+ ]
+
+ [
+ [[link boost_asio.reference.seq_packet_socket_service.move_assign [*move_assign]]]
+ [Move-assign from another sequenced packet socket implementation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.seq_packet_socket_service.move_construct [*move_construct]]]
+ [Move-construct a new sequenced packet socket implementation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.seq_packet_socket_service.native [*native]]]
+ [(Deprecated: Use native_handle().) Get the native socket implementation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.seq_packet_socket_service.native_handle [*native_handle]]]
+ [Get the native socket implementation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.seq_packet_socket_service.native_non_blocking [*native_non_blocking]]]
+ [Gets the non-blocking mode of the native socket implementation.
 
-[variablelist
+ Sets the non-blocking mode of the native socket implementation. ]
+ ]
   
-[[boost::system::system_error][Thrown on failure.]]
+ [
+ [[link boost_asio.reference.seq_packet_socket_service.non_blocking [*non_blocking]]]
+ [Gets the non-blocking mode of the socket.
 
+ Sets the non-blocking mode of the socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.seq_packet_socket_service.open [*open]]]
+ [Open a sequenced packet socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.seq_packet_socket_service.receive [*receive]]]
+ [Receive some data from the peer. ]
+ ]
+
+ [
+ [[link boost_asio.reference.seq_packet_socket_service.remote_endpoint [*remote_endpoint]]]
+ [Get the remote endpoint. ]
+ ]
+
+ [
+ [[link boost_asio.reference.seq_packet_socket_service.send [*send]]]
+ [Send the given data to the peer. ]
+ ]
+
+ [
+ [[link boost_asio.reference.seq_packet_socket_service.seq_packet_socket_service [*seq_packet_socket_service]]]
+ [Construct a new sequenced packet socket service for the specified io_service. ]
+ ]
+
+ [
+ [[link boost_asio.reference.seq_packet_socket_service.set_option [*set_option]]]
+ [Set a socket option. ]
+ ]
+
+ [
+ [[link boost_asio.reference.seq_packet_socket_service.shutdown [*shutdown]]]
+ [Disable sends or receives on the socket. ]
+ ]
+
 ]
 
+[heading Data Members]
+[table
+ [[Name][Description]]
 
-[heading Example]
-
-To read into a single data buffer use the [link boost_asio.reference.buffer `buffer`] function as follows:
+ [
+ [[link boost_asio.reference.seq_packet_socket_service.id [*id]]]
+ [The unique service identifier. ]
+ ]
 
- boost::asio::read(s, boost::asio::buffer(data, size),
- boost::asio::transfer_at_least(32));
+]
 
+[heading Requirements]
 
-See the [link boost_asio.reference.buffer `buffer`] documentation for information on reading into multiple buffers in one go, and how to use it with arrays, boost::array or std::vector.
+[*Header: ][^boost/asio/seq_packet_socket_service.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
 
+[section:assign seq_packet_socket_service::assign]
 
-[endsect]
+[indexterm2 assign..seq_packet_socket_service]
+Assign an existing native socket to a sequenced packet socket.
 
 
+ boost::system::error_code assign(
+ implementation_type & impl,
+ const protocol_type & protocol,
+ const native_handle_type & native_socket,
+ boost::system::error_code & ec);
 
-[section:overload4 read (4 of 8 overloads)]
 
 
-Attempt to read a certain amount of data from a stream before returning.
+[endsect]
 
 
- template<
- typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``,
- typename CompletionCondition>
- std::size_t read(
- SyncReadStream & s,
- const MutableBufferSequence & buffers,
- CompletionCondition completion_condition,
- boost::system::error_code & ec);
 
+[section:async_connect seq_packet_socket_service::async_connect]
 
-This function is used to read a certain number of bytes of data from a stream. The call will block until one of the following conditions is true:
+[indexterm2 async_connect..seq_packet_socket_service]
+Start an asynchronous connect.
 
 
-* The supplied buffers are full. That is, the bytes transferred is equal to the sum of the buffer sizes.
+ template<
+ typename ``[link boost_asio.reference.ConnectHandler ConnectHandler]``>
+ void async_connect(
+ implementation_type & impl,
+ const endpoint_type & peer_endpoint,
+ ConnectHandler handler);
 
 
-* The completion\_condition function object returns 0.
 
-This operation is implemented in terms of zero or more calls to the stream's read\_some function.
+[endsect]
 
 
-[heading Parameters]
-
 
-[variablelist
-
-[[s][The stream from which the data is to be read. The type must support the SyncReadStream concept.]]
+[section:async_receive seq_packet_socket_service::async_receive]
 
-[[buffers][One or more buffers into which the data will be read. The sum of the buffer sizes indicates the maximum number of bytes to read from the stream.]]
+[indexterm2 async_receive..seq_packet_socket_service]
+Start an asynchronous receive.
 
-[[completion_condition][The function object to be called to determine whether the read operation is complete. The signature of the function object must be:
-``
- std::size_t completion_condition(
- // Result of latest read_some operation.
- const boost::system::error_code& error,
 
- // Number of bytes transferred so far.
- std::size_t bytes_transferred
- );
-``
-A return value of 0 indicates that the read operation is complete. A non-zero return value indicates the maximum number of bytes to be read on the next call to the stream's read\_some function.]]
+ template<
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``,
+ typename ``[link boost_asio.reference.ReadHandler ReadHandler]``>
+ void async_receive(
+ implementation_type & impl,
+ const MutableBufferSequence & buffers,
+ socket_base::message_flags in_flags,
+ socket_base::message_flags & out_flags,
+ ReadHandler handler);
 
-[[ec][Set to indicate what error occurred, if any.]]
 
-]
 
+[endsect]
 
-[heading Return Value]
-
-The number of bytes read. If an error occurs, returns the total number of bytes successfully transferred prior to the error.
 
 
+[section:async_send seq_packet_socket_service::async_send]
 
+[indexterm2 async_send..seq_packet_socket_service]
+Start an asynchronous send.
 
-[endsect]
 
+ template<
+ typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``,
+ typename ``[link boost_asio.reference.WriteHandler WriteHandler]``>
+ void async_send(
+ implementation_type & impl,
+ const ConstBufferSequence & buffers,
+ socket_base::message_flags flags,
+ WriteHandler handler);
 
 
-[section:overload5 read (5 of 8 overloads)]
 
+[endsect]
 
-Attempt to read a certain amount of data from a stream before returning.
 
 
- template<
- typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
- typename Allocator>
- std::size_t read(
- SyncReadStream & s,
- basic_streambuf< Allocator > & b);
+[section:at_mark seq_packet_socket_service::at_mark]
 
+[indexterm2 at_mark..seq_packet_socket_service]
+Determine whether the socket is at the out-of-band data mark.
 
-This function is used to read a certain number of bytes of data from a stream. The call will block until one of the following conditions is true:
 
+ bool at_mark(
+ const implementation_type & impl,
+ boost::system::error_code & ec) const;
 
-* The supplied buffer is full (that is, it has reached maximum size).
 
 
-* An error occurred.
+[endsect]
 
-This operation is implemented in terms of zero or more calls to the stream's read\_some function.
 
 
-[heading Parameters]
-
+[section:available seq_packet_socket_service::available]
 
-[variablelist
-
-[[s][The stream from which the data is to be read. The type must support the SyncReadStream concept.]]
+[indexterm2 available..seq_packet_socket_service]
+Determine the number of bytes available for reading.
 
-[[b][The [link boost_asio.reference.basic_streambuf `basic_streambuf`] object into which the data will be read.]]
 
-]
+ std::size_t available(
+ const implementation_type & impl,
+ boost::system::error_code & ec) const;
 
 
-[heading Return Value]
-
-The number of bytes transferred.
 
+[endsect]
 
-[heading Exceptions]
-
 
-[variablelist
-
-[[boost::system::system_error][Thrown on failure.]]
 
-]
+[section:bind seq_packet_socket_service::bind]
 
+[indexterm2 bind..seq_packet_socket_service]
+Bind the sequenced packet socket to the specified local endpoint.
 
-[heading Remarks]
-
-This overload is equivalent to calling:
 
- boost::asio::read(
- s, b,
- boost::asio::transfer_all());
+ boost::system::error_code bind(
+ implementation_type & impl,
+ const endpoint_type & endpoint,
+ boost::system::error_code & ec);
 
 
 
+[endsect]
 
 
 
+[section:cancel seq_packet_socket_service::cancel]
 
-[endsect]
+[indexterm2 cancel..seq_packet_socket_service]
+Cancel all asynchronous operations associated with the socket.
 
 
+ boost::system::error_code cancel(
+ implementation_type & impl,
+ boost::system::error_code & ec);
 
-[section:overload6 read (6 of 8 overloads)]
 
 
-Attempt to read a certain amount of data from a stream before returning.
+[endsect]
 
 
- template<
- typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
- typename Allocator>
- std::size_t read(
- SyncReadStream & s,
- basic_streambuf< Allocator > & b,
- boost::system::error_code & ec);
 
+[section:close seq_packet_socket_service::close]
 
-This function is used to read a certain number of bytes of data from a stream. The call will block until one of the following conditions is true:
+[indexterm2 close..seq_packet_socket_service]
+Close a sequenced packet socket implementation.
 
 
-* The supplied buffer is full (that is, it has reached maximum size).
+ boost::system::error_code close(
+ implementation_type & impl,
+ boost::system::error_code & ec);
 
 
-* An error occurred.
 
-This operation is implemented in terms of zero or more calls to the stream's read\_some function.
+[endsect]
 
 
-[heading Parameters]
-
 
-[variablelist
-
-[[s][The stream from which the data is to be read. The type must support the SyncReadStream concept.]]
+[section:connect seq_packet_socket_service::connect]
 
-[[b][The [link boost_asio.reference.basic_streambuf `basic_streambuf`] object into which the data will be read.]]
+[indexterm2 connect..seq_packet_socket_service]
+Connect the sequenced packet socket to the specified endpoint.
 
-[[ec][Set to indicate what error occurred, if any.]]
 
-]
+ boost::system::error_code connect(
+ implementation_type & impl,
+ const endpoint_type & peer_endpoint,
+ boost::system::error_code & ec);
 
 
-[heading Return Value]
-
-The number of bytes transferred.
 
+[endsect]
 
-[heading Remarks]
-
-This overload is equivalent to calling:
 
- boost::asio::read(
- s, b,
- boost::asio::transfer_all(), ec);
 
+[section:construct seq_packet_socket_service::construct]
 
+[indexterm2 construct..seq_packet_socket_service]
+Construct a new sequenced packet socket implementation.
 
 
+ void construct(
+ implementation_type & impl);
 
 
 
@@ -74554,618 +78115,444 @@
 
 
 
-[section:overload7 read (7 of 8 overloads)]
-
+[section:destroy seq_packet_socket_service::destroy]
 
-Attempt to read a certain amount of data from a stream before returning.
+[indexterm2 destroy..seq_packet_socket_service]
+Destroy a sequenced packet socket implementation.
 
 
- template<
- typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
- typename Allocator,
- typename CompletionCondition>
- std::size_t read(
- SyncReadStream & s,
- basic_streambuf< Allocator > & b,
- CompletionCondition completion_condition);
+ void destroy(
+ implementation_type & impl);
 
 
-This function is used to read a certain number of bytes of data from a stream. The call will block until one of the following conditions is true:
 
+[endsect]
 
-* The supplied buffer is full (that is, it has reached maximum size).
 
 
-* The completion\_condition function object returns 0.
+[section:endpoint_type seq_packet_socket_service::endpoint_type]
 
-This operation is implemented in terms of zero or more calls to the stream's read\_some function.
+[indexterm2 endpoint_type..seq_packet_socket_service]
+The endpoint type.
 
 
-[heading Parameters]
-
+ typedef Protocol::endpoint endpoint_type;
 
-[variablelist
-
-[[s][The stream from which the data is to be read. The type must support the SyncReadStream concept.]]
 
-[[b][The [link boost_asio.reference.basic_streambuf `basic_streambuf`] object into which the data will be read.]]
 
-[[completion_condition][The function object to be called to determine whether the read operation is complete. The signature of the function object must be:
-``
- std::size_t completion_condition(
- // Result of latest read_some operation.
- const boost::system::error_code& error,
+[heading Requirements]
 
- // Number of bytes transferred so far.
- std::size_t bytes_transferred
- );
-``
-A return value of 0 indicates that the read operation is complete. A non-zero return value indicates the maximum number of bytes to be read on the next call to the stream's read\_some function.]]
+[*Header: ][^boost/asio/seq_packet_socket_service.hpp]
 
-]
+[*Convenience header: ][^boost/asio.hpp]
 
 
-[heading Return Value]
-
-The number of bytes transferred.
+[endsect]
 
 
-[heading Exceptions]
-
 
-[variablelist
-
-[[boost::system::system_error][Thrown on failure. ]]
+[section:get_io_service seq_packet_socket_service::get_io_service]
 
-]
 
+['Inherited from io_service.]
 
+[indexterm2 get_io_service..seq_packet_socket_service]
+Get the [link boost_asio.reference.io_service `io_service`] object that owns the service.
 
 
-[endsect]
+ boost::asio::io_service & get_io_service();
 
 
 
-[section:overload8 read (8 of 8 overloads)]
+[endsect]
 
 
-Attempt to read a certain amount of data from a stream before returning.
 
+[section:get_option seq_packet_socket_service::get_option]
 
- template<
- typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
- typename Allocator,
- typename CompletionCondition>
- std::size_t read(
- SyncReadStream & s,
- basic_streambuf< Allocator > & b,
- CompletionCondition completion_condition,
- boost::system::error_code & ec);
+[indexterm2 get_option..seq_packet_socket_service]
+Get a socket option.
 
 
-This function is used to read a certain number of bytes of data from a stream. The call will block until one of the following conditions is true:
+ template<
+ typename ``[link boost_asio.reference.GettableSocketOption GettableSocketOption]``>
+ boost::system::error_code get_option(
+ const implementation_type & impl,
+ GettableSocketOption & option,
+ boost::system::error_code & ec) const;
 
 
-* The supplied buffer is full (that is, it has reached maximum size).
 
+[endsect]
 
-* The completion\_condition function object returns 0.
 
-This operation is implemented in terms of zero or more calls to the stream's read\_some function.
 
+[section:id seq_packet_socket_service::id]
 
-[heading Parameters]
-
+[indexterm2 id..seq_packet_socket_service]
+The unique service identifier.
 
-[variablelist
-
-[[s][The stream from which the data is to be read. The type must support the SyncReadStream concept.]]
 
-[[b][The [link boost_asio.reference.basic_streambuf `basic_streambuf`] object into which the data will be read.]]
+ static boost::asio::io_service::id id;
 
-[[completion_condition][The function object to be called to determine whether the read operation is complete. The signature of the function object must be:
-``
- std::size_t completion_condition(
- // Result of latest read_some operation.
- const boost::system::error_code& error,
 
- // Number of bytes transferred so far.
- std::size_t bytes_transferred
- );
-``
-A return value of 0 indicates that the read operation is complete. A non-zero return value indicates the maximum number of bytes to be read on the next call to the stream's read\_some function.]]
 
-[[ec][Set to indicate what error occurred, if any.]]
+[endsect]
 
-]
 
 
-[heading Return Value]
-
-The number of bytes read. If an error occurs, returns the total number of bytes successfully transferred prior to the error.
+[section:implementation_type seq_packet_socket_service::implementation_type]
 
+[indexterm2 implementation_type..seq_packet_socket_service]
+The type of a sequenced packet socket implementation.
 
 
+ typedef implementation_defined implementation_type;
 
-[endsect]
 
 
-[endsect]
+[heading Requirements]
 
-[section:read_at read_at]
+[*Header: ][^boost/asio/seq_packet_socket_service.hpp]
 
-[indexterm1 read_at]
-Attempt to read a certain amount of data at the specified offset before returning.
+[*Convenience header: ][^boost/asio.hpp]
 
-
- template<
- typename ``[link boost_asio.reference.SyncRandomAccessReadDevice SyncRandomAccessReadDevice]``,
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
- std::size_t ``[link boost_asio.reference.read_at.overload1 read_at]``(
- SyncRandomAccessReadDevice & d,
- boost::uint64_t offset,
- const MutableBufferSequence & buffers);
- `` [''''&raquo;''' [link boost_asio.reference.read_at.overload1 more...]]``
 
- template<
- typename ``[link boost_asio.reference.SyncRandomAccessReadDevice SyncRandomAccessReadDevice]``,
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
- std::size_t ``[link boost_asio.reference.read_at.overload2 read_at]``(
- SyncRandomAccessReadDevice & d,
- boost::uint64_t offset,
- const MutableBufferSequence & buffers,
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.read_at.overload2 more...]]``
+[endsect]
 
- template<
- typename ``[link boost_asio.reference.SyncRandomAccessReadDevice SyncRandomAccessReadDevice]``,
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``,
- typename CompletionCondition>
- std::size_t ``[link boost_asio.reference.read_at.overload3 read_at]``(
- SyncRandomAccessReadDevice & d,
- boost::uint64_t offset,
- const MutableBufferSequence & buffers,
- CompletionCondition completion_condition);
- `` [''''&raquo;''' [link boost_asio.reference.read_at.overload3 more...]]``
 
- template<
- typename ``[link boost_asio.reference.SyncRandomAccessReadDevice SyncRandomAccessReadDevice]``,
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``,
- typename CompletionCondition>
- std::size_t ``[link boost_asio.reference.read_at.overload4 read_at]``(
- SyncRandomAccessReadDevice & d,
- boost::uint64_t offset,
- const MutableBufferSequence & buffers,
- CompletionCondition completion_condition,
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.read_at.overload4 more...]]``
 
- template<
- typename ``[link boost_asio.reference.SyncRandomAccessReadDevice SyncRandomAccessReadDevice]``,
- typename Allocator>
- std::size_t ``[link boost_asio.reference.read_at.overload5 read_at]``(
- SyncRandomAccessReadDevice & d,
- boost::uint64_t offset,
- basic_streambuf< Allocator > & b);
- `` [''''&raquo;''' [link boost_asio.reference.read_at.overload5 more...]]``
+[section:io_control seq_packet_socket_service::io_control]
 
- template<
- typename ``[link boost_asio.reference.SyncRandomAccessReadDevice SyncRandomAccessReadDevice]``,
- typename Allocator>
- std::size_t ``[link boost_asio.reference.read_at.overload6 read_at]``(
- SyncRandomAccessReadDevice & d,
- boost::uint64_t offset,
- basic_streambuf< Allocator > & b,
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.read_at.overload6 more...]]``
+[indexterm2 io_control..seq_packet_socket_service]
+Perform an IO control command on the socket.
 
- template<
- typename ``[link boost_asio.reference.SyncRandomAccessReadDevice SyncRandomAccessReadDevice]``,
- typename Allocator,
- typename CompletionCondition>
- std::size_t ``[link boost_asio.reference.read_at.overload7 read_at]``(
- SyncRandomAccessReadDevice & d,
- boost::uint64_t offset,
- basic_streambuf< Allocator > & b,
- CompletionCondition completion_condition);
- `` [''''&raquo;''' [link boost_asio.reference.read_at.overload7 more...]]``
 
   template<
- typename ``[link boost_asio.reference.SyncRandomAccessReadDevice SyncRandomAccessReadDevice]``,
- typename Allocator,
- typename CompletionCondition>
- std::size_t ``[link boost_asio.reference.read_at.overload8 read_at]``(
- SyncRandomAccessReadDevice & d,
- boost::uint64_t offset,
- basic_streambuf< Allocator > & b,
- CompletionCondition completion_condition,
+ typename ``[link boost_asio.reference.IoControlCommand IoControlCommand]``>
+ boost::system::error_code io_control(
+ implementation_type & impl,
+ IoControlCommand & command,
       boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.read_at.overload8 more...]]``
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/read_at.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
+[endsect]
 
 
-[section:overload1 read_at (1 of 8 overloads)]
 
+[section:is_open seq_packet_socket_service::is_open]
 
-Attempt to read a certain amount of data at the specified offset before returning.
+[indexterm2 is_open..seq_packet_socket_service]
+Determine whether the socket is open.
 
 
- template<
- typename ``[link boost_asio.reference.SyncRandomAccessReadDevice SyncRandomAccessReadDevice]``,
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
- std::size_t read_at(
- SyncRandomAccessReadDevice & d,
- boost::uint64_t offset,
- const MutableBufferSequence & buffers);
+ bool is_open(
+ const implementation_type & impl) const;
 
 
-This function is used to read a certain number of bytes of data from a random access device at the specified offset. The call will block until one of the following conditions is true:
 
+[endsect]
 
-* The supplied buffers are full. That is, the bytes transferred is equal to the sum of the buffer sizes.
 
 
-* An error occurred.
+[section:local_endpoint seq_packet_socket_service::local_endpoint]
 
-This operation is implemented in terms of zero or more calls to the device's read\_some\_at function.
+[indexterm2 local_endpoint..seq_packet_socket_service]
+Get the local endpoint.
 
 
-[heading Parameters]
-
+ endpoint_type local_endpoint(
+ const implementation_type & impl,
+ boost::system::error_code & ec) const;
 
-[variablelist
-
-[[d][The device from which the data is to be read. The type must support the SyncRandomAccessReadDevice concept.]]
 
-[[offset][The offset at which the data will be read.]]
 
-[[buffers][One or more buffers into which the data will be read. The sum of the buffer sizes indicates the maximum number of bytes to read from the device.]]
+[endsect]
 
-]
 
 
-[heading Return Value]
-
-The number of bytes transferred.
+[section:move_assign seq_packet_socket_service::move_assign]
 
+[indexterm2 move_assign..seq_packet_socket_service]
+Move-assign from another sequenced packet socket implementation.
 
-[heading Exceptions]
-
 
-[variablelist
-
-[[boost::system::system_error][Thrown on failure.]]
+ void move_assign(
+ implementation_type & impl,
+ seq_packet_socket_service & other_service,
+ implementation_type & other_impl);
 
-]
 
 
-[heading Example]
-
-To read into a single data buffer use the [link boost_asio.reference.buffer `buffer`] function as follows:
+[endsect]
 
- boost::asio::read_at(d, 42, boost::asio::buffer(data, size));
 
 
-See the [link boost_asio.reference.buffer `buffer`] documentation for information on reading into multiple buffers in one go, and how to use it with arrays, boost::array or std::vector.
+[section:move_construct seq_packet_socket_service::move_construct]
 
+[indexterm2 move_construct..seq_packet_socket_service]
+Move-construct a new sequenced packet socket implementation.
 
-[heading Remarks]
-
-This overload is equivalent to calling:
 
- boost::asio::read_at(
- d, 42, buffers,
- boost::asio::transfer_all());
+ void move_construct(
+ implementation_type & impl,
+ implementation_type & other_impl);
 
 
 
+[endsect]
 
 
 
+[section:native seq_packet_socket_service::native]
 
-[endsect]
+[indexterm2 native..seq_packet_socket_service]
+(Deprecated: Use `native_handle()`.) Get the native socket implementation.
 
 
+ native_type native(
+ implementation_type & impl);
 
-[section:overload2 read_at (2 of 8 overloads)]
 
 
-Attempt to read a certain amount of data at the specified offset before returning.
+[endsect]
 
 
- template<
- typename ``[link boost_asio.reference.SyncRandomAccessReadDevice SyncRandomAccessReadDevice]``,
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
- std::size_t read_at(
- SyncRandomAccessReadDevice & d,
- boost::uint64_t offset,
- const MutableBufferSequence & buffers,
- boost::system::error_code & ec);
 
+[section:native_handle seq_packet_socket_service::native_handle]
 
-This function is used to read a certain number of bytes of data from a random access device at the specified offset. The call will block until one of the following conditions is true:
+[indexterm2 native_handle..seq_packet_socket_service]
+Get the native socket implementation.
 
 
-* The supplied buffers are full. That is, the bytes transferred is equal to the sum of the buffer sizes.
+ native_handle_type native_handle(
+ implementation_type & impl);
 
 
-* An error occurred.
 
-This operation is implemented in terms of zero or more calls to the device's read\_some\_at function.
+[endsect]
 
 
-[heading Parameters]
-
 
-[variablelist
-
-[[d][The device from which the data is to be read. The type must support the SyncRandomAccessReadDevice concept.]]
+[section:native_handle_type seq_packet_socket_service::native_handle_type]
 
-[[offset][The offset at which the data will be read.]]
+[indexterm2 native_handle_type..seq_packet_socket_service]
+The native socket type.
 
-[[buffers][One or more buffers into which the data will be read. The sum of the buffer sizes indicates the maximum number of bytes to read from the device.]]
 
-[[ec][Set to indicate what error occurred, if any.]]
+ typedef implementation_defined native_handle_type;
 
-]
 
 
-[heading Return Value]
-
-The number of bytes transferred.
+[heading Requirements]
 
+[*Header: ][^boost/asio/seq_packet_socket_service.hpp]
 
-[heading Example]
-
-To read into a single data buffer use the [link boost_asio.reference.buffer `buffer`] function as follows:
+[*Convenience header: ][^boost/asio.hpp]
 
- boost::asio::read_at(d, 42,
- boost::asio::buffer(data, size), ec);
 
+[endsect]
 
-See the [link boost_asio.reference.buffer `buffer`] documentation for information on reading into multiple buffers in one go, and how to use it with arrays, boost::array or std::vector.
 
+[section:native_non_blocking seq_packet_socket_service::native_non_blocking]
 
-[heading Remarks]
-
-This overload is equivalent to calling:
+[indexterm2 native_non_blocking..seq_packet_socket_service]
+Gets the non-blocking mode of the native socket implementation.
 
- boost::asio::read_at(
- d, 42, buffers,
- boost::asio::transfer_all(), ec);
 
+ bool ``[link boost_asio.reference.seq_packet_socket_service.native_non_blocking.overload1 native_non_blocking]``(
+ const implementation_type & impl) const;
+ `` [''''&raquo;''' [link boost_asio.reference.seq_packet_socket_service.native_non_blocking.overload1 more...]]``
 
 
+Sets the non-blocking mode of the native socket implementation.
 
 
+ boost::system::error_code ``[link boost_asio.reference.seq_packet_socket_service.native_non_blocking.overload2 native_non_blocking]``(
+ implementation_type & impl,
+ bool mode,
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.seq_packet_socket_service.native_non_blocking.overload2 more...]]``
 
 
-[endsect]
+[section:overload1 seq_packet_socket_service::native_non_blocking (1 of 2 overloads)]
 
 
+Gets the non-blocking mode of the native socket implementation.
 
-[section:overload3 read_at (3 of 8 overloads)]
 
+ bool native_non_blocking(
+ const implementation_type & impl) const;
 
-Attempt to read a certain amount of data at the specified offset before returning.
 
 
- template<
- typename ``[link boost_asio.reference.SyncRandomAccessReadDevice SyncRandomAccessReadDevice]``,
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``,
- typename CompletionCondition>
- std::size_t read_at(
- SyncRandomAccessReadDevice & d,
- boost::uint64_t offset,
- const MutableBufferSequence & buffers,
- CompletionCondition completion_condition);
+[endsect]
 
 
-This function is used to read a certain number of bytes of data from a random access device at the specified offset. The call will block until one of the following conditions is true:
 
+[section:overload2 seq_packet_socket_service::native_non_blocking (2 of 2 overloads)]
 
-* The supplied buffers are full. That is, the bytes transferred is equal to the sum of the buffer sizes.
 
+Sets the non-blocking mode of the native socket implementation.
 
-* The completion\_condition function object returns 0.
 
-This operation is implemented in terms of zero or more calls to the device's read\_some\_at function.
+ boost::system::error_code native_non_blocking(
+ implementation_type & impl,
+ bool mode,
+ boost::system::error_code & ec);
 
 
-[heading Parameters]
-
 
-[variablelist
-
-[[d][The device from which the data is to be read. The type must support the SyncRandomAccessReadDevice concept.]]
+[endsect]
 
-[[offset][The offset at which the data will be read.]]
 
-[[buffers][One or more buffers into which the data will be read. The sum of the buffer sizes indicates the maximum number of bytes to read from the device.]]
+[endsect]
 
-[[completion_condition][The function object to be called to determine whether the read operation is complete. The signature of the function object must be:
-``
- std::size_t completion_condition(
- // Result of latest read_some_at operation.
- const boost::system::error_code& error,
 
- // Number of bytes transferred so far.
- std::size_t bytes_transferred
- );
-``
-A return value of 0 indicates that the read operation is complete. A non-zero return value indicates the maximum number of bytes to be read on the next call to the device's read\_some\_at function.]]
+[section:native_type seq_packet_socket_service::native_type]
 
-]
+[indexterm2 native_type..seq_packet_socket_service]
+(Deprecated: Use native\_handle\_type.) The native socket type.
 
 
-[heading Return Value]
-
-The number of bytes transferred.
+ typedef implementation_defined native_type;
 
 
-[heading Exceptions]
-
 
-[variablelist
-
-[[boost::system::system_error][Thrown on failure.]]
+[heading Requirements]
 
-]
+[*Header: ][^boost/asio/seq_packet_socket_service.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
-[heading Example]
-
-To read into a single data buffer use the [link boost_asio.reference.buffer `buffer`] function as follows:
 
- boost::asio::read_at(d, 42, boost::asio::buffer(data, size),
- boost::asio::transfer_at_least(32));
+[endsect]
 
 
-See the [link boost_asio.reference.buffer `buffer`] documentation for information on reading into multiple buffers in one go, and how to use it with arrays, boost::array or std::vector.
+[section:non_blocking seq_packet_socket_service::non_blocking]
 
+[indexterm2 non_blocking..seq_packet_socket_service]
+Gets the non-blocking mode of the socket.
 
 
+ bool ``[link boost_asio.reference.seq_packet_socket_service.non_blocking.overload1 non_blocking]``(
+ const implementation_type & impl) const;
+ `` [''''&raquo;''' [link boost_asio.reference.seq_packet_socket_service.non_blocking.overload1 more...]]``
 
-[endsect]
 
+Sets the non-blocking mode of the socket.
 
 
-[section:overload4 read_at (4 of 8 overloads)]
+ boost::system::error_code ``[link boost_asio.reference.seq_packet_socket_service.non_blocking.overload2 non_blocking]``(
+ implementation_type & impl,
+ bool mode,
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.seq_packet_socket_service.non_blocking.overload2 more...]]``
 
 
-Attempt to read a certain amount of data at the specified offset before returning.
+[section:overload1 seq_packet_socket_service::non_blocking (1 of 2 overloads)]
 
 
- template<
- typename ``[link boost_asio.reference.SyncRandomAccessReadDevice SyncRandomAccessReadDevice]``,
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``,
- typename CompletionCondition>
- std::size_t read_at(
- SyncRandomAccessReadDevice & d,
- boost::uint64_t offset,
- const MutableBufferSequence & buffers,
- CompletionCondition completion_condition,
- boost::system::error_code & ec);
+Gets the non-blocking mode of the socket.
 
 
-This function is used to read a certain number of bytes of data from a random access device at the specified offset. The call will block until one of the following conditions is true:
+ bool non_blocking(
+ const implementation_type & impl) const;
 
 
-* The supplied buffers are full. That is, the bytes transferred is equal to the sum of the buffer sizes.
 
+[endsect]
 
-* The completion\_condition function object returns 0.
 
-This operation is implemented in terms of zero or more calls to the device's read\_some\_at function.
 
+[section:overload2 seq_packet_socket_service::non_blocking (2 of 2 overloads)]
 
-[heading Parameters]
-
 
-[variablelist
-
-[[d][The device from which the data is to be read. The type must support the SyncRandomAccessReadDevice concept.]]
+Sets the non-blocking mode of the socket.
 
-[[offset][The offset at which the data will be read.]]
 
-[[buffers][One or more buffers into which the data will be read. The sum of the buffer sizes indicates the maximum number of bytes to read from the device.]]
+ boost::system::error_code non_blocking(
+ implementation_type & impl,
+ bool mode,
+ boost::system::error_code & ec);
 
-[[completion_condition][The function object to be called to determine whether the read operation is complete. The signature of the function object must be:
-``
- std::size_t completion_condition(
- // Result of latest read_some_at operation.
- const boost::system::error_code& error,
 
- // Number of bytes transferred so far.
- std::size_t bytes_transferred
- );
-``
-A return value of 0 indicates that the read operation is complete. A non-zero return value indicates the maximum number of bytes to be read on the next call to the device's read\_some\_at function.]]
 
-[[ec][Set to indicate what error occurred, if any.]]
+[endsect]
 
-]
 
+[endsect]
 
-[heading Return Value]
-
-The number of bytes read. If an error occurs, returns the total number of bytes successfully transferred prior to the error.
 
+[section:open seq_packet_socket_service::open]
 
+[indexterm2 open..seq_packet_socket_service]
+Open a sequenced packet socket.
 
 
-[endsect]
+ boost::system::error_code open(
+ implementation_type & impl,
+ const protocol_type & protocol,
+ boost::system::error_code & ec);
 
 
 
-[section:overload5 read_at (5 of 8 overloads)]
+[endsect]
 
 
-Attempt to read a certain amount of data at the specified offset before returning.
 
+[section:protocol_type seq_packet_socket_service::protocol_type]
 
- template<
- typename ``[link boost_asio.reference.SyncRandomAccessReadDevice SyncRandomAccessReadDevice]``,
- typename Allocator>
- std::size_t read_at(
- SyncRandomAccessReadDevice & d,
- boost::uint64_t offset,
- basic_streambuf< Allocator > & b);
+[indexterm2 protocol_type..seq_packet_socket_service]
+The protocol type.
 
 
-This function is used to read a certain number of bytes of data from a random access device at the specified offset. The call will block until one of the following conditions is true:
+ typedef Protocol protocol_type;
 
 
-* An error occurred.
 
-This operation is implemented in terms of zero or more calls to the device's read\_some\_at function.
+[heading Requirements]
 
+[*Header: ][^boost/asio/seq_packet_socket_service.hpp]
 
-[heading Parameters]
-
+[*Convenience header: ][^boost/asio.hpp]
 
-[variablelist
-
-[[d][The device from which the data is to be read. The type must support the SyncRandomAccessReadDevice concept.]]
 
-[[offset][The offset at which the data will be read.]]
+[endsect]
 
-[[b][The [link boost_asio.reference.basic_streambuf `basic_streambuf`] object into which the data will be read.]]
 
-]
 
+[section:receive seq_packet_socket_service::receive]
 
-[heading Return Value]
-
-The number of bytes transferred.
+[indexterm2 receive..seq_packet_socket_service]
+Receive some data from the peer.
 
 
-[heading Exceptions]
-
+ template<
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
+ std::size_t receive(
+ implementation_type & impl,
+ const MutableBufferSequence & buffers,
+ socket_base::message_flags in_flags,
+ socket_base::message_flags & out_flags,
+ boost::system::error_code & ec);
 
-[variablelist
-
-[[boost::system::system_error][Thrown on failure.]]
 
-]
 
+[endsect]
 
-[heading Remarks]
-
-This overload is equivalent to calling:
 
- boost::asio::read_at(
- d, 42, b,
- boost::asio::transfer_all());
 
+[section:remote_endpoint seq_packet_socket_service::remote_endpoint]
 
+[indexterm2 remote_endpoint..seq_packet_socket_service]
+Get the remote endpoint.
 
 
+ endpoint_type remote_endpoint(
+ const implementation_type & impl,
+ boost::system::error_code & ec) const;
 
 
 
@@ -75173,62 +78560,53 @@
 
 
 
-[section:overload6 read_at (6 of 8 overloads)]
-
+[section:send seq_packet_socket_service::send]
 
-Attempt to read a certain amount of data at the specified offset before returning.
+[indexterm2 send..seq_packet_socket_service]
+Send the given data to the peer.
 
 
   template<
- typename ``[link boost_asio.reference.SyncRandomAccessReadDevice SyncRandomAccessReadDevice]``,
- typename Allocator>
- std::size_t read_at(
- SyncRandomAccessReadDevice & d,
- boost::uint64_t offset,
- basic_streambuf< Allocator > & b,
+ typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
+ std::size_t send(
+ implementation_type & impl,
+ const ConstBufferSequence & buffers,
+ socket_base::message_flags flags,
       boost::system::error_code & ec);
 
 
-This function is used to read a certain number of bytes of data from a random access device at the specified offset. The call will block until one of the following conditions is true:
-
-
-* An error occurred.
-
-This operation is implemented in terms of zero or more calls to the device's read\_some\_at function.
 
+[endsect]
 
-[heading Parameters]
-
 
-[variablelist
-
-[[d][The device from which the data is to be read. The type must support the SyncRandomAccessReadDevice concept.]]
 
-[[offset][The offset at which the data will be read.]]
+[section:seq_packet_socket_service seq_packet_socket_service::seq_packet_socket_service]
 
-[[b][The [link boost_asio.reference.basic_streambuf `basic_streambuf`] object into which the data will be read.]]
+[indexterm2 seq_packet_socket_service..seq_packet_socket_service]
+Construct a new sequenced packet socket service for the specified [link boost_asio.reference.io_service `io_service`].
 
-[[ec][Set to indicate what error occurred, if any.]]
 
-]
+ seq_packet_socket_service(
+ boost::asio::io_service & io_service);
 
 
-[heading Return Value]
-
-The number of bytes transferred.
 
+[endsect]
 
-[heading Remarks]
-
-This overload is equivalent to calling:
 
- boost::asio::read_at(
- d, 42, b,
- boost::asio::transfer_all(), ec);
 
+[section:set_option seq_packet_socket_service::set_option]
 
+[indexterm2 set_option..seq_packet_socket_service]
+Set a socket option.
 
 
+ template<
+ typename ``[link boost_asio.reference.SettableSocketOption SettableSocketOption]``>
+ boost::system::error_code set_option(
+ implementation_type & impl,
+ const SettableSocketOption & option,
+ boost::system::error_code & ec);
 
 
 
@@ -75236,325 +78614,382 @@
 
 
 
-[section:overload7 read_at (7 of 8 overloads)]
+[section:shutdown seq_packet_socket_service::shutdown]
 
+[indexterm2 shutdown..seq_packet_socket_service]
+Disable sends or receives on the socket.
 
-Attempt to read a certain amount of data at the specified offset before returning.
 
+ boost::system::error_code shutdown(
+ implementation_type & impl,
+ socket_base::shutdown_type what,
+ boost::system::error_code & ec);
 
- template<
- typename ``[link boost_asio.reference.SyncRandomAccessReadDevice SyncRandomAccessReadDevice]``,
- typename Allocator,
- typename CompletionCondition>
- std::size_t read_at(
- SyncRandomAccessReadDevice & d,
- boost::uint64_t offset,
- basic_streambuf< Allocator > & b,
- CompletionCondition completion_condition);
 
 
-This function is used to read a certain number of bytes of data from a random access device at the specified offset. The call will block until one of the following conditions is true:
+[endsect]
 
 
-* The completion\_condition function object returns 0.
 
-This operation is implemented in terms of zero or more calls to the device's read\_some\_at function.
+[endsect]
 
 
-[heading Parameters]
-
+[section:serial_port serial_port]
 
-[variablelist
-
-[[d][The device from which the data is to be read. The type must support the SyncRandomAccessReadDevice concept.]]
+[indexterm1 serial_port]
+Typedef for the typical usage of a serial port.
 
-[[offset][The offset at which the data will be read.]]
 
-[[b][The [link boost_asio.reference.basic_streambuf `basic_streambuf`] object into which the data will be read.]]
+ typedef basic_serial_port serial_port;
 
-[[completion_condition][The function object to be called to determine whether the read operation is complete. The signature of the function object must be:
-``
- std::size_t completion_condition(
- // Result of latest read_some_at operation.
- const boost::system::error_code& error,
 
- // Number of bytes transferred so far.
- std::size_t bytes_transferred
- );
-``
-A return value of 0 indicates that the read operation is complete. A non-zero return value indicates the maximum number of bytes to be read on the next call to the device's read\_some\_at function.]]
+[heading Types]
+[table
+ [[Name][Description]]
 
-]
+ [
 
+ [[link boost_asio.reference.basic_serial_port.implementation_type [*implementation_type]]]
+ [The underlying implementation type of I/O object. ]
+
+ ]
 
-[heading Return Value]
-
-The number of bytes transferred.
+ [
 
+ [[link boost_asio.reference.basic_serial_port.lowest_layer_type [*lowest_layer_type]]]
+ [A basic_serial_port is always the lowest layer. ]
+
+ ]
 
-[heading Exceptions]
-
+ [
 
-[variablelist
+ [[link boost_asio.reference.basic_serial_port.native_handle_type [*native_handle_type]]]
+ [The native representation of a serial port. ]
   
-[[boost::system::system_error][Thrown on failure. ]]
+ ]
 
-]
+ [
 
+ [[link boost_asio.reference.basic_serial_port.native_type [*native_type]]]
+ [(Deprecated: Use native_handle_type.) The native representation of a serial port. ]
+
+ ]
 
+ [
 
+ [[link boost_asio.reference.basic_serial_port.service_type [*service_type]]]
+ [The type of the service that will be used to provide I/O operations. ]
+
+ ]
 
-[endsect]
+]
 
+[heading Member Functions]
+[table
+ [[Name][Description]]
 
+ [
+ [[link boost_asio.reference.basic_serial_port.assign [*assign]]]
+ [Assign an existing native serial port to the serial port. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_serial_port.async_read_some [*async_read_some]]]
+ [Start an asynchronous read. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_serial_port.async_write_some [*async_write_some]]]
+ [Start an asynchronous write. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_serial_port.basic_serial_port [*basic_serial_port]]]
+ [Construct a basic_serial_port without opening it.
 
-[section:overload8 read_at (8 of 8 overloads)]
+ Construct and open a basic_serial_port.
 
+ Construct a basic_serial_port on an existing native serial port.
 
-Attempt to read a certain amount of data at the specified offset before returning.
+ Move-construct a basic_serial_port from another. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_serial_port.cancel [*cancel]]]
+ [Cancel all asynchronous operations associated with the serial port. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_serial_port.close [*close]]]
+ [Close the serial port. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_serial_port.get_io_service [*get_io_service]]]
+ [Get the io_service associated with the object. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_serial_port.get_option [*get_option]]]
+ [Get an option from the serial port. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_serial_port.is_open [*is_open]]]
+ [Determine whether the serial port is open. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_serial_port.lowest_layer [*lowest_layer]]]
+ [Get a reference to the lowest layer.
 
+ Get a const reference to the lowest layer. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_serial_port.native [*native]]]
+ [(Deprecated: Use native_handle().) Get the native serial port representation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_serial_port.native_handle [*native_handle]]]
+ [Get the native serial port representation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_serial_port.open [*open]]]
+ [Open the serial port using the specified device name. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_serial_port.operator_eq_ [*operator=]]]
+ [Move-assign a basic_serial_port from another. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_serial_port.read_some [*read_some]]]
+ [Read some data from the serial port. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_serial_port.send_break [*send_break]]]
+ [Send a break sequence to the serial port. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_serial_port.set_option [*set_option]]]
+ [Set an option on the serial port. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_serial_port.write_some [*write_some]]]
+ [Write some data to the serial port. ]
+ ]
+
+]
 
- template<
- typename ``[link boost_asio.reference.SyncRandomAccessReadDevice SyncRandomAccessReadDevice]``,
- typename Allocator,
- typename CompletionCondition>
- std::size_t read_at(
- SyncRandomAccessReadDevice & d,
- boost::uint64_t offset,
- basic_streambuf< Allocator > & b,
- CompletionCondition completion_condition,
- boost::system::error_code & ec);
+[heading Protected Member Functions]
+[table
+ [[Name][Description]]
 
+ [
+ [[link boost_asio.reference.basic_serial_port.get_implementation [*get_implementation]]]
+ [Get the underlying implementation of the I/O object. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_serial_port.get_service [*get_service]]]
+ [Get the service associated with the I/O object. ]
+ ]
+
+]
 
-This function is used to read a certain number of bytes of data from a random access device at the specified offset. The call will block until one of the following conditions is true:
+[heading Protected Data Members]
+[table
+ [[Name][Description]]
 
+ [
+ [[link boost_asio.reference.basic_serial_port.implementation [*implementation]]]
+ [(Deprecated: Use get_implementation().) The underlying implementation of the I/O object. ]
+ ]
 
-* The completion\_condition function object returns 0.
+ [
+ [[link boost_asio.reference.basic_serial_port.service [*service]]]
+ [(Deprecated: Use get_service().) The service associated with the I/O object. ]
+ ]
 
-This operation is implemented in terms of zero or more calls to the device's read\_some\_at function.
+]
 
+The [link boost_asio.reference.basic_serial_port `basic_serial_port`] class template provides functionality that is common to all serial ports.
 
-[heading Parameters]
-
 
-[variablelist
+[heading Thread Safety]
   
-[[d][The device from which the data is to be read. The type must support the SyncRandomAccessReadDevice concept.]]
+[*Distinct] [*objects:] Safe.
 
-[[offset][The offset at which the data will be read.]]
+[*Shared] [*objects:] Unsafe.
 
-[[b][The [link boost_asio.reference.basic_streambuf `basic_streambuf`] object into which the data will be read.]]
 
-[[completion_condition][The function object to be called to determine whether the read operation is complete. The signature of the function object must be:
-``
- std::size_t completion_condition(
- // Result of latest read_some_at operation.
- const boost::system::error_code& error,
 
- // Number of bytes transferred so far.
- std::size_t bytes_transferred
- );
-``
-A return value of 0 indicates that the read operation is complete. A non-zero return value indicates the maximum number of bytes to be read on the next call to the device's read\_some\_at function.]]
 
-[[ec][Set to indicate what error occurred, if any.]]
+[heading Requirements]
 
-]
+[*Header: ][^boost/asio/serial_port.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
-[heading Return Value]
-
-The number of bytes read. If an error occurs, returns the total number of bytes successfully transferred prior to the error.
 
+[endsect]
 
 
+[section:serial_port_base serial_port_base]
 
-[endsect]
 
+The [link boost_asio.reference.serial_port_base `serial_port_base`] class is used as a base for the [link boost_asio.reference.basic_serial_port `basic_serial_port`] class template so that we have a common place to define the serial port options.
 
-[endsect]
 
-[section:read_until read_until]
+ class serial_port_base
 
-[indexterm1 read_until]
-Read data into a streambuf until it contains a delimiter, matches a regular expression, or a function object indicates a match.
 
-
- template<
- typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
- typename Allocator>
- std::size_t ``[link boost_asio.reference.read_until.overload1 read_until]``(
- SyncReadStream & s,
- boost::asio::basic_streambuf< Allocator > & b,
- char delim);
- `` [''''&raquo;''' [link boost_asio.reference.read_until.overload1 more...]]``
+[heading Types]
+[table
+ [[Name][Description]]
 
- template<
- typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
- typename Allocator>
- std::size_t ``[link boost_asio.reference.read_until.overload2 read_until]``(
- SyncReadStream & s,
- boost::asio::basic_streambuf< Allocator > & b,
- char delim,
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.read_until.overload2 more...]]``
+ [
 
- template<
- typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
- typename Allocator>
- std::size_t ``[link boost_asio.reference.read_until.overload3 read_until]``(
- SyncReadStream & s,
- boost::asio::basic_streambuf< Allocator > & b,
- const std::string & delim);
- `` [''''&raquo;''' [link boost_asio.reference.read_until.overload3 more...]]``
+ [[link boost_asio.reference.serial_port_base__baud_rate [*baud_rate]]]
+ [Serial port option to permit changing the baud rate. ]
+
+ ]
 
- template<
- typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
- typename Allocator>
- std::size_t ``[link boost_asio.reference.read_until.overload4 read_until]``(
- SyncReadStream & s,
- boost::asio::basic_streambuf< Allocator > & b,
- const std::string & delim,
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.read_until.overload4 more...]]``
+ [
 
- template<
- typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
- typename Allocator>
- std::size_t ``[link boost_asio.reference.read_until.overload5 read_until]``(
- SyncReadStream & s,
- boost::asio::basic_streambuf< Allocator > & b,
- const boost::regex & expr);
- `` [''''&raquo;''' [link boost_asio.reference.read_until.overload5 more...]]``
+ [[link boost_asio.reference.serial_port_base__character_size [*character_size]]]
+ [Serial port option to permit changing the character size. ]
+
+ ]
 
- template<
- typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
- typename Allocator>
- std::size_t ``[link boost_asio.reference.read_until.overload6 read_until]``(
- SyncReadStream & s,
- boost::asio::basic_streambuf< Allocator > & b,
- const boost::regex & expr,
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.read_until.overload6 more...]]``
+ [
 
- template<
- typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
- typename Allocator,
- typename MatchCondition>
- std::size_t ``[link boost_asio.reference.read_until.overload7 read_until]``(
- SyncReadStream & s,
- boost::asio::basic_streambuf< Allocator > & b,
- MatchCondition match_condition,
- typename boost::enable_if< is_match_condition< MatchCondition > >::type * = 0);
- `` [''''&raquo;''' [link boost_asio.reference.read_until.overload7 more...]]``
+ [[link boost_asio.reference.serial_port_base__flow_control [*flow_control]]]
+ [Serial port option to permit changing the flow control. ]
+
+ ]
 
- template<
- typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
- typename Allocator,
- typename MatchCondition>
- std::size_t ``[link boost_asio.reference.read_until.overload8 read_until]``(
- SyncReadStream & s,
- boost::asio::basic_streambuf< Allocator > & b,
- MatchCondition match_condition,
- boost::system::error_code & ec,
- typename boost::enable_if< is_match_condition< MatchCondition > >::type * = 0);
- `` [''''&raquo;''' [link boost_asio.reference.read_until.overload8 more...]]``
+ [
 
-[heading Requirements]
+ [[link boost_asio.reference.serial_port_base__parity [*parity]]]
+ [Serial port option to permit changing the parity. ]
+
+ ]
 
-[*Header: ][^boost/asio/read_until.hpp]
+ [
 
-[*Convenience header: ][^boost/asio.hpp]
+ [[link boost_asio.reference.serial_port_base__stop_bits [*stop_bits]]]
+ [Serial port option to permit changing the number of stop bits. ]
+
+ ]
 
+]
 
-[section:overload1 read_until (1 of 8 overloads)]
+[heading Protected Member Functions]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.serial_port_base._serial_port_base [*~serial_port_base]]]
+ [Protected destructor to prevent deletion through this type. ]
+ ]
+
+]
 
+[heading Requirements]
 
-Read data into a streambuf until it contains a specified delimiter.
+[*Header: ][^boost/asio/serial_port_base.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
- template<
- typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
- typename Allocator>
- std::size_t read_until(
- SyncReadStream & s,
- boost::asio::basic_streambuf< Allocator > & b,
- char delim);
 
+[section:_serial_port_base serial_port_base::~serial_port_base]
 
-This function is used to read data into the specified streambuf until the streambuf's get area contains the specified delimiter. The call will block until one of the following conditions is true:
+[indexterm2 ~serial_port_base..serial_port_base]
+Protected destructor to prevent deletion through this type.
 
 
-* The get area of the streambuf contains the specified delimiter.
+ ~serial_port_base();
 
 
-* An error occurred.
 
-This operation is implemented in terms of zero or more calls to the stream's read\_some function. If the streambuf's get area already contains the delimiter, the function returns immediately.
+[endsect]
 
 
-[heading Parameters]
-
 
-[variablelist
-
-[[s][The stream from which the data is to be read. The type must support the SyncReadStream concept.]]
+[endsect]
 
-[[b][A streambuf object into which the data will be read.]]
+[section:serial_port_base__baud_rate serial_port_base::baud_rate]
 
-[[delim][The delimiter character.]]
 
-]
+Serial port option to permit changing the baud rate.
 
 
-[heading Return Value]
-
-The number of bytes in the streambuf's get area up to and including the delimiter.
+ class baud_rate
 
 
-[heading Exceptions]
-
+[heading Member Functions]
+[table
+ [[Name][Description]]
 
-[variablelist
+ [
+ [[link boost_asio.reference.serial_port_base__baud_rate.baud_rate [*baud_rate]]]
+ []
+ ]
+
+ [
+ [[link boost_asio.reference.serial_port_base__baud_rate.load [*load]]]
+ []
+ ]
+
+ [
+ [[link boost_asio.reference.serial_port_base__baud_rate.store [*store]]]
+ []
+ ]
+
+ [
+ [[link boost_asio.reference.serial_port_base__baud_rate.value [*value]]]
+ []
+ ]
   
-[[boost::system::system_error][Thrown on failure.]]
-
 ]
 
+Implements changing the baud rate for a given serial port.
 
-[heading Remarks]
-
-After a successful read\_until operation, the streambuf may contain additional data beyond the delimiter. An application will typically leave that data in the streambuf for a subsequent read\_until operation to examine.
-
+[heading Requirements]
 
-[heading Example]
-
-To read data into a streambuf until a newline is encountered:
+[*Header: ][^boost/asio/serial_port_base.hpp]
 
- boost::asio::streambuf b;
- boost::asio::read_until(s, b, '\n');
- std::istream is(&b);
- std::string line;
- std::getline(is, line);
+[*Convenience header: ][^boost/asio.hpp]
 
 
-After the `read_until` operation completes successfully, the buffer `b` contains the delimiter:
+[section:baud_rate serial_port_base::baud_rate::baud_rate]
 
- { 'a', 'b', ..., 'c', '\n', 'd', 'e', ... }
+[indexterm2 baud_rate..serial_port_base::baud_rate]
 
+ baud_rate(
+ unsigned int rate = 0);
 
-The call to `std::getline` then extracts the data up to and including the delimiter, so that the string `line` contains:
 
- { 'a', 'b', ..., 'c', '\n' }
 
+[endsect]
 
-The remaining data is left in the buffer `b` as follows:
 
- { 'd', 'e', ... }
 
+[section:load serial_port_base::baud_rate::load]
 
-This data may be the start of a new line, to be extracted by a subsequent `read_until` operation.
+[indexterm2 load..serial_port_base::baud_rate]
 
+ boost::system::error_code load(
+ const BOOST_ASIO_OPTION_STORAGE & storage,
+ boost::system::error_code & ec);
 
 
 
@@ -75562,212 +78997,224 @@
 
 
 
-[section:overload2 read_until (2 of 8 overloads)]
+[section:store serial_port_base::baud_rate::store]
 
+[indexterm2 store..serial_port_base::baud_rate]
 
-Read data into a streambuf until it contains a specified delimiter.
+ boost::system::error_code store(
+ BOOST_ASIO_OPTION_STORAGE & storage,
+ boost::system::error_code & ec) const;
 
 
- template<
- typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
- typename Allocator>
- std::size_t read_until(
- SyncReadStream & s,
- boost::asio::basic_streambuf< Allocator > & b,
- char delim,
- boost::system::error_code & ec);
 
+[endsect]
 
-This function is used to read data into the specified streambuf until the streambuf's get area contains the specified delimiter. The call will block until one of the following conditions is true:
 
 
-* The get area of the streambuf contains the specified delimiter.
+[section:value serial_port_base::baud_rate::value]
 
+[indexterm2 value..serial_port_base::baud_rate]
 
-* An error occurred.
+ unsigned int value() const;
 
-This operation is implemented in terms of zero or more calls to the stream's read\_some function. If the streambuf's get area already contains the delimiter, the function returns immediately.
 
 
-[heading Parameters]
-
+[endsect]
 
-[variablelist
-
-[[s][The stream from which the data is to be read. The type must support the SyncReadStream concept.]]
 
-[[b][A streambuf object into which the data will be read.]]
 
-[[delim][The delimiter character.]]
+[endsect]
 
-[[ec][Set to indicate what error occurred, if any.]]
+[section:serial_port_base__character_size serial_port_base::character_size]
 
-]
 
+Serial port option to permit changing the character size.
 
-[heading Return Value]
-
-The number of bytes in the streambuf's get area up to and including the delimiter. Returns 0 if an error occurred.
 
+ class character_size
 
-[heading Remarks]
-
-After a successful read\_until operation, the streambuf may contain additional data beyond the delimiter. An application will typically leave that data in the streambuf for a subsequent read\_until operation to examine.
 
+[heading Member Functions]
+[table
+ [[Name][Description]]
 
+ [
+ [[link boost_asio.reference.serial_port_base__character_size.character_size [*character_size]]]
+ []
+ ]
+
+ [
+ [[link boost_asio.reference.serial_port_base__character_size.load [*load]]]
+ []
+ ]
+
+ [
+ [[link boost_asio.reference.serial_port_base__character_size.store [*store]]]
+ []
+ ]
+
+ [
+ [[link boost_asio.reference.serial_port_base__character_size.value [*value]]]
+ []
+ ]
+
+]
 
+Implements changing the character size for a given serial port.
 
-[endsect]
+[heading Requirements]
 
+[*Header: ][^boost/asio/serial_port_base.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
-[section:overload3 read_until (3 of 8 overloads)]
 
+[section:character_size serial_port_base::character_size::character_size]
 
-Read data into a streambuf until it contains a specified delimiter.
+[indexterm2 character_size..serial_port_base::character_size]
 
+ character_size(
+ unsigned int t = 8);
 
- template<
- typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
- typename Allocator>
- std::size_t read_until(
- SyncReadStream & s,
- boost::asio::basic_streambuf< Allocator > & b,
- const std::string & delim);
 
 
-This function is used to read data into the specified streambuf until the streambuf's get area contains the specified delimiter. The call will block until one of the following conditions is true:
+[endsect]
 
 
-* The get area of the streambuf contains the specified delimiter.
 
+[section:load serial_port_base::character_size::load]
 
-* An error occurred.
+[indexterm2 load..serial_port_base::character_size]
 
-This operation is implemented in terms of zero or more calls to the stream's read\_some function. If the streambuf's get area already contains the delimiter, the function returns immediately.
+ boost::system::error_code load(
+ const BOOST_ASIO_OPTION_STORAGE & storage,
+ boost::system::error_code & ec);
 
 
-[heading Parameters]
-
 
-[variablelist
-
-[[s][The stream from which the data is to be read. The type must support the SyncReadStream concept.]]
+[endsect]
 
-[[b][A streambuf object into which the data will be read.]]
 
-[[delim][The delimiter string.]]
 
-]
+[section:store serial_port_base::character_size::store]
 
+[indexterm2 store..serial_port_base::character_size]
 
-[heading Return Value]
-
-The number of bytes in the streambuf's get area up to and including the delimiter.
+ boost::system::error_code store(
+ BOOST_ASIO_OPTION_STORAGE & storage,
+ boost::system::error_code & ec) const;
 
 
-[heading Exceptions]
-
 
-[variablelist
-
-[[boost::system::system_error][Thrown on failure.]]
+[endsect]
 
-]
 
 
-[heading Remarks]
-
-After a successful read\_until operation, the streambuf may contain additional data beyond the delimiter. An application will typically leave that data in the streambuf for a subsequent read\_until operation to examine.
+[section:value serial_port_base::character_size::value]
 
+[indexterm2 value..serial_port_base::character_size]
 
-[heading Example]
-
-To read data into a streambuf until a newline is encountered:
+ unsigned int value() const;
 
- boost::asio::streambuf b;
- boost::asio::read_until(s, b, "\r\n");
- std::istream is(&b);
- std::string line;
- std::getline(is, line);
 
 
-After the `read_until` operation completes successfully, the buffer `b` contains the delimiter:
+[endsect]
 
- { 'a', 'b', ..., 'c', '\r', '\n', 'd', 'e', ... }
 
 
-The call to `std::getline` then extracts the data up to and including the delimiter, so that the string `line` contains:
+[endsect]
 
- { 'a', 'b', ..., 'c', '\r', '\n' }
+[section:serial_port_base__flow_control serial_port_base::flow_control]
 
 
-The remaining data is left in the buffer `b` as follows:
+Serial port option to permit changing the flow control.
 
- { 'd', 'e', ... }
 
+ class flow_control
 
-This data may be the start of a new line, to be extracted by a subsequent `read_until` operation.
 
+[heading Types]
+[table
+ [[Name][Description]]
 
+ [
 
+ [[link boost_asio.reference.serial_port_base__flow_control.type [*type]]]
+ []
+
+ ]
 
-[endsect]
+]
 
+[heading Member Functions]
+[table
+ [[Name][Description]]
 
+ [
+ [[link boost_asio.reference.serial_port_base__flow_control.flow_control [*flow_control]]]
+ []
+ ]
+
+ [
+ [[link boost_asio.reference.serial_port_base__flow_control.load [*load]]]
+ []
+ ]
+
+ [
+ [[link boost_asio.reference.serial_port_base__flow_control.store [*store]]]
+ []
+ ]
+
+ [
+ [[link boost_asio.reference.serial_port_base__flow_control.value [*value]]]
+ []
+ ]
+
+]
 
-[section:overload4 read_until (4 of 8 overloads)]
+Implements changing the flow control for a given serial port.
 
+[heading Requirements]
 
-Read data into a streambuf until it contains a specified delimiter.
+[*Header: ][^boost/asio/serial_port_base.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
- template<
- typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
- typename Allocator>
- std::size_t read_until(
- SyncReadStream & s,
- boost::asio::basic_streambuf< Allocator > & b,
- const std::string & delim,
- boost::system::error_code & ec);
 
+[section:flow_control serial_port_base::flow_control::flow_control]
 
-This function is used to read data into the specified streambuf until the streambuf's get area contains the specified delimiter. The call will block until one of the following conditions is true:
+[indexterm2 flow_control..serial_port_base::flow_control]
 
+ flow_control(
+ type t = none);
 
-* The get area of the streambuf contains the specified delimiter.
 
 
-* An error occurred.
+[endsect]
 
-This operation is implemented in terms of zero or more calls to the stream's read\_some function. If the streambuf's get area already contains the delimiter, the function returns immediately.
 
 
-[heading Parameters]
-
+[section:load serial_port_base::flow_control::load]
 
-[variablelist
-
-[[s][The stream from which the data is to be read. The type must support the SyncReadStream concept.]]
+[indexterm2 load..serial_port_base::flow_control]
 
-[[b][A streambuf object into which the data will be read.]]
+ boost::system::error_code load(
+ const BOOST_ASIO_OPTION_STORAGE & storage,
+ boost::system::error_code & ec);
 
-[[delim][The delimiter string.]]
 
-[[ec][Set to indicate what error occurred, if any.]]
 
-]
+[endsect]
 
 
-[heading Return Value]
-
-The number of bytes in the streambuf's get area up to and including the delimiter. Returns 0 if an error occurred.
 
+[section:store serial_port_base::flow_control::store]
 
-[heading Remarks]
-
-After a successful read\_until operation, the streambuf may contain additional data beyond the delimiter. An application will typically leave that data in the streambuf for a subsequent read\_until operation to examine.
+[indexterm2 store..serial_port_base::flow_control]
 
+ boost::system::error_code store(
+ BOOST_ASIO_OPTION_STORAGE & storage,
+ boost::system::error_code & ec) const;
 
 
 
@@ -75775,374 +79222,359 @@
 
 
 
-[section:overload5 read_until (5 of 8 overloads)]
-
-
-Read data into a streambuf until some part of the data it contains matches a regular expression.
+[section:type serial_port_base::flow_control::type]
 
+[indexterm2 type..serial_port_base::flow_control]
 
- template<
- typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
- typename Allocator>
- std::size_t read_until(
- SyncReadStream & s,
- boost::asio::basic_streambuf< Allocator > & b,
- const boost::regex & expr);
+ enum type
 
+[indexterm2 none..serial_port_base::flow_control]
+[indexterm2 software..serial_port_base::flow_control]
+[indexterm2 hardware..serial_port_base::flow_control]
 
-This function is used to read data into the specified streambuf until the streambuf's get area contains some data that matches a regular expression. The call will block until one of the following conditions is true:
+[heading Values]
+[variablelist
 
+ [
+ [none]
+ []
+ ]
 
-* A substring of the streambuf's get area matches the regular expression.
+ [
+ [software]
+ []
+ ]
 
+ [
+ [hardware]
+ []
+ ]
 
-* An error occurred.
+]
 
-This operation is implemented in terms of zero or more calls to the stream's read\_some function. If the streambuf's get area already contains data that matches the regular expression, the function returns immediately.
 
 
-[heading Parameters]
-
+[endsect]
 
-[variablelist
-
-[[s][The stream from which the data is to be read. The type must support the SyncReadStream concept.]]
 
-[[b][A streambuf object into which the data will be read.]]
 
-[[expr][The regular expression.]]
+[section:value serial_port_base::flow_control::value]
 
-]
+[indexterm2 value..serial_port_base::flow_control]
 
+ type value() const;
 
-[heading Return Value]
-
-The number of bytes in the streambuf's get area up to and including the substring that matches the regular expression.
 
 
-[heading Exceptions]
-
+[endsect]
 
-[variablelist
-
-[[boost::system::system_error][Thrown on failure.]]
 
-]
 
+[endsect]
 
-[heading Remarks]
-
-After a successful read\_until operation, the streambuf may contain additional data beyond that which matched the regular expression. An application will typically leave that data in the streambuf for a subsequent read\_until operation to examine.
+[section:serial_port_base__parity serial_port_base::parity]
 
 
-[heading Example]
-
-To read data into a streambuf until a CR-LF sequence is encountered:
+Serial port option to permit changing the parity.
 
- boost::asio::streambuf b;
- boost::asio::read_until(s, b, boost::regex("\r\n"));
- std::istream is(&b);
- std::string line;
- std::getline(is, line);
 
+ class parity
 
-After the `read_until` operation completes successfully, the buffer `b` contains the data which matched the regular expression:
 
- { 'a', 'b', ..., 'c', '\r', '\n', 'd', 'e', ... }
+[heading Types]
+[table
+ [[Name][Description]]
 
+ [
 
-The call to `std::getline` then extracts the data up to and including the match, so that the string `line` contains:
+ [[link boost_asio.reference.serial_port_base__parity.type [*type]]]
+ []
+
+ ]
 
- { 'a', 'b', ..., 'c', '\r', '\n' }
+]
 
+[heading Member Functions]
+[table
+ [[Name][Description]]
 
-The remaining data is left in the buffer `b` as follows:
+ [
+ [[link boost_asio.reference.serial_port_base__parity.load [*load]]]
+ []
+ ]
+
+ [
+ [[link boost_asio.reference.serial_port_base__parity.parity [*parity]]]
+ []
+ ]
+
+ [
+ [[link boost_asio.reference.serial_port_base__parity.store [*store]]]
+ []
+ ]
+
+ [
+ [[link boost_asio.reference.serial_port_base__parity.value [*value]]]
+ []
+ ]
+
+]
 
- { 'd', 'e', ... }
+Implements changing the parity for a given serial port.
 
+[heading Requirements]
 
-This data may be the start of a new line, to be extracted by a subsequent `read_until` operation.
+[*Header: ][^boost/asio/serial_port_base.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
 
+[section:load serial_port_base::parity::load]
 
-[endsect]
+[indexterm2 load..serial_port_base::parity]
 
+ boost::system::error_code load(
+ const BOOST_ASIO_OPTION_STORAGE & storage,
+ boost::system::error_code & ec);
 
 
-[section:overload6 read_until (6 of 8 overloads)]
 
+[endsect]
 
-Read data into a streambuf until some part of the data it contains matches a regular expression.
 
 
- template<
- typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
- typename Allocator>
- std::size_t read_until(
- SyncReadStream & s,
- boost::asio::basic_streambuf< Allocator > & b,
- const boost::regex & expr,
- boost::system::error_code & ec);
+[section:parity serial_port_base::parity::parity]
 
+[indexterm2 parity..serial_port_base::parity]
 
-This function is used to read data into the specified streambuf until the streambuf's get area contains some data that matches a regular expression. The call will block until one of the following conditions is true:
+ parity(
+ type t = none);
 
 
-* A substring of the streambuf's get area matches the regular expression.
 
+[endsect]
 
-* An error occurred.
 
-This operation is implemented in terms of zero or more calls to the stream's read\_some function. If the streambuf's get area already contains data that matches the regular expression, the function returns immediately.
 
+[section:store serial_port_base::parity::store]
 
-[heading Parameters]
-
+[indexterm2 store..serial_port_base::parity]
 
-[variablelist
-
-[[s][The stream from which the data is to be read. The type must support the SyncReadStream concept.]]
+ boost::system::error_code store(
+ BOOST_ASIO_OPTION_STORAGE & storage,
+ boost::system::error_code & ec) const;
 
-[[b][A streambuf object into which the data will be read.]]
 
-[[expr][The regular expression.]]
 
-[[ec][Set to indicate what error occurred, if any.]]
+[endsect]
 
-]
 
 
-[heading Return Value]
-
-The number of bytes in the streambuf's get area up to and including the substring that matches the regular expression. Returns 0 if an error occurred.
+[section:type serial_port_base::parity::type]
 
+[indexterm2 type..serial_port_base::parity]
 
-[heading Remarks]
-
-After a successful read\_until operation, the streambuf may contain additional data beyond that which matched the regular expression. An application will typically leave that data in the streambuf for a subsequent read\_until operation to examine.
+ enum type
 
+[indexterm2 none..serial_port_base::parity]
+[indexterm2 odd..serial_port_base::parity]
+[indexterm2 even..serial_port_base::parity]
 
+[heading Values]
+[variablelist
 
+ [
+ [none]
+ []
+ ]
 
-[endsect]
+ [
+ [odd]
+ []
+ ]
 
+ [
+ [even]
+ []
+ ]
 
+]
 
-[section:overload7 read_until (7 of 8 overloads)]
 
 
-Read data into a streambuf until a function object indicates a match.
+[endsect]
 
 
- template<
- typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
- typename Allocator,
- typename MatchCondition>
- std::size_t read_until(
- SyncReadStream & s,
- boost::asio::basic_streambuf< Allocator > & b,
- MatchCondition match_condition,
- typename boost::enable_if< is_match_condition< MatchCondition > >::type * = 0);
 
+[section:value serial_port_base::parity::value]
 
-This function is used to read data into the specified streambuf until a user-defined match condition function object, when applied to the data contained in the streambuf, indicates a successful match. The call will block until one of the following conditions is true:
+[indexterm2 value..serial_port_base::parity]
 
+ type value() const;
 
-* The match condition function object returns a std::pair where the second element evaluates to true.
 
 
-* An error occurred.
+[endsect]
 
-This operation is implemented in terms of zero or more calls to the stream's read\_some function. If the match condition function object already indicates a match, the function returns immediately.
 
 
-[heading Parameters]
-
+[endsect]
 
-[variablelist
-
-[[s][The stream from which the data is to be read. The type must support the SyncReadStream concept.]]
+[section:serial_port_base__stop_bits serial_port_base::stop_bits]
 
-[[b][A streambuf object into which the data will be read.]]
 
-[[match_condition][The function object to be called to determine whether a match exists. The signature of the function object must be:
-``
- pair<iterator, bool> match_condition(iterator begin, iterator end);
-``
-where `iterator` represents the type:
-``
- buffers_iterator<basic_streambuf<Allocator>::const_buffers_type>
-``
-The iterator parameters `begin` and `end` define the range of bytes to be scanned to determine whether there is a match. The `first` member of the return value is an iterator marking one-past-the-end of the bytes that have been consumed by the match function. This iterator is used to calculate the `begin` parameter for any subsequent invocation of the match condition. The `second` member of the return value is true if a match has been found, false otherwise.]]
+Serial port option to permit changing the number of stop bits.
 
-]
 
+ class stop_bits
 
-[heading Return Value]
-
-The number of bytes in the streambuf's get area that have been fully consumed by the match function.
 
+[heading Types]
+[table
+ [[Name][Description]]
 
-[heading Exceptions]
-
+ [
 
-[variablelist
+ [[link boost_asio.reference.serial_port_base__stop_bits.type [*type]]]
+ []
   
-[[boost::system::system_error][Thrown on failure.]]
+ ]
 
 ]
 
+[heading Member Functions]
+[table
+ [[Name][Description]]
 
-[heading Remarks]
-
-After a successful read\_until operation, the streambuf may contain additional data beyond that which matched the function object. An application will typically leave that data in the streambuf for a subsequent
-
-The default implementation of the `is_match_condition` type trait evaluates to true for function pointers and function objects with a `result_type` typedef. It must be specialised for other user-defined function objects.
+ [
+ [[link boost_asio.reference.serial_port_base__stop_bits.load [*load]]]
+ []
+ ]
+
+ [
+ [[link boost_asio.reference.serial_port_base__stop_bits.stop_bits [*stop_bits]]]
+ []
+ ]
+
+ [
+ [[link boost_asio.reference.serial_port_base__stop_bits.store [*store]]]
+ []
+ ]
+
+ [
+ [[link boost_asio.reference.serial_port_base__stop_bits.value [*value]]]
+ []
+ ]
+
+]
 
+Implements changing the number of stop bits for a given serial port.
 
-[heading Examples]
-
-To read data into a streambuf until whitespace is encountered:
+[heading Requirements]
 
- typedef boost::asio::buffers_iterator<
- boost::asio::streambuf::const_buffers_type> iterator;
+[*Header: ][^boost/asio/serial_port_base.hpp]
 
- std::pair<iterator, bool>
- match_whitespace(iterator begin, iterator end)
- {
- iterator i = begin;
- while (i != end)
- if (std::isspace(*i++))
- return std::make_pair(i, true);
- return std::make_pair(i, false);
- }
- ...
- boost::asio::streambuf b;
- boost::asio::read_until(s, b, match_whitespace);
+[*Convenience header: ][^boost/asio.hpp]
 
 
+[section:load serial_port_base::stop_bits::load]
 
+[indexterm2 load..serial_port_base::stop_bits]
 
-To read data into a streambuf until a matching character is found:
+ boost::system::error_code load(
+ const BOOST_ASIO_OPTION_STORAGE & storage,
+ boost::system::error_code & ec);
 
- class match_char
- {
- public:
- explicit match_char(char c) : c_(c) {}
 
- template <typename Iterator>
- std::pair<Iterator, bool> operator()(
- Iterator begin, Iterator end) const
- {
- Iterator i = begin;
- while (i != end)
- if (c_ == *i++)
- return std::make_pair(i, true);
- return std::make_pair(i, false);
- }
 
- private:
- char c_;
- };
+[endsect]
 
- namespace asio {
- template <> struct is_match_condition<match_char>
- : public boost::true_type {};
- } // namespace asio
- ...
- boost::asio::streambuf b;
- boost::asio::read_until(s, b, match_char('a'));
 
 
+[section:stop_bits serial_port_base::stop_bits::stop_bits]
 
+[indexterm2 stop_bits..serial_port_base::stop_bits]
 
+ stop_bits(
+ type t = one);
 
-[endsect]
 
 
+[endsect]
 
-[section:overload8 read_until (8 of 8 overloads)]
 
 
-Read data into a streambuf until a function object indicates a match.
+[section:store serial_port_base::stop_bits::store]
 
+[indexterm2 store..serial_port_base::stop_bits]
 
- template<
- typename ``[link boost_asio.reference.SyncReadStream SyncReadStream]``,
- typename Allocator,
- typename MatchCondition>
- std::size_t read_until(
- SyncReadStream & s,
- boost::asio::basic_streambuf< Allocator > & b,
- MatchCondition match_condition,
- boost::system::error_code & ec,
- typename boost::enable_if< is_match_condition< MatchCondition > >::type * = 0);
+ boost::system::error_code store(
+ BOOST_ASIO_OPTION_STORAGE & storage,
+ boost::system::error_code & ec) const;
 
 
-This function is used to read data into the specified streambuf until a user-defined match condition function object, when applied to the data contained in the streambuf, indicates a successful match. The call will block until one of the following conditions is true:
 
+[endsect]
 
-* The match condition function object returns a std::pair where the second element evaluates to true.
 
 
-* An error occurred.
+[section:type serial_port_base::stop_bits::type]
 
-This operation is implemented in terms of zero or more calls to the stream's read\_some function. If the match condition function object already indicates a match, the function returns immediately.
+[indexterm2 type..serial_port_base::stop_bits]
 
+ enum type
 
-[heading Parameters]
-
+[indexterm2 one..serial_port_base::stop_bits]
+[indexterm2 onepointfive..serial_port_base::stop_bits]
+[indexterm2 two..serial_port_base::stop_bits]
 
+[heading Values]
 [variablelist
-
-[[s][The stream from which the data is to be read. The type must support the SyncReadStream concept.]]
 
-[[b][A streambuf object into which the data will be read.]]
+ [
+ [one]
+ []
+ ]
 
-[[match_condition][The function object to be called to determine whether a match exists. The signature of the function object must be:
-``
- pair<iterator, bool> match_condition(iterator begin, iterator end);
-``
-where `iterator` represents the type:
-``
- buffers_iterator<basic_streambuf<Allocator>::const_buffers_type>
-``
-The iterator parameters `begin` and `end` define the range of bytes to be scanned to determine whether there is a match. The `first` member of the return value is an iterator marking one-past-the-end of the bytes that have been consumed by the match function. This iterator is used to calculate the `begin` parameter for any subsequent invocation of the match condition. The `second` member of the return value is true if a match has been found, false otherwise.]]
+ [
+ [onepointfive]
+ []
+ ]
 
-[[ec][Set to indicate what error occurred, if any.]]
+ [
+ [two]
+ []
+ ]
 
 ]
 
 
-[heading Return Value]
-
-The number of bytes in the streambuf's get area that have been fully consumed by the match function. Returns 0 if an error occurred.
+
+[endsect]
 
 
-[heading Remarks]
-
-After a successful read\_until operation, the streambuf may contain additional data beyond that which matched the function object. An application will typically leave that data in the streambuf for a subsequent
 
-The default implementation of the `is_match_condition` type trait evaluates to true for function pointers and function objects with a `result_type` typedef. It must be specialised for other user-defined function objects.
+[section:value serial_port_base::stop_bits::value]
+
+[indexterm2 value..serial_port_base::stop_bits]
 
+ type value() const;
 
 
 
 [endsect]
 
 
+
 [endsect]
 
-[section:seq_packet_socket_service seq_packet_socket_service]
+[section:serial_port_service serial_port_service]
 
 
-Default service implementation for a sequenced packet socket.
+Default service implementation for a serial port.
 
 
- template<
- typename ``[link boost_asio.reference.Protocol Protocol]``>
- class seq_packet_socket_service :
+ class serial_port_service :
     public io_service::service
 
 
@@ -76152,36 +79584,22 @@
 
   [
 
- [[link boost_asio.reference.seq_packet_socket_service.endpoint_type [*endpoint_type]]]
- [The endpoint type. ]
-
- ]
-
- [
-
- [[link boost_asio.reference.seq_packet_socket_service.implementation_type [*implementation_type]]]
- [The type of a sequenced packet socket implementation. ]
-
- ]
-
- [
-
- [[link boost_asio.reference.seq_packet_socket_service.native_handle_type [*native_handle_type]]]
- [The native socket type. ]
+ [[link boost_asio.reference.serial_port_service.implementation_type [*implementation_type]]]
+ [The type of a serial port implementation. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.seq_packet_socket_service.native_type [*native_type]]]
- [(Deprecated: Use native_handle_type.) The native socket type. ]
+ [[link boost_asio.reference.serial_port_service.native_handle_type [*native_handle_type]]]
+ [The native handle type. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.seq_packet_socket_service.protocol_type [*protocol_type]]]
- [The protocol type. ]
+ [[link boost_asio.reference.serial_port_service.native_type [*native_type]]]
+ [(Deprecated: Use native_handle_type.) The native handle type. ]
   
   ]
 
@@ -76192,190 +79610,323 @@
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.seq_packet_socket_service.assign [*assign]]]
- [Assign an existing native socket to a sequenced packet socket. ]
- ]
-
- [
- [[link boost_asio.reference.seq_packet_socket_service.async_connect [*async_connect]]]
- [Start an asynchronous connect. ]
+ [[link boost_asio.reference.serial_port_service.assign [*assign]]]
+ [Assign an existing native handle to a serial port. ]
   ]
   
   [
- [[link boost_asio.reference.seq_packet_socket_service.async_receive [*async_receive]]]
- [Start an asynchronous receive. ]
+ [[link boost_asio.reference.serial_port_service.async_read_some [*async_read_some]]]
+ [Start an asynchronous read. ]
   ]
   
   [
- [[link boost_asio.reference.seq_packet_socket_service.async_send [*async_send]]]
- [Start an asynchronous send. ]
+ [[link boost_asio.reference.serial_port_service.async_write_some [*async_write_some]]]
+ [Start an asynchronous write. ]
   ]
   
   [
- [[link boost_asio.reference.seq_packet_socket_service.at_mark [*at_mark]]]
- [Determine whether the socket is at the out-of-band data mark. ]
+ [[link boost_asio.reference.serial_port_service.cancel [*cancel]]]
+ [Cancel all asynchronous operations associated with the handle. ]
   ]
   
   [
- [[link boost_asio.reference.seq_packet_socket_service.available [*available]]]
- [Determine the number of bytes available for reading. ]
+ [[link boost_asio.reference.serial_port_service.close [*close]]]
+ [Close a serial port implementation. ]
   ]
   
   [
- [[link boost_asio.reference.seq_packet_socket_service.bind [*bind]]]
- [Bind the sequenced packet socket to the specified local endpoint. ]
+ [[link boost_asio.reference.serial_port_service.construct [*construct]]]
+ [Construct a new serial port implementation. ]
   ]
   
   [
- [[link boost_asio.reference.seq_packet_socket_service.cancel [*cancel]]]
- [Cancel all asynchronous operations associated with the socket. ]
+ [[link boost_asio.reference.serial_port_service.destroy [*destroy]]]
+ [Destroy a serial port implementation. ]
   ]
   
   [
- [[link boost_asio.reference.seq_packet_socket_service.close [*close]]]
- [Close a sequenced packet socket implementation. ]
+ [[link boost_asio.reference.serial_port_service.get_io_service [*get_io_service]]]
+ [Get the io_service object that owns the service. ]
   ]
   
   [
- [[link boost_asio.reference.seq_packet_socket_service.connect [*connect]]]
- [Connect the sequenced packet socket to the specified endpoint. ]
+ [[link boost_asio.reference.serial_port_service.get_option [*get_option]]]
+ [Get a serial port option. ]
   ]
   
   [
- [[link boost_asio.reference.seq_packet_socket_service.construct [*construct]]]
- [Construct a new sequenced packet socket implementation. ]
+ [[link boost_asio.reference.serial_port_service.is_open [*is_open]]]
+ [Determine whether the handle is open. ]
   ]
   
   [
- [[link boost_asio.reference.seq_packet_socket_service.destroy [*destroy]]]
- [Destroy a sequenced packet socket implementation. ]
+ [[link boost_asio.reference.serial_port_service.move_assign [*move_assign]]]
+ [Move-assign from another serial port implementation. ]
   ]
   
   [
- [[link boost_asio.reference.seq_packet_socket_service.get_io_service [*get_io_service]]]
- [Get the io_service object that owns the service. ]
+ [[link boost_asio.reference.serial_port_service.move_construct [*move_construct]]]
+ [Move-construct a new serial port implementation. ]
   ]
   
   [
- [[link boost_asio.reference.seq_packet_socket_service.get_option [*get_option]]]
- [Get a socket option. ]
+ [[link boost_asio.reference.serial_port_service.native [*native]]]
+ [(Deprecated: Use native_handle().) Get the native handle implementation. ]
   ]
   
   [
- [[link boost_asio.reference.seq_packet_socket_service.io_control [*io_control]]]
- [Perform an IO control command on the socket. ]
+ [[link boost_asio.reference.serial_port_service.native_handle [*native_handle]]]
+ [Get the native handle implementation. ]
   ]
   
   [
- [[link boost_asio.reference.seq_packet_socket_service.is_open [*is_open]]]
- [Determine whether the socket is open. ]
+ [[link boost_asio.reference.serial_port_service.open [*open]]]
+ [Open a serial port. ]
   ]
   
   [
- [[link boost_asio.reference.seq_packet_socket_service.local_endpoint [*local_endpoint]]]
- [Get the local endpoint. ]
+ [[link boost_asio.reference.serial_port_service.read_some [*read_some]]]
+ [Read some data from the stream. ]
   ]
   
   [
- [[link boost_asio.reference.seq_packet_socket_service.move_assign [*move_assign]]]
- [Move-assign from another sequenced packet socket implementation. ]
+ [[link boost_asio.reference.serial_port_service.send_break [*send_break]]]
+ [Send a break sequence to the serial port. ]
   ]
   
   [
- [[link boost_asio.reference.seq_packet_socket_service.move_construct [*move_construct]]]
- [Move-construct a new sequenced packet socket implementation. ]
+ [[link boost_asio.reference.serial_port_service.serial_port_service [*serial_port_service]]]
+ [Construct a new serial port service for the specified io_service. ]
   ]
   
   [
- [[link boost_asio.reference.seq_packet_socket_service.native [*native]]]
- [(Deprecated: Use native_handle().) Get the native socket implementation. ]
+ [[link boost_asio.reference.serial_port_service.set_option [*set_option]]]
+ [Set a serial port option. ]
   ]
   
   [
- [[link boost_asio.reference.seq_packet_socket_service.native_handle [*native_handle]]]
- [Get the native socket implementation. ]
+ [[link boost_asio.reference.serial_port_service.write_some [*write_some]]]
+ [Write the given data to the stream. ]
   ]
   
- [
- [[link boost_asio.reference.seq_packet_socket_service.native_non_blocking [*native_non_blocking]]]
- [Gets the non-blocking mode of the native socket implementation.
+]
 
- Sets the non-blocking mode of the native socket implementation. ]
- ]
-
- [
- [[link boost_asio.reference.seq_packet_socket_service.non_blocking [*non_blocking]]]
- [Gets the non-blocking mode of the socket.
+[heading Data Members]
+[table
+ [[Name][Description]]
 
- Sets the non-blocking mode of the socket. ]
- ]
-
- [
- [[link boost_asio.reference.seq_packet_socket_service.open [*open]]]
- [Open a sequenced packet socket. ]
- ]
-
- [
- [[link boost_asio.reference.seq_packet_socket_service.receive [*receive]]]
- [Receive some data from the peer. ]
- ]
-
- [
- [[link boost_asio.reference.seq_packet_socket_service.remote_endpoint [*remote_endpoint]]]
- [Get the remote endpoint. ]
- ]
-
- [
- [[link boost_asio.reference.seq_packet_socket_service.send [*send]]]
- [Send the given data to the peer. ]
- ]
-
- [
- [[link boost_asio.reference.seq_packet_socket_service.seq_packet_socket_service [*seq_packet_socket_service]]]
- [Construct a new sequenced packet socket service for the specified io_service. ]
- ]
-
- [
- [[link boost_asio.reference.seq_packet_socket_service.set_option [*set_option]]]
- [Set a socket option. ]
- ]
-
   [
- [[link boost_asio.reference.seq_packet_socket_service.shutdown [*shutdown]]]
- [Disable sends or receives on the socket. ]
+ [[link boost_asio.reference.serial_port_service.id [*id]]]
+ [The unique service identifier. ]
   ]
-
+
 ]
 
-[heading Data Members]
-[table
- [[Name][Description]]
+[heading Requirements]
+
+[*Header: ][^boost/asio/serial_port_service.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
+
+
+[section:assign serial_port_service::assign]
+
+[indexterm2 assign..serial_port_service]
+Assign an existing native handle to a serial port.
+
+
+ boost::system::error_code assign(
+ implementation_type & impl,
+ const native_handle_type & handle,
+ boost::system::error_code & ec);
+
+
+
+[endsect]
+
+
+
+[section:async_read_some serial_port_service::async_read_some]
+
+[indexterm2 async_read_some..serial_port_service]
+Start an asynchronous read.
+
+
+ template<
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``,
+ typename ``[link boost_asio.reference.ReadHandler ReadHandler]``>
+ void async_read_some(
+ implementation_type & impl,
+ const MutableBufferSequence & buffers,
+ ReadHandler handler);
+
+
+
+[endsect]
+
+
+
+[section:async_write_some serial_port_service::async_write_some]
+
+[indexterm2 async_write_some..serial_port_service]
+Start an asynchronous write.
+
+
+ template<
+ typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``,
+ typename ``[link boost_asio.reference.WriteHandler WriteHandler]``>
+ void async_write_some(
+ implementation_type & impl,
+ const ConstBufferSequence & buffers,
+ WriteHandler handler);
+
+
+
+[endsect]
+
+
+
+[section:cancel serial_port_service::cancel]
+
+[indexterm2 cancel..serial_port_service]
+Cancel all asynchronous operations associated with the handle.
+
+
+ boost::system::error_code cancel(
+ implementation_type & impl,
+ boost::system::error_code & ec);
+
+
+
+[endsect]
+
+
+
+[section:close serial_port_service::close]
+
+[indexterm2 close..serial_port_service]
+Close a serial port implementation.
+
+
+ boost::system::error_code close(
+ implementation_type & impl,
+ boost::system::error_code & ec);
+
+
+
+[endsect]
+
+
+
+[section:construct serial_port_service::construct]
+
+[indexterm2 construct..serial_port_service]
+Construct a new serial port implementation.
+
+
+ void construct(
+ implementation_type & impl);
+
+
+
+[endsect]
+
+
+
+[section:destroy serial_port_service::destroy]
+
+[indexterm2 destroy..serial_port_service]
+Destroy a serial port implementation.
+
+
+ void destroy(
+ implementation_type & impl);
+
+
+
+[endsect]
+
+
+
+[section:get_io_service serial_port_service::get_io_service]
+
+
+['Inherited from io_service.]
+
+[indexterm2 get_io_service..serial_port_service]
+Get the [link boost_asio.reference.io_service `io_service`] object that owns the service.
+
+
+ boost::asio::io_service & get_io_service();
+
+
+
+[endsect]
+
+
+
+[section:get_option serial_port_service::get_option]
+
+[indexterm2 get_option..serial_port_service]
+Get a serial port option.
+
+
+ template<
+ typename ``[link boost_asio.reference.GettableSerialPortOption GettableSerialPortOption]``>
+ boost::system::error_code get_option(
+ const implementation_type & impl,
+ GettableSerialPortOption & option,
+ boost::system::error_code & ec) const;
+
+
+
+[endsect]
+
+
+
+[section:id serial_port_service::id]
+
+[indexterm2 id..serial_port_service]
+The unique service identifier.
+
+
+ static boost::asio::io_service::id id;
+
+
+
+[endsect]
+
+
+
+[section:implementation_type serial_port_service::implementation_type]
+
+[indexterm2 implementation_type..serial_port_service]
+The type of a serial port implementation.
+
+
+ typedef implementation_defined implementation_type;
 
- [
- [[link boost_asio.reference.seq_packet_socket_service.id [*id]]]
- [The unique service identifier. ]
- ]
 
-]
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/seq_packet_socket_service.hpp]
+[*Header: ][^boost/asio/serial_port_service.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
 
-[section:assign seq_packet_socket_service::assign]
+[endsect]
 
-[indexterm2 assign..seq_packet_socket_service]
-Assign an existing native socket to a sequenced packet socket.
 
 
- boost::system::error_code assign(
- implementation_type & impl,
- const protocol_type & protocol,
- const native_handle_type & native_socket,
- boost::system::error_code & ec);
+[section:is_open serial_port_service::is_open]
+
+[indexterm2 is_open..serial_port_service]
+Determine whether the handle is open.
+
+
+ bool is_open(
+ const implementation_type & impl) const;
 
 
 
@@ -76383,18 +79934,16 @@
 
 
 
-[section:async_connect seq_packet_socket_service::async_connect]
+[section:move_assign serial_port_service::move_assign]
 
-[indexterm2 async_connect..seq_packet_socket_service]
-Start an asynchronous connect.
+[indexterm2 move_assign..serial_port_service]
+Move-assign from another serial port implementation.
 
 
- template<
- typename ``[link boost_asio.reference.ConnectHandler ConnectHandler]``>
- void async_connect(
+ void move_assign(
       implementation_type & impl,
- const endpoint_type & peer_endpoint,
- ConnectHandler handler);
+ serial_port_service & other_service,
+ implementation_type & other_impl);
 
 
 
@@ -76402,21 +79951,15 @@
 
 
 
-[section:async_receive seq_packet_socket_service::async_receive]
+[section:move_construct serial_port_service::move_construct]
 
-[indexterm2 async_receive..seq_packet_socket_service]
-Start an asynchronous receive.
+[indexterm2 move_construct..serial_port_service]
+Move-construct a new serial port implementation.
 
 
- template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``,
- typename ``[link boost_asio.reference.ReadHandler ReadHandler]``>
- void async_receive(
+ void move_construct(
       implementation_type & impl,
- const MutableBufferSequence & buffers,
- socket_base::message_flags in_flags,
- socket_base::message_flags & out_flags,
- ReadHandler handler);
+ implementation_type & other_impl);
 
 
 
@@ -76424,20 +79967,14 @@
 
 
 
-[section:async_send seq_packet_socket_service::async_send]
+[section:native serial_port_service::native]
 
-[indexterm2 async_send..seq_packet_socket_service]
-Start an asynchronous send.
+[indexterm2 native..serial_port_service]
+(Deprecated: Use `native_handle()`.) Get the native handle implementation.
 
 
- template<
- typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``,
- typename ``[link boost_asio.reference.WriteHandler WriteHandler]``>
- void async_send(
- implementation_type & impl,
- const ConstBufferSequence & buffers,
- socket_base::message_flags flags,
- WriteHandler handler);
+ native_type native(
+ implementation_type & impl);
 
 
 
@@ -76445,15 +79982,14 @@
 
 
 
-[section:at_mark seq_packet_socket_service::at_mark]
+[section:native_handle serial_port_service::native_handle]
 
-[indexterm2 at_mark..seq_packet_socket_service]
-Determine whether the socket is at the out-of-band data mark.
+[indexterm2 native_handle..serial_port_service]
+Get the native handle implementation.
 
 
- bool at_mark(
- const implementation_type & impl,
- boost::system::error_code & ec) const;
+ native_handle_type native_handle(
+ implementation_type & impl);
 
 
 
@@ -76461,47 +79997,57 @@
 
 
 
-[section:available seq_packet_socket_service::available]
+[section:native_handle_type serial_port_service::native_handle_type]
 
-[indexterm2 available..seq_packet_socket_service]
-Determine the number of bytes available for reading.
+[indexterm2 native_handle_type..serial_port_service]
+The native handle type.
 
 
- std::size_t available(
- const implementation_type & impl,
- boost::system::error_code & ec) const;
+ typedef implementation_defined native_handle_type;
+
+
+
+[heading Requirements]
+
+[*Header: ][^boost/asio/serial_port_service.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
 
-[section:bind seq_packet_socket_service::bind]
+[section:native_type serial_port_service::native_type]
 
-[indexterm2 bind..seq_packet_socket_service]
-Bind the sequenced packet socket to the specified local endpoint.
+[indexterm2 native_type..serial_port_service]
+(Deprecated: Use native\_handle\_type.) The native handle type.
 
 
- boost::system::error_code bind(
- implementation_type & impl,
- const endpoint_type & endpoint,
- boost::system::error_code & ec);
+ typedef implementation_defined native_type;
+
+
+
+[heading Requirements]
 
+[*Header: ][^boost/asio/serial_port_service.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
 
-[section:cancel seq_packet_socket_service::cancel]
+[section:open serial_port_service::open]
 
-[indexterm2 cancel..seq_packet_socket_service]
-Cancel all asynchronous operations associated with the socket.
+[indexterm2 open..serial_port_service]
+Open a serial port.
 
 
- boost::system::error_code cancel(
+ boost::system::error_code open(
       implementation_type & impl,
+ const std::string & device,
       boost::system::error_code & ec);
 
 
@@ -76510,14 +80056,17 @@
 
 
 
-[section:close seq_packet_socket_service::close]
+[section:read_some serial_port_service::read_some]
 
-[indexterm2 close..seq_packet_socket_service]
-Close a sequenced packet socket implementation.
+[indexterm2 read_some..serial_port_service]
+Read some data from the stream.
 
 
- boost::system::error_code close(
+ template<
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
+ std::size_t read_some(
       implementation_type & impl,
+ const MutableBufferSequence & buffers,
       boost::system::error_code & ec);
 
 
@@ -76526,15 +80075,14 @@
 
 
 
-[section:connect seq_packet_socket_service::connect]
+[section:send_break serial_port_service::send_break]
 
-[indexterm2 connect..seq_packet_socket_service]
-Connect the sequenced packet socket to the specified endpoint.
+[indexterm2 send_break..serial_port_service]
+Send a break sequence to the serial port.
 
 
- boost::system::error_code connect(
+ boost::system::error_code send_break(
       implementation_type & impl,
- const endpoint_type & peer_endpoint,
       boost::system::error_code & ec);
 
 
@@ -76543,14 +80091,14 @@
 
 
 
-[section:construct seq_packet_socket_service::construct]
+[section:serial_port_service serial_port_service::serial_port_service]
 
-[indexterm2 construct..seq_packet_socket_service]
-Construct a new sequenced packet socket implementation.
+[indexterm2 serial_port_service..serial_port_service]
+Construct a new serial port service for the specified [link boost_asio.reference.io_service `io_service`].
 
 
- void construct(
- implementation_type & impl);
+ serial_port_service(
+ boost::asio::io_service & io_service);
 
 
 
@@ -76558,14 +80106,18 @@
 
 
 
-[section:destroy seq_packet_socket_service::destroy]
+[section:set_option serial_port_service::set_option]
 
-[indexterm2 destroy..seq_packet_socket_service]
-Destroy a sequenced packet socket implementation.
+[indexterm2 set_option..serial_port_service]
+Set a serial port option.
 
 
- void destroy(
- implementation_type & impl);
+ template<
+ typename ``[link boost_asio.reference.SettableSerialPortOption SettableSerialPortOption]``>
+ boost::system::error_code set_option(
+ implementation_type & impl,
+ const SettableSerialPortOption & option,
+ boost::system::error_code & ec);
 
 
 
@@ -76573,109 +80125,383 @@
 
 
 
-[section:endpoint_type seq_packet_socket_service::endpoint_type]
+[section:write_some serial_port_service::write_some]
 
-[indexterm2 endpoint_type..seq_packet_socket_service]
-The endpoint type.
+[indexterm2 write_some..serial_port_service]
+Write the given data to the stream.
 
 
- typedef Protocol::endpoint endpoint_type;
+ template<
+ typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
+ std::size_t write_some(
+ implementation_type & impl,
+ const ConstBufferSequence & buffers,
+ boost::system::error_code & ec);
+
+
+
+[endsect]
+
+
+
+[endsect]
+
+[section:service_already_exists service_already_exists]
+
 
+Exception thrown when trying to add a duplicate service to an [link boost_asio.reference.io_service `io_service`].
+
+
+ class service_already_exists
+
+
+[heading Member Functions]
+[table
+ [[Name][Description]]
 
+ [
+ [[link boost_asio.reference.service_already_exists.service_already_exists [*service_already_exists]]]
+ []
+ ]
+
+]
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/seq_packet_socket_service.hpp]
+[*Header: ][^boost/asio/io_service.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
 
+[section:service_already_exists service_already_exists::service_already_exists]
+
+[indexterm2 service_already_exists..service_already_exists]
+
+ service_already_exists();
+
+
+
 [endsect]
 
 
 
-[section:get_io_service seq_packet_socket_service::get_io_service]
+[endsect]
 
 
-['Inherited from io_service.]
+[section:signal_set signal_set]
 
-[indexterm2 get_io_service..seq_packet_socket_service]
-Get the [link boost_asio.reference.io_service `io_service`] object that owns the service.
+[indexterm1 signal_set]
+Typedef for the typical usage of a signal set.
 
 
- boost::asio::io_service & get_io_service();
+ typedef basic_signal_set signal_set;
 
 
+[heading Types]
+[table
+ [[Name][Description]]
 
-[endsect]
+ [
 
+ [[link boost_asio.reference.basic_signal_set.implementation_type [*implementation_type]]]
+ [The underlying implementation type of I/O object. ]
+
+ ]
 
+ [
 
-[section:get_option seq_packet_socket_service::get_option]
+ [[link boost_asio.reference.basic_signal_set.service_type [*service_type]]]
+ [The type of the service that will be used to provide I/O operations. ]
+
+ ]
 
-[indexterm2 get_option..seq_packet_socket_service]
-Get a socket option.
+]
+
+[heading Member Functions]
+[table
+ [[Name][Description]]
 
+ [
+ [[link boost_asio.reference.basic_signal_set.add [*add]]]
+ [Add a signal to a signal_set. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_signal_set.async_wait [*async_wait]]]
+ [Start an asynchronous operation to wait for a signal to be delivered. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_signal_set.basic_signal_set [*basic_signal_set]]]
+ [Construct a signal set without adding any signals.
 
- template<
- typename ``[link boost_asio.reference.GettableSocketOption GettableSocketOption]``>
- boost::system::error_code get_option(
- const implementation_type & impl,
- GettableSocketOption & option,
- boost::system::error_code & ec) const;
+ Construct a signal set and add one signal.
+
+ Construct a signal set and add two signals.
+
+ Construct a signal set and add three signals. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_signal_set.cancel [*cancel]]]
+ [Cancel all operations associated with the signal set. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_signal_set.clear [*clear]]]
+ [Remove all signals from a signal_set. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_signal_set.get_io_service [*get_io_service]]]
+ [Get the io_service associated with the object. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_signal_set.remove [*remove]]]
+ [Remove a signal from a signal_set. ]
+ ]
+
+]
+
+[heading Protected Member Functions]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.basic_signal_set.get_implementation [*get_implementation]]]
+ [Get the underlying implementation of the I/O object. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_signal_set.get_service [*get_service]]]
+ [Get the service associated with the I/O object. ]
+ ]
+
+]
+
+[heading Protected Data Members]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.basic_signal_set.implementation [*implementation]]]
+ [(Deprecated: Use get_implementation().) The underlying implementation of the I/O object. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_signal_set.service [*service]]]
+ [(Deprecated: Use get_service().) The service associated with the I/O object. ]
+ ]
+
+]
+
+The [link boost_asio.reference.basic_signal_set `basic_signal_set`] class template provides the ability to perform an asynchronous wait for one or more signals to occur.
+
+Most applications will use the [link boost_asio.reference.signal_set `signal_set`] typedef.
+
+
+[heading Thread Safety]
+
+[*Distinct] [*objects:] Safe.
+
+[*Shared] [*objects:] Unsafe.
+
+
+[heading Example]
+
+Performing an asynchronous wait:
 
+ void handler(
+ const boost::system::error_code& error,
+ int signal_number)
+ {
+ if (!error)
+ {
+ // A signal occurred.
+ }
+ }
+
+ ...
+
+ // Construct a signal set registered for process termination.
+ boost::asio::signal_set signals(io_service, SIGINT, SIGTERM);
+
+ // Start an asynchronous wait for one of the signals to occur.
+ signals.async_wait(handler);
+
+
+
+
+
+[heading Queueing of signal notifications]
+
+
+
+If a signal is registered with a signal\_set, and the signal occurs when there are no waiting handlers, then the signal notification is queued. The next async\_wait operation on that signal\_set will dequeue the notification. If multiple notifications are queued, subsequent async\_wait operations dequeue them one at a time. Signal notifications are dequeued in order of ascending signal number.
+
+If a signal number is removed from a signal\_set (using the `remove` or `erase` member functions) then any queued notifications for that signal are discarded.
+
+
+[heading Multiple registration of signals]
+
+
+
+The same signal number may be registered with different signal\_set objects. When the signal occurs, one handler is called for each signal\_set object.
+
+Note that multiple registration only works for signals that are registered using Asio. The application must not also register a signal handler using functions such as `signal()` or `sigaction()`.
+
+
+[heading Signal masking on POSIX platforms]
+
+
+
+POSIX allows signals to be blocked using functions such as `sigprocmask()` and `pthread_sigmask()`. For signals to be delivered, programs must ensure that any signals registered using signal\_set objects are unblocked in at least one thread.
+
+
+[heading Requirements]
+
+[*Header: ][^boost/asio/signal_set.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
+[section:signal_set_service signal_set_service]
+
+
+Default service implementation for a signal set.
+
+
+ class signal_set_service :
+ public io_service::service
+
+
+[heading Types]
+[table
+ [[Name][Description]]
+
+ [
+
+ [[link boost_asio.reference.signal_set_service.implementation_type [*implementation_type]]]
+ [The type of a signal set implementation. ]
+
+ ]
+
+]
+
+[heading Member Functions]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.signal_set_service.add [*add]]]
+ [Add a signal to a signal_set. ]
+ ]
+
+ [
+ [[link boost_asio.reference.signal_set_service.async_wait [*async_wait]]]
+ []
+ ]
+
+ [
+ [[link boost_asio.reference.signal_set_service.cancel [*cancel]]]
+ [Cancel all operations associated with the signal set. ]
+ ]
+
+ [
+ [[link boost_asio.reference.signal_set_service.clear [*clear]]]
+ [Remove all signals from a signal_set. ]
+ ]
+
+ [
+ [[link boost_asio.reference.signal_set_service.construct [*construct]]]
+ [Construct a new signal set implementation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.signal_set_service.destroy [*destroy]]]
+ [Destroy a signal set implementation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.signal_set_service.get_io_service [*get_io_service]]]
+ [Get the io_service object that owns the service. ]
+ ]
+
+ [
+ [[link boost_asio.reference.signal_set_service.remove [*remove]]]
+ [Remove a signal to a signal_set. ]
+ ]
+
+ [
+ [[link boost_asio.reference.signal_set_service.signal_set_service [*signal_set_service]]]
+ [Construct a new signal set service for the specified io_service. ]
+ ]
+
+]
+
+[heading Data Members]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.signal_set_service.id [*id]]]
+ [The unique service identifier. ]
+ ]
 
-[section:id seq_packet_socket_service::id]
+]
 
-[indexterm2 id..seq_packet_socket_service]
-The unique service identifier.
+[heading Requirements]
 
+[*Header: ][^boost/asio/signal_set_service.hpp]
 
- static boost::asio::io_service::id id;
+[*Convenience header: ][^boost/asio.hpp]
 
 
+[section:add signal_set_service::add]
 
-[endsect]
+[indexterm2 add..signal_set_service]
+Add a signal to a signal\_set.
 
 
+ boost::system::error_code add(
+ implementation_type & impl,
+ int signal_number,
+ boost::system::error_code & ec);
 
-[section:implementation_type seq_packet_socket_service::implementation_type]
 
-[indexterm2 implementation_type..seq_packet_socket_service]
-The type of a sequenced packet socket implementation.
 
+[endsect]
 
- typedef implementation_defined implementation_type;
 
 
+[section:async_wait signal_set_service::async_wait]
 
-[heading Requirements]
+[indexterm2 async_wait..signal_set_service]
 
-[*Header: ][^boost/asio/seq_packet_socket_service.hpp]
+ template<
+ typename ``[link boost_asio.reference.SignalHandler SignalHandler]``>
+ void async_wait(
+ implementation_type & impl,
+ SignalHandler handler);
 
-[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
 
-[section:io_control seq_packet_socket_service::io_control]
+[section:cancel signal_set_service::cancel]
 
-[indexterm2 io_control..seq_packet_socket_service]
-Perform an IO control command on the socket.
+[indexterm2 cancel..signal_set_service]
+Cancel all operations associated with the signal set.
 
 
- template<
- typename ``[link boost_asio.reference.IoControlCommand IoControlCommand]``>
- boost::system::error_code io_control(
+ boost::system::error_code cancel(
       implementation_type & impl,
- IoControlCommand & command,
       boost::system::error_code & ec);
 
 
@@ -76684,14 +80510,15 @@
 
 
 
-[section:is_open seq_packet_socket_service::is_open]
+[section:clear signal_set_service::clear]
 
-[indexterm2 is_open..seq_packet_socket_service]
-Determine whether the socket is open.
+[indexterm2 clear..signal_set_service]
+Remove all signals from a signal\_set.
 
 
- bool is_open(
- const implementation_type & impl) const;
+ boost::system::error_code clear(
+ implementation_type & impl,
+ boost::system::error_code & ec);
 
 
 
@@ -76699,15 +80526,14 @@
 
 
 
-[section:local_endpoint seq_packet_socket_service::local_endpoint]
+[section:construct signal_set_service::construct]
 
-[indexterm2 local_endpoint..seq_packet_socket_service]
-Get the local endpoint.
+[indexterm2 construct..signal_set_service]
+Construct a new signal set implementation.
 
 
- endpoint_type local_endpoint(
- const implementation_type & impl,
- boost::system::error_code & ec) const;
+ void construct(
+ implementation_type & impl);
 
 
 
@@ -76715,16 +80541,14 @@
 
 
 
-[section:move_assign seq_packet_socket_service::move_assign]
+[section:destroy signal_set_service::destroy]
 
-[indexterm2 move_assign..seq_packet_socket_service]
-Move-assign from another sequenced packet socket implementation.
+[indexterm2 destroy..signal_set_service]
+Destroy a signal set implementation.
 
 
- void move_assign(
- implementation_type & impl,
- seq_packet_socket_service & other_service,
- implementation_type & other_impl);
+ void destroy(
+ implementation_type & impl);
 
 
 
@@ -76732,15 +80556,16 @@
 
 
 
-[section:move_construct seq_packet_socket_service::move_construct]
+[section:get_io_service signal_set_service::get_io_service]
 
-[indexterm2 move_construct..seq_packet_socket_service]
-Move-construct a new sequenced packet socket implementation.
 
+['Inherited from io_service.]
 
- void move_construct(
- implementation_type & impl,
- implementation_type & other_impl);
+[indexterm2 get_io_service..signal_set_service]
+Get the [link boost_asio.reference.io_service `io_service`] object that owns the service.
+
+
+ boost::asio::io_service & get_io_service();
 
 
 
@@ -76748,14 +80573,13 @@
 
 
 
-[section:native seq_packet_socket_service::native]
+[section:id signal_set_service::id]
 
-[indexterm2 native..seq_packet_socket_service]
-(Deprecated: Use `native_handle()`.) Get the native socket implementation.
+[indexterm2 id..signal_set_service]
+The unique service identifier.
 
 
- native_type native(
- implementation_type & impl);
+ static boost::asio::io_service::id id;
 
 
 
@@ -76763,161 +80587,325 @@
 
 
 
-[section:native_handle seq_packet_socket_service::native_handle]
+[section:implementation_type signal_set_service::implementation_type]
 
-[indexterm2 native_handle..seq_packet_socket_service]
-Get the native socket implementation.
+[indexterm2 implementation_type..signal_set_service]
+The type of a signal set implementation.
 
 
- native_handle_type native_handle(
- implementation_type & impl);
+ typedef implementation_defined implementation_type;
 
 
 
-[endsect]
+[heading Requirements]
 
+[*Header: ][^boost/asio/signal_set_service.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
-[section:native_handle_type seq_packet_socket_service::native_handle_type]
 
-[indexterm2 native_handle_type..seq_packet_socket_service]
-The native socket type.
+[endsect]
 
 
- typedef implementation_defined native_handle_type;
 
+[section:remove signal_set_service::remove]
 
+[indexterm2 remove..signal_set_service]
+Remove a signal to a signal\_set.
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/seq_packet_socket_service.hpp]
+ boost::system::error_code remove(
+ implementation_type & impl,
+ int signal_number,
+ boost::system::error_code & ec);
 
-[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
-[section:native_non_blocking seq_packet_socket_service::native_non_blocking]
 
-[indexterm2 native_non_blocking..seq_packet_socket_service]
-Gets the non-blocking mode of the native socket implementation.
+[section:signal_set_service signal_set_service::signal_set_service]
 
+[indexterm2 signal_set_service..signal_set_service]
+Construct a new signal set service for the specified [link boost_asio.reference.io_service `io_service`].
 
- bool ``[link boost_asio.reference.seq_packet_socket_service.native_non_blocking.overload1 native_non_blocking]``(
- const implementation_type & impl) const;
- `` [''''&raquo;''' [link boost_asio.reference.seq_packet_socket_service.native_non_blocking.overload1 more...]]``
 
+ signal_set_service(
+ boost::asio::io_service & io_service);
 
-Sets the non-blocking mode of the native socket implementation.
 
 
- boost::system::error_code ``[link boost_asio.reference.seq_packet_socket_service.native_non_blocking.overload2 native_non_blocking]``(
- implementation_type & impl,
- bool mode,
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.seq_packet_socket_service.native_non_blocking.overload2 more...]]``
+[endsect]
 
 
-[section:overload1 seq_packet_socket_service::native_non_blocking (1 of 2 overloads)]
 
+[endsect]
 
-Gets the non-blocking mode of the native socket implementation.
+[section:socket_acceptor_service socket_acceptor_service]
 
 
- bool native_non_blocking(
- const implementation_type & impl) const;
+Default service implementation for a socket acceptor.
 
 
+ template<
+ typename ``[link boost_asio.reference.Protocol Protocol]``>
+ class socket_acceptor_service :
+ public io_service::service
 
-[endsect]
 
+[heading Types]
+[table
+ [[Name][Description]]
 
+ [
 
-[section:overload2 seq_packet_socket_service::native_non_blocking (2 of 2 overloads)]
+ [[link boost_asio.reference.socket_acceptor_service.endpoint_type [*endpoint_type]]]
+ [The endpoint type. ]
+
+ ]
 
+ [
 
-Sets the non-blocking mode of the native socket implementation.
+ [[link boost_asio.reference.socket_acceptor_service.implementation_type [*implementation_type]]]
+ [The native type of the socket acceptor. ]
+
+ ]
 
+ [
 
- boost::system::error_code native_non_blocking(
- implementation_type & impl,
- bool mode,
- boost::system::error_code & ec);
+ [[link boost_asio.reference.socket_acceptor_service.native_handle_type [*native_handle_type]]]
+ [The native acceptor type. ]
+
+ ]
 
+ [
 
+ [[link boost_asio.reference.socket_acceptor_service.native_type [*native_type]]]
+ [(Deprecated: Use native_handle_type.) The native acceptor type. ]
+
+ ]
 
-[endsect]
+ [
 
+ [[link boost_asio.reference.socket_acceptor_service.protocol_type [*protocol_type]]]
+ [The protocol type. ]
+
+ ]
 
-[endsect]
+]
 
+[heading Member Functions]
+[table
+ [[Name][Description]]
 
-[section:native_type seq_packet_socket_service::native_type]
+ [
+ [[link boost_asio.reference.socket_acceptor_service.accept [*accept]]]
+ [Accept a new connection. ]
+ ]
+
+ [
+ [[link boost_asio.reference.socket_acceptor_service.assign [*assign]]]
+ [Assign an existing native acceptor to a socket acceptor. ]
+ ]
+
+ [
+ [[link boost_asio.reference.socket_acceptor_service.async_accept [*async_accept]]]
+ [Start an asynchronous accept. ]
+ ]
+
+ [
+ [[link boost_asio.reference.socket_acceptor_service.bind [*bind]]]
+ [Bind the socket acceptor to the specified local endpoint. ]
+ ]
+
+ [
+ [[link boost_asio.reference.socket_acceptor_service.cancel [*cancel]]]
+ [Cancel all asynchronous operations associated with the acceptor. ]
+ ]
+
+ [
+ [[link boost_asio.reference.socket_acceptor_service.close [*close]]]
+ [Close a socket acceptor implementation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.socket_acceptor_service.construct [*construct]]]
+ [Construct a new socket acceptor implementation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.socket_acceptor_service.destroy [*destroy]]]
+ [Destroy a socket acceptor implementation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.socket_acceptor_service.get_io_service [*get_io_service]]]
+ [Get the io_service object that owns the service. ]
+ ]
+
+ [
+ [[link boost_asio.reference.socket_acceptor_service.get_option [*get_option]]]
+ [Get a socket option. ]
+ ]
+
+ [
+ [[link boost_asio.reference.socket_acceptor_service.io_control [*io_control]]]
+ [Perform an IO control command on the socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.socket_acceptor_service.is_open [*is_open]]]
+ [Determine whether the acceptor is open. ]
+ ]
+
+ [
+ [[link boost_asio.reference.socket_acceptor_service.listen [*listen]]]
+ [Place the socket acceptor into the state where it will listen for new connections. ]
+ ]
+
+ [
+ [[link boost_asio.reference.socket_acceptor_service.local_endpoint [*local_endpoint]]]
+ [Get the local endpoint. ]
+ ]
+
+ [
+ [[link boost_asio.reference.socket_acceptor_service.move_assign [*move_assign]]]
+ [Move-assign from another socket acceptor implementation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.socket_acceptor_service.move_construct [*move_construct]]]
+ [Move-construct a new socket acceptor implementation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.socket_acceptor_service.native [*native]]]
+ [(Deprecated: Use native_handle().) Get the native acceptor implementation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.socket_acceptor_service.native_handle [*native_handle]]]
+ [Get the native acceptor implementation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.socket_acceptor_service.native_non_blocking [*native_non_blocking]]]
+ [Gets the non-blocking mode of the native acceptor implementation.
 
-[indexterm2 native_type..seq_packet_socket_service]
-(Deprecated: Use native\_handle\_type.) The native socket type.
+ Sets the non-blocking mode of the native acceptor implementation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.socket_acceptor_service.non_blocking [*non_blocking]]]
+ [Gets the non-blocking mode of the acceptor.
 
+ Sets the non-blocking mode of the acceptor. ]
+ ]
+
+ [
+ [[link boost_asio.reference.socket_acceptor_service.open [*open]]]
+ [Open a new socket acceptor implementation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.socket_acceptor_service.set_option [*set_option]]]
+ [Set a socket option. ]
+ ]
+
+ [
+ [[link boost_asio.reference.socket_acceptor_service.socket_acceptor_service [*socket_acceptor_service]]]
+ [Construct a new socket acceptor service for the specified io_service. ]
+ ]
+
+]
 
- typedef implementation_defined native_type;
+[heading Data Members]
+[table
+ [[Name][Description]]
 
+ [
+ [[link boost_asio.reference.socket_acceptor_service.id [*id]]]
+ [The unique service identifier. ]
+ ]
 
+]
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/seq_packet_socket_service.hpp]
+[*Header: ][^boost/asio/socket_acceptor_service.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
 
-[endsect]
+[section:accept socket_acceptor_service::accept]
 
+[indexterm2 accept..socket_acceptor_service]
+Accept a new connection.
 
-[section:non_blocking seq_packet_socket_service::non_blocking]
 
-[indexterm2 non_blocking..seq_packet_socket_service]
-Gets the non-blocking mode of the socket.
+ template<
+ typename ``[link boost_asio.reference.SocketService SocketService]``>
+ boost::system::error_code accept(
+ implementation_type & impl,
+ basic_socket< protocol_type, SocketService > & peer,
+ endpoint_type * peer_endpoint,
+ boost::system::error_code & ec);
 
 
- bool ``[link boost_asio.reference.seq_packet_socket_service.non_blocking.overload1 non_blocking]``(
- const implementation_type & impl) const;
- `` [''''&raquo;''' [link boost_asio.reference.seq_packet_socket_service.non_blocking.overload1 more...]]``
+
+[endsect]
 
 
-Sets the non-blocking mode of the socket.
 
+[section:assign socket_acceptor_service::assign]
 
- boost::system::error_code ``[link boost_asio.reference.seq_packet_socket_service.non_blocking.overload2 non_blocking]``(
+[indexterm2 assign..socket_acceptor_service]
+Assign an existing native acceptor to a socket acceptor.
+
+
+ boost::system::error_code assign(
       implementation_type & impl,
- bool mode,
+ const protocol_type & protocol,
+ const native_handle_type & native_acceptor,
       boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.seq_packet_socket_service.non_blocking.overload2 more...]]``
 
 
-[section:overload1 seq_packet_socket_service::non_blocking (1 of 2 overloads)]
 
+[endsect]
 
-Gets the non-blocking mode of the socket.
 
 
- bool non_blocking(
- const implementation_type & impl) const;
+[section:async_accept socket_acceptor_service::async_accept]
 
+[indexterm2 async_accept..socket_acceptor_service]
+Start an asynchronous accept.
 
 
-[endsect]
+ template<
+ typename ``[link boost_asio.reference.SocketService SocketService]``,
+ typename ``[link boost_asio.reference.AcceptHandler AcceptHandler]``>
+ void async_accept(
+ implementation_type & impl,
+ basic_socket< protocol_type, SocketService > & peer,
+ endpoint_type * peer_endpoint,
+ AcceptHandler handler);
 
 
 
-[section:overload2 seq_packet_socket_service::non_blocking (2 of 2 overloads)]
+[endsect]
 
 
-Sets the non-blocking mode of the socket.
 
+[section:bind socket_acceptor_service::bind]
 
- boost::system::error_code non_blocking(
+[indexterm2 bind..socket_acceptor_service]
+Bind the socket acceptor to the specified local endpoint.
+
+
+ boost::system::error_code bind(
       implementation_type & impl,
- bool mode,
+ const endpoint_type & endpoint,
       boost::system::error_code & ec);
 
 
@@ -76925,18 +80913,15 @@
 [endsect]
 
 
-[endsect]
-
 
-[section:open seq_packet_socket_service::open]
+[section:cancel socket_acceptor_service::cancel]
 
-[indexterm2 open..seq_packet_socket_service]
-Open a sequenced packet socket.
+[indexterm2 cancel..socket_acceptor_service]
+Cancel all asynchronous operations associated with the acceptor.
 
 
- boost::system::error_code open(
+ boost::system::error_code cancel(
       implementation_type & impl,
- const protocol_type & protocol,
       boost::system::error_code & ec);
 
 
@@ -76945,92 +80930,83 @@
 
 
 
-[section:protocol_type seq_packet_socket_service::protocol_type]
+[section:close socket_acceptor_service::close]
 
-[indexterm2 protocol_type..seq_packet_socket_service]
-The protocol type.
+[indexterm2 close..socket_acceptor_service]
+Close a socket acceptor implementation.
 
 
- typedef Protocol protocol_type;
+ boost::system::error_code close(
+ implementation_type & impl,
+ boost::system::error_code & ec);
 
 
 
-[heading Requirements]
+[endsect]
 
-[*Header: ][^boost/asio/seq_packet_socket_service.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
 
+[section:construct socket_acceptor_service::construct]
 
-[endsect]
+[indexterm2 construct..socket_acceptor_service]
+Construct a new socket acceptor implementation.
 
 
+ void construct(
+ implementation_type & impl);
 
-[section:receive seq_packet_socket_service::receive]
 
-[indexterm2 receive..seq_packet_socket_service]
-Receive some data from the peer.
 
+[endsect]
 
- template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
- std::size_t receive(
- implementation_type & impl,
- const MutableBufferSequence & buffers,
- socket_base::message_flags in_flags,
- socket_base::message_flags & out_flags,
- boost::system::error_code & ec);
 
 
+[section:destroy socket_acceptor_service::destroy]
 
-[endsect]
+[indexterm2 destroy..socket_acceptor_service]
+Destroy a socket acceptor implementation.
 
 
+ void destroy(
+ implementation_type & impl);
 
-[section:remote_endpoint seq_packet_socket_service::remote_endpoint]
 
-[indexterm2 remote_endpoint..seq_packet_socket_service]
-Get the remote endpoint.
 
+[endsect]
 
- endpoint_type remote_endpoint(
- const implementation_type & impl,
- boost::system::error_code & ec) const;
 
 
+[section:endpoint_type socket_acceptor_service::endpoint_type]
 
-[endsect]
+[indexterm2 endpoint_type..socket_acceptor_service]
+The endpoint type.
 
 
+ typedef protocol_type::endpoint endpoint_type;
 
-[section:send seq_packet_socket_service::send]
 
-[indexterm2 send..seq_packet_socket_service]
-Send the given data to the peer.
 
+[heading Requirements]
 
- template<
- typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
- std::size_t send(
- implementation_type & impl,
- const ConstBufferSequence & buffers,
- socket_base::message_flags flags,
- boost::system::error_code & ec);
+[*Header: ][^boost/asio/socket_acceptor_service.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
 
-[section:seq_packet_socket_service seq_packet_socket_service::seq_packet_socket_service]
+[section:get_io_service socket_acceptor_service::get_io_service]
 
-[indexterm2 seq_packet_socket_service..seq_packet_socket_service]
-Construct a new sequenced packet socket service for the specified [link boost_asio.reference.io_service `io_service`].
 
+['Inherited from io_service.]
 
- seq_packet_socket_service(
- boost::asio::io_service & io_service);
+[indexterm2 get_io_service..socket_acceptor_service]
+Get the [link boost_asio.reference.io_service `io_service`] object that owns the service.
+
+
+ boost::asio::io_service & get_io_service();
 
 
 
@@ -77038,18 +81014,18 @@
 
 
 
-[section:set_option seq_packet_socket_service::set_option]
+[section:get_option socket_acceptor_service::get_option]
 
-[indexterm2 set_option..seq_packet_socket_service]
-Set a socket option.
+[indexterm2 get_option..socket_acceptor_service]
+Get a socket option.
 
 
   template<
- typename ``[link boost_asio.reference.SettableSocketOption SettableSocketOption]``>
- boost::system::error_code set_option(
- implementation_type & impl,
- const SettableSocketOption & option,
- boost::system::error_code & ec);
+ typename ``[link boost_asio.reference.GettableSocketOption GettableSocketOption]``>
+ boost::system::error_code get_option(
+ const implementation_type & impl,
+ GettableSocketOption & option,
+ boost::system::error_code & ec) const;
 
 
 
@@ -77057,16 +81033,13 @@
 
 
 
-[section:shutdown seq_packet_socket_service::shutdown]
+[section:id socket_acceptor_service::id]
 
-[indexterm2 shutdown..seq_packet_socket_service]
-Disable sends or receives on the socket.
+[indexterm2 id..socket_acceptor_service]
+The unique service identifier.
 
 
- boost::system::error_code shutdown(
- implementation_type & impl,
- socket_base::shutdown_type what,
- boost::system::error_code & ec);
+ static boost::asio::io_service::id id;
 
 
 
@@ -77074,379 +81047,206 @@
 
 
 
-[endsect]
+[section:implementation_type socket_acceptor_service::implementation_type]
+
+[indexterm2 implementation_type..socket_acceptor_service]
+The native type of the socket acceptor.
+
+
+ typedef implementation_defined implementation_type;
+
 
 
-[section:serial_port serial_port]
+[heading Requirements]
 
-[indexterm1 serial_port]
-Typedef for the typical usage of a serial port.
+[*Header: ][^boost/asio/socket_acceptor_service.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
- typedef basic_serial_port serial_port;
 
+[endsect]
 
-[heading Types]
-[table
- [[Name][Description]]
 
- [
 
- [[link boost_asio.reference.basic_serial_port.implementation_type [*implementation_type]]]
- [The underlying implementation type of I/O object. ]
-
- ]
+[section:io_control socket_acceptor_service::io_control]
 
- [
+[indexterm2 io_control..socket_acceptor_service]
+Perform an IO control command on the socket.
 
- [[link boost_asio.reference.basic_serial_port.lowest_layer_type [*lowest_layer_type]]]
- [A basic_serial_port is always the lowest layer. ]
-
- ]
 
- [
+ template<
+ typename ``[link boost_asio.reference.IoControlCommand IoControlCommand]``>
+ boost::system::error_code io_control(
+ implementation_type & impl,
+ IoControlCommand & command,
+ boost::system::error_code & ec);
 
- [[link boost_asio.reference.basic_serial_port.native_handle_type [*native_handle_type]]]
- [The native representation of a serial port. ]
-
- ]
 
- [
 
- [[link boost_asio.reference.basic_serial_port.native_type [*native_type]]]
- [(Deprecated: Use native_handle_type.) The native representation of a serial port. ]
-
- ]
+[endsect]
 
- [
 
- [[link boost_asio.reference.basic_serial_port.service_type [*service_type]]]
- [The type of the service that will be used to provide I/O operations. ]
-
- ]
 
-]
+[section:is_open socket_acceptor_service::is_open]
 
-[heading Member Functions]
-[table
- [[Name][Description]]
+[indexterm2 is_open..socket_acceptor_service]
+Determine whether the acceptor is open.
 
- [
- [[link boost_asio.reference.basic_serial_port.assign [*assign]]]
- [Assign an existing native serial port to the serial port. ]
- ]
-
- [
- [[link boost_asio.reference.basic_serial_port.async_read_some [*async_read_some]]]
- [Start an asynchronous read. ]
- ]
-
- [
- [[link boost_asio.reference.basic_serial_port.async_write_some [*async_write_some]]]
- [Start an asynchronous write. ]
- ]
-
- [
- [[link boost_asio.reference.basic_serial_port.basic_serial_port [*basic_serial_port]]]
- [Construct a basic_serial_port without opening it.
 
- Construct and open a basic_serial_port.
+ bool is_open(
+ const implementation_type & impl) const;
 
- Construct a basic_serial_port on an existing native serial port.
 
- Move-construct a basic_serial_port from another. ]
- ]
-
- [
- [[link boost_asio.reference.basic_serial_port.cancel [*cancel]]]
- [Cancel all asynchronous operations associated with the serial port. ]
- ]
-
- [
- [[link boost_asio.reference.basic_serial_port.close [*close]]]
- [Close the serial port. ]
- ]
-
- [
- [[link boost_asio.reference.basic_serial_port.get_io_service [*get_io_service]]]
- [Get the io_service associated with the object. ]
- ]
-
- [
- [[link boost_asio.reference.basic_serial_port.get_option [*get_option]]]
- [Get an option from the serial port. ]
- ]
-
- [
- [[link boost_asio.reference.basic_serial_port.is_open [*is_open]]]
- [Determine whether the serial port is open. ]
- ]
-
- [
- [[link boost_asio.reference.basic_serial_port.lowest_layer [*lowest_layer]]]
- [Get a reference to the lowest layer.
 
- Get a const reference to the lowest layer. ]
- ]
-
- [
- [[link boost_asio.reference.basic_serial_port.native [*native]]]
- [(Deprecated: Use native_handle().) Get the native serial port representation. ]
- ]
-
- [
- [[link boost_asio.reference.basic_serial_port.native_handle [*native_handle]]]
- [Get the native serial port representation. ]
- ]
-
- [
- [[link boost_asio.reference.basic_serial_port.open [*open]]]
- [Open the serial port using the specified device name. ]
- ]
-
- [
- [[link boost_asio.reference.basic_serial_port.operator_eq_ [*operator=]]]
- [Move-assign a basic_serial_port from another. ]
- ]
-
- [
- [[link boost_asio.reference.basic_serial_port.read_some [*read_some]]]
- [Read some data from the serial port. ]
- ]
-
- [
- [[link boost_asio.reference.basic_serial_port.send_break [*send_break]]]
- [Send a break sequence to the serial port. ]
- ]
-
- [
- [[link boost_asio.reference.basic_serial_port.set_option [*set_option]]]
- [Set an option on the serial port. ]
- ]
-
- [
- [[link boost_asio.reference.basic_serial_port.write_some [*write_some]]]
- [Write some data to the serial port. ]
- ]
-
-]
+[endsect]
 
-[heading Protected Member Functions]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.basic_serial_port.get_implementation [*get_implementation]]]
- [Get the underlying implementation of the I/O object. ]
- ]
-
- [
- [[link boost_asio.reference.basic_serial_port.get_service [*get_service]]]
- [Get the service associated with the I/O object. ]
- ]
-
-]
 
-[heading Protected Data Members]
-[table
- [[Name][Description]]
+[section:listen socket_acceptor_service::listen]
 
- [
- [[link boost_asio.reference.basic_serial_port.implementation [*implementation]]]
- [(Deprecated: Use get_implementation().) The underlying implementation of the I/O object. ]
- ]
+[indexterm2 listen..socket_acceptor_service]
+Place the socket acceptor into the state where it will listen for new connections.
 
- [
- [[link boost_asio.reference.basic_serial_port.service [*service]]]
- [(Deprecated: Use get_service().) The service associated with the I/O object. ]
- ]
 
-]
+ boost::system::error_code listen(
+ implementation_type & impl,
+ int backlog,
+ boost::system::error_code & ec);
 
-The [link boost_asio.reference.basic_serial_port `basic_serial_port`] class template provides functionality that is common to all serial ports.
 
 
-[heading Thread Safety]
-
-[*Distinct] [*objects:] Safe.
+[endsect]
 
-[*Shared] [*objects:] Unsafe.
 
 
+[section:local_endpoint socket_acceptor_service::local_endpoint]
 
+[indexterm2 local_endpoint..socket_acceptor_service]
+Get the local endpoint.
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/serial_port.hpp]
+ endpoint_type local_endpoint(
+ const implementation_type & impl,
+ boost::system::error_code & ec) const;
 
-[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
-[section:serial_port_base serial_port_base]
 
+[section:move_assign socket_acceptor_service::move_assign]
 
-The [link boost_asio.reference.serial_port_base `serial_port_base`] class is used as a base for the [link boost_asio.reference.basic_serial_port `basic_serial_port`] class template so that we have a common place to define the serial port options.
+[indexterm2 move_assign..socket_acceptor_service]
+Move-assign from another socket acceptor implementation.
 
 
- class serial_port_base
+ void move_assign(
+ implementation_type & impl,
+ socket_acceptor_service & other_service,
+ implementation_type & other_impl);
 
 
-[heading Types]
-[table
- [[Name][Description]]
 
- [
+[endsect]
 
- [[link boost_asio.reference.serial_port_base__baud_rate [*baud_rate]]]
- [Serial port option to permit changing the baud rate. ]
-
- ]
 
- [
 
- [[link boost_asio.reference.serial_port_base__character_size [*character_size]]]
- [Serial port option to permit changing the character size. ]
-
- ]
+[section:move_construct socket_acceptor_service::move_construct]
 
- [
+[indexterm2 move_construct..socket_acceptor_service]
+Move-construct a new socket acceptor implementation.
 
- [[link boost_asio.reference.serial_port_base__flow_control [*flow_control]]]
- [Serial port option to permit changing the flow control. ]
-
- ]
 
- [
+ void move_construct(
+ implementation_type & impl,
+ implementation_type & other_impl);
 
- [[link boost_asio.reference.serial_port_base__parity [*parity]]]
- [Serial port option to permit changing the parity. ]
-
- ]
 
- [
 
- [[link boost_asio.reference.serial_port_base__stop_bits [*stop_bits]]]
- [Serial port option to permit changing the number of stop bits. ]
-
- ]
+[endsect]
 
-]
 
-[heading Protected Member Functions]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.serial_port_base._serial_port_base [*~serial_port_base]]]
- [Protected destructor to prevent deletion through this type. ]
- ]
-
-]
+[section:native socket_acceptor_service::native]
 
-[heading Requirements]
+[indexterm2 native..socket_acceptor_service]
+(Deprecated: Use `native_handle()`.) Get the native acceptor implementation.
 
-[*Header: ][^boost/asio/serial_port_base.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
+ native_type native(
+ implementation_type & impl);
 
 
-[section:_serial_port_base serial_port_base::~serial_port_base]
 
-[indexterm2 ~serial_port_base..serial_port_base]
-Protected destructor to prevent deletion through this type.
+[endsect]
 
 
- ~serial_port_base();
 
+[section:native_handle socket_acceptor_service::native_handle]
 
+[indexterm2 native_handle..socket_acceptor_service]
+Get the native acceptor implementation.
 
-[endsect]
 
+ native_handle_type native_handle(
+ implementation_type & impl);
 
 
-[endsect]
 
-[section:serial_port_base__baud_rate serial_port_base::baud_rate]
+[endsect]
 
 
-Serial port option to permit changing the baud rate.
 
+[section:native_handle_type socket_acceptor_service::native_handle_type]
 
- class baud_rate
+[indexterm2 native_handle_type..socket_acceptor_service]
+The native acceptor type.
 
 
-[heading Member Functions]
-[table
- [[Name][Description]]
+ typedef implementation_defined native_handle_type;
 
- [
- [[link boost_asio.reference.serial_port_base__baud_rate.baud_rate [*baud_rate]]]
- []
- ]
-
- [
- [[link boost_asio.reference.serial_port_base__baud_rate.load [*load]]]
- []
- ]
-
- [
- [[link boost_asio.reference.serial_port_base__baud_rate.store [*store]]]
- []
- ]
-
- [
- [[link boost_asio.reference.serial_port_base__baud_rate.value [*value]]]
- []
- ]
-
-]
 
-Implements changing the baud rate for a given serial port.
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/serial_port_base.hpp]
+[*Header: ][^boost/asio/socket_acceptor_service.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
 
-[section:baud_rate serial_port_base::baud_rate::baud_rate]
-
-[indexterm2 baud_rate..serial_port_base::baud_rate]
+[endsect]
 
- baud_rate(
- unsigned int rate = 0);
 
+[section:native_non_blocking socket_acceptor_service::native_non_blocking]
 
+[indexterm2 native_non_blocking..socket_acceptor_service]
+Gets the non-blocking mode of the native acceptor implementation.
 
-[endsect]
 
+ bool ``[link boost_asio.reference.socket_acceptor_service.native_non_blocking.overload1 native_non_blocking]``(
+ const implementation_type & impl) const;
+ `` [''''&raquo;''' [link boost_asio.reference.socket_acceptor_service.native_non_blocking.overload1 more...]]``
 
 
-[section:load serial_port_base::baud_rate::load]
+Sets the non-blocking mode of the native acceptor implementation.
 
-[indexterm2 load..serial_port_base::baud_rate]
 
- boost::system::error_code load(
- const BOOST_ASIO_OPTION_STORAGE & storage,
+ boost::system::error_code ``[link boost_asio.reference.socket_acceptor_service.native_non_blocking.overload2 native_non_blocking]``(
+ implementation_type & impl,
+ bool mode,
       boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.socket_acceptor_service.native_non_blocking.overload2 more...]]``
 
 
-
-[endsect]
-
+[section:overload1 socket_acceptor_service::native_non_blocking (1 of 2 overloads)]
 
 
-[section:store serial_port_base::baud_rate::store]
+Gets the non-blocking mode of the native acceptor implementation.
 
-[indexterm2 store..serial_port_base::baud_rate]
 
- boost::system::error_code store(
- BOOST_ASIO_OPTION_STORAGE & storage,
- boost::system::error_code & ec) const;
+ bool native_non_blocking(
+ const implementation_type & impl) const;
 
 
 
@@ -77454,98 +81254,74 @@
 
 
 
-[section:value serial_port_base::baud_rate::value]
-
-[indexterm2 value..serial_port_base::baud_rate]
+[section:overload2 socket_acceptor_service::native_non_blocking (2 of 2 overloads)]
 
- unsigned int value() const;
 
+Sets the non-blocking mode of the native acceptor implementation.
 
 
-[endsect]
+ boost::system::error_code native_non_blocking(
+ implementation_type & impl,
+ bool mode,
+ boost::system::error_code & ec);
 
 
 
 [endsect]
 
-[section:serial_port_base__character_size serial_port_base::character_size]
 
+[endsect]
 
-Serial port option to permit changing the character size.
 
+[section:native_type socket_acceptor_service::native_type]
 
- class character_size
+[indexterm2 native_type..socket_acceptor_service]
+(Deprecated: Use native\_handle\_type.) The native acceptor type.
 
 
-[heading Member Functions]
-[table
- [[Name][Description]]
+ typedef implementation_defined native_type;
 
- [
- [[link boost_asio.reference.serial_port_base__character_size.character_size [*character_size]]]
- []
- ]
-
- [
- [[link boost_asio.reference.serial_port_base__character_size.load [*load]]]
- []
- ]
-
- [
- [[link boost_asio.reference.serial_port_base__character_size.store [*store]]]
- []
- ]
-
- [
- [[link boost_asio.reference.serial_port_base__character_size.value [*value]]]
- []
- ]
-
-]
 
-Implements changing the character size for a given serial port.
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/serial_port_base.hpp]
+[*Header: ][^boost/asio/socket_acceptor_service.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
 
-[section:character_size serial_port_base::character_size::character_size]
-
-[indexterm2 character_size..serial_port_base::character_size]
+[endsect]
 
- character_size(
- unsigned int t = 8);
 
+[section:non_blocking socket_acceptor_service::non_blocking]
 
+[indexterm2 non_blocking..socket_acceptor_service]
+Gets the non-blocking mode of the acceptor.
 
-[endsect]
 
+ bool ``[link boost_asio.reference.socket_acceptor_service.non_blocking.overload1 non_blocking]``(
+ const implementation_type & impl) const;
+ `` [''''&raquo;''' [link boost_asio.reference.socket_acceptor_service.non_blocking.overload1 more...]]``
 
 
-[section:load serial_port_base::character_size::load]
+Sets the non-blocking mode of the acceptor.
 
-[indexterm2 load..serial_port_base::character_size]
 
- boost::system::error_code load(
- const BOOST_ASIO_OPTION_STORAGE & storage,
+ boost::system::error_code ``[link boost_asio.reference.socket_acceptor_service.non_blocking.overload2 non_blocking]``(
+ implementation_type & impl,
+ bool mode,
       boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.socket_acceptor_service.non_blocking.overload2 more...]]``
 
 
-
-[endsect]
-
+[section:overload1 socket_acceptor_service::non_blocking (1 of 2 overloads)]
 
 
-[section:store serial_port_base::character_size::store]
+Gets the non-blocking mode of the acceptor.
 
-[indexterm2 store..serial_port_base::character_size]
 
- boost::system::error_code store(
- BOOST_ASIO_OPTION_STORAGE & storage,
- boost::system::error_code & ec) const;
+ bool non_blocking(
+ const implementation_type & impl) const;
 
 
 
@@ -77553,96 +81329,74 @@
 
 
 
-[section:value serial_port_base::character_size::value]
-
-[indexterm2 value..serial_port_base::character_size]
+[section:overload2 socket_acceptor_service::non_blocking (2 of 2 overloads)]
 
- unsigned int value() const;
 
+Sets the non-blocking mode of the acceptor.
 
 
-[endsect]
+ boost::system::error_code non_blocking(
+ implementation_type & impl,
+ bool mode,
+ boost::system::error_code & ec);
 
 
 
 [endsect]
 
-[section:serial_port_base__flow_control serial_port_base::flow_control]
 
+[endsect]
 
-Serial port option to permit changing the flow control.
 
+[section:open socket_acceptor_service::open]
 
- class flow_control
+[indexterm2 open..socket_acceptor_service]
+Open a new socket acceptor implementation.
 
 
-[heading Types]
-[table
- [[Name][Description]]
+ boost::system::error_code open(
+ implementation_type & impl,
+ const protocol_type & protocol,
+ boost::system::error_code & ec);
 
- [
 
- [[link boost_asio.reference.serial_port_base__flow_control.type [*type]]]
- []
-
- ]
 
-]
+[endsect]
 
-[heading Member Functions]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.serial_port_base__flow_control.flow_control [*flow_control]]]
- []
- ]
-
- [
- [[link boost_asio.reference.serial_port_base__flow_control.load [*load]]]
- []
- ]
-
- [
- [[link boost_asio.reference.serial_port_base__flow_control.store [*store]]]
- []
- ]
-
- [
- [[link boost_asio.reference.serial_port_base__flow_control.value [*value]]]
- []
- ]
-
-]
 
-Implements changing the flow control for a given serial port.
+[section:protocol_type socket_acceptor_service::protocol_type]
 
-[heading Requirements]
+[indexterm2 protocol_type..socket_acceptor_service]
+The protocol type.
 
-[*Header: ][^boost/asio/serial_port_base.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
+ typedef Protocol protocol_type;
 
 
-[section:flow_control serial_port_base::flow_control::flow_control]
 
-[indexterm2 flow_control..serial_port_base::flow_control]
+[heading Requirements]
 
- flow_control(
- type t = none);
+[*Header: ][^boost/asio/socket_acceptor_service.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
 
-[section:load serial_port_base::flow_control::load]
+[section:set_option socket_acceptor_service::set_option]
 
-[indexterm2 load..serial_port_base::flow_control]
+[indexterm2 set_option..socket_acceptor_service]
+Set a socket option.
 
- boost::system::error_code load(
- const BOOST_ASIO_OPTION_STORAGE & storage,
+
+ template<
+ typename ``[link boost_asio.reference.SettableSocketOption SettableSocketOption]``>
+ boost::system::error_code set_option(
+ implementation_type & impl,
+ const SettableSocketOption & option,
       boost::system::error_code & ec);
 
 
@@ -77651,13 +81405,14 @@
 
 
 
-[section:store serial_port_base::flow_control::store]
+[section:socket_acceptor_service socket_acceptor_service::socket_acceptor_service]
 
-[indexterm2 store..serial_port_base::flow_control]
+[indexterm2 socket_acceptor_service..socket_acceptor_service]
+Construct a new socket acceptor service for the specified [link boost_asio.reference.io_service `io_service`].
 
- boost::system::error_code store(
- BOOST_ASIO_OPTION_STORAGE & storage,
- boost::system::error_code & ec) const;
+
+ socket_acceptor_service(
+ boost::asio::io_service & io_service);
 
 
 
@@ -77665,595 +81420,531 @@
 
 
 
-[section:type serial_port_base::flow_control::type]
+[endsect]
 
-[indexterm2 type..serial_port_base::flow_control]
+[section:socket_base socket_base]
 
- enum type
 
-[indexterm2 none..serial_port_base::flow_control]
-[indexterm2 software..serial_port_base::flow_control]
-[indexterm2 hardware..serial_port_base::flow_control]
+The [link boost_asio.reference.socket_base `socket_base`] class is used as a base for the [link boost_asio.reference.basic_stream_socket `basic_stream_socket`] and [link boost_asio.reference.basic_datagram_socket `basic_datagram_socket`] class templates so that we have a common place to define the shutdown\_type and enum.
 
-[heading Values]
-[variablelist
+
+ class socket_base
+
+
+[heading Types]
+[table
+ [[Name][Description]]
 
   [
- [none]
- []
+
+ [[link boost_asio.reference.socket_base.broadcast [*broadcast]]]
+ [Socket option to permit sending of broadcast messages. ]
+
   ]
 
   [
- [software]
- []
+
+ [[link boost_asio.reference.socket_base.bytes_readable [*bytes_readable]]]
+ [IO control command to get the amount of data that can be read without blocking. ]
+
   ]
 
   [
- [hardware]
- []
+
+ [[link boost_asio.reference.socket_base.debug [*debug]]]
+ [Socket option to enable socket-level debugging. ]
+
   ]
 
-]
+ [
 
+ [[link boost_asio.reference.socket_base.do_not_route [*do_not_route]]]
+ [Socket option to prevent routing, use local interfaces only. ]
+
+ ]
 
+ [
 
-[endsect]
+ [[link boost_asio.reference.socket_base.enable_connection_aborted [*enable_connection_aborted]]]
+ [Socket option to report aborted connections on accept. ]
+
+ ]
 
+ [
 
+ [[link boost_asio.reference.socket_base.keep_alive [*keep_alive]]]
+ [Socket option to send keep-alives. ]
+
+ ]
 
-[section:value serial_port_base::flow_control::value]
+ [
 
-[indexterm2 value..serial_port_base::flow_control]
+ [[link boost_asio.reference.socket_base.linger [*linger]]]
+ [Socket option to specify whether the socket lingers on close if unsent data is present. ]
+
+ ]
 
- type value() const;
+ [
 
+ [[link boost_asio.reference.socket_base.message_flags [*message_flags]]]
+ [Bitmask type for flags that can be passed to send and receive operations. ]
+
+ ]
 
+ [
 
-[endsect]
+ [[link boost_asio.reference.socket_base.non_blocking_io [*non_blocking_io]]]
+ [(Deprecated: Use non_blocking().) IO control command to set the blocking mode of the socket. ]
+
+ ]
 
+ [
 
+ [[link boost_asio.reference.socket_base.receive_buffer_size [*receive_buffer_size]]]
+ [Socket option for the receive buffer size of a socket. ]
+
+ ]
 
-[endsect]
+ [
 
-[section:serial_port_base__parity serial_port_base::parity]
+ [[link boost_asio.reference.socket_base.receive_low_watermark [*receive_low_watermark]]]
+ [Socket option for the receive low watermark. ]
+
+ ]
 
+ [
 
-Serial port option to permit changing the parity.
+ [[link boost_asio.reference.socket_base.reuse_address [*reuse_address]]]
+ [Socket option to allow the socket to be bound to an address that is already in use. ]
+
+ ]
 
+ [
 
- class parity
+ [[link boost_asio.reference.socket_base.send_buffer_size [*send_buffer_size]]]
+ [Socket option for the send buffer size of a socket. ]
+
+ ]
 
+ [
 
-[heading Types]
-[table
- [[Name][Description]]
+ [[link boost_asio.reference.socket_base.send_low_watermark [*send_low_watermark]]]
+ [Socket option for the send low watermark. ]
+
+ ]
 
   [
 
- [[link boost_asio.reference.serial_port_base__parity.type [*type]]]
- []
+ [[link boost_asio.reference.socket_base.shutdown_type [*shutdown_type]]]
+ [Different ways a socket may be shutdown. ]
   
   ]
 
 ]
 
-[heading Member Functions]
+[heading Protected Member Functions]
 [table
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.serial_port_base__parity.load [*load]]]
- []
+ [[link boost_asio.reference.socket_base._socket_base [*~socket_base]]]
+ [Protected destructor to prevent deletion through this type. ]
   ]
   
+]
+
+[heading Data Members]
+[table
+ [[Name][Description]]
+
   [
- [[link boost_asio.reference.serial_port_base__parity.parity [*parity]]]
- []
+ [[link boost_asio.reference.socket_base.max_connections [*max_connections]]]
+ [The maximum length of the queue of pending incoming connections. ]
   ]
-
+
   [
- [[link boost_asio.reference.serial_port_base__parity.store [*store]]]
- []
+ [[link boost_asio.reference.socket_base.message_do_not_route [*message_do_not_route]]]
+ [Specify that the data should not be subject to routing. ]
   ]
-
+
   [
- [[link boost_asio.reference.serial_port_base__parity.value [*value]]]
- []
+ [[link boost_asio.reference.socket_base.message_end_of_record [*message_end_of_record]]]
+ [Specifies that the data marks the end of a record. ]
   ]
-
-]
 
-Implements changing the parity for a given serial port.
+ [
+ [[link boost_asio.reference.socket_base.message_out_of_band [*message_out_of_band]]]
+ [Process out-of-band data. ]
+ ]
 
-[heading Requirements]
+ [
+ [[link boost_asio.reference.socket_base.message_peek [*message_peek]]]
+ [Peek at incoming data without removing it from the input queue. ]
+ ]
 
-[*Header: ][^boost/asio/serial_port_base.hpp]
+]
 
-[*Convenience header: ][^boost/asio.hpp]
+[heading Requirements]
 
+[*Header: ][^boost/asio/socket_base.hpp]
 
-[section:load serial_port_base::parity::load]
+[*Convenience header: ][^boost/asio.hpp]
 
-[indexterm2 load..serial_port_base::parity]
 
- boost::system::error_code load(
- const BOOST_ASIO_OPTION_STORAGE & storage,
- boost::system::error_code & ec);
+[section:broadcast socket_base::broadcast]
 
+[indexterm2 broadcast..socket_base]
+Socket option to permit sending of broadcast messages.
 
 
-[endsect]
+ typedef implementation_defined broadcast;
 
 
 
-[section:parity serial_port_base::parity::parity]
+Implements the SOL\_SOCKET/SO\_BROADCAST socket option.
 
-[indexterm2 parity..serial_port_base::parity]
 
- parity(
- type t = none);
+[heading Examples]
+
+Setting the option:
 
+ boost::asio::ip::udp::socket socket(io_service);
+ ...
+ boost::asio::socket_base::broadcast option(true);
+ socket.set_option(option);
 
 
-[endsect]
 
 
 
-[section:store serial_port_base::parity::store]
+Getting the current option value:
 
-[indexterm2 store..serial_port_base::parity]
+ boost::asio::ip::udp::socket socket(io_service);
+ ...
+ boost::asio::socket_base::broadcast option;
+ socket.get_option(option);
+ bool is_set = option.value();
 
- boost::system::error_code store(
- BOOST_ASIO_OPTION_STORAGE & storage,
- boost::system::error_code & ec) const;
 
 
 
-[endsect]
 
 
 
-[section:type serial_port_base::parity::type]
+[heading Requirements]
 
-[indexterm2 type..serial_port_base::parity]
+[*Header: ][^boost/asio/socket_base.hpp]
 
- enum type
+[*Convenience header: ][^boost/asio.hpp]
 
-[indexterm2 none..serial_port_base::parity]
-[indexterm2 odd..serial_port_base::parity]
-[indexterm2 even..serial_port_base::parity]
 
-[heading Values]
-[variablelist
+[endsect]
 
- [
- [none]
- []
- ]
 
- [
- [odd]
- []
- ]
 
- [
- [even]
- []
- ]
+[section:bytes_readable socket_base::bytes_readable]
 
-]
+[indexterm2 bytes_readable..socket_base]
+IO control command to get the amount of data that can be read without blocking.
 
 
+ typedef implementation_defined bytes_readable;
 
-[endsect]
 
 
+Implements the FIONREAD IO control command.
 
-[section:value serial_port_base::parity::value]
 
-[indexterm2 value..serial_port_base::parity]
+[heading Example]
+
 
- type value() const;
 
+ boost::asio::ip::tcp::socket socket(io_service);
+ ...
+ boost::asio::socket_base::bytes_readable command(true);
+ socket.io_control(command);
+ std::size_t bytes_readable = command.get();
 
 
-[endsect]
 
 
 
-[endsect]
 
-[section:serial_port_base__stop_bits serial_port_base::stop_bits]
 
+[heading Requirements]
 
-Serial port option to permit changing the number of stop bits.
+[*Header: ][^boost/asio/socket_base.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
- class stop_bits
 
+[endsect]
 
-[heading Types]
-[table
- [[Name][Description]]
 
- [
 
- [[link boost_asio.reference.serial_port_base__stop_bits.type [*type]]]
- []
-
- ]
+[section:debug socket_base::debug]
 
-]
+[indexterm2 debug..socket_base]
+Socket option to enable socket-level debugging.
 
-[heading Member Functions]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.serial_port_base__stop_bits.load [*load]]]
- []
- ]
-
- [
- [[link boost_asio.reference.serial_port_base__stop_bits.stop_bits [*stop_bits]]]
- []
- ]
-
- [
- [[link boost_asio.reference.serial_port_base__stop_bits.store [*store]]]
- []
- ]
-
- [
- [[link boost_asio.reference.serial_port_base__stop_bits.value [*value]]]
- []
- ]
-
-]
+ typedef implementation_defined debug;
 
-Implements changing the number of stop bits for a given serial port.
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/serial_port_base.hpp]
+Implements the SOL\_SOCKET/SO\_DEBUG socket option.
 
-[*Convenience header: ][^boost/asio.hpp]
 
+[heading Examples]
+
+Setting the option:
 
-[section:load serial_port_base::stop_bits::load]
+ boost::asio::ip::tcp::socket socket(io_service);
+ ...
+ boost::asio::socket_base::debug option(true);
+ socket.set_option(option);
 
-[indexterm2 load..serial_port_base::stop_bits]
 
- boost::system::error_code load(
- const BOOST_ASIO_OPTION_STORAGE & storage,
- boost::system::error_code & ec);
 
 
 
-[endsect]
+Getting the current option value:
 
+ boost::asio::ip::tcp::socket socket(io_service);
+ ...
+ boost::asio::socket_base::debug option;
+ socket.get_option(option);
+ bool is_set = option.value();
 
 
-[section:stop_bits serial_port_base::stop_bits::stop_bits]
 
-[indexterm2 stop_bits..serial_port_base::stop_bits]
 
- stop_bits(
- type t = one);
 
 
 
-[endsect]
+[heading Requirements]
 
+[*Header: ][^boost/asio/socket_base.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
-[section:store serial_port_base::stop_bits::store]
 
-[indexterm2 store..serial_port_base::stop_bits]
+[endsect]
 
- boost::system::error_code store(
- BOOST_ASIO_OPTION_STORAGE & storage,
- boost::system::error_code & ec) const;
 
 
+[section:do_not_route socket_base::do_not_route]
 
-[endsect]
+[indexterm2 do_not_route..socket_base]
+Socket option to prevent routing, use local interfaces only.
 
 
+ typedef implementation_defined do_not_route;
 
-[section:type serial_port_base::stop_bits::type]
 
-[indexterm2 type..serial_port_base::stop_bits]
 
- enum type
+Implements the SOL\_SOCKET/SO\_DONTROUTE socket option.
 
-[indexterm2 one..serial_port_base::stop_bits]
-[indexterm2 onepointfive..serial_port_base::stop_bits]
-[indexterm2 two..serial_port_base::stop_bits]
 
-[heading Values]
-[variablelist
+[heading Examples]
+
+Setting the option:
 
- [
- [one]
- []
- ]
+ boost::asio::ip::udp::socket socket(io_service);
+ ...
+ boost::asio::socket_base::do_not_route option(true);
+ socket.set_option(option);
 
- [
- [onepointfive]
- []
- ]
 
- [
- [two]
- []
- ]
 
-]
 
 
+Getting the current option value:
 
-[endsect]
+ boost::asio::ip::udp::socket socket(io_service);
+ ...
+ boost::asio::socket_base::do_not_route option;
+ socket.get_option(option);
+ bool is_set = option.value();
 
 
 
-[section:value serial_port_base::stop_bits::value]
 
-[indexterm2 value..serial_port_base::stop_bits]
 
- type value() const;
 
 
+[heading Requirements]
 
-[endsect]
+[*Header: ][^boost/asio/socket_base.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
-[section:serial_port_service serial_port_service]
-
-
-Default service implementation for a serial port.
 
 
- class serial_port_service :
- public io_service::service
+[section:enable_connection_aborted socket_base::enable_connection_aborted]
 
+[indexterm2 enable_connection_aborted..socket_base]
+Socket option to report aborted connections on accept.
 
-[heading Types]
-[table
- [[Name][Description]]
 
- [
+ typedef implementation_defined enable_connection_aborted;
 
- [[link boost_asio.reference.serial_port_service.implementation_type [*implementation_type]]]
- [The type of a serial port implementation. ]
-
- ]
 
- [
 
- [[link boost_asio.reference.serial_port_service.native_handle_type [*native_handle_type]]]
- [The native handle type. ]
-
- ]
+Implements a custom socket option that determines whether or not an accept operation is permitted to fail with `boost::asio::error::connection_aborted`. By default the option is false.
 
- [
 
- [[link boost_asio.reference.serial_port_service.native_type [*native_type]]]
- [(Deprecated: Use native_handle_type.) The native handle type. ]
+[heading Examples]
   
- ]
+Setting the option:
+
+ boost::asio::ip::tcp::acceptor acceptor(io_service);
+ ...
+ boost::asio::socket_base::enable_connection_aborted option(true);
+ acceptor.set_option(option);
+
+
+
+
+
+Getting the current option value:
+
+ boost::asio::ip::tcp::acceptor acceptor(io_service);
+ ...
+ boost::asio::socket_base::enable_connection_aborted option;
+ acceptor.get_option(option);
+ bool is_set = option.value();
 
-]
 
-[heading Member Functions]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.serial_port_service.assign [*assign]]]
- [Assign an existing native handle to a serial port. ]
- ]
-
- [
- [[link boost_asio.reference.serial_port_service.async_read_some [*async_read_some]]]
- [Start an asynchronous read. ]
- ]
-
- [
- [[link boost_asio.reference.serial_port_service.async_write_some [*async_write_some]]]
- [Start an asynchronous write. ]
- ]
-
- [
- [[link boost_asio.reference.serial_port_service.cancel [*cancel]]]
- [Cancel all asynchronous operations associated with the handle. ]
- ]
-
- [
- [[link boost_asio.reference.serial_port_service.close [*close]]]
- [Close a serial port implementation. ]
- ]
-
- [
- [[link boost_asio.reference.serial_port_service.construct [*construct]]]
- [Construct a new serial port implementation. ]
- ]
-
- [
- [[link boost_asio.reference.serial_port_service.destroy [*destroy]]]
- [Destroy a serial port implementation. ]
- ]
-
- [
- [[link boost_asio.reference.serial_port_service.get_io_service [*get_io_service]]]
- [Get the io_service object that owns the service. ]
- ]
-
- [
- [[link boost_asio.reference.serial_port_service.get_option [*get_option]]]
- [Get a serial port option. ]
- ]
-
- [
- [[link boost_asio.reference.serial_port_service.is_open [*is_open]]]
- [Determine whether the handle is open. ]
- ]
-
- [
- [[link boost_asio.reference.serial_port_service.move_assign [*move_assign]]]
- [Move-assign from another serial port implementation. ]
- ]
-
- [
- [[link boost_asio.reference.serial_port_service.move_construct [*move_construct]]]
- [Move-construct a new serial port implementation. ]
- ]
-
- [
- [[link boost_asio.reference.serial_port_service.native [*native]]]
- [(Deprecated: Use native_handle().) Get the native handle implementation. ]
- ]
-
- [
- [[link boost_asio.reference.serial_port_service.native_handle [*native_handle]]]
- [Get the native handle implementation. ]
- ]
-
- [
- [[link boost_asio.reference.serial_port_service.open [*open]]]
- [Open a serial port. ]
- ]
-
- [
- [[link boost_asio.reference.serial_port_service.read_some [*read_some]]]
- [Read some data from the stream. ]
- ]
-
- [
- [[link boost_asio.reference.serial_port_service.send_break [*send_break]]]
- [Send a break sequence to the serial port. ]
- ]
-
- [
- [[link boost_asio.reference.serial_port_service.serial_port_service [*serial_port_service]]]
- [Construct a new serial port service for the specified io_service. ]
- ]
-
- [
- [[link boost_asio.reference.serial_port_service.set_option [*set_option]]]
- [Set a serial port option. ]
- ]
-
- [
- [[link boost_asio.reference.serial_port_service.write_some [*write_some]]]
- [Write the given data to the stream. ]
- ]
-
-]
 
-[heading Data Members]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.serial_port_service.id [*id]]]
- [The unique service identifier. ]
- ]
 
-]
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/serial_port_service.hpp]
+[*Header: ][^boost/asio/socket_base.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
 
-[section:assign serial_port_service::assign]
+[endsect]
 
-[indexterm2 assign..serial_port_service]
-Assign an existing native handle to a serial port.
 
 
- boost::system::error_code assign(
- implementation_type & impl,
- const native_handle_type & handle,
- boost::system::error_code & ec);
+[section:keep_alive socket_base::keep_alive]
 
+[indexterm2 keep_alive..socket_base]
+Socket option to send keep-alives.
 
 
-[endsect]
+ typedef implementation_defined keep_alive;
 
 
 
-[section:async_read_some serial_port_service::async_read_some]
+Implements the SOL\_SOCKET/SO\_KEEPALIVE socket option.
 
-[indexterm2 async_read_some..serial_port_service]
-Start an asynchronous read.
 
+[heading Examples]
+
+Setting the option:
 
- template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``,
- typename ``[link boost_asio.reference.ReadHandler ReadHandler]``>
- void async_read_some(
- implementation_type & impl,
- const MutableBufferSequence & buffers,
- ReadHandler handler);
+ boost::asio::ip::tcp::socket socket(io_service);
+ ...
+ boost::asio::socket_base::keep_alive option(true);
+ socket.set_option(option);
 
 
 
-[endsect]
 
 
+Getting the current option value:
+
+ boost::asio::ip::tcp::socket socket(io_service);
+ ...
+ boost::asio::socket_base::keep_alive option;
+ socket.get_option(option);
+ bool is_set = option.value();
 
-[section:async_write_some serial_port_service::async_write_some]
 
-[indexterm2 async_write_some..serial_port_service]
-Start an asynchronous write.
 
 
- template<
- typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``,
- typename ``[link boost_asio.reference.WriteHandler WriteHandler]``>
- void async_write_some(
- implementation_type & impl,
- const ConstBufferSequence & buffers,
- WriteHandler handler);
 
 
 
+[heading Requirements]
+
+[*Header: ][^boost/asio/socket_base.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
+
+
 [endsect]
 
 
 
-[section:cancel serial_port_service::cancel]
+[section:linger socket_base::linger]
+
+[indexterm2 linger..socket_base]
+Socket option to specify whether the socket lingers on close if unsent data is present.
+
+
+ typedef implementation_defined linger;
+
+
+
+Implements the SOL\_SOCKET/SO\_LINGER socket option.
+
+
+[heading Examples]
+
+Setting the option:
+
+ boost::asio::ip::tcp::socket socket(io_service);
+ ...
+ boost::asio::socket_base::linger option(true, 30);
+ socket.set_option(option);
+
+
+
+
+
+Getting the current option value:
+
+ boost::asio::ip::tcp::socket socket(io_service);
+ ...
+ boost::asio::socket_base::linger option;
+ socket.get_option(option);
+ bool is_set = option.enabled();
+ unsigned short timeout = option.timeout();
+
 
-[indexterm2 cancel..serial_port_service]
-Cancel all asynchronous operations associated with the handle.
 
 
- boost::system::error_code cancel(
- implementation_type & impl,
- boost::system::error_code & ec);
 
 
 
+[heading Requirements]
+
+[*Header: ][^boost/asio/socket_base.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
+
+
 [endsect]
 
 
 
-[section:close serial_port_service::close]
+[section:max_connections socket_base::max_connections]
 
-[indexterm2 close..serial_port_service]
-Close a serial port implementation.
+[indexterm2 max_connections..socket_base]
+The maximum length of the queue of pending incoming connections.
 
 
- boost::system::error_code close(
- implementation_type & impl,
- boost::system::error_code & ec);
+ static const int max_connections = implementation_defined;
 
 
 
@@ -78261,14 +81952,13 @@
 
 
 
-[section:construct serial_port_service::construct]
+[section:message_do_not_route socket_base::message_do_not_route]
 
-[indexterm2 construct..serial_port_service]
-Construct a new serial port implementation.
+[indexterm2 message_do_not_route..socket_base]
+Specify that the data should not be subject to routing.
 
 
- void construct(
- implementation_type & impl);
+ static const int message_do_not_route = implementation_defined;
 
 
 
@@ -78276,14 +81966,13 @@
 
 
 
-[section:destroy serial_port_service::destroy]
+[section:message_end_of_record socket_base::message_end_of_record]
 
-[indexterm2 destroy..serial_port_service]
-Destroy a serial port implementation.
+[indexterm2 message_end_of_record..socket_base]
+Specifies that the data marks the end of a record.
 
 
- void destroy(
- implementation_type & impl);
+ static const int message_end_of_record = implementation_defined;
 
 
 
@@ -78291,35 +81980,34 @@
 
 
 
-[section:get_io_service serial_port_service::get_io_service]
+[section:message_flags socket_base::message_flags]
 
+[indexterm2 message_flags..socket_base]
+Bitmask type for flags that can be passed to send and receive operations.
 
-['Inherited from io_service.]
 
-[indexterm2 get_io_service..serial_port_service]
-Get the [link boost_asio.reference.io_service `io_service`] object that owns the service.
+ typedef int message_flags;
 
 
- boost::asio::io_service & get_io_service();
 
+[heading Requirements]
+
+[*Header: ][^boost/asio/socket_base.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
 
-[section:get_option serial_port_service::get_option]
+[section:message_out_of_band socket_base::message_out_of_band]
 
-[indexterm2 get_option..serial_port_service]
-Get a serial port option.
+[indexterm2 message_out_of_band..socket_base]
+Process out-of-band data.
 
 
- template<
- typename ``[link boost_asio.reference.GettableSerialPortOption GettableSerialPortOption]``>
- boost::system::error_code get_option(
- const implementation_type & impl,
- GettableSerialPortOption & option,
- boost::system::error_code & ec) const;
+ static const int message_out_of_band = implementation_defined;
 
 
 
@@ -78327,13 +82015,13 @@
 
 
 
-[section:id serial_port_service::id]
+[section:message_peek socket_base::message_peek]
 
-[indexterm2 id..serial_port_service]
-The unique service identifier.
+[indexterm2 message_peek..socket_base]
+Peek at incoming data without removing it from the input queue.
 
 
- static boost::asio::io_service::id id;
+ static const int message_peek = implementation_defined;
 
 
 
@@ -78341,19 +82029,37 @@
 
 
 
-[section:implementation_type serial_port_service::implementation_type]
+[section:non_blocking_io socket_base::non_blocking_io]
+
+[indexterm2 non_blocking_io..socket_base]
+(Deprecated: Use non\_blocking().) IO control command to set the blocking mode of the socket.
+
+
+ typedef implementation_defined non_blocking_io;
+
+
+
+Implements the FIONBIO IO control command.
+
+
+[heading Example]
+
+
+
+ boost::asio::ip::tcp::socket socket(io_service);
+ ...
+ boost::asio::socket_base::non_blocking_io command(true);
+ socket.io_control(command);
+
 
-[indexterm2 implementation_type..serial_port_service]
-The type of a serial port implementation.
 
 
- typedef implementation_defined implementation_type;
 
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/serial_port_service.hpp]
+[*Header: ][^boost/asio/socket_base.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -78362,97 +82068,100 @@
 
 
 
-[section:is_open serial_port_service::is_open]
+[section:receive_buffer_size socket_base::receive_buffer_size]
 
-[indexterm2 is_open..serial_port_service]
-Determine whether the handle is open.
+[indexterm2 receive_buffer_size..socket_base]
+Socket option for the receive buffer size of a socket.
 
 
- bool is_open(
- const implementation_type & impl) const;
+ typedef implementation_defined receive_buffer_size;
 
 
 
-[endsect]
+Implements the SOL\_SOCKET/SO\_RCVBUF socket option.
 
 
+[heading Examples]
+
+Setting the option:
 
-[section:move_assign serial_port_service::move_assign]
+ boost::asio::ip::tcp::socket socket(io_service);
+ ...
+ boost::asio::socket_base::receive_buffer_size option(8192);
+ socket.set_option(option);
 
-[indexterm2 move_assign..serial_port_service]
-Move-assign from another serial port implementation.
 
 
- void move_assign(
- implementation_type & impl,
- serial_port_service & other_service,
- implementation_type & other_impl);
 
 
+Getting the current option value:
 
-[endsect]
+ boost::asio::ip::tcp::socket socket(io_service);
+ ...
+ boost::asio::socket_base::receive_buffer_size option;
+ socket.get_option(option);
+ int size = option.value();
 
 
 
-[section:move_construct serial_port_service::move_construct]
 
-[indexterm2 move_construct..serial_port_service]
-Move-construct a new serial port implementation.
 
 
- void move_construct(
- implementation_type & impl,
- implementation_type & other_impl);
 
+[heading Requirements]
 
+[*Header: ][^boost/asio/socket_base.hpp]
 
-[endsect]
+[*Convenience header: ][^boost/asio.hpp]
 
 
+[endsect]
 
-[section:native serial_port_service::native]
 
-[indexterm2 native..serial_port_service]
-(Deprecated: Use `native_handle()`.) Get the native handle implementation.
 
+[section:receive_low_watermark socket_base::receive_low_watermark]
 
- native_type native(
- implementation_type & impl);
+[indexterm2 receive_low_watermark..socket_base]
+Socket option for the receive low watermark.
 
 
+ typedef implementation_defined receive_low_watermark;
 
-[endsect]
 
 
+Implements the SOL\_SOCKET/SO\_RCVLOWAT socket option.
 
-[section:native_handle serial_port_service::native_handle]
 
-[indexterm2 native_handle..serial_port_service]
-Get the native handle implementation.
+[heading Examples]
+
+Setting the option:
 
+ boost::asio::ip::tcp::socket socket(io_service);
+ ...
+ boost::asio::socket_base::receive_low_watermark option(1024);
+ socket.set_option(option);
 
- native_handle_type native_handle(
- implementation_type & impl);
 
 
 
-[endsect]
 
+Getting the current option value:
 
+ boost::asio::ip::tcp::socket socket(io_service);
+ ...
+ boost::asio::socket_base::receive_low_watermark option;
+ socket.get_option(option);
+ int size = option.value();
 
-[section:native_handle_type serial_port_service::native_handle_type]
 
-[indexterm2 native_handle_type..serial_port_service]
-The native handle type.
 
 
- typedef implementation_defined native_handle_type;
 
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/serial_port_service.hpp]
+[*Header: ][^boost/asio/socket_base.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -78461,19 +82170,49 @@
 
 
 
-[section:native_type serial_port_service::native_type]
+[section:reuse_address socket_base::reuse_address]
+
+[indexterm2 reuse_address..socket_base]
+Socket option to allow the socket to be bound to an address that is already in use.
+
+
+ typedef implementation_defined reuse_address;
+
+
+
+Implements the SOL\_SOCKET/SO\_REUSEADDR socket option.
+
+
+[heading Examples]
+
+Setting the option:
+
+ boost::asio::ip::tcp::acceptor acceptor(io_service);
+ ...
+ boost::asio::socket_base::reuse_address option(true);
+ acceptor.set_option(option);
+
+
+
+
+
+Getting the current option value:
+
+ boost::asio::ip::tcp::acceptor acceptor(io_service);
+ ...
+ boost::asio::socket_base::reuse_address option;
+ acceptor.get_option(option);
+ bool is_set = option.value();
+
 
-[indexterm2 native_type..serial_port_service]
-(Deprecated: Use native\_handle\_type.) The native handle type.
 
 
- typedef implementation_defined native_type;
 
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/serial_port_service.hpp]
+[*Header: ][^boost/asio/socket_base.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -78482,145 +82221,153 @@
 
 
 
-[section:open serial_port_service::open]
+[section:send_buffer_size socket_base::send_buffer_size]
 
-[indexterm2 open..serial_port_service]
-Open a serial port.
+[indexterm2 send_buffer_size..socket_base]
+Socket option for the send buffer size of a socket.
 
 
- boost::system::error_code open(
- implementation_type & impl,
- const std::string & device,
- boost::system::error_code & ec);
+ typedef implementation_defined send_buffer_size;
 
 
 
-[endsect]
+Implements the SOL\_SOCKET/SO\_SNDBUF socket option.
+
+
+[heading Examples]
+
+Setting the option:
 
+ boost::asio::ip::tcp::socket socket(io_service);
+ ...
+ boost::asio::socket_base::send_buffer_size option(8192);
+ socket.set_option(option);
 
 
-[section:read_some serial_port_service::read_some]
 
-[indexterm2 read_some..serial_port_service]
-Read some data from the stream.
 
 
- template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
- std::size_t read_some(
- implementation_type & impl,
- const MutableBufferSequence & buffers,
- boost::system::error_code & ec);
+Getting the current option value:
 
+ boost::asio::ip::tcp::socket socket(io_service);
+ ...
+ boost::asio::socket_base::send_buffer_size option;
+ socket.get_option(option);
+ int size = option.value();
 
 
-[endsect]
 
 
 
-[section:send_break serial_port_service::send_break]
 
-[indexterm2 send_break..serial_port_service]
-Send a break sequence to the serial port.
 
+[heading Requirements]
 
- boost::system::error_code send_break(
- implementation_type & impl,
- boost::system::error_code & ec);
+[*Header: ][^boost/asio/socket_base.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
 
-[section:serial_port_service serial_port_service::serial_port_service]
+[section:send_low_watermark socket_base::send_low_watermark]
 
-[indexterm2 serial_port_service..serial_port_service]
-Construct a new serial port service for the specified [link boost_asio.reference.io_service `io_service`].
+[indexterm2 send_low_watermark..socket_base]
+Socket option for the send low watermark.
 
 
- serial_port_service(
- boost::asio::io_service & io_service);
+ typedef implementation_defined send_low_watermark;
 
 
 
-[endsect]
+Implements the SOL\_SOCKET/SO\_SNDLOWAT socket option.
 
 
+[heading Examples]
+
+Setting the option:
 
-[section:set_option serial_port_service::set_option]
+ boost::asio::ip::tcp::socket socket(io_service);
+ ...
+ boost::asio::socket_base::send_low_watermark option(1024);
+ socket.set_option(option);
 
-[indexterm2 set_option..serial_port_service]
-Set a serial port option.
 
 
- template<
- typename ``[link boost_asio.reference.SettableSerialPortOption SettableSerialPortOption]``>
- boost::system::error_code set_option(
- implementation_type & impl,
- const SettableSerialPortOption & option,
- boost::system::error_code & ec);
 
 
+Getting the current option value:
 
-[endsect]
+ boost::asio::ip::tcp::socket socket(io_service);
+ ...
+ boost::asio::socket_base::send_low_watermark option;
+ socket.get_option(option);
+ int size = option.value();
 
 
 
-[section:write_some serial_port_service::write_some]
 
-[indexterm2 write_some..serial_port_service]
-Write the given data to the stream.
 
 
- template<
- typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
- std::size_t write_some(
- implementation_type & impl,
- const ConstBufferSequence & buffers,
- boost::system::error_code & ec);
 
+[heading Requirements]
+
+[*Header: ][^boost/asio/socket_base.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
 
-[endsect]
+[section:shutdown_type socket_base::shutdown_type]
 
-[section:service_already_exists service_already_exists]
+[indexterm2 shutdown_type..socket_base]
+Different ways a socket may be shutdown.
 
 
-Exception thrown when trying to add a duplicate service to an [link boost_asio.reference.io_service `io_service`].
+ enum shutdown_type
 
+[indexterm2 shutdown_receive..socket_base]
+[indexterm2 shutdown_send..socket_base]
+[indexterm2 shutdown_both..socket_base]
 
- class service_already_exists
+[heading Values]
+[variablelist
 
+ [
+ [shutdown_receive]
+ [Shutdown the receive side of the socket. ]
+ ]
 
-[heading Member Functions]
-[table
- [[Name][Description]]
+ [
+ [shutdown_send]
+ [Shutdown the send side of the socket. ]
+ ]
 
   [
- [[link boost_asio.reference.service_already_exists.service_already_exists [*service_already_exists]]]
- []
+ [shutdown_both]
+ [Shutdown both send and receive on the socket. ]
   ]
-
+
 ]
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/io_service.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
+[endsect]
 
 
-[section:service_already_exists service_already_exists::service_already_exists]
 
-[indexterm2 service_already_exists..service_already_exists]
+[section:_socket_base socket_base::~socket_base]
 
- service_already_exists();
+[indexterm2 ~socket_base..socket_base]
+Protected destructor to prevent deletion through this type.
+
+
+ ~socket_base();
 
 
 
@@ -78630,14 +82377,13 @@
 
 [endsect]
 
+[section:ssl__context ssl::context]
 
-[section:signal_set signal_set]
-
-[indexterm1 signal_set]
-Typedef for the typical usage of a signal set.
 
 
- typedef basic_signal_set signal_set;
+ class context :
+ public ssl::context_base,
+ noncopyable
 
 
 [heading Types]
@@ -78646,15 +82392,43 @@
 
   [
 
- [[link boost_asio.reference.basic_signal_set.implementation_type [*implementation_type]]]
- [The underlying implementation type of I/O object. ]
+ [[link boost_asio.reference.ssl__context.file_format [*file_format]]]
+ [File format types. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.ssl__context.impl_type [*impl_type]]]
+ [(Deprecated: Use native_handle_type.) The native type of the SSL context. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.ssl__context.method [*method]]]
+ [Different methods supported by a context. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.ssl__context.native_handle_type [*native_handle_type]]]
+ [The native handle type of the SSL context. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.ssl__context.options [*options]]]
+ [Bitmask type for SSL options. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.basic_signal_set.service_type [*service_type]]]
- [The type of the service that will be used to provide I/O operations. ]
+ [[link boost_asio.reference.ssl__context.password_purpose [*password_purpose]]]
+ [Purpose of PEM password. ]
   
   ]
 
@@ -78665,271 +82439,267 @@
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.basic_signal_set.add [*add]]]
- [Add a signal to a signal_set. ]
+ [[link boost_asio.reference.ssl__context.add_verify_path [*add_verify_path]]]
+ [Add a directory containing certificate authority files to be used for performing verification. ]
   ]
   
   [
- [[link boost_asio.reference.basic_signal_set.async_wait [*async_wait]]]
- [Start an asynchronous operation to wait for a signal to be delivered. ]
+ [[link boost_asio.reference.ssl__context.context [*context]]]
+ [Constructor.
+
+ Deprecated constructor taking a reference to an io_service object.
+
+ Move-construct a context from another. ]
   ]
   
   [
- [[link boost_asio.reference.basic_signal_set.basic_signal_set [*basic_signal_set]]]
- [Construct a signal set without adding any signals.
-
- Construct a signal set and add one signal.
-
- Construct a signal set and add two signals.
-
- Construct a signal set and add three signals. ]
+ [[link boost_asio.reference.ssl__context.impl [*impl]]]
+ [(Deprecated: Use native_handle().) Get the underlying implementation in the native type. ]
   ]
   
   [
- [[link boost_asio.reference.basic_signal_set.cancel [*cancel]]]
- [Cancel all operations associated with the signal set. ]
+ [[link boost_asio.reference.ssl__context.load_verify_file [*load_verify_file]]]
+ [Load a certification authority file for performing verification. ]
   ]
   
   [
- [[link boost_asio.reference.basic_signal_set.clear [*clear]]]
- [Remove all signals from a signal_set. ]
+ [[link boost_asio.reference.ssl__context.native_handle [*native_handle]]]
+ [Get the underlying implementation in the native type. ]
   ]
   
   [
- [[link boost_asio.reference.basic_signal_set.get_io_service [*get_io_service]]]
- [Get the io_service associated with the object. ]
+ [[link boost_asio.reference.ssl__context.operator_eq_ [*operator=]]]
+ [Move-assign a context from another. ]
   ]
   
   [
- [[link boost_asio.reference.basic_signal_set.remove [*remove]]]
- [Remove a signal from a signal_set. ]
+ [[link boost_asio.reference.ssl__context.set_default_verify_paths [*set_default_verify_paths]]]
+ [Configures the context to use the default directories for finding certification authority certificates. ]
   ]
   
-]
-
-[heading Protected Member Functions]
-[table
- [[Name][Description]]
-
   [
- [[link boost_asio.reference.basic_signal_set.get_implementation [*get_implementation]]]
- [Get the underlying implementation of the I/O object. ]
+ [[link boost_asio.reference.ssl__context.set_options [*set_options]]]
+ [Set options on the context. ]
   ]
   
   [
- [[link boost_asio.reference.basic_signal_set.get_service [*get_service]]]
- [Get the service associated with the I/O object. ]
+ [[link boost_asio.reference.ssl__context.set_password_callback [*set_password_callback]]]
+ [Set the password callback. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ssl__context.set_verify_callback [*set_verify_callback]]]
+ [Set the callback used to verify peer certificates. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ssl__context.set_verify_mode [*set_verify_mode]]]
+ [Set the peer verification mode. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ssl__context.use_certificate_chain_file [*use_certificate_chain_file]]]
+ [Use a certificate chain from a file. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ssl__context.use_certificate_file [*use_certificate_file]]]
+ [Use a certificate from a file. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ssl__context.use_private_key_file [*use_private_key_file]]]
+ [Use a private key from a file. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ssl__context.use_rsa_private_key_file [*use_rsa_private_key_file]]]
+ [Use an RSA private key from a file. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ssl__context.use_tmp_dh_file [*use_tmp_dh_file]]]
+ [Use the specified file to obtain the temporary Diffie-Hellman parameters. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ssl__context._context [*~context]]]
+ [Destructor. ]
   ]
   
 ]
 
-[heading Protected Data Members]
+[heading Data Members]
 [table
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.basic_signal_set.implementation [*implementation]]]
- [(Deprecated: Use get_implementation().) The underlying implementation of the I/O object. ]
+ [[link boost_asio.reference.ssl__context.default_workarounds [*default_workarounds]]]
+ [Implement various bug workarounds. ]
   ]
 
   [
- [[link boost_asio.reference.basic_signal_set.service [*service]]]
- [(Deprecated: Use get_service().) The service associated with the I/O object. ]
+ [[link boost_asio.reference.ssl__context.no_sslv2 [*no_sslv2]]]
+ [Disable SSL v2. ]
   ]
 
-]
+ [
+ [[link boost_asio.reference.ssl__context.no_sslv3 [*no_sslv3]]]
+ [Disable SSL v3. ]
+ ]
 
-The [link boost_asio.reference.basic_signal_set `basic_signal_set`] class template provides the ability to perform an asynchronous wait for one or more signals to occur.
+ [
+ [[link boost_asio.reference.ssl__context.no_tlsv1 [*no_tlsv1]]]
+ [Disable TLS v1. ]
+ ]
 
-Most applications will use the [link boost_asio.reference.signal_set `signal_set`] typedef.
+ [
+ [[link boost_asio.reference.ssl__context.single_dh_use [*single_dh_use]]]
+ [Always create a new key when using tmp_dh parameters. ]
+ ]
 
+]
 
-[heading Thread Safety]
-
-[*Distinct] [*objects:] Safe.
+[heading Requirements]
 
-[*Shared] [*objects:] Unsafe.
+[*Header: ][^boost/asio/ssl/context.hpp]
 
+[*Convenience header: ][^boost/asio/ssl.hpp]
 
-[heading Example]
-
-Performing an asynchronous wait:
+[section:add_verify_path ssl::context::add_verify_path]
 
- void handler(
- const boost::system::error_code& error,
- int signal_number)
- {
- if (!error)
- {
- // A signal occurred.
- }
- }
+[indexterm2 add_verify_path..ssl::context]
+Add a directory containing certificate authority files to be used for performing verification.
 
- ...
 
- // Construct a signal set registered for process termination.
- boost::asio::signal_set signals(io_service, SIGINT, SIGTERM);
+ void ``[link boost_asio.reference.ssl__context.add_verify_path.overload1 add_verify_path]``(
+ const std::string & path);
+ `` [''''&raquo;''' [link boost_asio.reference.ssl__context.add_verify_path.overload1 more...]]``
 
- // Start an asynchronous wait for one of the signals to occur.
- signals.async_wait(handler);
+ boost::system::error_code ``[link boost_asio.reference.ssl__context.add_verify_path.overload2 add_verify_path]``(
+ const std::string & path,
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.ssl__context.add_verify_path.overload2 more...]]``
 
 
+[section:overload1 ssl::context::add_verify_path (1 of 2 overloads)]
 
 
+Add a directory containing certificate authority files to be used for performing verification.
 
-[heading Queueing of signal notifications]
-
 
+ void add_verify_path(
+ const std::string & path);
 
-If a signal is registered with a signal\_set, and the signal occurs when there are no waiting handlers, then the signal notification is queued. The next async\_wait operation on that signal\_set will dequeue the notification. If multiple notifications are queued, subsequent async\_wait operations dequeue them one at a time. Signal notifications are dequeued in order of ascending signal number.
 
-If a signal number is removed from a signal\_set (using the `remove` or `erase` member functions) then any queued notifications for that signal are discarded.
+This function is used to specify the name of a directory containing certification authority certificates. Each file in the directory must contain a single certificate. The files must be named using the subject name's hash and an extension of ".0".
 
 
-[heading Multiple registration of signals]
-
+[heading Parameters]
+
 
+[variablelist
+
+[[path][The name of a directory containing the certificates.]]
 
-The same signal number may be registered with different signal\_set objects. When the signal occurs, one handler is called for each signal\_set object.
+]
 
-Note that multiple registration only works for signals that are registered using Asio. The application must not also register a signal handler using functions such as `signal()` or `sigaction()`.
 
+[heading Exceptions]
+
 
-[heading Signal masking on POSIX platforms]
+[variablelist
   
+[[boost::system::system_error][Thrown on failure.]]
 
-
-POSIX allows signals to be blocked using functions such as `sigprocmask()` and `pthread_sigmask()`. For signals to be delivered, programs must ensure that any signals registered using signal\_set objects are unblocked in at least one thread.
+]
 
 
-[heading Requirements]
+[heading Remarks]
+
+Calls `SSL_CTX_load_verify_locations`.
 
-[*Header: ][^boost/asio/signal_set.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
-[section:signal_set_service signal_set_service]
 
+[section:overload2 ssl::context::add_verify_path (2 of 2 overloads)]
 
-Default service implementation for a signal set.
 
+Add a directory containing certificate authority files to be used for performing verification.
 
- class signal_set_service :
- public io_service::service
 
+ boost::system::error_code add_verify_path(
+ const std::string & path,
+ boost::system::error_code & ec);
 
-[heading Types]
-[table
- [[Name][Description]]
 
- [
+This function is used to specify the name of a directory containing certification authority certificates. Each file in the directory must contain a single certificate. The files must be named using the subject name's hash and an extension of ".0".
 
- [[link boost_asio.reference.signal_set_service.implementation_type [*implementation_type]]]
- [The type of a signal set implementation. ]
+
+[heading Parameters]
+
+
+[variablelist
   
- ]
+[[path][The name of a directory containing the certificates.]]
+
+[[ec][Set to indicate what error occurred, if any.]]
 
 ]
 
-[heading Member Functions]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.signal_set_service.add [*add]]]
- [Add a signal to a signal_set. ]
- ]
-
- [
- [[link boost_asio.reference.signal_set_service.async_wait [*async_wait]]]
- []
- ]
-
- [
- [[link boost_asio.reference.signal_set_service.cancel [*cancel]]]
- [Cancel all operations associated with the signal set. ]
- ]
-
- [
- [[link boost_asio.reference.signal_set_service.clear [*clear]]]
- [Remove all signals from a signal_set. ]
- ]
-
- [
- [[link boost_asio.reference.signal_set_service.construct [*construct]]]
- [Construct a new signal set implementation. ]
- ]
-
- [
- [[link boost_asio.reference.signal_set_service.destroy [*destroy]]]
- [Destroy a signal set implementation. ]
- ]
-
- [
- [[link boost_asio.reference.signal_set_service.get_io_service [*get_io_service]]]
- [Get the io_service object that owns the service. ]
- ]
-
- [
- [[link boost_asio.reference.signal_set_service.remove [*remove]]]
- [Remove a signal to a signal_set. ]
- ]
-
- [
- [[link boost_asio.reference.signal_set_service.signal_set_service [*signal_set_service]]]
- [Construct a new signal set service for the specified io_service. ]
- ]
-
-]
+[heading Remarks]
+
+Calls `SSL_CTX_load_verify_locations`.
 
-[heading Data Members]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.signal_set_service.id [*id]]]
- [The unique service identifier. ]
- ]
 
-]
 
-[heading Requirements]
+[endsect]
 
-[*Header: ][^boost/asio/signal_set_service.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
+[endsect]
 
+[section:context ssl::context::context]
 
-[section:add signal_set_service::add]
+[indexterm2 context..ssl::context]
+Constructor.
 
-[indexterm2 add..signal_set_service]
-Add a signal to a signal\_set.
 
+ explicit ``[link boost_asio.reference.ssl__context.context.overload1 context]``(
+ method m);
+ `` [''''&raquo;''' [link boost_asio.reference.ssl__context.context.overload1 more...]]``
 
- boost::system::error_code add(
- implementation_type & impl,
- int signal_number,
- boost::system::error_code & ec);
 
+Deprecated constructor taking a reference to an [link boost_asio.reference.io_service `io_service`] object.
 
 
-[endsect]
+ ``[link boost_asio.reference.ssl__context.context.overload2 context]``(
+ boost::asio::io_service & ,
+ method m);
+ `` [''''&raquo;''' [link boost_asio.reference.ssl__context.context.overload2 more...]]``
 
 
+Move-construct a context from another.
 
-[section:async_wait signal_set_service::async_wait]
 
-[indexterm2 async_wait..signal_set_service]
+ ``[link boost_asio.reference.ssl__context.context.overload3 context]``(
+ context && other);
+ `` [''''&raquo;''' [link boost_asio.reference.ssl__context.context.overload3 more...]]``
 
- template<
- typename ``[link boost_asio.reference.SignalHandler SignalHandler]``>
- void async_wait(
- implementation_type & impl,
- SignalHandler handler);
+
+[section:overload1 ssl::context::context (1 of 3 overloads)]
+
+
+Constructor.
+
+
+ context(
+ method m);
 
 
 
@@ -78937,15 +82707,15 @@
 
 
 
-[section:cancel signal_set_service::cancel]
+[section:overload2 ssl::context::context (2 of 3 overloads)]
 
-[indexterm2 cancel..signal_set_service]
-Cancel all operations associated with the signal set.
 
+Deprecated constructor taking a reference to an [link boost_asio.reference.io_service `io_service`] object.
 
- boost::system::error_code cancel(
- implementation_type & impl,
- boost::system::error_code & ec);
+
+ context(
+ boost::asio::io_service & ,
+ method m);
 
 
 
@@ -78953,45 +82723,54 @@
 
 
 
-[section:clear signal_set_service::clear]
+[section:overload3 ssl::context::context (3 of 3 overloads)]
 
-[indexterm2 clear..signal_set_service]
-Remove all signals from a signal\_set.
 
+Move-construct a context from another.
 
- boost::system::error_code clear(
- implementation_type & impl,
- boost::system::error_code & ec);
 
+ context(
+ context && other);
 
 
-[endsect]
+This constructor moves an SSL context from one object to another.
 
 
+[heading Parameters]
+
 
-[section:construct signal_set_service::construct]
+[variablelist
+
+[[other][The other context object from which the move will occur.]]
+
+]
+
+
+[heading Remarks]
+
+Following the move, the following operations only are valid for the moved-from object:
+* Destruction.
+
+* As a target for move-assignment.
 
-[indexterm2 construct..signal_set_service]
-Construct a new signal set implementation.
 
 
- void construct(
- implementation_type & impl);
 
 
 
 [endsect]
 
 
+[endsect]
 
-[section:destroy signal_set_service::destroy]
 
-[indexterm2 destroy..signal_set_service]
-Destroy a signal set implementation.
+[section:default_workarounds ssl::context::default_workarounds]
+
+[indexterm2 default_workarounds..ssl::context]
+Implement various bug workarounds.
 
 
- void destroy(
- implementation_type & impl);
+ static const int default_workarounds = implementation_defined;
 
 
 
@@ -78999,16 +82778,31 @@
 
 
 
-[section:get_io_service signal_set_service::get_io_service]
+[section:file_format ssl::context::file_format]
 
+[indexterm2 file_format..ssl::context]
+File format types.
 
-['Inherited from io_service.]
 
-[indexterm2 get_io_service..signal_set_service]
-Get the [link boost_asio.reference.io_service `io_service`] object that owns the service.
+ enum file_format
 
+[indexterm2 asn1..ssl::context]
+[indexterm2 pem..ssl::context]
 
- boost::asio::io_service & get_io_service();
+[heading Values]
+[variablelist
+
+ [
+ [asn1]
+ [ASN.1 file. ]
+ ]
+
+ [
+ [pem]
+ [PEM file. ]
+ ]
+
+]
 
 
 
@@ -79016,340 +82810,277 @@
 
 
 
-[section:id signal_set_service::id]
+[section:impl ssl::context::impl]
 
-[indexterm2 id..signal_set_service]
-The unique service identifier.
+[indexterm2 impl..ssl::context]
+(Deprecated: Use `native_handle()`.) Get the underlying implementation in the native type.
 
 
- static boost::asio::io_service::id id;
+ impl_type impl();
 
 
+This function may be used to obtain the underlying implementation of the context. This is intended to allow access to context functionality that is not otherwise provided.
+
 
 [endsect]
 
 
 
-[section:implementation_type signal_set_service::implementation_type]
+[section:impl_type ssl::context::impl_type]
 
-[indexterm2 implementation_type..signal_set_service]
-The type of a signal set implementation.
+[indexterm2 impl_type..ssl::context]
+(Deprecated: Use native\_handle\_type.) The native type of the SSL context.
 
 
- typedef implementation_defined implementation_type;
+ typedef SSL_CTX * impl_type;
 
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/signal_set_service.hpp]
+[*Header: ][^boost/asio/ssl/context.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
+[*Convenience header: ][^boost/asio/ssl.hpp]
 
 
 [endsect]
 
 
+[section:load_verify_file ssl::context::load_verify_file]
 
-[section:remove signal_set_service::remove]
+[indexterm2 load_verify_file..ssl::context]
+Load a certification authority file for performing verification.
 
-[indexterm2 remove..signal_set_service]
-Remove a signal to a signal\_set.
 
+ void ``[link boost_asio.reference.ssl__context.load_verify_file.overload1 load_verify_file]``(
+ const std::string & filename);
+ `` [''''&raquo;''' [link boost_asio.reference.ssl__context.load_verify_file.overload1 more...]]``
 
- boost::system::error_code remove(
- implementation_type & impl,
- int signal_number,
+ boost::system::error_code ``[link boost_asio.reference.ssl__context.load_verify_file.overload2 load_verify_file]``(
+ const std::string & filename,
       boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.ssl__context.load_verify_file.overload2 more...]]``
+
 
+[section:overload1 ssl::context::load_verify_file (1 of 2 overloads)]
 
 
-[endsect]
+Load a certification authority file for performing verification.
 
 
+ void load_verify_file(
+ const std::string & filename);
 
-[section:signal_set_service signal_set_service::signal_set_service]
 
-[indexterm2 signal_set_service..signal_set_service]
-Construct a new signal set service for the specified [link boost_asio.reference.io_service `io_service`].
+This function is used to load one or more trusted certification authorities from a file.
 
 
- signal_set_service(
- boost::asio::io_service & io_service);
+[heading Parameters]
+
+
+[variablelist
+
+[[filename][The name of a file containing certification authority certificates in PEM format.]]
 
+]
 
 
-[endsect]
+[heading Exceptions]
+
+
+[variablelist
+
+[[boost::system::system_error][Thrown on failure.]]
+
+]
+
+
+[heading Remarks]
+
+Calls `SSL_CTX_load_verify_locations`.
+
 
 
 
 [endsect]
 
-[section:socket_acceptor_service socket_acceptor_service]
 
 
-Default service implementation for a socket acceptor.
+[section:overload2 ssl::context::load_verify_file (2 of 2 overloads)]
 
 
- template<
- typename ``[link boost_asio.reference.Protocol Protocol]``>
- class socket_acceptor_service :
- public io_service::service
+Load a certification authority file for performing verification.
 
 
-[heading Types]
-[table
- [[Name][Description]]
+ boost::system::error_code load_verify_file(
+ const std::string & filename,
+ boost::system::error_code & ec);
 
- [
 
- [[link boost_asio.reference.socket_acceptor_service.endpoint_type [*endpoint_type]]]
- [The endpoint type. ]
+This function is used to load the certificates for one or more trusted certification authorities from a file.
+
+
+[heading Parameters]
+
+
+[variablelist
   
- ]
+[[filename][The name of a file containing certification authority certificates in PEM format.]]
 
- [
+[[ec][Set to indicate what error occurred, if any.]]
+
+]
+
+
+[heading Remarks]
+
+Calls `SSL_CTX_load_verify_locations`.
+
+
+
+
+[endsect]
 
- [[link boost_asio.reference.socket_acceptor_service.implementation_type [*implementation_type]]]
- [The native type of the socket acceptor. ]
-
- ]
 
- [
+[endsect]
 
- [[link boost_asio.reference.socket_acceptor_service.native_handle_type [*native_handle_type]]]
- [The native acceptor type. ]
-
- ]
 
- [
+[section:method ssl::context::method]
 
- [[link boost_asio.reference.socket_acceptor_service.native_type [*native_type]]]
- [(Deprecated: Use native_handle_type.) The native acceptor type. ]
-
- ]
+[indexterm2 method..ssl::context]
+Different methods supported by a context.
 
- [
 
- [[link boost_asio.reference.socket_acceptor_service.protocol_type [*protocol_type]]]
- [The protocol type. ]
-
- ]
+ enum method
 
-]
+[indexterm2 sslv2..ssl::context]
+[indexterm2 sslv2_client..ssl::context]
+[indexterm2 sslv2_server..ssl::context]
+[indexterm2 sslv3..ssl::context]
+[indexterm2 sslv3_client..ssl::context]
+[indexterm2 sslv3_server..ssl::context]
+[indexterm2 tlsv1..ssl::context]
+[indexterm2 tlsv1_client..ssl::context]
+[indexterm2 tlsv1_server..ssl::context]
+[indexterm2 sslv23..ssl::context]
+[indexterm2 sslv23_client..ssl::context]
+[indexterm2 sslv23_server..ssl::context]
 
-[heading Member Functions]
-[table
- [[Name][Description]]
+[heading Values]
+[variablelist
 
   [
- [[link boost_asio.reference.socket_acceptor_service.accept [*accept]]]
- [Accept a new connection. ]
- ]
-
- [
- [[link boost_asio.reference.socket_acceptor_service.assign [*assign]]]
- [Assign an existing native acceptor to a socket acceptor. ]
- ]
-
- [
- [[link boost_asio.reference.socket_acceptor_service.async_accept [*async_accept]]]
- [Start an asynchronous accept. ]
- ]
-
- [
- [[link boost_asio.reference.socket_acceptor_service.bind [*bind]]]
- [Bind the socket acceptor to the specified local endpoint. ]
- ]
-
- [
- [[link boost_asio.reference.socket_acceptor_service.cancel [*cancel]]]
- [Cancel all asynchronous operations associated with the acceptor. ]
- ]
-
- [
- [[link boost_asio.reference.socket_acceptor_service.close [*close]]]
- [Close a socket acceptor implementation. ]
- ]
-
- [
- [[link boost_asio.reference.socket_acceptor_service.construct [*construct]]]
- [Construct a new socket acceptor implementation. ]
- ]
-
- [
- [[link boost_asio.reference.socket_acceptor_service.destroy [*destroy]]]
- [Destroy a socket acceptor implementation. ]
- ]
-
- [
- [[link boost_asio.reference.socket_acceptor_service.get_io_service [*get_io_service]]]
- [Get the io_service object that owns the service. ]
- ]
-
- [
- [[link boost_asio.reference.socket_acceptor_service.get_option [*get_option]]]
- [Get a socket option. ]
- ]
-
- [
- [[link boost_asio.reference.socket_acceptor_service.io_control [*io_control]]]
- [Perform an IO control command on the socket. ]
- ]
-
- [
- [[link boost_asio.reference.socket_acceptor_service.is_open [*is_open]]]
- [Determine whether the acceptor is open. ]
+ [sslv2]
+ [Generic SSL version 2. ]
   ]
-
+
   [
- [[link boost_asio.reference.socket_acceptor_service.listen [*listen]]]
- [Place the socket acceptor into the state where it will listen for new connections. ]
+ [sslv2_client]
+ [SSL version 2 client. ]
   ]
-
+
   [
- [[link boost_asio.reference.socket_acceptor_service.local_endpoint [*local_endpoint]]]
- [Get the local endpoint. ]
+ [sslv2_server]
+ [SSL version 2 server. ]
   ]
-
+
   [
- [[link boost_asio.reference.socket_acceptor_service.move_assign [*move_assign]]]
- [Move-assign from another socket acceptor implementation. ]
+ [sslv3]
+ [Generic SSL version 3. ]
   ]
-
+
   [
- [[link boost_asio.reference.socket_acceptor_service.move_construct [*move_construct]]]
- [Move-construct a new socket acceptor implementation. ]
+ [sslv3_client]
+ [SSL version 3 client. ]
   ]
-
+
   [
- [[link boost_asio.reference.socket_acceptor_service.native [*native]]]
- [(Deprecated: Use native_handle().) Get the native acceptor implementation. ]
+ [sslv3_server]
+ [SSL version 3 server. ]
   ]
-
+
   [
- [[link boost_asio.reference.socket_acceptor_service.native_handle [*native_handle]]]
- [Get the native acceptor implementation. ]
+ [tlsv1]
+ [Generic TLS version 1. ]
   ]
-
- [
- [[link boost_asio.reference.socket_acceptor_service.native_non_blocking [*native_non_blocking]]]
- [Gets the non-blocking mode of the native acceptor implementation.
 
- Sets the non-blocking mode of the native acceptor implementation. ]
- ]
-
   [
- [[link boost_asio.reference.socket_acceptor_service.non_blocking [*non_blocking]]]
- [Gets the non-blocking mode of the acceptor.
-
- Sets the non-blocking mode of the acceptor. ]
+ [tlsv1_client]
+ [TLS version 1 client. ]
   ]
-
+
   [
- [[link boost_asio.reference.socket_acceptor_service.open [*open]]]
- [Open a new socket acceptor implementation. ]
+ [tlsv1_server]
+ [TLS version 1 server. ]
   ]
-
+
   [
- [[link boost_asio.reference.socket_acceptor_service.set_option [*set_option]]]
- [Set a socket option. ]
+ [sslv23]
+ [Generic SSL/TLS. ]
   ]
-
+
   [
- [[link boost_asio.reference.socket_acceptor_service.socket_acceptor_service [*socket_acceptor_service]]]
- [Construct a new socket acceptor service for the specified io_service. ]
+ [sslv23_client]
+ [SSL/TLS client. ]
   ]
-
-]
-
-[heading Data Members]
-[table
- [[Name][Description]]
 
   [
- [[link boost_asio.reference.socket_acceptor_service.id [*id]]]
- [The unique service identifier. ]
+ [sslv23_server]
+ [SSL/TLS server. ]
   ]
 
 ]
 
-[heading Requirements]
-
-[*Header: ][^boost/asio/socket_acceptor_service.hpp]
-
-[*Convenience header: ][^boost/asio.hpp]
-
 
-[section:accept socket_acceptor_service::accept]
 
-[indexterm2 accept..socket_acceptor_service]
-Accept a new connection.
+[endsect]
 
 
- template<
- typename ``[link boost_asio.reference.SocketService SocketService]``>
- boost::system::error_code accept(
- implementation_type & impl,
- basic_socket< protocol_type, SocketService > & peer,
- endpoint_type * peer_endpoint,
- boost::system::error_code & ec);
 
+[section:native_handle ssl::context::native_handle]
 
+[indexterm2 native_handle..ssl::context]
+Get the underlying implementation in the native type.
 
-[endsect]
 
+ native_handle_type native_handle();
 
 
-[section:assign socket_acceptor_service::assign]
+This function may be used to obtain the underlying implementation of the context. This is intended to allow access to context functionality that is not otherwise provided.
 
-[indexterm2 assign..socket_acceptor_service]
-Assign an existing native acceptor to a socket acceptor.
 
+[endsect]
 
- boost::system::error_code assign(
- implementation_type & impl,
- const protocol_type & protocol,
- const native_handle_type & native_acceptor,
- boost::system::error_code & ec);
 
 
+[section:native_handle_type ssl::context::native_handle_type]
 
-[endsect]
+[indexterm2 native_handle_type..ssl::context]
+The native handle type of the SSL context.
 
 
+ typedef SSL_CTX * native_handle_type;
 
-[section:async_accept socket_acceptor_service::async_accept]
 
-[indexterm2 async_accept..socket_acceptor_service]
-Start an asynchronous accept.
 
+[heading Requirements]
 
- template<
- typename ``[link boost_asio.reference.SocketService SocketService]``,
- typename ``[link boost_asio.reference.AcceptHandler AcceptHandler]``>
- void async_accept(
- implementation_type & impl,
- basic_socket< protocol_type, SocketService > & peer,
- endpoint_type * peer_endpoint,
- AcceptHandler handler);
+[*Header: ][^boost/asio/ssl/context.hpp]
 
+[*Convenience header: ][^boost/asio/ssl.hpp]
 
 
 [endsect]
 
 
 
-[section:bind socket_acceptor_service::bind]
+[section:no_sslv2 ssl::context::no_sslv2]
 
-[indexterm2 bind..socket_acceptor_service]
-Bind the socket acceptor to the specified local endpoint.
+[indexterm2 no_sslv2..ssl::context]
+Disable SSL v2.
 
 
- boost::system::error_code bind(
- implementation_type & impl,
- const endpoint_type & endpoint,
- boost::system::error_code & ec);
+ static const int no_sslv2 = implementation_defined;
 
 
 
@@ -79357,15 +83088,13 @@
 
 
 
-[section:cancel socket_acceptor_service::cancel]
+[section:no_sslv3 ssl::context::no_sslv3]
 
-[indexterm2 cancel..socket_acceptor_service]
-Cancel all asynchronous operations associated with the acceptor.
+[indexterm2 no_sslv3..ssl::context]
+Disable SSL v3.
 
 
- boost::system::error_code cancel(
- implementation_type & impl,
- boost::system::error_code & ec);
+ static const int no_sslv3 = implementation_defined;
 
 
 
@@ -79373,15 +83102,13 @@
 
 
 
-[section:close socket_acceptor_service::close]
+[section:no_tlsv1 ssl::context::no_tlsv1]
 
-[indexterm2 close..socket_acceptor_service]
-Close a socket acceptor implementation.
+[indexterm2 no_tlsv1..ssl::context]
+Disable TLS v1.
 
 
- boost::system::error_code close(
- implementation_type & impl,
- boost::system::error_code & ec);
+ static const int no_tlsv1 = implementation_defined;
 
 
 
@@ -79389,382 +83116,463 @@
 
 
 
-[section:construct socket_acceptor_service::construct]
-
-[indexterm2 construct..socket_acceptor_service]
-Construct a new socket acceptor implementation.
+[section:operator_eq_ ssl::context::operator=]
 
+[indexterm2 operator=..ssl::context]
+Move-assign a context from another.
 
- void construct(
- implementation_type & impl);
 
+ context & operator=(
+ context && other);
 
 
-[endsect]
+This assignment operator moves an SSL context from one object to another.
 
 
+[heading Parameters]
+
 
-[section:destroy socket_acceptor_service::destroy]
+[variablelist
+
+[[other][The other context object from which the move will occur.]]
 
-[indexterm2 destroy..socket_acceptor_service]
-Destroy a socket acceptor implementation.
+]
 
 
- void destroy(
- implementation_type & impl);
+[heading Remarks]
+
+Following the move, the following operations only are valid for the moved-from object:
+* Destruction.
 
+* As a target for move-assignment.
 
 
-[endsect]
 
 
 
-[section:endpoint_type socket_acceptor_service::endpoint_type]
 
-[indexterm2 endpoint_type..socket_acceptor_service]
-The endpoint type.
+[endsect]
 
 
- typedef protocol_type::endpoint endpoint_type;
 
+[section:options ssl::context::options]
 
+[indexterm2 options..ssl::context]
+Bitmask type for SSL options.
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/socket_acceptor_service.hpp]
+ typedef int options;
 
-[*Convenience header: ][^boost/asio.hpp]
 
 
-[endsect]
+[heading Requirements]
 
+[*Header: ][^boost/asio/ssl/context.hpp]
 
+[*Convenience header: ][^boost/asio/ssl.hpp]
 
-[section:get_io_service socket_acceptor_service::get_io_service]
 
+[endsect]
 
-['Inherited from io_service.]
 
-[indexterm2 get_io_service..socket_acceptor_service]
-Get the [link boost_asio.reference.io_service `io_service`] object that owns the service.
 
+[section:password_purpose ssl::context::password_purpose]
 
- boost::asio::io_service & get_io_service();
+[indexterm2 password_purpose..ssl::context]
+Purpose of PEM password.
 
 
+ enum password_purpose
 
-[endsect]
+[indexterm2 for_reading..ssl::context]
+[indexterm2 for_writing..ssl::context]
 
+[heading Values]
+[variablelist
 
+ [
+ [for_reading]
+ [The password is needed for reading/decryption. ]
+ ]
 
-[section:get_option socket_acceptor_service::get_option]
+ [
+ [for_writing]
+ [The password is needed for writing/encryption. ]
+ ]
 
-[indexterm2 get_option..socket_acceptor_service]
-Get a socket option.
+]
 
 
- template<
- typename ``[link boost_asio.reference.GettableSocketOption GettableSocketOption]``>
- boost::system::error_code get_option(
- const implementation_type & impl,
- GettableSocketOption & option,
- boost::system::error_code & ec) const;
 
+[endsect]
 
 
-[endsect]
+[section:set_default_verify_paths ssl::context::set_default_verify_paths]
 
+[indexterm2 set_default_verify_paths..ssl::context]
+Configures the context to use the default directories for finding certification authority certificates.
 
 
-[section:id socket_acceptor_service::id]
+ void ``[link boost_asio.reference.ssl__context.set_default_verify_paths.overload1 set_default_verify_paths]``();
+ `` [''''&raquo;''' [link boost_asio.reference.ssl__context.set_default_verify_paths.overload1 more...]]``
 
-[indexterm2 id..socket_acceptor_service]
-The unique service identifier.
+ boost::system::error_code ``[link boost_asio.reference.ssl__context.set_default_verify_paths.overload2 set_default_verify_paths]``(
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.ssl__context.set_default_verify_paths.overload2 more...]]``
 
 
- static boost::asio::io_service::id id;
+[section:overload1 ssl::context::set_default_verify_paths (1 of 2 overloads)]
 
 
+Configures the context to use the default directories for finding certification authority certificates.
 
-[endsect]
 
+ void set_default_verify_paths();
 
 
-[section:implementation_type socket_acceptor_service::implementation_type]
+This function specifies that the context should use the default, system-dependent directories for locating certification authority certificates.
 
-[indexterm2 implementation_type..socket_acceptor_service]
-The native type of the socket acceptor.
 
+[heading Exceptions]
+
 
- typedef implementation_defined implementation_type;
+[variablelist
+
+[[boost::system::system_error][Thrown on failure.]]
 
+]
 
 
-[heading Requirements]
+[heading Remarks]
+
+Calls `SSL_CTX_set_default_verify_paths`.
 
-[*Header: ][^boost/asio/socket_acceptor_service.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
 
-[section:io_control socket_acceptor_service::io_control]
+[section:overload2 ssl::context::set_default_verify_paths (2 of 2 overloads)]
 
-[indexterm2 io_control..socket_acceptor_service]
-Perform an IO control command on the socket.
 
+Configures the context to use the default directories for finding certification authority certificates.
 
- template<
- typename ``[link boost_asio.reference.IoControlCommand IoControlCommand]``>
- boost::system::error_code io_control(
- implementation_type & impl,
- IoControlCommand & command,
+
+ boost::system::error_code set_default_verify_paths(
       boost::system::error_code & ec);
 
 
+This function specifies that the context should use the default, system-dependent directories for locating certification authority certificates.
 
-[endsect]
 
+[heading Parameters]
+
 
+[variablelist
+
+[[ec][Set to indicate what error occurred, if any.]]
 
-[section:is_open socket_acceptor_service::is_open]
+]
 
-[indexterm2 is_open..socket_acceptor_service]
-Determine whether the acceptor is open.
 
+[heading Remarks]
+
+Calls `SSL_CTX_set_default_verify_paths`.
 
- bool is_open(
- const implementation_type & impl) const;
 
 
 
 [endsect]
 
 
+[endsect]
 
-[section:listen socket_acceptor_service::listen]
+[section:set_options ssl::context::set_options]
 
-[indexterm2 listen..socket_acceptor_service]
-Place the socket acceptor into the state where it will listen for new connections.
+[indexterm2 set_options..ssl::context]
+Set options on the context.
 
 
- boost::system::error_code listen(
- implementation_type & impl,
- int backlog,
+ void ``[link boost_asio.reference.ssl__context.set_options.overload1 set_options]``(
+ options o);
+ `` [''''&raquo;''' [link boost_asio.reference.ssl__context.set_options.overload1 more...]]``
+
+ boost::system::error_code ``[link boost_asio.reference.ssl__context.set_options.overload2 set_options]``(
+ options o,
       boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.ssl__context.set_options.overload2 more...]]``
 
 
+[section:overload1 ssl::context::set_options (1 of 2 overloads)]
 
-[endsect]
 
+Set options on the context.
 
 
-[section:local_endpoint socket_acceptor_service::local_endpoint]
+ void set_options(
+ options o);
 
-[indexterm2 local_endpoint..socket_acceptor_service]
-Get the local endpoint.
 
+This function may be used to configure the SSL options used by the context.
 
- endpoint_type local_endpoint(
- const implementation_type & impl,
- boost::system::error_code & ec) const;
 
+[heading Parameters]
+
 
+[variablelist
+
+[[o][A bitmask of options. The available option values are defined in the [link boost_asio.reference.ssl__context_base `ssl::context_base`] class. The options are bitwise-ored with any existing value for the options.]]
 
-[endsect]
+]
 
 
+[heading Exceptions]
+
 
-[section:move_assign socket_acceptor_service::move_assign]
+[variablelist
+
+[[boost::system::system_error][Thrown on failure.]]
 
-[indexterm2 move_assign..socket_acceptor_service]
-Move-assign from another socket acceptor implementation.
+]
 
 
- void move_assign(
- implementation_type & impl,
- socket_acceptor_service & other_service,
- implementation_type & other_impl);
+[heading Remarks]
+
+Calls `SSL_CTX_set_options`.
 
 
 
-[endsect]
 
+[endsect]
 
 
-[section:move_construct socket_acceptor_service::move_construct]
 
-[indexterm2 move_construct..socket_acceptor_service]
-Move-construct a new socket acceptor implementation.
+[section:overload2 ssl::context::set_options (2 of 2 overloads)]
 
 
- void move_construct(
- implementation_type & impl,
- implementation_type & other_impl);
+Set options on the context.
 
 
+ boost::system::error_code set_options(
+ options o,
+ boost::system::error_code & ec);
 
-[endsect]
 
+This function may be used to configure the SSL options used by the context.
 
 
-[section:native socket_acceptor_service::native]
+[heading Parameters]
+
 
-[indexterm2 native..socket_acceptor_service]
-(Deprecated: Use `native_handle()`.) Get the native acceptor implementation.
+[variablelist
+
+[[o][A bitmask of options. The available option values are defined in the [link boost_asio.reference.ssl__context_base `ssl::context_base`] class. The options are bitwise-ored with any existing value for the options.]]
 
+[[ec][Set to indicate what error occurred, if any.]]
 
- native_type native(
- implementation_type & impl);
+]
 
 
+[heading Remarks]
+
+Calls `SSL_CTX_set_options`.
 
-[endsect]
 
 
 
-[section:native_handle socket_acceptor_service::native_handle]
+[endsect]
 
-[indexterm2 native_handle..socket_acceptor_service]
-Get the native acceptor implementation.
 
+[endsect]
 
- native_handle_type native_handle(
- implementation_type & impl);
+[section:set_password_callback ssl::context::set_password_callback]
 
+[indexterm2 set_password_callback..ssl::context]
+Set the password callback.
 
 
-[endsect]
+ template<
+ typename PasswordCallback>
+ void ``[link boost_asio.reference.ssl__context.set_password_callback.overload1 set_password_callback]``(
+ PasswordCallback callback);
+ `` [''''&raquo;''' [link boost_asio.reference.ssl__context.set_password_callback.overload1 more...]]``
 
+ template<
+ typename PasswordCallback>
+ boost::system::error_code ``[link boost_asio.reference.ssl__context.set_password_callback.overload2 set_password_callback]``(
+ PasswordCallback callback,
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.ssl__context.set_password_callback.overload2 more...]]``
 
 
-[section:native_handle_type socket_acceptor_service::native_handle_type]
+[section:overload1 ssl::context::set_password_callback (1 of 2 overloads)]
 
-[indexterm2 native_handle_type..socket_acceptor_service]
-The native acceptor type.
 
+Set the password callback.
 
- typedef implementation_defined native_handle_type;
 
+ template<
+ typename PasswordCallback>
+ void set_password_callback(
+ PasswordCallback callback);
 
 
-[heading Requirements]
+This function is used to specify a callback function to obtain password information about an encrypted key in PEM format.
 
-[*Header: ][^boost/asio/socket_acceptor_service.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
+[heading Parameters]
+
 
+[variablelist
+
+[[callback][The function object to be used for obtaining the password. The function signature of the handler must be:
+``
+ std::string password_callback(
+ std::size_t max_length, // The maximum size for a password.
+ password_purpose purpose // Whether password is for reading or writing.
+ );
+``
+The return value of the callback is a string containing the password.]]
 
-[endsect]
+]
 
 
-[section:native_non_blocking socket_acceptor_service::native_non_blocking]
+[heading Exceptions]
+
 
-[indexterm2 native_non_blocking..socket_acceptor_service]
-Gets the non-blocking mode of the native acceptor implementation.
+[variablelist
+
+[[boost::system::system_error][Thrown on failure.]]
 
+]
 
- bool ``[link boost_asio.reference.socket_acceptor_service.native_non_blocking.overload1 native_non_blocking]``(
- const implementation_type & impl) const;
- `` [''''&raquo;''' [link boost_asio.reference.socket_acceptor_service.native_non_blocking.overload1 more...]]``
 
+[heading Remarks]
+
+Calls `SSL_CTX_set_default_passwd_cb`.
 
-Sets the non-blocking mode of the native acceptor implementation.
 
 
- boost::system::error_code ``[link boost_asio.reference.socket_acceptor_service.native_non_blocking.overload2 native_non_blocking]``(
- implementation_type & impl,
- bool mode,
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.socket_acceptor_service.native_non_blocking.overload2 more...]]``
 
+[endsect]
 
-[section:overload1 socket_acceptor_service::native_non_blocking (1 of 2 overloads)]
 
 
-Gets the non-blocking mode of the native acceptor implementation.
+[section:overload2 ssl::context::set_password_callback (2 of 2 overloads)]
 
 
- bool native_non_blocking(
- const implementation_type & impl) const;
+Set the password callback.
 
 
+ template<
+ typename PasswordCallback>
+ boost::system::error_code set_password_callback(
+ PasswordCallback callback,
+ boost::system::error_code & ec);
 
-[endsect]
 
+This function is used to specify a callback function to obtain password information about an encrypted key in PEM format.
 
 
-[section:overload2 socket_acceptor_service::native_non_blocking (2 of 2 overloads)]
+[heading Parameters]
+
 
+[variablelist
+
+[[callback][The function object to be used for obtaining the password. The function signature of the handler must be:
+``
+ std::string password_callback(
+ std::size_t max_length, // The maximum size for a password.
+ password_purpose purpose // Whether password is for reading or writing.
+ );
+``
+The return value of the callback is a string containing the password.]]
 
-Sets the non-blocking mode of the native acceptor implementation.
+[[ec][Set to indicate what error occurred, if any.]]
 
+]
 
- boost::system::error_code native_non_blocking(
- implementation_type & impl,
- bool mode,
- boost::system::error_code & ec);
 
+[heading Remarks]
+
+Calls `SSL_CTX_set_default_passwd_cb`.
 
 
-[endsect]
 
 
 [endsect]
 
 
-[section:native_type socket_acceptor_service::native_type]
-
-[indexterm2 native_type..socket_acceptor_service]
-(Deprecated: Use native\_handle\_type.) The native acceptor type.
+[endsect]
 
+[section:set_verify_callback ssl::context::set_verify_callback]
 
- typedef implementation_defined native_type;
+[indexterm2 set_verify_callback..ssl::context]
+Set the callback used to verify peer certificates.
 
 
+ template<
+ typename VerifyCallback>
+ void ``[link boost_asio.reference.ssl__context.set_verify_callback.overload1 set_verify_callback]``(
+ VerifyCallback callback);
+ `` [''''&raquo;''' [link boost_asio.reference.ssl__context.set_verify_callback.overload1 more...]]``
 
-[heading Requirements]
+ template<
+ typename VerifyCallback>
+ boost::system::error_code ``[link boost_asio.reference.ssl__context.set_verify_callback.overload2 set_verify_callback]``(
+ VerifyCallback callback,
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.ssl__context.set_verify_callback.overload2 more...]]``
 
-[*Header: ][^boost/asio/socket_acceptor_service.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
+[section:overload1 ssl::context::set_verify_callback (1 of 2 overloads)]
 
 
-[endsect]
+Set the callback used to verify peer certificates.
 
 
-[section:non_blocking socket_acceptor_service::non_blocking]
+ template<
+ typename VerifyCallback>
+ void set_verify_callback(
+ VerifyCallback callback);
 
-[indexterm2 non_blocking..socket_acceptor_service]
-Gets the non-blocking mode of the acceptor.
 
+This function is used to specify a callback function that will be called by the implementation when it needs to verify a peer certificate.
 
- bool ``[link boost_asio.reference.socket_acceptor_service.non_blocking.overload1 non_blocking]``(
- const implementation_type & impl) const;
- `` [''''&raquo;''' [link boost_asio.reference.socket_acceptor_service.non_blocking.overload1 more...]]``
 
+[heading Parameters]
+
 
-Sets the non-blocking mode of the acceptor.
+[variablelist
+
+[[callback][The function object to be used for verifying a certificate. The function signature of the handler must be:
+``
+ bool verify_callback(
+ bool preverified, // True if the certificate passed pre-verification.
+ verify_context& ctx // The peer certificate and other context.
+ );
+``
+The return value of the callback is true if the certificate has passed verification, false otherwise.]]
 
+]
 
- boost::system::error_code ``[link boost_asio.reference.socket_acceptor_service.non_blocking.overload2 non_blocking]``(
- implementation_type & impl,
- bool mode,
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.socket_acceptor_service.non_blocking.overload2 more...]]``
 
+[heading Exceptions]
+
 
-[section:overload1 socket_acceptor_service::non_blocking (1 of 2 overloads)]
+[variablelist
+
+[[boost::system::system_error][Thrown on failure.]]
 
+]
 
-Gets the non-blocking mode of the acceptor.
 
+[heading Remarks]
+
+Calls `SSL_CTX_set_verify`.
 
- bool non_blocking(
- const implementation_type & impl) const;
 
 
 
@@ -79772,90 +83580,106 @@
 
 
 
-[section:overload2 socket_acceptor_service::non_blocking (2 of 2 overloads)]
+[section:overload2 ssl::context::set_verify_callback (2 of 2 overloads)]
 
 
-Sets the non-blocking mode of the acceptor.
+Set the callback used to verify peer certificates.
 
 
- boost::system::error_code non_blocking(
- implementation_type & impl,
- bool mode,
+ template<
+ typename VerifyCallback>
+ boost::system::error_code set_verify_callback(
+ VerifyCallback callback,
       boost::system::error_code & ec);
 
 
+This function is used to specify a callback function that will be called by the implementation when it needs to verify a peer certificate.
 
-[endsect]
 
+[heading Parameters]
+
 
-[endsect]
+[variablelist
+
+[[callback][The function object to be used for verifying a certificate. The function signature of the handler must be:
+``
+ bool verify_callback(
+ bool preverified, // True if the certificate passed pre-verification.
+ verify_context& ctx // The peer certificate and other context.
+ );
+``
+The return value of the callback is true if the certificate has passed verification, false otherwise.]]
 
+[[ec][Set to indicate what error occurred, if any.]]
 
-[section:open socket_acceptor_service::open]
+]
 
-[indexterm2 open..socket_acceptor_service]
-Open a new socket acceptor implementation.
 
+[heading Remarks]
+
+Calls `SSL_CTX_set_verify`.
 
- boost::system::error_code open(
- implementation_type & impl,
- const protocol_type & protocol,
- boost::system::error_code & ec);
 
 
 
 [endsect]
 
 
+[endsect]
 
-[section:protocol_type socket_acceptor_service::protocol_type]
-
-[indexterm2 protocol_type..socket_acceptor_service]
-The protocol type.
-
+[section:set_verify_mode ssl::context::set_verify_mode]
 
- typedef Protocol protocol_type;
+[indexterm2 set_verify_mode..ssl::context]
+Set the peer verification mode.
 
 
+ void ``[link boost_asio.reference.ssl__context.set_verify_mode.overload1 set_verify_mode]``(
+ verify_mode v);
+ `` [''''&raquo;''' [link boost_asio.reference.ssl__context.set_verify_mode.overload1 more...]]``
 
-[heading Requirements]
+ boost::system::error_code ``[link boost_asio.reference.ssl__context.set_verify_mode.overload2 set_verify_mode]``(
+ verify_mode v,
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.ssl__context.set_verify_mode.overload2 more...]]``
 
-[*Header: ][^boost/asio/socket_acceptor_service.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
+[section:overload1 ssl::context::set_verify_mode (1 of 2 overloads)]
 
 
-[endsect]
+Set the peer verification mode.
 
 
+ void set_verify_mode(
+ verify_mode v);
 
-[section:set_option socket_acceptor_service::set_option]
 
-[indexterm2 set_option..socket_acceptor_service]
-Set a socket option.
+This function may be used to configure the peer verification mode used by the context.
 
 
- template<
- typename ``[link boost_asio.reference.SettableSocketOption SettableSocketOption]``>
- boost::system::error_code set_option(
- implementation_type & impl,
- const SettableSocketOption & option,
- boost::system::error_code & ec);
+[heading Parameters]
+
 
+[variablelist
+
+[[v][A bitmask of peer verification modes. See [link boost_asio.reference.ssl__verify_mode `ssl::verify_mode`] for available values.]]
 
+]
 
-[endsect]
 
+[heading Exceptions]
+
 
+[variablelist
+
+[[boost::system::system_error][Thrown on failure.]]
 
-[section:socket_acceptor_service socket_acceptor_service::socket_acceptor_service]
+]
 
-[indexterm2 socket_acceptor_service..socket_acceptor_service]
-Construct a new socket acceptor service for the specified [link boost_asio.reference.io_service `io_service`].
 
+[heading Remarks]
+
+Calls `SSL_CTX_set_verify`.
 
- socket_acceptor_service(
- boost::asio::io_service & io_service);
 
 
 
@@ -79863,954 +83687,1067 @@
 
 
 
-[endsect]
-
-[section:socket_base socket_base]
-
+[section:overload2 ssl::context::set_verify_mode (2 of 2 overloads)]
 
-The [link boost_asio.reference.socket_base `socket_base`] class is used as a base for the [link boost_asio.reference.basic_stream_socket `basic_stream_socket`] and [link boost_asio.reference.basic_datagram_socket `basic_datagram_socket`] class templates so that we have a common place to define the shutdown\_type and enum.
 
+Set the peer verification mode.
 
- class socket_base
 
+ boost::system::error_code set_verify_mode(
+ verify_mode v,
+ boost::system::error_code & ec);
 
-[heading Types]
-[table
- [[Name][Description]]
 
- [
+This function may be used to configure the peer verification mode used by the context.
 
- [[link boost_asio.reference.socket_base.broadcast [*broadcast]]]
- [Socket option to permit sending of broadcast messages. ]
-
- ]
 
- [
+[heading Parameters]
+
 
- [[link boost_asio.reference.socket_base.bytes_readable [*bytes_readable]]]
- [IO control command to get the amount of data that can be read without blocking. ]
+[variablelist
   
- ]
+[[v][A bitmask of peer verification modes. See [link boost_asio.reference.ssl__verify_mode `ssl::verify_mode`] for available values.]]
 
- [
+[[ec][Set to indicate what error occurred, if any.]]
 
- [[link boost_asio.reference.socket_base.debug [*debug]]]
- [Socket option to enable socket-level debugging. ]
-
- ]
+]
 
- [
 
- [[link boost_asio.reference.socket_base.do_not_route [*do_not_route]]]
- [Socket option to prevent routing, use local interfaces only. ]
-
- ]
+[heading Remarks]
+
+Calls `SSL_CTX_set_verify`.
 
- [
 
- [[link boost_asio.reference.socket_base.enable_connection_aborted [*enable_connection_aborted]]]
- [Socket option to report aborted connections on accept. ]
-
- ]
 
- [
 
- [[link boost_asio.reference.socket_base.keep_alive [*keep_alive]]]
- [Socket option to send keep-alives. ]
-
- ]
+[endsect]
 
- [
 
- [[link boost_asio.reference.socket_base.linger [*linger]]]
- [Socket option to specify whether the socket lingers on close if unsent data is present. ]
-
- ]
+[endsect]
 
- [
 
- [[link boost_asio.reference.socket_base.message_flags [*message_flags]]]
- [Bitmask type for flags that can be passed to send and receive operations. ]
-
- ]
+[section:single_dh_use ssl::context::single_dh_use]
 
- [
+[indexterm2 single_dh_use..ssl::context]
+Always create a new key when using tmp\_dh parameters.
 
- [[link boost_asio.reference.socket_base.non_blocking_io [*non_blocking_io]]]
- [(Deprecated: Use non_blocking().) IO control command to set the blocking mode of the socket. ]
-
- ]
 
- [
+ static const int single_dh_use = implementation_defined;
 
- [[link boost_asio.reference.socket_base.receive_buffer_size [*receive_buffer_size]]]
- [Socket option for the receive buffer size of a socket. ]
-
- ]
 
- [
 
- [[link boost_asio.reference.socket_base.receive_low_watermark [*receive_low_watermark]]]
- [Socket option for the receive low watermark. ]
-
- ]
+[endsect]
 
- [
 
- [[link boost_asio.reference.socket_base.reuse_address [*reuse_address]]]
- [Socket option to allow the socket to be bound to an address that is already in use. ]
-
- ]
+[section:use_certificate_chain_file ssl::context::use_certificate_chain_file]
 
- [
+[indexterm2 use_certificate_chain_file..ssl::context]
+Use a certificate chain from a file.
 
- [[link boost_asio.reference.socket_base.send_buffer_size [*send_buffer_size]]]
- [Socket option for the send buffer size of a socket. ]
-
- ]
 
- [
+ void ``[link boost_asio.reference.ssl__context.use_certificate_chain_file.overload1 use_certificate_chain_file]``(
+ const std::string & filename);
+ `` [''''&raquo;''' [link boost_asio.reference.ssl__context.use_certificate_chain_file.overload1 more...]]``
 
- [[link boost_asio.reference.socket_base.send_low_watermark [*send_low_watermark]]]
- [Socket option for the send low watermark. ]
-
- ]
+ boost::system::error_code ``[link boost_asio.reference.ssl__context.use_certificate_chain_file.overload2 use_certificate_chain_file]``(
+ const std::string & filename,
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.ssl__context.use_certificate_chain_file.overload2 more...]]``
 
- [
 
- [[link boost_asio.reference.socket_base.shutdown_type [*shutdown_type]]]
- [Different ways a socket may be shutdown. ]
-
- ]
+[section:overload1 ssl::context::use_certificate_chain_file (1 of 2 overloads)]
 
-]
 
-[heading Protected Member Functions]
-[table
- [[Name][Description]]
+Use a certificate chain from a file.
 
- [
- [[link boost_asio.reference.socket_base._socket_base [*~socket_base]]]
- [Protected destructor to prevent deletion through this type. ]
- ]
-
-]
 
-[heading Data Members]
-[table
- [[Name][Description]]
+ void use_certificate_chain_file(
+ const std::string & filename);
 
- [
- [[link boost_asio.reference.socket_base.max_connections [*max_connections]]]
- [The maximum length of the queue of pending incoming connections. ]
- ]
 
- [
- [[link boost_asio.reference.socket_base.message_do_not_route [*message_do_not_route]]]
- [Specify that the data should not be subject to routing. ]
- ]
+This function is used to load a certificate chain into the context from a file.
 
- [
- [[link boost_asio.reference.socket_base.message_end_of_record [*message_end_of_record]]]
- [Specifies that the data marks the end of a record. ]
- ]
 
- [
- [[link boost_asio.reference.socket_base.message_out_of_band [*message_out_of_band]]]
- [Process out-of-band data. ]
- ]
+[heading Parameters]
+
 
- [
- [[link boost_asio.reference.socket_base.message_peek [*message_peek]]]
- [Peek at incoming data without removing it from the input queue. ]
- ]
+[variablelist
+
+[[filename][The name of the file containing the certificate. The file must use the PEM format.]]
 
 ]
 
-[heading Requirements]
-
-[*Header: ][^boost/asio/socket_base.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
+[heading Exceptions]
+
 
+[variablelist
+
+[[boost::system::system_error][Thrown on failure.]]
 
-[section:broadcast socket_base::broadcast]
+]
 
-[indexterm2 broadcast..socket_base]
-Socket option to permit sending of broadcast messages.
 
+[heading Remarks]
+
+Calls `SSL_CTX_use_certificate_chain_file`.
 
- typedef implementation_defined broadcast;
 
 
 
-Implements the SOL\_SOCKET/SO\_BROADCAST socket option.
+[endsect]
 
 
-[heading Examples]
-
-Setting the option:
 
- boost::asio::ip::udp::socket socket(io_service);
- ...
- boost::asio::socket_base::broadcast option(true);
- socket.set_option(option);
+[section:overload2 ssl::context::use_certificate_chain_file (2 of 2 overloads)]
 
 
+Use a certificate chain from a file.
 
 
+ boost::system::error_code use_certificate_chain_file(
+ const std::string & filename,
+ boost::system::error_code & ec);
 
-Getting the current option value:
 
- boost::asio::ip::udp::socket socket(io_service);
- ...
- boost::asio::socket_base::broadcast option;
- socket.get_option(option);
- bool is_set = option.value();
+This function is used to load a certificate chain into the context from a file.
 
 
+[heading Parameters]
+
 
+[variablelist
+
+[[filename][The name of the file containing the certificate. The file must use the PEM format.]]
 
+[[ec][Set to indicate what error occurred, if any.]]
 
+]
 
 
-[heading Requirements]
+[heading Remarks]
+
+Calls `SSL_CTX_use_certificate_chain_file`.
 
-[*Header: ][^boost/asio/socket_base.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
+[endsect]
 
-[section:bytes_readable socket_base::bytes_readable]
-
-[indexterm2 bytes_readable..socket_base]
-IO control command to get the amount of data that can be read without blocking.
-
+[section:use_certificate_file ssl::context::use_certificate_file]
 
- typedef implementation_defined bytes_readable;
+[indexterm2 use_certificate_file..ssl::context]
+Use a certificate from a file.
 
 
+ void ``[link boost_asio.reference.ssl__context.use_certificate_file.overload1 use_certificate_file]``(
+ const std::string & filename,
+ file_format format);
+ `` [''''&raquo;''' [link boost_asio.reference.ssl__context.use_certificate_file.overload1 more...]]``
 
-Implements the FIONREAD IO control command.
+ boost::system::error_code ``[link boost_asio.reference.ssl__context.use_certificate_file.overload2 use_certificate_file]``(
+ const std::string & filename,
+ file_format format,
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.ssl__context.use_certificate_file.overload2 more...]]``
 
 
-[heading Example]
-
+[section:overload1 ssl::context::use_certificate_file (1 of 2 overloads)]
 
 
- boost::asio::ip::tcp::socket socket(io_service);
- ...
- boost::asio::socket_base::bytes_readable command(true);
- socket.io_control(command);
- std::size_t bytes_readable = command.get();
+Use a certificate from a file.
 
 
+ void use_certificate_file(
+ const std::string & filename,
+ file_format format);
 
 
+This function is used to load a certificate into the context from a file.
 
 
+[heading Parameters]
+
 
-[heading Requirements]
+[variablelist
+
+[[filename][The name of the file containing the certificate.]]
 
-[*Header: ][^boost/asio/socket_base.hpp]
+[[format][The file format (ASN.1 or PEM).]]
 
-[*Convenience header: ][^boost/asio.hpp]
+]
 
 
-[endsect]
+[heading Exceptions]
+
 
+[variablelist
+
+[[boost::system::system_error][Thrown on failure.]]
 
+]
 
-[section:debug socket_base::debug]
 
-[indexterm2 debug..socket_base]
-Socket option to enable socket-level debugging.
+[heading Remarks]
+
+Calls `SSL_CTX_use_certificate_file`.
 
 
- typedef implementation_defined debug;
 
 
+[endsect]
 
-Implements the SOL\_SOCKET/SO\_DEBUG socket option.
 
 
-[heading Examples]
-
-Setting the option:
+[section:overload2 ssl::context::use_certificate_file (2 of 2 overloads)]
 
- boost::asio::ip::tcp::socket socket(io_service);
- ...
- boost::asio::socket_base::debug option(true);
- socket.set_option(option);
 
+Use a certificate from a file.
 
 
+ boost::system::error_code use_certificate_file(
+ const std::string & filename,
+ file_format format,
+ boost::system::error_code & ec);
 
 
-Getting the current option value:
+This function is used to load a certificate into the context from a file.
 
- boost::asio::ip::tcp::socket socket(io_service);
- ...
- boost::asio::socket_base::debug option;
- socket.get_option(option);
- bool is_set = option.value();
 
+[heading Parameters]
+
 
+[variablelist
+
+[[filename][The name of the file containing the certificate.]]
 
+[[format][The file format (ASN.1 or PEM).]]
 
+[[ec][Set to indicate what error occurred, if any.]]
 
+]
 
 
-[heading Requirements]
+[heading Remarks]
+
+Calls `SSL_CTX_use_certificate_file`.
 
-[*Header: ][^boost/asio/socket_base.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
+[endsect]
 
-[section:do_not_route socket_base::do_not_route]
+[section:use_private_key_file ssl::context::use_private_key_file]
 
-[indexterm2 do_not_route..socket_base]
-Socket option to prevent routing, use local interfaces only.
+[indexterm2 use_private_key_file..ssl::context]
+Use a private key from a file.
 
 
- typedef implementation_defined do_not_route;
+ void ``[link boost_asio.reference.ssl__context.use_private_key_file.overload1 use_private_key_file]``(
+ const std::string & filename,
+ file_format format);
+ `` [''''&raquo;''' [link boost_asio.reference.ssl__context.use_private_key_file.overload1 more...]]``
 
+ boost::system::error_code ``[link boost_asio.reference.ssl__context.use_private_key_file.overload2 use_private_key_file]``(
+ const std::string & filename,
+ file_format format,
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.ssl__context.use_private_key_file.overload2 more...]]``
 
 
-Implements the SOL\_SOCKET/SO\_DONTROUTE socket option.
+[section:overload1 ssl::context::use_private_key_file (1 of 2 overloads)]
 
 
-[heading Examples]
-
-Setting the option:
+Use a private key from a file.
 
- boost::asio::ip::udp::socket socket(io_service);
- ...
- boost::asio::socket_base::do_not_route option(true);
- socket.set_option(option);
+
+ void use_private_key_file(
+ const std::string & filename,
+ file_format format);
 
 
+This function is used to load a private key into the context from a file.
 
 
+[heading Parameters]
+
 
-Getting the current option value:
+[variablelist
+
+[[filename][The name of the file containing the private key.]]
 
- boost::asio::ip::udp::socket socket(io_service);
- ...
- boost::asio::socket_base::do_not_route option;
- socket.get_option(option);
- bool is_set = option.value();
+[[format][The file format (ASN.1 or PEM).]]
 
+]
 
 
+[heading Exceptions]
+
 
+[variablelist
+
+[[boost::system::system_error][Thrown on failure.]]
 
+]
 
 
-[heading Requirements]
+[heading Remarks]
+
+Calls `SSL_CTX_use_PrivateKey_file`.
 
-[*Header: ][^boost/asio/socket_base.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
 
-[section:enable_connection_aborted socket_base::enable_connection_aborted]
+[section:overload2 ssl::context::use_private_key_file (2 of 2 overloads)]
 
-[indexterm2 enable_connection_aborted..socket_base]
-Socket option to report aborted connections on accept.
 
+Use a private key from a file.
 
- typedef implementation_defined enable_connection_aborted;
 
+ boost::system::error_code use_private_key_file(
+ const std::string & filename,
+ file_format format,
+ boost::system::error_code & ec);
 
 
-Implements a custom socket option that determines whether or not an accept operation is permitted to fail with `boost::asio::error::connection_aborted`. By default the option is false.
+This function is used to load a private key into the context from a file.
 
 
-[heading Examples]
+[heading Parameters]
+
+
+[variablelist
   
-Setting the option:
+[[filename][The name of the file containing the private key.]]
 
- boost::asio::ip::tcp::acceptor acceptor(io_service);
- ...
- boost::asio::socket_base::enable_connection_aborted option(true);
- acceptor.set_option(option);
+[[format][The file format (ASN.1 or PEM).]]
 
+[[ec][Set to indicate what error occurred, if any.]]
 
+]
 
 
+[heading Remarks]
+
+Calls `SSL_CTX_use_PrivateKey_file`.
 
-Getting the current option value:
 
- boost::asio::ip::tcp::acceptor acceptor(io_service);
- ...
- boost::asio::socket_base::enable_connection_aborted option;
- acceptor.get_option(option);
- bool is_set = option.value();
 
 
+[endsect]
 
 
+[endsect]
 
+[section:use_rsa_private_key_file ssl::context::use_rsa_private_key_file]
 
+[indexterm2 use_rsa_private_key_file..ssl::context]
+Use an RSA private key from a file.
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/socket_base.hpp]
+ void ``[link boost_asio.reference.ssl__context.use_rsa_private_key_file.overload1 use_rsa_private_key_file]``(
+ const std::string & filename,
+ file_format format);
+ `` [''''&raquo;''' [link boost_asio.reference.ssl__context.use_rsa_private_key_file.overload1 more...]]``
 
-[*Convenience header: ][^boost/asio.hpp]
+ boost::system::error_code ``[link boost_asio.reference.ssl__context.use_rsa_private_key_file.overload2 use_rsa_private_key_file]``(
+ const std::string & filename,
+ file_format format,
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.ssl__context.use_rsa_private_key_file.overload2 more...]]``
 
 
-[endsect]
+[section:overload1 ssl::context::use_rsa_private_key_file (1 of 2 overloads)]
 
 
+Use an RSA private key from a file.
 
-[section:keep_alive socket_base::keep_alive]
 
-[indexterm2 keep_alive..socket_base]
-Socket option to send keep-alives.
+ void use_rsa_private_key_file(
+ const std::string & filename,
+ file_format format);
 
 
- typedef implementation_defined keep_alive;
+This function is used to load an RSA private key into the context from a file.
 
 
+[heading Parameters]
+
 
-Implements the SOL\_SOCKET/SO\_KEEPALIVE socket option.
+[variablelist
+
+[[filename][The name of the file containing the RSA private key.]]
 
+[[format][The file format (ASN.1 or PEM).]]
 
-[heading Examples]
-
-Setting the option:
+]
 
- boost::asio::ip::tcp::socket socket(io_service);
- ...
- boost::asio::socket_base::keep_alive option(true);
- socket.set_option(option);
 
+[heading Exceptions]
+
 
+[variablelist
+
+[[boost::system::system_error][Thrown on failure.]]
 
+]
 
 
-Getting the current option value:
+[heading Remarks]
+
+Calls `SSL_CTX_use_RSAPrivateKey_file`.
 
- boost::asio::ip::tcp::socket socket(io_service);
- ...
- boost::asio::socket_base::keep_alive option;
- socket.get_option(option);
- bool is_set = option.value();
 
 
 
+[endsect]
 
 
 
+[section:overload2 ssl::context::use_rsa_private_key_file (2 of 2 overloads)]
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/socket_base.hpp]
+Use an RSA private key from a file.
 
-[*Convenience header: ][^boost/asio.hpp]
 
+ boost::system::error_code use_rsa_private_key_file(
+ const std::string & filename,
+ file_format format,
+ boost::system::error_code & ec);
 
-[endsect]
 
+This function is used to load an RSA private key into the context from a file.
 
 
-[section:linger socket_base::linger]
+[heading Parameters]
+
 
-[indexterm2 linger..socket_base]
-Socket option to specify whether the socket lingers on close if unsent data is present.
+[variablelist
+
+[[filename][The name of the file containing the RSA private key.]]
 
+[[format][The file format (ASN.1 or PEM).]]
 
- typedef implementation_defined linger;
+[[ec][Set to indicate what error occurred, if any.]]
 
+]
 
 
-Implements the SOL\_SOCKET/SO\_LINGER socket option.
+[heading Remarks]
+
+Calls `SSL_CTX_use_RSAPrivateKey_file`.
 
 
-[heading Examples]
-
-Setting the option:
 
- boost::asio::ip::tcp::socket socket(io_service);
- ...
- boost::asio::socket_base::linger option(true, 30);
- socket.set_option(option);
 
+[endsect]
 
 
+[endsect]
 
+[section:use_tmp_dh_file ssl::context::use_tmp_dh_file]
 
-Getting the current option value:
+[indexterm2 use_tmp_dh_file..ssl::context]
+Use the specified file to obtain the temporary Diffie-Hellman parameters.
 
- boost::asio::ip::tcp::socket socket(io_service);
- ...
- boost::asio::socket_base::linger option;
- socket.get_option(option);
- bool is_set = option.enabled();
- unsigned short timeout = option.timeout();
 
+ void ``[link boost_asio.reference.ssl__context.use_tmp_dh_file.overload1 use_tmp_dh_file]``(
+ const std::string & filename);
+ `` [''''&raquo;''' [link boost_asio.reference.ssl__context.use_tmp_dh_file.overload1 more...]]``
 
+ boost::system::error_code ``[link boost_asio.reference.ssl__context.use_tmp_dh_file.overload2 use_tmp_dh_file]``(
+ const std::string & filename,
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.ssl__context.use_tmp_dh_file.overload2 more...]]``
 
 
+[section:overload1 ssl::context::use_tmp_dh_file (1 of 2 overloads)]
 
 
+Use the specified file to obtain the temporary Diffie-Hellman parameters.
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/socket_base.hpp]
+ void use_tmp_dh_file(
+ const std::string & filename);
 
-[*Convenience header: ][^boost/asio.hpp]
 
+This function is used to load Diffie-Hellman parameters into the context from a file.
 
-[endsect]
 
+[heading Parameters]
+
 
+[variablelist
+
+[[filename][The name of the file containing the Diffie-Hellman parameters. The file must use the PEM format.]]
 
-[section:max_connections socket_base::max_connections]
+]
 
-[indexterm2 max_connections..socket_base]
-The maximum length of the queue of pending incoming connections.
 
+[heading Exceptions]
+
 
- static const int max_connections = implementation_defined;
+[variablelist
+
+[[boost::system::system_error][Thrown on failure.]]
 
+]
 
 
-[endsect]
+[heading Remarks]
+
+Calls `SSL_CTX_set_tmp_dh`.
 
 
 
-[section:message_do_not_route socket_base::message_do_not_route]
 
-[indexterm2 message_do_not_route..socket_base]
-Specify that the data should not be subject to routing.
+[endsect]
 
 
- static const int message_do_not_route = implementation_defined;
 
+[section:overload2 ssl::context::use_tmp_dh_file (2 of 2 overloads)]
 
 
-[endsect]
+Use the specified file to obtain the temporary Diffie-Hellman parameters.
 
 
+ boost::system::error_code use_tmp_dh_file(
+ const std::string & filename,
+ boost::system::error_code & ec);
 
-[section:message_end_of_record socket_base::message_end_of_record]
 
-[indexterm2 message_end_of_record..socket_base]
-Specifies that the data marks the end of a record.
+This function is used to load Diffie-Hellman parameters into the context from a file.
 
 
- static const int message_end_of_record = implementation_defined;
+[heading Parameters]
+
 
+[variablelist
+
+[[filename][The name of the file containing the Diffie-Hellman parameters. The file must use the PEM format.]]
 
+[[ec][Set to indicate what error occurred, if any.]]
 
-[endsect]
+]
 
 
+[heading Remarks]
+
+Calls `SSL_CTX_set_tmp_dh`.
 
-[section:message_flags socket_base::message_flags]
 
-[indexterm2 message_flags..socket_base]
-Bitmask type for flags that can be passed to send and receive operations.
 
 
- typedef int message_flags;
+[endsect]
 
 
+[endsect]
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/socket_base.hpp]
+[section:_context ssl::context::~context]
 
-[*Convenience header: ][^boost/asio.hpp]
+[indexterm2 ~context..ssl::context]
+Destructor.
 
 
-[endsect]
+ ~context();
 
 
 
-[section:message_out_of_band socket_base::message_out_of_band]
+[endsect]
 
-[indexterm2 message_out_of_band..socket_base]
-Process out-of-band data.
 
 
- static const int message_out_of_band = implementation_defined;
+[endsect]
 
+[section:ssl__context_base ssl::context_base]
 
 
-[endsect]
+The [link boost_asio.reference.ssl__context_base `ssl::context_base`] class is used as a base for the basic\_context class template so that we have a common place to define various enums.
 
 
+ class context_base
 
-[section:message_peek socket_base::message_peek]
 
-[indexterm2 message_peek..socket_base]
-Peek at incoming data without removing it from the input queue.
+[heading Types]
+[table
+ [[Name][Description]]
 
+ [
 
- static const int message_peek = implementation_defined;
+ [[link boost_asio.reference.ssl__context_base.file_format [*file_format]]]
+ [File format types. ]
+
+ ]
 
+ [
 
+ [[link boost_asio.reference.ssl__context_base.method [*method]]]
+ [Different methods supported by a context. ]
+
+ ]
 
-[endsect]
+ [
 
+ [[link boost_asio.reference.ssl__context_base.options [*options]]]
+ [Bitmask type for SSL options. ]
+
+ ]
 
+ [
 
-[section:non_blocking_io socket_base::non_blocking_io]
+ [[link boost_asio.reference.ssl__context_base.password_purpose [*password_purpose]]]
+ [Purpose of PEM password. ]
+
+ ]
 
-[indexterm2 non_blocking_io..socket_base]
-(Deprecated: Use non\_blocking().) IO control command to set the blocking mode of the socket.
+]
 
+[heading Protected Member Functions]
+[table
+ [[Name][Description]]
 
- typedef implementation_defined non_blocking_io;
+ [
+ [[link boost_asio.reference.ssl__context_base._context_base [*~context_base]]]
+ [Protected destructor to prevent deletion through this type. ]
+ ]
+
+]
 
+[heading Data Members]
+[table
+ [[Name][Description]]
 
+ [
+ [[link boost_asio.reference.ssl__context_base.default_workarounds [*default_workarounds]]]
+ [Implement various bug workarounds. ]
+ ]
 
-Implements the FIONBIO IO control command.
+ [
+ [[link boost_asio.reference.ssl__context_base.no_sslv2 [*no_sslv2]]]
+ [Disable SSL v2. ]
+ ]
 
+ [
+ [[link boost_asio.reference.ssl__context_base.no_sslv3 [*no_sslv3]]]
+ [Disable SSL v3. ]
+ ]
 
-[heading Example]
-
+ [
+ [[link boost_asio.reference.ssl__context_base.no_tlsv1 [*no_tlsv1]]]
+ [Disable TLS v1. ]
+ ]
 
+ [
+ [[link boost_asio.reference.ssl__context_base.single_dh_use [*single_dh_use]]]
+ [Always create a new key when using tmp_dh parameters. ]
+ ]
 
- boost::asio::ip::tcp::socket socket(io_service);
- ...
- boost::asio::socket_base::non_blocking_io command(true);
- socket.io_control(command);
+]
 
+[heading Requirements]
 
+[*Header: ][^boost/asio/ssl/context_base.hpp]
 
+[*Convenience header: ][^boost/asio/ssl.hpp]
 
 
+[section:default_workarounds ssl::context_base::default_workarounds]
 
+[indexterm2 default_workarounds..ssl::context_base]
+Implement various bug workarounds.
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/socket_base.hpp]
+ static const int default_workarounds = implementation_defined;
 
-[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
 
-[section:receive_buffer_size socket_base::receive_buffer_size]
+[section:file_format ssl::context_base::file_format]
 
-[indexterm2 receive_buffer_size..socket_base]
-Socket option for the receive buffer size of a socket.
+[indexterm2 file_format..ssl::context_base]
+File format types.
 
 
- typedef implementation_defined receive_buffer_size;
+ enum file_format
 
+[indexterm2 asn1..ssl::context_base]
+[indexterm2 pem..ssl::context_base]
 
+[heading Values]
+[variablelist
 
-Implements the SOL\_SOCKET/SO\_RCVBUF socket option.
+ [
+ [asn1]
+ [ASN.1 file. ]
+ ]
 
+ [
+ [pem]
+ [PEM file. ]
+ ]
 
-[heading Examples]
-
-Setting the option:
+]
 
- boost::asio::ip::tcp::socket socket(io_service);
- ...
- boost::asio::socket_base::receive_buffer_size option(8192);
- socket.set_option(option);
 
 
+[endsect]
 
 
 
-Getting the current option value:
+[section:method ssl::context_base::method]
 
- boost::asio::ip::tcp::socket socket(io_service);
- ...
- boost::asio::socket_base::receive_buffer_size option;
- socket.get_option(option);
- int size = option.value();
+[indexterm2 method..ssl::context_base]
+Different methods supported by a context.
 
 
+ enum method
 
+[indexterm2 sslv2..ssl::context_base]
+[indexterm2 sslv2_client..ssl::context_base]
+[indexterm2 sslv2_server..ssl::context_base]
+[indexterm2 sslv3..ssl::context_base]
+[indexterm2 sslv3_client..ssl::context_base]
+[indexterm2 sslv3_server..ssl::context_base]
+[indexterm2 tlsv1..ssl::context_base]
+[indexterm2 tlsv1_client..ssl::context_base]
+[indexterm2 tlsv1_server..ssl::context_base]
+[indexterm2 sslv23..ssl::context_base]
+[indexterm2 sslv23_client..ssl::context_base]
+[indexterm2 sslv23_server..ssl::context_base]
 
+[heading Values]
+[variablelist
 
+ [
+ [sslv2]
+ [Generic SSL version 2. ]
+ ]
 
+ [
+ [sslv2_client]
+ [SSL version 2 client. ]
+ ]
 
-[heading Requirements]
+ [
+ [sslv2_server]
+ [SSL version 2 server. ]
+ ]
 
-[*Header: ][^boost/asio/socket_base.hpp]
+ [
+ [sslv3]
+ [Generic SSL version 3. ]
+ ]
 
-[*Convenience header: ][^boost/asio.hpp]
+ [
+ [sslv3_client]
+ [SSL version 3 client. ]
+ ]
 
+ [
+ [sslv3_server]
+ [SSL version 3 server. ]
+ ]
 
-[endsect]
+ [
+ [tlsv1]
+ [Generic TLS version 1. ]
+ ]
 
+ [
+ [tlsv1_client]
+ [TLS version 1 client. ]
+ ]
 
+ [
+ [tlsv1_server]
+ [TLS version 1 server. ]
+ ]
 
-[section:receive_low_watermark socket_base::receive_low_watermark]
+ [
+ [sslv23]
+ [Generic SSL/TLS. ]
+ ]
 
-[indexterm2 receive_low_watermark..socket_base]
-Socket option for the receive low watermark.
+ [
+ [sslv23_client]
+ [SSL/TLS client. ]
+ ]
 
+ [
+ [sslv23_server]
+ [SSL/TLS server. ]
+ ]
 
- typedef implementation_defined receive_low_watermark;
+]
 
 
 
-Implements the SOL\_SOCKET/SO\_RCVLOWAT socket option.
+[endsect]
 
 
-[heading Examples]
-
-Setting the option:
 
- boost::asio::ip::tcp::socket socket(io_service);
- ...
- boost::asio::socket_base::receive_low_watermark option(1024);
- socket.set_option(option);
+[section:no_sslv2 ssl::context_base::no_sslv2]
 
+[indexterm2 no_sslv2..ssl::context_base]
+Disable SSL v2.
 
 
+ static const int no_sslv2 = implementation_defined;
 
 
-Getting the current option value:
 
- boost::asio::ip::tcp::socket socket(io_service);
- ...
- boost::asio::socket_base::receive_low_watermark option;
- socket.get_option(option);
- int size = option.value();
+[endsect]
 
 
 
+[section:no_sslv3 ssl::context_base::no_sslv3]
 
+[indexterm2 no_sslv3..ssl::context_base]
+Disable SSL v3.
 
 
+ static const int no_sslv3 = implementation_defined;
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/socket_base.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
+[endsect]
 
 
-[endsect]
 
+[section:no_tlsv1 ssl::context_base::no_tlsv1]
 
+[indexterm2 no_tlsv1..ssl::context_base]
+Disable TLS v1.
 
-[section:reuse_address socket_base::reuse_address]
 
-[indexterm2 reuse_address..socket_base]
-Socket option to allow the socket to be bound to an address that is already in use.
+ static const int no_tlsv1 = implementation_defined;
 
 
- typedef implementation_defined reuse_address;
 
+[endsect]
 
 
-Implements the SOL\_SOCKET/SO\_REUSEADDR socket option.
 
+[section:options ssl::context_base::options]
 
-[heading Examples]
-
-Setting the option:
+[indexterm2 options..ssl::context_base]
+Bitmask type for SSL options.
 
- boost::asio::ip::tcp::acceptor acceptor(io_service);
- ...
- boost::asio::socket_base::reuse_address option(true);
- acceptor.set_option(option);
 
+ typedef int options;
 
 
 
+[heading Requirements]
 
-Getting the current option value:
+[*Header: ][^boost/asio/ssl/context_base.hpp]
 
- boost::asio::ip::tcp::acceptor acceptor(io_service);
- ...
- boost::asio::socket_base::reuse_address option;
- acceptor.get_option(option);
- bool is_set = option.value();
+[*Convenience header: ][^boost/asio/ssl.hpp]
 
 
+[endsect]
 
 
 
+[section:password_purpose ssl::context_base::password_purpose]
 
+[indexterm2 password_purpose..ssl::context_base]
+Purpose of PEM password.
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/socket_base.hpp]
+ enum password_purpose
 
-[*Convenience header: ][^boost/asio.hpp]
+[indexterm2 for_reading..ssl::context_base]
+[indexterm2 for_writing..ssl::context_base]
 
+[heading Values]
+[variablelist
 
-[endsect]
+ [
+ [for_reading]
+ [The password is needed for reading/decryption. ]
+ ]
 
+ [
+ [for_writing]
+ [The password is needed for writing/encryption. ]
+ ]
 
+]
 
-[section:send_buffer_size socket_base::send_buffer_size]
 
-[indexterm2 send_buffer_size..socket_base]
-Socket option for the send buffer size of a socket.
 
+[endsect]
 
- typedef implementation_defined send_buffer_size;
 
 
+[section:single_dh_use ssl::context_base::single_dh_use]
 
-Implements the SOL\_SOCKET/SO\_SNDBUF socket option.
+[indexterm2 single_dh_use..ssl::context_base]
+Always create a new key when using tmp\_dh parameters.
 
 
-[heading Examples]
-
-Setting the option:
+ static const int single_dh_use = implementation_defined;
 
- boost::asio::ip::tcp::socket socket(io_service);
- ...
- boost::asio::socket_base::send_buffer_size option(8192);
- socket.set_option(option);
 
 
+[endsect]
 
 
 
-Getting the current option value:
+[section:_context_base ssl::context_base::~context_base]
 
- boost::asio::ip::tcp::socket socket(io_service);
- ...
- boost::asio::socket_base::send_buffer_size option;
- socket.get_option(option);
- int size = option.value();
+[indexterm2 ~context_base..ssl::context_base]
+Protected destructor to prevent deletion through this type.
 
 
+ ~context_base();
 
 
 
+[endsect]
 
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/socket_base.hpp]
+[endsect]
 
-[*Convenience header: ][^boost/asio.hpp]
+[section:ssl__rfc2818_verification ssl::rfc2818_verification]
 
 
-[endsect]
+Verifies a certificate against a hostname according to the rules described in RFC 2818.
 
 
+ class rfc2818_verification
 
-[section:send_low_watermark socket_base::send_low_watermark]
 
-[indexterm2 send_low_watermark..socket_base]
-Socket option for the send low watermark.
+[heading Types]
+[table
+ [[Name][Description]]
 
+ [
 
- typedef implementation_defined send_low_watermark;
+ [[link boost_asio.reference.ssl__rfc2818_verification.result_type [*result_type]]]
+ [The type of the function object's result. ]
+
+ ]
 
+]
 
+[heading Member Functions]
+[table
+ [[Name][Description]]
 
-Implements the SOL\_SOCKET/SO\_SNDLOWAT socket option.
+ [
+ [[link boost_asio.reference.ssl__rfc2818_verification.operator_lp__rp_ [*operator()]]]
+ [Perform certificate verification. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ssl__rfc2818_verification.rfc2818_verification [*rfc2818_verification]]]
+ [Constructor. ]
+ ]
+
+]
 
 
-[heading Examples]
+[heading Example]
   
-Setting the option:
+The following example shows how to synchronously open a secure connection to a given host name:
 
- boost::asio::ip::tcp::socket socket(io_service);
- ...
- boost::asio::socket_base::send_low_watermark option(1024);
- socket.set_option(option);
+ using boost::asio::ip::tcp;
+ namespace ssl = boost::asio::ssl;
+ typedef ssl::stream<tcp::socket> ssl_socket;
 
+ // Create a context that uses the default paths for finding CA certificates.
+ ssl::context ctx(ssl::context::sslv23);
+ ctx.set_default_verify_paths();
 
+ // Open a socket and connect it to the remote host.
+ boost::asio::io_service io_service;
+ ssl_socket sock(io_service, ctx);
+ tcp::resolver resolver(io_service);
+ tcp::resolver::query query("host.name", "https");
+ boost::asio::connect(sock.lowest_layer(), resolver.resolve(query));
+ sock.lowest_layer().set_option(tcp::no_delay(true));
 
+ // Perform SSL handshake and verify the remote host's certificate.
+ sock.set_verify_mode(ssl::verify_peer);
+ sock.set_verify_callback(ssl::rfc2818_verification("host.name"));
+ sock.handshake(ssl_socket::client);
 
+ // ... read and write as normal ...
 
-Getting the current option value:
 
- boost::asio::ip::tcp::socket socket(io_service);
- ...
- boost::asio::socket_base::send_low_watermark option;
- socket.get_option(option);
- int size = option.value();
 
 
 
 
+[heading Requirements]
 
+[*Header: ][^boost/asio/ssl/rfc2818_verification.hpp]
 
+[*Convenience header: ][^boost/asio/ssl.hpp]
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/socket_base.hpp]
+[section:operator_lp__rp_ ssl::rfc2818_verification::operator()]
 
-[*Convenience header: ][^boost/asio.hpp]
+[indexterm2 operator()..ssl::rfc2818_verification]
+Perform certificate verification.
 
 
-[endsect]
+ bool operator()(
+ bool preverified,
+ verify_context & ctx) const;
 
 
 
-[section:shutdown_type socket_base::shutdown_type]
+[endsect]
 
-[indexterm2 shutdown_type..socket_base]
-Different ways a socket may be shutdown.
 
 
- enum shutdown_type
+[section:result_type ssl::rfc2818_verification::result_type]
 
-[indexterm2 shutdown_receive..socket_base]
-[indexterm2 shutdown_send..socket_base]
-[indexterm2 shutdown_both..socket_base]
+[indexterm2 result_type..ssl::rfc2818_verification]
+The type of the function object's result.
 
-[heading Values]
-[variablelist
 
- [
- [shutdown_receive]
- [Shutdown the receive side of the socket. ]
- ]
+ typedef bool result_type;
 
- [
- [shutdown_send]
- [Shutdown the send side of the socket. ]
- ]
 
- [
- [shutdown_both]
- [Shutdown both send and receive on the socket. ]
- ]
 
-]
+[heading Requirements]
+
+[*Header: ][^boost/asio/ssl/rfc2818_verification.hpp]
 
+[*Convenience header: ][^boost/asio/ssl.hpp]
 
 
 [endsect]
 
 
 
-[section:_socket_base socket_base::~socket_base]
+[section:rfc2818_verification ssl::rfc2818_verification::rfc2818_verification]
 
-[indexterm2 ~socket_base..socket_base]
-Protected destructor to prevent deletion through this type.
+[indexterm2 rfc2818_verification..ssl::rfc2818_verification]
+Constructor.
 
 
- ~socket_base();
+ rfc2818_verification(
+ const std::string & host);
 
 
 
@@ -80820,12 +84757,16 @@
 
 [endsect]
 
-[section:ssl__context ssl::context]
+[section:ssl__stream ssl::stream]
+
 
+Provides stream-oriented functionality using SSL.
 
 
- class context :
- public ssl::context_base,
+ template<
+ typename Stream>
+ class stream :
+ public ssl::stream_base,
     noncopyable
 
 
@@ -80835,43 +84776,43 @@
 
   [
 
- [[link boost_asio.reference.ssl__context.file_format [*file_format]]]
- [File format types. ]
+ [[link boost_asio.reference.ssl__stream__impl_struct [*impl_struct]]]
+ [Structure for use with deprecated impl_type. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.ssl__context.impl_type [*impl_type]]]
- [(Deprecated: Use native_handle_type.) The native type of the SSL context. ]
+ [[link boost_asio.reference.ssl__stream.handshake_type [*handshake_type]]]
+ [Different handshake types. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.ssl__context.method [*method]]]
- [Different methods supported by a context. ]
+ [[link boost_asio.reference.ssl__stream.impl_type [*impl_type]]]
+ [(Deprecated: Use native_handle_type.) The underlying implementation type. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.ssl__context.native_handle_type [*native_handle_type]]]
- [The native handle type of the SSL context. ]
+ [[link boost_asio.reference.ssl__stream.lowest_layer_type [*lowest_layer_type]]]
+ [The type of the lowest layer. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.ssl__context.options [*options]]]
- [Bitmask type for SSL options. ]
+ [[link boost_asio.reference.ssl__stream.native_handle_type [*native_handle_type]]]
+ [The native handle type of the SSL stream. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.ssl__context.password_purpose [*password_purpose]]]
- [Purpose of PEM password. ]
+ [[link boost_asio.reference.ssl__stream.next_layer_type [*next_layer_type]]]
+ [The type of the next layer. ]
   
   ]
 
@@ -80882,205 +84823,137 @@
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.ssl__context.add_verify_path [*add_verify_path]]]
- [Add a directory containing certificate authority files to be used for performing verification. ]
+ [[link boost_asio.reference.ssl__stream.async_handshake [*async_handshake]]]
+ [Start an asynchronous SSL handshake. ]
   ]
   
   [
- [[link boost_asio.reference.ssl__context.context [*context]]]
- [Constructor.
-
- Deprecated constructor taking a reference to an io_service object.
-
- Move-construct a context from another. ]
+ [[link boost_asio.reference.ssl__stream.async_read_some [*async_read_some]]]
+ [Start an asynchronous read. ]
   ]
   
   [
- [[link boost_asio.reference.ssl__context.impl [*impl]]]
- [(Deprecated: Use native_handle().) Get the underlying implementation in the native type. ]
+ [[link boost_asio.reference.ssl__stream.async_shutdown [*async_shutdown]]]
+ [Asynchronously shut down SSL on the stream. ]
   ]
   
   [
- [[link boost_asio.reference.ssl__context.load_verify_file [*load_verify_file]]]
- [Load a certification authority file for performing verification. ]
+ [[link boost_asio.reference.ssl__stream.async_write_some [*async_write_some]]]
+ [Start an asynchronous write. ]
   ]
   
   [
- [[link boost_asio.reference.ssl__context.native_handle [*native_handle]]]
- [Get the underlying implementation in the native type. ]
+ [[link boost_asio.reference.ssl__stream.get_io_service [*get_io_service]]]
+ [Get the io_service associated with the object. ]
   ]
   
   [
- [[link boost_asio.reference.ssl__context.operator_eq_ [*operator=]]]
- [Move-assign a context from another. ]
+ [[link boost_asio.reference.ssl__stream.handshake [*handshake]]]
+ [Perform SSL handshaking. ]
   ]
   
   [
- [[link boost_asio.reference.ssl__context.set_default_verify_paths [*set_default_verify_paths]]]
- [Configures the context to use the default directories for finding certification authority certificates. ]
+ [[link boost_asio.reference.ssl__stream.impl [*impl]]]
+ [(Deprecated: Use native_handle().) Get the underlying implementation in the native type. ]
   ]
   
   [
- [[link boost_asio.reference.ssl__context.set_options [*set_options]]]
- [Set options on the context. ]
+ [[link boost_asio.reference.ssl__stream.lowest_layer [*lowest_layer]]]
+ [Get a reference to the lowest layer. ]
   ]
   
   [
- [[link boost_asio.reference.ssl__context.set_password_callback [*set_password_callback]]]
- [Set the password callback. ]
+ [[link boost_asio.reference.ssl__stream.native_handle [*native_handle]]]
+ [Get the underlying implementation in the native type. ]
   ]
   
   [
- [[link boost_asio.reference.ssl__context.set_verify_callback [*set_verify_callback]]]
- [Set the callback used to verify peer certificates. ]
+ [[link boost_asio.reference.ssl__stream.next_layer [*next_layer]]]
+ [Get a reference to the next layer. ]
   ]
   
   [
- [[link boost_asio.reference.ssl__context.set_verify_mode [*set_verify_mode]]]
- [Set the peer verification mode. ]
+ [[link boost_asio.reference.ssl__stream.read_some [*read_some]]]
+ [Read some data from the stream. ]
   ]
   
   [
- [[link boost_asio.reference.ssl__context.use_certificate_chain_file [*use_certificate_chain_file]]]
- [Use a certificate chain from a file. ]
+ [[link boost_asio.reference.ssl__stream.set_verify_callback [*set_verify_callback]]]
+ [Set the callback used to verify peer certificates. ]
   ]
   
   [
- [[link boost_asio.reference.ssl__context.use_certificate_file [*use_certificate_file]]]
- [Use a certificate from a file. ]
+ [[link boost_asio.reference.ssl__stream.set_verify_mode [*set_verify_mode]]]
+ [Set the peer verification mode. ]
   ]
   
   [
- [[link boost_asio.reference.ssl__context.use_private_key_file [*use_private_key_file]]]
- [Use a private key from a file. ]
+ [[link boost_asio.reference.ssl__stream.shutdown [*shutdown]]]
+ [Shut down SSL on the stream. ]
   ]
   
   [
- [[link boost_asio.reference.ssl__context.use_rsa_private_key_file [*use_rsa_private_key_file]]]
- [Use an RSA private key from a file. ]
+ [[link boost_asio.reference.ssl__stream.stream [*stream]]]
+ [Construct a stream. ]
   ]
   
   [
- [[link boost_asio.reference.ssl__context.use_tmp_dh_file [*use_tmp_dh_file]]]
- [Use the specified file to obtain the temporary Diffie-Hellman parameters. ]
+ [[link boost_asio.reference.ssl__stream.write_some [*write_some]]]
+ [Write some data to the stream. ]
   ]
   
   [
- [[link boost_asio.reference.ssl__context._context [*~context]]]
+ [[link boost_asio.reference.ssl__stream._stream [*~stream]]]
     [Destructor. ]
   ]
   
 ]
 
-[heading Data Members]
-[table
- [[Name][Description]]
-
- [
- [[link boost_asio.reference.ssl__context.default_workarounds [*default_workarounds]]]
- [Implement various bug workarounds. ]
- ]
-
- [
- [[link boost_asio.reference.ssl__context.no_sslv2 [*no_sslv2]]]
- [Disable SSL v2. ]
- ]
-
- [
- [[link boost_asio.reference.ssl__context.no_sslv3 [*no_sslv3]]]
- [Disable SSL v3. ]
- ]
-
- [
- [[link boost_asio.reference.ssl__context.no_tlsv1 [*no_tlsv1]]]
- [Disable TLS v1. ]
- ]
-
- [
- [[link boost_asio.reference.ssl__context.single_dh_use [*single_dh_use]]]
- [Always create a new key when using tmp_dh parameters. ]
- ]
-
-]
-
-[heading Requirements]
-
-[*Header: ][^boost/asio/ssl/context.hpp]
-
-[*Convenience header: ][^boost/asio/ssl.hpp]
-
-[section:add_verify_path ssl::context::add_verify_path]
-
-[indexterm2 add_verify_path..ssl::context]
-Add a directory containing certificate authority files to be used for performing verification.
-
-
- void ``[link boost_asio.reference.ssl__context.add_verify_path.overload1 add_verify_path]``(
- const std::string & path);
- `` [''''&raquo;''' [link boost_asio.reference.ssl__context.add_verify_path.overload1 more...]]``
-
- boost::system::error_code ``[link boost_asio.reference.ssl__context.add_verify_path.overload2 add_verify_path]``(
- const std::string & path,
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.ssl__context.add_verify_path.overload2 more...]]``
-
-
-[section:overload1 ssl::context::add_verify_path (1 of 2 overloads)]
-
-
-Add a directory containing certificate authority files to be used for performing verification.
-
-
- void add_verify_path(
- const std::string & path);
-
-
-This function is used to specify the name of a directory containing certification authority certificates. Each file in the directory must contain a single certificate. The files must be named using the subject name's hash and an extension of ".0".
-
+The stream class template provides asynchronous and blocking stream-oriented functionality using SSL.
 
-[heading Parameters]
-
 
-[variablelist
+[heading Thread Safety]
   
-[[path][The name of a directory containing the certificates.]]
-
-]
+[*Distinct] [*objects:] Safe.
 
+[*Shared] [*objects:] Unsafe. The application must also ensure that all asynchronous operations are performed within the same implicit or explicit strand.
 
-[heading Exceptions]
-
 
-[variablelist
+[heading Example]
   
-[[boost::system::system_error][Thrown on failure.]]
+To use the SSL stream template with an `ip::tcp::socket`, you would write:
 
-]
+ boost::asio::io_service io_service;
+ boost::asio::ssl::context ctx(boost::asio::ssl::context::sslv23);
+ boost::asio::ssl::stream<asio:ip::tcp::socket> sock(io_service, ctx);
 
 
-[heading Remarks]
-
-Calls `SSL_CTX_load_verify_locations`.
 
 
 
 
-[endsect]
 
+[heading Requirements]
 
+[*Header: ][^boost/asio/ssl/stream.hpp]
 
-[section:overload2 ssl::context::add_verify_path (2 of 2 overloads)]
+[*Convenience header: ][^boost/asio/ssl.hpp]
 
 
-Add a directory containing certificate authority files to be used for performing verification.
+[section:async_handshake ssl::stream::async_handshake]
 
+[indexterm2 async_handshake..ssl::stream]
+Start an asynchronous SSL handshake.
 
- boost::system::error_code add_verify_path(
- const std::string & path,
- boost::system::error_code & ec);
+
+ template<
+ typename ``[link boost_asio.reference.HandshakeHandler HandshakeHandler]``>
+ void async_handshake(
+ handshake_type type,
+ HandshakeHandler handler);
 
 
-This function is used to specify the name of a directory containing certification authority certificates. Each file in the directory must contain a single certificate. The files must be named using the subject name's hash and an extension of ".0".
+This function is used to asynchronously perform an SSL handshake on the stream. This function call always returns immediately.
 
 
 [heading Parameters]
@@ -81088,77 +84961,18 @@
 
 [variablelist
   
-[[path][The name of a directory containing the certificates.]]
-
-[[ec][Set to indicate what error occurred, if any.]]
-
-]
-
-
-[heading Remarks]
-
-Calls `SSL_CTX_load_verify_locations`.
-
-
-
-
-[endsect]
-
-
-[endsect]
-
-[section:context ssl::context::context]
-
-[indexterm2 context..ssl::context]
-Constructor.
-
-
- explicit ``[link boost_asio.reference.ssl__context.context.overload1 context]``(
- method m);
- `` [''''&raquo;''' [link boost_asio.reference.ssl__context.context.overload1 more...]]``
-
-
-Deprecated constructor taking a reference to an [link boost_asio.reference.io_service `io_service`] object.
-
-
- ``[link boost_asio.reference.ssl__context.context.overload2 context]``(
- boost::asio::io_service & ,
- method m);
- `` [''''&raquo;''' [link boost_asio.reference.ssl__context.context.overload2 more...]]``
-
-
-Move-construct a context from another.
-
-
- ``[link boost_asio.reference.ssl__context.context.overload3 context]``(
- context && other);
- `` [''''&raquo;''' [link boost_asio.reference.ssl__context.context.overload3 more...]]``
-
-
-[section:overload1 ssl::context::context (1 of 3 overloads)]
-
-
-Constructor.
-
-
- context(
- method m);
-
-
-
-[endsect]
-
-
-
-[section:overload2 ssl::context::context (2 of 3 overloads)]
-
+[[type][The type of handshaking to be performed, i.e. as a client or as a server.]]
 
-Deprecated constructor taking a reference to an [link boost_asio.reference.io_service `io_service`] object.
+[[handler][The handler to be called when the handshake operation completes. Copies will be made of the handler as required. The equivalent function signature of the handler must be:
+``
+ void handler(
+ const boost::system::error_code& error // Result of operation.
+ );
+``
+]]
 
+]
 
- context(
- boost::asio::io_service & ,
- method m);
 
 
 
@@ -81166,17 +84980,21 @@
 
 
 
-[section:overload3 ssl::context::context (3 of 3 overloads)]
-
+[section:async_read_some ssl::stream::async_read_some]
 
-Move-construct a context from another.
+[indexterm2 async_read_some..ssl::stream]
+Start an asynchronous read.
 
 
- context(
- context && other);
+ template<
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``,
+ typename ``[link boost_asio.reference.ReadHandler ReadHandler]``>
+ void async_read_some(
+ const MutableBufferSequence & buffers,
+ ReadHandler handler);
 
 
-This constructor moves an SSL context from one object to another.
+This function is used to asynchronously read one or more bytes of data from the stream. The function call always returns immediately.
 
 
 [heading Parameters]
@@ -81184,19 +85002,23 @@
 
 [variablelist
   
-[[other][The other context object from which the move will occur.]]
+[[buffers][The buffers into which the data will be read. Although the buffers object may be copied as necessary, ownership of the underlying buffers is retained by the caller, which must guarantee that they remain valid until the handler is called.]]
+
+[[handler][The handler to be called when the read operation completes. Copies will be made of the handler as required. The equivalent function signature of the handler must be:
+``
+ void handler(
+ const boost::system::error_code& error, // Result of operation.
+ std::size_t bytes_transferred // Number of bytes read.
+ );
+``
+]]
 
 ]
 
 
 [heading Remarks]
       
-Following the move, the following operations only are valid for the moved-from object:
-* Destruction.
-
-* As a target for move-assignment.
-
-
+The async\_read\_some operation may not read all of the requested number of bytes. Consider using the [link boost_asio.reference.async_read `async_read`] function if you need to ensure that the requested amount of data is read before the asynchronous operation completes.
 
 
 
@@ -81204,118 +85026,140 @@
 [endsect]
 
 
-[endsect]
 
+[section:async_shutdown ssl::stream::async_shutdown]
 
-[section:default_workarounds ssl::context::default_workarounds]
+[indexterm2 async_shutdown..ssl::stream]
+Asynchronously shut down SSL on the stream.
 
-[indexterm2 default_workarounds..ssl::context]
-Implement various bug workarounds.
 
+ template<
+ typename ``[link boost_asio.reference.ShutdownHandler ShutdownHandler]``>
+ void async_shutdown(
+ ShutdownHandler handler);
 
- static const int default_workarounds = implementation_defined;
 
+This function is used to asynchronously shut down SSL on the stream. This function call always returns immediately.
 
 
-[endsect]
+[heading Parameters]
+
+
+[variablelist
+
+[[handler][The handler to be called when the handshake operation completes. Copies will be made of the handler as required. The equivalent function signature of the handler must be:
+``
+ void handler(
+ const boost::system::error_code& error // Result of operation.
+ );
+``
+]]
 
+]
 
 
-[section:file_format ssl::context::file_format]
 
-[indexterm2 file_format..ssl::context]
-File format types.
 
+[endsect]
 
- enum file_format
 
-[indexterm2 asn1..ssl::context]
-[indexterm2 pem..ssl::context]
 
-[heading Values]
-[variablelist
+[section:async_write_some ssl::stream::async_write_some]
 
- [
- [asn1]
- [ASN.1 file. ]
- ]
+[indexterm2 async_write_some..ssl::stream]
+Start an asynchronous write.
 
- [
- [pem]
- [PEM file. ]
- ]
 
-]
+ template<
+ typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``,
+ typename ``[link boost_asio.reference.WriteHandler WriteHandler]``>
+ void async_write_some(
+ const ConstBufferSequence & buffers,
+ WriteHandler handler);
 
 
+This function is used to asynchronously write one or more bytes of data to the stream. The function call always returns immediately.
 
-[endsect]
 
+[heading Parameters]
+
 
+[variablelist
+
+[[buffers][The data to be written to the stream. Although the buffers object may be copied as necessary, ownership of the underlying buffers is retained by the caller, which must guarantee that they remain valid until the handler is called.]]
 
-[section:impl ssl::context::impl]
+[[handler][The handler to be called when the write operation completes. Copies will be made of the handler as required. The equivalent function signature of the handler must be:
+``
+ void handler(
+ const boost::system::error_code& error, // Result of operation.
+ std::size_t bytes_transferred // Number of bytes written.
+ );
+``
+]]
 
-[indexterm2 impl..ssl::context]
-(Deprecated: Use `native_handle()`.) Get the underlying implementation in the native type.
+]
 
 
- impl_type impl();
+[heading Remarks]
+
+The async\_write\_some operation may not transmit all of the data to the peer. Consider using the [link boost_asio.reference.async_write `async_write`] function if you need to ensure that all data is written before the blocking operation completes.
 
 
-This function may be used to obtain the underlying implementation of the context. This is intended to allow access to context functionality that is not otherwise provided.
 
 
 [endsect]
 
 
 
-[section:impl_type ssl::context::impl_type]
+[section:get_io_service ssl::stream::get_io_service]
 
-[indexterm2 impl_type..ssl::context]
-(Deprecated: Use native\_handle\_type.) The native type of the SSL context.
+[indexterm2 get_io_service..ssl::stream]
+Get the [link boost_asio.reference.io_service `io_service`] associated with the object.
 
 
- typedef SSL_CTX * impl_type;
+ boost::asio::io_service & get_io_service();
 
 
+This function may be used to obtain the [link boost_asio.reference.io_service `io_service`] object that the stream uses to dispatch handlers for asynchronous operations.
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/ssl/context.hpp]
+[heading Return Value]
+
+A reference to the [link boost_asio.reference.io_service `io_service`] object that stream will use to dispatch handlers. Ownership is not transferred to the caller.
+
 
-[*Convenience header: ][^boost/asio/ssl.hpp]
 
 
 [endsect]
 
 
-[section:load_verify_file ssl::context::load_verify_file]
+[section:handshake ssl::stream::handshake]
 
-[indexterm2 load_verify_file..ssl::context]
-Load a certification authority file for performing verification.
+[indexterm2 handshake..ssl::stream]
+Perform SSL handshaking.
 
 
- void ``[link boost_asio.reference.ssl__context.load_verify_file.overload1 load_verify_file]``(
- const std::string & filename);
- `` [''''&raquo;''' [link boost_asio.reference.ssl__context.load_verify_file.overload1 more...]]``
+ void ``[link boost_asio.reference.ssl__stream.handshake.overload1 handshake]``(
+ handshake_type type);
+ `` [''''&raquo;''' [link boost_asio.reference.ssl__stream.handshake.overload1 more...]]``
 
- boost::system::error_code ``[link boost_asio.reference.ssl__context.load_verify_file.overload2 load_verify_file]``(
- const std::string & filename,
+ boost::system::error_code ``[link boost_asio.reference.ssl__stream.handshake.overload2 handshake]``(
+ handshake_type type,
       boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.ssl__context.load_verify_file.overload2 more...]]``
+ `` [''''&raquo;''' [link boost_asio.reference.ssl__stream.handshake.overload2 more...]]``
 
 
-[section:overload1 ssl::context::load_verify_file (1 of 2 overloads)]
+[section:overload1 ssl::stream::handshake (1 of 2 overloads)]
 
 
-Load a certification authority file for performing verification.
+Perform SSL handshaking.
 
 
- void load_verify_file(
- const std::string & filename);
+ void handshake(
+ handshake_type type);
 
 
-This function is used to load one or more trusted certification authorities from a file.
+This function is used to perform SSL handshaking on the stream. The function call will block until handshaking is complete or an error occurs.
 
 
 [heading Parameters]
@@ -81323,7 +85167,7 @@
 
 [variablelist
   
-[[filename][The name of a file containing certification authority certificates in PEM format.]]
+[[type][The type of handshaking to be performed, i.e. as a client or as a server.]]
 
 ]
 
@@ -81333,34 +85177,29 @@
 
 [variablelist
   
-[[boost::system::system_error][Thrown on failure.]]
+[[boost::system::system_error][Thrown on failure. ]]
 
 ]
 
 
-[heading Remarks]
-
-Calls `SSL_CTX_load_verify_locations`.
-
-
 
 
 [endsect]
 
 
 
-[section:overload2 ssl::context::load_verify_file (2 of 2 overloads)]
+[section:overload2 ssl::stream::handshake (2 of 2 overloads)]
 
 
-Load a certification authority file for performing verification.
+Perform SSL handshaking.
 
 
- boost::system::error_code load_verify_file(
- const std::string & filename,
+ boost::system::error_code handshake(
+ handshake_type type,
       boost::system::error_code & ec);
 
 
-This function is used to load the certificates for one or more trusted certification authorities from a file.
+This function is used to perform SSL handshaking on the stream. The function call will block until handshaking is complete or an error occurs.
 
 
 [heading Parameters]
@@ -81368,18 +85207,13 @@
 
 [variablelist
   
-[[filename][The name of a file containing certification authority certificates in PEM format.]]
+[[type][The type of handshaking to be performed, i.e. as a client or as a server.]]
 
-[[ec][Set to indicate what error occurred, if any.]]
+[[ec][Set to indicate what error occurred, if any. ]]
 
 ]
 
 
-[heading Remarks]
-
-Calls `SSL_CTX_load_verify_locations`.
-
-
 
 
 [endsect]
@@ -81388,88 +85222,28 @@
 [endsect]
 
 
-[section:method ssl::context::method]
+[section:handshake_type ssl::stream::handshake_type]
 
-[indexterm2 method..ssl::context]
-Different methods supported by a context.
+[indexterm2 handshake_type..ssl::stream]
+Different handshake types.
 
 
- enum method
+ enum handshake_type
 
-[indexterm2 sslv2..ssl::context]
-[indexterm2 sslv2_client..ssl::context]
-[indexterm2 sslv2_server..ssl::context]
-[indexterm2 sslv3..ssl::context]
-[indexterm2 sslv3_client..ssl::context]
-[indexterm2 sslv3_server..ssl::context]
-[indexterm2 tlsv1..ssl::context]
-[indexterm2 tlsv1_client..ssl::context]
-[indexterm2 tlsv1_server..ssl::context]
-[indexterm2 sslv23..ssl::context]
-[indexterm2 sslv23_client..ssl::context]
-[indexterm2 sslv23_server..ssl::context]
+[indexterm2 client..ssl::stream]
+[indexterm2 server..ssl::stream]
 
 [heading Values]
 [variablelist
 
   [
- [sslv2]
- [Generic SSL version 2. ]
- ]
-
- [
- [sslv2_client]
- [SSL version 2 client. ]
- ]
-
- [
- [sslv2_server]
- [SSL version 2 server. ]
- ]
-
- [
- [sslv3]
- [Generic SSL version 3. ]
- ]
-
- [
- [sslv3_client]
- [SSL version 3 client. ]
- ]
-
- [
- [sslv3_server]
- [SSL version 3 server. ]
- ]
-
- [
- [tlsv1]
- [Generic TLS version 1. ]
- ]
-
- [
- [tlsv1_client]
- [TLS version 1 client. ]
- ]
-
- [
- [tlsv1_server]
- [TLS version 1 server. ]
- ]
-
- [
- [sslv23]
- [Generic SSL/TLS. ]
- ]
-
- [
- [sslv23_client]
- [SSL/TLS client. ]
+ [client]
+ [Perform handshaking as a client. ]
   ]
 
   [
- [sslv23_server]
- [SSL/TLS server. ]
+ [server]
+ [Perform handshaking as a server. ]
   ]
 
 ]
@@ -81480,35 +85254,35 @@
 
 
 
-[section:native_handle ssl::context::native_handle]
+[section:impl ssl::stream::impl]
 
-[indexterm2 native_handle..ssl::context]
-Get the underlying implementation in the native type.
+[indexterm2 impl..ssl::stream]
+(Deprecated: Use `native_handle()`.) Get the underlying implementation in the native type.
 
 
- native_handle_type native_handle();
+ impl_type impl();
 
 
-This function may be used to obtain the underlying implementation of the context. This is intended to allow access to context functionality that is not otherwise provided.
+This function may be used to obtain the underlying implementation of the context. This is intended to allow access to stream functionality that is not otherwise provided.
 
 
 [endsect]
 
 
 
-[section:native_handle_type ssl::context::native_handle_type]
+[section:impl_type ssl::stream::impl_type]
 
-[indexterm2 native_handle_type..ssl::context]
-The native handle type of the SSL context.
+[indexterm2 impl_type..ssl::stream]
+(Deprecated: Use native\_handle\_type.) The underlying implementation type.
 
 
- typedef SSL_CTX * native_handle_type;
+ typedef impl_struct * impl_type;
 
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/ssl/context.hpp]
+[*Header: ][^boost/asio/ssl/stream.hpp]
 
 [*Convenience header: ][^boost/asio/ssl.hpp]
 
@@ -81516,42 +85290,35 @@
 [endsect]
 
 
+[section:lowest_layer ssl::stream::lowest_layer]
 
-[section:no_sslv2 ssl::context::no_sslv2]
-
-[indexterm2 no_sslv2..ssl::context]
-Disable SSL v2.
-
-
- static const int no_sslv2 = implementation_defined;
-
-
-
-[endsect]
-
+[indexterm2 lowest_layer..ssl::stream]
+Get a reference to the lowest layer.
 
 
-[section:no_sslv3 ssl::context::no_sslv3]
+ lowest_layer_type & ``[link boost_asio.reference.ssl__stream.lowest_layer.overload1 lowest_layer]``();
+ `` [''''&raquo;''' [link boost_asio.reference.ssl__stream.lowest_layer.overload1 more...]]``
 
-[indexterm2 no_sslv3..ssl::context]
-Disable SSL v3.
+ const lowest_layer_type & ``[link boost_asio.reference.ssl__stream.lowest_layer.overload2 lowest_layer]``() const;
+ `` [''''&raquo;''' [link boost_asio.reference.ssl__stream.lowest_layer.overload2 more...]]``
 
 
- static const int no_sslv3 = implementation_defined;
+[section:overload1 ssl::stream::lowest_layer (1 of 2 overloads)]
 
 
+Get a reference to the lowest layer.
 
-[endsect]
 
+ lowest_layer_type & lowest_layer();
 
 
-[section:no_tlsv1 ssl::context::no_tlsv1]
+This function returns a reference to the lowest layer in a stack of stream layers.
 
-[indexterm2 no_tlsv1..ssl::context]
-Disable TLS v1.
 
+[heading Return Value]
+
+A reference to the lowest layer in the stack of stream layers. Ownership is not transferred to the caller.
 
- static const int no_tlsv1 = implementation_defined;
 
 
 
@@ -81559,58 +85326,44 @@
 
 
 
-[section:operator_eq_ ssl::context::operator=]
-
-[indexterm2 operator=..ssl::context]
-Move-assign a context from another.
-
-
- context & operator=(
- context && other);
+[section:overload2 ssl::stream::lowest_layer (2 of 2 overloads)]
 
 
-This assignment operator moves an SSL context from one object to another.
+Get a reference to the lowest layer.
 
 
-[heading Parameters]
-
+ const lowest_layer_type & lowest_layer() const;
 
-[variablelist
-
-[[other][The other context object from which the move will occur.]]
 
-]
+This function returns a reference to the lowest layer in a stack of stream layers.
 
 
-[heading Remarks]
+[heading Return Value]
       
-Following the move, the following operations only are valid for the moved-from object:
-* Destruction.
-
-* As a target for move-assignment.
+A reference to the lowest layer in the stack of stream layers. Ownership is not transferred to the caller.
 
 
 
 
+[endsect]
 
 
 [endsect]
 
 
+[section:lowest_layer_type ssl::stream::lowest_layer_type]
 
-[section:options ssl::context::options]
-
-[indexterm2 options..ssl::context]
-Bitmask type for SSL options.
+[indexterm2 lowest_layer_type..ssl::stream]
+The type of the lowest layer.
 
 
- typedef int options;
+ typedef next_layer_type::lowest_layer_type lowest_layer_type;
 
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/ssl/context.hpp]
+[*Header: ][^boost/asio/ssl/stream.hpp]
 
 [*Convenience header: ][^boost/asio/ssl.hpp]
 
@@ -81619,250 +85372,178 @@
 
 
 
-[section:password_purpose ssl::context::password_purpose]
-
-[indexterm2 password_purpose..ssl::context]
-Purpose of PEM password.
-
-
- enum password_purpose
-
-[indexterm2 for_reading..ssl::context]
-[indexterm2 for_writing..ssl::context]
-
-[heading Values]
-[variablelist
-
- [
- [for_reading]
- [The password is needed for reading/decryption. ]
- ]
-
- [
- [for_writing]
- [The password is needed for writing/encryption. ]
- ]
-
-]
-
-
-
-[endsect]
-
-
-[section:set_default_verify_paths ssl::context::set_default_verify_paths]
-
-[indexterm2 set_default_verify_paths..ssl::context]
-Configures the context to use the default directories for finding certification authority certificates.
-
-
- void ``[link boost_asio.reference.ssl__context.set_default_verify_paths.overload1 set_default_verify_paths]``();
- `` [''''&raquo;''' [link boost_asio.reference.ssl__context.set_default_verify_paths.overload1 more...]]``
-
- boost::system::error_code ``[link boost_asio.reference.ssl__context.set_default_verify_paths.overload2 set_default_verify_paths]``(
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.ssl__context.set_default_verify_paths.overload2 more...]]``
-
-
-[section:overload1 ssl::context::set_default_verify_paths (1 of 2 overloads)]
-
-
-Configures the context to use the default directories for finding certification authority certificates.
+[section:native_handle ssl::stream::native_handle]
 
+[indexterm2 native_handle..ssl::stream]
+Get the underlying implementation in the native type.
 
- void set_default_verify_paths();
 
+ native_handle_type native_handle();
 
-This function specifies that the context should use the default, system-dependent directories for locating certification authority certificates.
 
+This function may be used to obtain the underlying implementation of the context. This is intended to allow access to context functionality that is not otherwise provided.
 
-[heading Exceptions]
-
 
-[variablelist
+[heading Example]
   
-[[boost::system::system_error][Thrown on failure.]]
-
-]
-
-
-[heading Remarks]
-
-Calls `SSL_CTX_set_default_verify_paths`.
-
-
+The `native_handle()` function returns a pointer of type `SSL*` that is suitable for passing to functions such as `SSL_get_verify_result` and `SSL_get_peer_certificate:`
 
+ boost::asio::ssl::stream<asio:ip::tcp::socket> sock(io_service, ctx);
 
-[endsect]
+ // ... establish connection and perform handshake ...
 
+ if (X509* cert = SSL_get_peer_certificate(sock.native_handle()))
+ {
+ if (SSL_get_verify_result(sock.native_handle()) == X509_V_OK)
+ {
+ // ...
+ }
+ }
 
 
-[section:overload2 ssl::context::set_default_verify_paths (2 of 2 overloads)]
 
 
-Configures the context to use the default directories for finding certification authority certificates.
 
 
- boost::system::error_code set_default_verify_paths(
- boost::system::error_code & ec);
 
+[endsect]
 
-This function specifies that the context should use the default, system-dependent directories for locating certification authority certificates.
 
 
-[heading Parameters]
-
+[section:native_handle_type ssl::stream::native_handle_type]
 
-[variablelist
-
-[[ec][Set to indicate what error occurred, if any.]]
+[indexterm2 native_handle_type..ssl::stream]
+The native handle type of the SSL stream.
 
-]
 
+ typedef SSL * native_handle_type;
 
-[heading Remarks]
-
-Calls `SSL_CTX_set_default_verify_paths`.
 
 
+[heading Requirements]
 
+[*Header: ][^boost/asio/ssl/stream.hpp]
 
-[endsect]
+[*Convenience header: ][^boost/asio/ssl.hpp]
 
 
 [endsect]
 
-[section:set_options ssl::context::set_options]
-
-[indexterm2 set_options..ssl::context]
-Set options on the context.
 
+[section:next_layer ssl::stream::next_layer]
 
- void ``[link boost_asio.reference.ssl__context.set_options.overload1 set_options]``(
- options o);
- `` [''''&raquo;''' [link boost_asio.reference.ssl__context.set_options.overload1 more...]]``
+[indexterm2 next_layer..ssl::stream]
+Get a reference to the next layer.
 
- boost::system::error_code ``[link boost_asio.reference.ssl__context.set_options.overload2 set_options]``(
- options o,
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.ssl__context.set_options.overload2 more...]]``
 
+ const next_layer_type & ``[link boost_asio.reference.ssl__stream.next_layer.overload1 next_layer]``() const;
+ `` [''''&raquo;''' [link boost_asio.reference.ssl__stream.next_layer.overload1 more...]]``
 
-[section:overload1 ssl::context::set_options (1 of 2 overloads)]
+ next_layer_type & ``[link boost_asio.reference.ssl__stream.next_layer.overload2 next_layer]``();
+ `` [''''&raquo;''' [link boost_asio.reference.ssl__stream.next_layer.overload2 more...]]``
 
 
-Set options on the context.
+[section:overload1 ssl::stream::next_layer (1 of 2 overloads)]
 
 
- void set_options(
- options o);
+Get a reference to the next layer.
 
 
-This function may be used to configure the SSL options used by the context.
+ const next_layer_type & next_layer() const;
 
 
-[heading Parameters]
-
+This function returns a reference to the next layer in a stack of stream layers.
 
-[variablelist
-
-[[o][A bitmask of options. The available option values are defined in the [link boost_asio.reference.ssl__context_base `ssl::context_base`] class. The options are bitwise-ored with any existing value for the options.]]
 
-]
+[heading Return Value]
+
+A reference to the next layer in the stack of stream layers. Ownership is not transferred to the caller.
 
 
-[heading Exceptions]
-
 
-[variablelist
-
-[[boost::system::system_error][Thrown on failure.]]
 
-]
+[endsect]
 
 
-[heading Remarks]
-
-Calls `SSL_CTX_set_options`.
 
+[section:overload2 ssl::stream::next_layer (2 of 2 overloads)]
 
 
+Get a reference to the next layer.
 
-[endsect]
 
+ next_layer_type & next_layer();
 
 
-[section:overload2 ssl::context::set_options (2 of 2 overloads)]
+This function returns a reference to the next layer in a stack of stream layers.
 
 
-Set options on the context.
+[heading Return Value]
+
+A reference to the next layer in the stack of stream layers. Ownership is not transferred to the caller.
 
 
- boost::system::error_code set_options(
- options o,
- boost::system::error_code & ec);
 
 
-This function may be used to configure the SSL options used by the context.
+[endsect]
 
 
-[heading Parameters]
-
+[endsect]
 
-[variablelist
-
-[[o][A bitmask of options. The available option values are defined in the [link boost_asio.reference.ssl__context_base `ssl::context_base`] class. The options are bitwise-ored with any existing value for the options.]]
 
-[[ec][Set to indicate what error occurred, if any.]]
+[section:next_layer_type ssl::stream::next_layer_type]
 
-]
+[indexterm2 next_layer_type..ssl::stream]
+The type of the next layer.
 
 
-[heading Remarks]
-
-Calls `SSL_CTX_set_options`.
+ typedef boost::remove_reference< Stream >::type next_layer_type;
+
 
 
+[heading Requirements]
 
+[*Header: ][^boost/asio/ssl/stream.hpp]
 
-[endsect]
+[*Convenience header: ][^boost/asio/ssl.hpp]
 
 
 [endsect]
 
-[section:set_password_callback ssl::context::set_password_callback]
 
-[indexterm2 set_password_callback..ssl::context]
-Set the password callback.
+[section:read_some ssl::stream::read_some]
+
+[indexterm2 read_some..ssl::stream]
+Read some data from the stream.
 
 
   template<
- typename PasswordCallback>
- void ``[link boost_asio.reference.ssl__context.set_password_callback.overload1 set_password_callback]``(
- PasswordCallback callback);
- `` [''''&raquo;''' [link boost_asio.reference.ssl__context.set_password_callback.overload1 more...]]``
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
+ std::size_t ``[link boost_asio.reference.ssl__stream.read_some.overload1 read_some]``(
+ const MutableBufferSequence & buffers);
+ `` [''''&raquo;''' [link boost_asio.reference.ssl__stream.read_some.overload1 more...]]``
 
   template<
- typename PasswordCallback>
- boost::system::error_code ``[link boost_asio.reference.ssl__context.set_password_callback.overload2 set_password_callback]``(
- PasswordCallback callback,
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
+ std::size_t ``[link boost_asio.reference.ssl__stream.read_some.overload2 read_some]``(
+ const MutableBufferSequence & buffers,
       boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.ssl__context.set_password_callback.overload2 more...]]``
+ `` [''''&raquo;''' [link boost_asio.reference.ssl__stream.read_some.overload2 more...]]``
 
 
-[section:overload1 ssl::context::set_password_callback (1 of 2 overloads)]
+[section:overload1 ssl::stream::read_some (1 of 2 overloads)]
 
 
-Set the password callback.
+Read some data from the stream.
 
 
   template<
- typename PasswordCallback>
- void set_password_callback(
- PasswordCallback callback);
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
+ std::size_t read_some(
+ const MutableBufferSequence & buffers);
 
 
-This function is used to specify a callback function to obtain password information about an encrypted key in PEM format.
+This function is used to read data from the stream. The function call will block until one or more bytes of data has been read successfully, or until an error occurs.
 
 
 [heading Parameters]
@@ -81870,18 +85551,16 @@
 
 [variablelist
   
-[[callback][The function object to be used for obtaining the password. The function signature of the handler must be:
-``
- std::string password_callback(
- std::size_t max_length, // The maximum size for a password.
- password_purpose purpose // Whether password is for reading or writing.
- );
-``
-The return value of the callback is a string containing the password.]]
+[[buffers][The buffers into which the data will be read.]]
 
 ]
 
 
+[heading Return Value]
+
+The number of bytes read.
+
+
 [heading Exceptions]
     
 
@@ -81894,7 +85573,7 @@
 
 [heading Remarks]
       
-Calls `SSL_CTX_set_default_passwd_cb`.
+The read\_some operation may not read all of the requested number of bytes. Consider using the [link boost_asio.reference.read `read`] function if you need to ensure that the requested amount of data is read before the blocking operation completes.
 
 
 
@@ -81903,20 +85582,20 @@
 
 
 
-[section:overload2 ssl::context::set_password_callback (2 of 2 overloads)]
+[section:overload2 ssl::stream::read_some (2 of 2 overloads)]
 
 
-Set the password callback.
+Read some data from the stream.
 
 
   template<
- typename PasswordCallback>
- boost::system::error_code set_password_callback(
- PasswordCallback callback,
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
+ std::size_t read_some(
+ const MutableBufferSequence & buffers,
       boost::system::error_code & ec);
 
 
-This function is used to specify a callback function to obtain password information about an encrypted key in PEM format.
+This function is used to read data from the stream. The function call will block until one or more bytes of data has been read successfully, or until an error occurs.
 
 
 [heading Parameters]
@@ -81924,23 +85603,21 @@
 
 [variablelist
   
-[[callback][The function object to be used for obtaining the password. The function signature of the handler must be:
-``
- std::string password_callback(
- std::size_t max_length, // The maximum size for a password.
- password_purpose purpose // Whether password is for reading or writing.
- );
-``
-The return value of the callback is a string containing the password.]]
+[[buffers][The buffers into which the data will be read.]]
 
 [[ec][Set to indicate what error occurred, if any.]]
 
 ]
 
 
+[heading Return Value]
+
+The number of bytes read. Returns 0 if an error occurred.
+
+
 [heading Remarks]
       
-Calls `SSL_CTX_set_default_passwd_cb`.
+The read\_some operation may not read all of the requested number of bytes. Consider using the [link boost_asio.reference.read `read`] function if you need to ensure that the requested amount of data is read before the blocking operation completes.
 
 
 
@@ -81950,27 +85627,27 @@
 
 [endsect]
 
-[section:set_verify_callback ssl::context::set_verify_callback]
+[section:set_verify_callback ssl::stream::set_verify_callback]
 
-[indexterm2 set_verify_callback..ssl::context]
+[indexterm2 set_verify_callback..ssl::stream]
 Set the callback used to verify peer certificates.
 
 
   template<
       typename VerifyCallback>
- void ``[link boost_asio.reference.ssl__context.set_verify_callback.overload1 set_verify_callback]``(
+ void ``[link boost_asio.reference.ssl__stream.set_verify_callback.overload1 set_verify_callback]``(
       VerifyCallback callback);
- `` [''''&raquo;''' [link boost_asio.reference.ssl__context.set_verify_callback.overload1 more...]]``
+ `` [''''&raquo;''' [link boost_asio.reference.ssl__stream.set_verify_callback.overload1 more...]]``
 
   template<
       typename VerifyCallback>
- boost::system::error_code ``[link boost_asio.reference.ssl__context.set_verify_callback.overload2 set_verify_callback]``(
+ boost::system::error_code ``[link boost_asio.reference.ssl__stream.set_verify_callback.overload2 set_verify_callback]``(
       VerifyCallback callback,
       boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.ssl__context.set_verify_callback.overload2 more...]]``
+ `` [''''&raquo;''' [link boost_asio.reference.ssl__stream.set_verify_callback.overload2 more...]]``
 
 
-[section:overload1 ssl::context::set_verify_callback (1 of 2 overloads)]
+[section:overload1 ssl::stream::set_verify_callback (1 of 2 overloads)]
 
 
 Set the callback used to verify peer certificates.
@@ -82014,7 +85691,7 @@
 
 [heading Remarks]
       
-Calls `SSL_CTX_set_verify`.
+Calls `SSL_set_verify`.
 
 
 
@@ -82023,7 +85700,7 @@
 
 
 
-[section:overload2 ssl::context::set_verify_callback (2 of 2 overloads)]
+[section:overload2 ssl::stream::set_verify_callback (2 of 2 overloads)]
 
 
 Set the callback used to verify peer certificates.
@@ -82060,7 +85737,7 @@
 
 [heading Remarks]
       
-Calls `SSL_CTX_set_verify`.
+Calls `SSL_set_verify`.
 
 
 
@@ -82070,23 +85747,23 @@
 
 [endsect]
 
-[section:set_verify_mode ssl::context::set_verify_mode]
+[section:set_verify_mode ssl::stream::set_verify_mode]
 
-[indexterm2 set_verify_mode..ssl::context]
+[indexterm2 set_verify_mode..ssl::stream]
 Set the peer verification mode.
 
 
- void ``[link boost_asio.reference.ssl__context.set_verify_mode.overload1 set_verify_mode]``(
+ void ``[link boost_asio.reference.ssl__stream.set_verify_mode.overload1 set_verify_mode]``(
       verify_mode v);
- `` [''''&raquo;''' [link boost_asio.reference.ssl__context.set_verify_mode.overload1 more...]]``
+ `` [''''&raquo;''' [link boost_asio.reference.ssl__stream.set_verify_mode.overload1 more...]]``
 
- boost::system::error_code ``[link boost_asio.reference.ssl__context.set_verify_mode.overload2 set_verify_mode]``(
+ boost::system::error_code ``[link boost_asio.reference.ssl__stream.set_verify_mode.overload2 set_verify_mode]``(
       verify_mode v,
       boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.ssl__context.set_verify_mode.overload2 more...]]``
+ `` [''''&raquo;''' [link boost_asio.reference.ssl__stream.set_verify_mode.overload2 more...]]``
 
 
-[section:overload1 ssl::context::set_verify_mode (1 of 2 overloads)]
+[section:overload1 ssl::stream::set_verify_mode (1 of 2 overloads)]
 
 
 Set the peer verification mode.
@@ -82096,7 +85773,7 @@
       verify_mode v);
 
 
-This function may be used to configure the peer verification mode used by the context.
+This function may be used to configure the peer verification mode used by the stream. The new mode will override the mode inherited from the context.
 
 
 [heading Parameters]
@@ -82121,7 +85798,7 @@
 
 [heading Remarks]
       
-Calls `SSL_CTX_set_verify`.
+Calls `SSL_set_verify`.
 
 
 
@@ -82130,7 +85807,7 @@
 
 
 
-[section:overload2 ssl::context::set_verify_mode (2 of 2 overloads)]
+[section:overload2 ssl::stream::set_verify_mode (2 of 2 overloads)]
 
 
 Set the peer verification mode.
@@ -82141,7 +85818,7 @@
       boost::system::error_code & ec);
 
 
-This function may be used to configure the peer verification mode used by the context.
+This function may be used to configure the peer verification mode used by the stream. The new mode will override the mode inherited from the context.
 
 
 [heading Parameters]
@@ -82158,7 +85835,7 @@
 
 [heading Remarks]
       
-Calls `SSL_CTX_set_verify`.
+Calls `SSL_set_verify`.
 
 
 
@@ -82168,92 +85845,93 @@
 
 [endsect]
 
+[section:shutdown ssl::stream::shutdown]
 
-[section:single_dh_use ssl::context::single_dh_use]
+[indexterm2 shutdown..ssl::stream]
+Shut down SSL on the stream.
 
-[indexterm2 single_dh_use..ssl::context]
-Always create a new key when using tmp\_dh parameters.
 
+ void ``[link boost_asio.reference.ssl__stream.shutdown.overload1 shutdown]``();
+ `` [''''&raquo;''' [link boost_asio.reference.ssl__stream.shutdown.overload1 more...]]``
+
+ boost::system::error_code ``[link boost_asio.reference.ssl__stream.shutdown.overload2 shutdown]``(
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.ssl__stream.shutdown.overload2 more...]]``
 
- static const int single_dh_use = implementation_defined;
 
+[section:overload1 ssl::stream::shutdown (1 of 2 overloads)]
 
 
-[endsect]
+Shut down SSL on the stream.
 
 
-[section:use_certificate_chain_file ssl::context::use_certificate_chain_file]
+ void shutdown();
 
-[indexterm2 use_certificate_chain_file..ssl::context]
-Use a certificate chain from a file.
 
+This function is used to shut down SSL on the stream. The function call will block until SSL has been shut down or an error occurs.
 
- void ``[link boost_asio.reference.ssl__context.use_certificate_chain_file.overload1 use_certificate_chain_file]``(
- const std::string & filename);
- `` [''''&raquo;''' [link boost_asio.reference.ssl__context.use_certificate_chain_file.overload1 more...]]``
 
- boost::system::error_code ``[link boost_asio.reference.ssl__context.use_certificate_chain_file.overload2 use_certificate_chain_file]``(
- const std::string & filename,
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.ssl__context.use_certificate_chain_file.overload2 more...]]``
+[heading Exceptions]
+
 
+[variablelist
+
+[[boost::system::system_error][Thrown on failure. ]]
 
-[section:overload1 ssl::context::use_certificate_chain_file (1 of 2 overloads)]
+]
 
 
-Use a certificate chain from a file.
 
 
- void use_certificate_chain_file(
- const std::string & filename);
+[endsect]
 
 
-This function is used to load a certificate chain into the context from a file.
 
+[section:overload2 ssl::stream::shutdown (2 of 2 overloads)]
 
-[heading Parameters]
-
 
-[variablelist
-
-[[filename][The name of the file containing the certificate. The file must use the PEM format.]]
+Shut down SSL on the stream.
 
-]
+
+ boost::system::error_code shutdown(
+ boost::system::error_code & ec);
 
 
-[heading Exceptions]
+This function is used to shut down SSL on the stream. The function call will block until SSL has been shut down or an error occurs.
+
+
+[heading Parameters]
     
 
 [variablelist
   
-[[boost::system::system_error][Thrown on failure.]]
+[[ec][Set to indicate what error occurred, if any. ]]
 
 ]
 
 
-[heading Remarks]
-
-Calls `SSL_CTX_use_certificate_chain_file`.
-
-
 
 
 [endsect]
 
 
+[endsect]
 
-[section:overload2 ssl::context::use_certificate_chain_file (2 of 2 overloads)]
 
+[section:stream ssl::stream::stream]
 
-Use a certificate chain from a file.
+[indexterm2 stream..ssl::stream]
+Construct a stream.
 
 
- boost::system::error_code use_certificate_chain_file(
- const std::string & filename,
- boost::system::error_code & ec);
+ template<
+ typename Arg>
+ stream(
+ Arg & arg,
+ context & ctx);
 
 
-This function is used to load a certificate chain into the context from a file.
+This constructor creates a stream and initialises the underlying stream object.
 
 
 [heading Parameters]
@@ -82261,55 +85939,51 @@
 
 [variablelist
   
-[[filename][The name of the file containing the certificate. The file must use the PEM format.]]
+[[arg][The argument to be passed to initialise the underlying stream.]]
 
-[[ec][Set to indicate what error occurred, if any.]]
+[[ctx][The SSL context to be used for the stream. ]]
 
 ]
 
 
-[heading Remarks]
-
-Calls `SSL_CTX_use_certificate_chain_file`.
-
-
 
 
 [endsect]
 
 
-[endsect]
-
-[section:use_certificate_file ssl::context::use_certificate_file]
+[section:write_some ssl::stream::write_some]
 
-[indexterm2 use_certificate_file..ssl::context]
-Use a certificate from a file.
+[indexterm2 write_some..ssl::stream]
+Write some data to the stream.
 
 
- void ``[link boost_asio.reference.ssl__context.use_certificate_file.overload1 use_certificate_file]``(
- const std::string & filename,
- file_format format);
- `` [''''&raquo;''' [link boost_asio.reference.ssl__context.use_certificate_file.overload1 more...]]``
+ template<
+ typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
+ std::size_t ``[link boost_asio.reference.ssl__stream.write_some.overload1 write_some]``(
+ const ConstBufferSequence & buffers);
+ `` [''''&raquo;''' [link boost_asio.reference.ssl__stream.write_some.overload1 more...]]``
 
- boost::system::error_code ``[link boost_asio.reference.ssl__context.use_certificate_file.overload2 use_certificate_file]``(
- const std::string & filename,
- file_format format,
+ template<
+ typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
+ std::size_t ``[link boost_asio.reference.ssl__stream.write_some.overload2 write_some]``(
+ const ConstBufferSequence & buffers,
       boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.ssl__context.use_certificate_file.overload2 more...]]``
+ `` [''''&raquo;''' [link boost_asio.reference.ssl__stream.write_some.overload2 more...]]``
 
 
-[section:overload1 ssl::context::use_certificate_file (1 of 2 overloads)]
+[section:overload1 ssl::stream::write_some (1 of 2 overloads)]
 
 
-Use a certificate from a file.
+Write some data to the stream.
 
 
- void use_certificate_file(
- const std::string & filename,
- file_format format);
+ template<
+ typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
+ std::size_t write_some(
+ const ConstBufferSequence & buffers);
 
 
-This function is used to load a certificate into the context from a file.
+This function is used to write data on the stream. The function call will block until one or more bytes of data has been written successfully, or until an error occurs.
 
 
 [heading Parameters]
@@ -82317,13 +85991,16 @@
 
 [variablelist
   
-[[filename][The name of the file containing the certificate.]]
-
-[[format][The file format (ASN.1 or PEM).]]
+[[buffers][The data to be written.]]
 
 ]
 
 
+[heading Return Value]
+
+The number of bytes written.
+
+
 [heading Exceptions]
     
 
@@ -82336,7 +86013,7 @@
 
 [heading Remarks]
       
-Calls `SSL_CTX_use_certificate_file`.
+The write\_some operation may not transmit all of the data to the peer. Consider using the [link boost_asio.reference.write `write`] function if you need to ensure that all data is written before the blocking operation completes.
 
 
 
@@ -82345,19 +86022,20 @@
 
 
 
-[section:overload2 ssl::context::use_certificate_file (2 of 2 overloads)]
+[section:overload2 ssl::stream::write_some (2 of 2 overloads)]
 
 
-Use a certificate from a file.
+Write some data to the stream.
 
 
- boost::system::error_code use_certificate_file(
- const std::string & filename,
- file_format format,
+ template<
+ typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
+ std::size_t write_some(
+ const ConstBufferSequence & buffers,
       boost::system::error_code & ec);
 
 
-This function is used to load a certificate into the context from a file.
+This function is used to write data on the stream. The function call will block until one or more bytes of data has been written successfully, or until an error occurs.
 
 
 [heading Parameters]
@@ -82365,85 +86043,38 @@
 
 [variablelist
   
-[[filename][The name of the file containing the certificate.]]
-
-[[format][The file format (ASN.1 or PEM).]]
+[[buffers][The data to be written to the stream.]]
 
 [[ec][Set to indicate what error occurred, if any.]]
 
 ]
 
 
-[heading Remarks]
+[heading Return Value]
       
-Calls `SSL_CTX_use_certificate_file`.
+The number of bytes written. Returns 0 if an error occurred.
 
 
+[heading Remarks]
+
+The write\_some operation may not transmit all of the data to the peer. Consider using the [link boost_asio.reference.write `write`] function if you need to ensure that all data is written before the blocking operation completes.
 
 
-[endsect]
 
 
 [endsect]
 
-[section:use_private_key_file ssl::context::use_private_key_file]
-
-[indexterm2 use_private_key_file..ssl::context]
-Use a private key from a file.
-
-
- void ``[link boost_asio.reference.ssl__context.use_private_key_file.overload1 use_private_key_file]``(
- const std::string & filename,
- file_format format);
- `` [''''&raquo;''' [link boost_asio.reference.ssl__context.use_private_key_file.overload1 more...]]``
-
- boost::system::error_code ``[link boost_asio.reference.ssl__context.use_private_key_file.overload2 use_private_key_file]``(
- const std::string & filename,
- file_format format,
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.ssl__context.use_private_key_file.overload2 more...]]``
-
-
-[section:overload1 ssl::context::use_private_key_file (1 of 2 overloads)]
-
-
-Use a private key from a file.
-
-
- void use_private_key_file(
- const std::string & filename,
- file_format format);
-
-
-This function is used to load a private key into the context from a file.
-
-
-[heading Parameters]
-
-
-[variablelist
-
-[[filename][The name of the file containing the private key.]]
-
-[[format][The file format (ASN.1 or PEM).]]
-
-]
-
 
-[heading Exceptions]
-
+[endsect]
 
-[variablelist
-
-[[boost::system::system_error][Thrown on failure.]]
 
-]
+[section:_stream ssl::stream::~stream]
 
+[indexterm2 ~stream..ssl::stream]
+Destructor.
 
-[heading Remarks]
-
-Calls `SSL_CTX_use_PrivateKey_file`.
 
+ ~stream();
 
 
 
@@ -82451,259 +86082,255 @@
 
 
 
-[section:overload2 ssl::context::use_private_key_file (2 of 2 overloads)]
-
-
-Use a private key from a file.
-
+[endsect]
 
- boost::system::error_code use_private_key_file(
- const std::string & filename,
- file_format format,
- boost::system::error_code & ec);
+[section:ssl__stream__impl_struct ssl::stream::impl_struct]
 
 
-This function is used to load a private key into the context from a file.
+Structure for use with deprecated impl\_type.
 
 
-[heading Parameters]
-
+ struct impl_struct
 
-[variablelist
-
-[[filename][The name of the file containing the private key.]]
 
-[[format][The file format (ASN.1 or PEM).]]
+[heading Data Members]
+[table
+ [[Name][Description]]
 
-[[ec][Set to indicate what error occurred, if any.]]
+ [
+ [[link boost_asio.reference.ssl__stream__impl_struct.ssl [*ssl]]]
+ []
+ ]
 
 ]
 
+[heading Requirements]
 
-[heading Remarks]
-
-Calls `SSL_CTX_use_PrivateKey_file`.
-
-
+[*Header: ][^boost/asio/ssl/stream.hpp]
 
+[*Convenience header: ][^boost/asio/ssl.hpp]
 
-[endsect]
 
+[section:ssl ssl::stream::impl_struct::ssl]
 
-[endsect]
+[indexterm2 ssl..ssl::stream::impl_struct]
 
-[section:use_rsa_private_key_file ssl::context::use_rsa_private_key_file]
+ SSL * ssl;
 
-[indexterm2 use_rsa_private_key_file..ssl::context]
-Use an RSA private key from a file.
 
 
- void ``[link boost_asio.reference.ssl__context.use_rsa_private_key_file.overload1 use_rsa_private_key_file]``(
- const std::string & filename,
- file_format format);
- `` [''''&raquo;''' [link boost_asio.reference.ssl__context.use_rsa_private_key_file.overload1 more...]]``
+[endsect]
 
- boost::system::error_code ``[link boost_asio.reference.ssl__context.use_rsa_private_key_file.overload2 use_rsa_private_key_file]``(
- const std::string & filename,
- file_format format,
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.ssl__context.use_rsa_private_key_file.overload2 more...]]``
 
 
-[section:overload1 ssl::context::use_rsa_private_key_file (1 of 2 overloads)]
+[endsect]
 
+[section:ssl__stream_base ssl::stream_base]
 
-Use an RSA private key from a file.
 
+The [link boost_asio.reference.ssl__stream_base `ssl::stream_base`] class is used as a base for the [link boost_asio.reference.ssl__stream `ssl::stream`] class template so that we have a common place to define various enums.
 
- void use_rsa_private_key_file(
- const std::string & filename,
- file_format format);
 
+ class stream_base
 
-This function is used to load an RSA private key into the context from a file.
 
+[heading Types]
+[table
+ [[Name][Description]]
 
-[heading Parameters]
-
+ [
 
-[variablelist
+ [[link boost_asio.reference.ssl__stream_base.handshake_type [*handshake_type]]]
+ [Different handshake types. ]
   
-[[filename][The name of the file containing the RSA private key.]]
-
-[[format][The file format (ASN.1 or PEM).]]
+ ]
 
 ]
 
+[heading Protected Member Functions]
+[table
+ [[Name][Description]]
 
-[heading Exceptions]
-
-
-[variablelist
+ [
+ [[link boost_asio.reference.ssl__stream_base._stream_base [*~stream_base]]]
+ [Protected destructor to prevent deletion through this type. ]
+ ]
   
-[[boost::system::system_error][Thrown on failure.]]
-
 ]
 
+[heading Requirements]
 
-[heading Remarks]
-
-Calls `SSL_CTX_use_RSAPrivateKey_file`.
+[*Header: ][^boost/asio/ssl/stream_base.hpp]
+
+[*Convenience header: ][^boost/asio/ssl.hpp]
 
 
+[section:handshake_type ssl::stream_base::handshake_type]
 
+[indexterm2 handshake_type..ssl::stream_base]
+Different handshake types.
 
-[endsect]
 
+ enum handshake_type
 
+[indexterm2 client..ssl::stream_base]
+[indexterm2 server..ssl::stream_base]
 
-[section:overload2 ssl::context::use_rsa_private_key_file (2 of 2 overloads)]
+[heading Values]
+[variablelist
 
+ [
+ [client]
+ [Perform handshaking as a client. ]
+ ]
 
-Use an RSA private key from a file.
+ [
+ [server]
+ [Perform handshaking as a server. ]
+ ]
 
+]
 
- boost::system::error_code use_rsa_private_key_file(
- const std::string & filename,
- file_format format,
- boost::system::error_code & ec);
 
 
-This function is used to load an RSA private key into the context from a file.
+[endsect]
 
 
-[heading Parameters]
-
 
-[variablelist
-
-[[filename][The name of the file containing the RSA private key.]]
+[section:_stream_base ssl::stream_base::~stream_base]
 
-[[format][The file format (ASN.1 or PEM).]]
+[indexterm2 ~stream_base..ssl::stream_base]
+Protected destructor to prevent deletion through this type.
 
-[[ec][Set to indicate what error occurred, if any.]]
 
-]
+ ~stream_base();
 
 
-[heading Remarks]
-
-Calls `SSL_CTX_use_RSAPrivateKey_file`.
 
+[endsect]
 
 
 
 [endsect]
 
 
-[endsect]
+[section:ssl__verify_client_once ssl::verify_client_once]
 
-[section:use_tmp_dh_file ssl::context::use_tmp_dh_file]
+[indexterm1 ssl::verify_client_once]
+Do not request client certificate on renegotiation. Ignored unless [link boost_asio.reference.ssl__verify_peer `ssl::verify_peer`] is set.
 
-[indexterm2 use_tmp_dh_file..ssl::context]
-Use the specified file to obtain the temporary Diffie-Hellman parameters.
 
+ const int verify_client_once = implementation_defined;
 
- void ``[link boost_asio.reference.ssl__context.use_tmp_dh_file.overload1 use_tmp_dh_file]``(
- const std::string & filename);
- `` [''''&raquo;''' [link boost_asio.reference.ssl__context.use_tmp_dh_file.overload1 more...]]``
 
- boost::system::error_code ``[link boost_asio.reference.ssl__context.use_tmp_dh_file.overload2 use_tmp_dh_file]``(
- const std::string & filename,
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.ssl__context.use_tmp_dh_file.overload2 more...]]``
+[heading Requirements]
 
+[*Header: ][^boost/asio/ssl/verify_mode.hpp]
 
-[section:overload1 ssl::context::use_tmp_dh_file (1 of 2 overloads)]
+[*Convenience header: ][^boost/asio/ssl.hpp]
 
 
-Use the specified file to obtain the temporary Diffie-Hellman parameters.
+[endsect]
 
 
- void use_tmp_dh_file(
- const std::string & filename);
+[section:ssl__verify_context ssl::verify_context]
 
 
-This function is used to load Diffie-Hellman parameters into the context from a file.
+A simple wrapper around the X509\_STORE\_CTX type, used during verification of a peer certificate.
 
 
-[heading Parameters]
-
+ class verify_context :
+ noncopyable
 
-[variablelist
+
+[heading Types]
+[table
+ [[Name][Description]]
+
+ [
+
+ [[link boost_asio.reference.ssl__verify_context.native_handle_type [*native_handle_type]]]
+ [The native handle type of the verification context. ]
   
-[[filename][The name of the file containing the Diffie-Hellman parameters. The file must use the PEM format.]]
+ ]
 
 ]
 
+[heading Member Functions]
+[table
+ [[Name][Description]]
 
-[heading Exceptions]
-
-
-[variablelist
+ [
+ [[link boost_asio.reference.ssl__verify_context.native_handle [*native_handle]]]
+ [Get the underlying implementation in the native type. ]
+ ]
+
+ [
+ [[link boost_asio.reference.ssl__verify_context.verify_context [*verify_context]]]
+ [Constructor. ]
+ ]
   
-[[boost::system::system_error][Thrown on failure.]]
-
 ]
 
 
 [heading Remarks]
       
-Calls `SSL_CTX_set_tmp_dh`.
+The [link boost_asio.reference.ssl__verify_context `ssl::verify_context`] does not own the underlying X509\_STORE\_CTX object.
 
 
 
+[heading Requirements]
 
-[endsect]
+[*Header: ][^boost/asio/ssl/verify_context.hpp]
 
+[*Convenience header: ][^boost/asio/ssl.hpp]
 
 
-[section:overload2 ssl::context::use_tmp_dh_file (2 of 2 overloads)]
+[section:native_handle ssl::verify_context::native_handle]
 
+[indexterm2 native_handle..ssl::verify_context]
+Get the underlying implementation in the native type.
 
-Use the specified file to obtain the temporary Diffie-Hellman parameters.
 
+ native_handle_type native_handle();
 
- boost::system::error_code use_tmp_dh_file(
- const std::string & filename,
- boost::system::error_code & ec);
 
+This function may be used to obtain the underlying implementation of the context. This is intended to allow access to context functionality that is not otherwise provided.
 
-This function is used to load Diffie-Hellman parameters into the context from a file.
 
+[endsect]
 
-[heading Parameters]
-
 
-[variablelist
-
-[[filename][The name of the file containing the Diffie-Hellman parameters. The file must use the PEM format.]]
 
-[[ec][Set to indicate what error occurred, if any.]]
+[section:native_handle_type ssl::verify_context::native_handle_type]
 
-]
+[indexterm2 native_handle_type..ssl::verify_context]
+The native handle type of the verification context.
 
 
-[heading Remarks]
-
-Calls `SSL_CTX_set_tmp_dh`.
+ typedef X509_STORE_CTX * native_handle_type;
 
 
 
+[heading Requirements]
 
-[endsect]
+[*Header: ][^boost/asio/ssl/verify_context.hpp]
+
+[*Convenience header: ][^boost/asio/ssl.hpp]
 
 
 [endsect]
 
 
-[section:_context ssl::context::~context]
 
-[indexterm2 ~context..ssl::context]
-Destructor.
+[section:verify_context ssl::verify_context::verify_context]
+
+[indexterm2 verify_context..ssl::verify_context]
+Constructor.
 
 
- ~context();
+ verify_context(
+ native_handle_type handle);
 
 
 
@@ -82713,504 +86340,484 @@
 
 [endsect]
 
-[section:ssl__context_base ssl::context_base]
 
+[section:ssl__verify_fail_if_no_peer_cert ssl::verify_fail_if_no_peer_cert]
 
-The [link boost_asio.reference.ssl__context_base `ssl::context_base`] class is used as a base for the basic\_context class template so that we have a common place to define various enums.
+[indexterm1 ssl::verify_fail_if_no_peer_cert]
+Fail verification if the peer has no certificate. Ignored unless [link boost_asio.reference.ssl__verify_peer `ssl::verify_peer`] is set.
 
 
- class context_base
+ const int verify_fail_if_no_peer_cert = implementation_defined;
 
 
-[heading Types]
-[table
- [[Name][Description]]
+[heading Requirements]
 
- [
+[*Header: ][^boost/asio/ssl/verify_mode.hpp]
 
- [[link boost_asio.reference.ssl__context_base.file_format [*file_format]]]
- [File format types. ]
-
- ]
+[*Convenience header: ][^boost/asio/ssl.hpp]
 
- [
 
- [[link boost_asio.reference.ssl__context_base.method [*method]]]
- [Different methods supported by a context. ]
-
- ]
+[endsect]
 
- [
 
- [[link boost_asio.reference.ssl__context_base.options [*options]]]
- [Bitmask type for SSL options. ]
-
- ]
 
- [
+[section:ssl__verify_mode ssl::verify_mode]
 
- [[link boost_asio.reference.ssl__context_base.password_purpose [*password_purpose]]]
- [Purpose of PEM password. ]
-
- ]
+[indexterm1 ssl::verify_mode]
+Bitmask type for peer verification.
 
-]
 
-[heading Protected Member Functions]
-[table
- [[Name][Description]]
+ typedef int verify_mode;
 
- [
- [[link boost_asio.reference.ssl__context_base._context_base [*~context_base]]]
- [Protected destructor to prevent deletion through this type. ]
- ]
-
-]
 
-[heading Data Members]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.ssl__context_base.default_workarounds [*default_workarounds]]]
- [Implement various bug workarounds. ]
- ]
+Possible values are:
 
- [
- [[link boost_asio.reference.ssl__context_base.no_sslv2 [*no_sslv2]]]
- [Disable SSL v2. ]
- ]
 
- [
- [[link boost_asio.reference.ssl__context_base.no_sslv3 [*no_sslv3]]]
- [Disable SSL v3. ]
- ]
+* [link boost_asio.reference.ssl__verify_none `ssl::verify_none`]
 
- [
- [[link boost_asio.reference.ssl__context_base.no_tlsv1 [*no_tlsv1]]]
- [Disable TLS v1. ]
- ]
+* [link boost_asio.reference.ssl__verify_peer `ssl::verify_peer`]
+
+* [link boost_asio.reference.ssl__verify_fail_if_no_peer_cert `ssl::verify_fail_if_no_peer_cert`]
+
+* [link boost_asio.reference.ssl__verify_client_once `ssl::verify_client_once`]
 
- [
- [[link boost_asio.reference.ssl__context_base.single_dh_use [*single_dh_use]]]
- [Always create a new key when using tmp_dh parameters. ]
- ]
 
-]
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/ssl/context_base.hpp]
+[*Header: ][^boost/asio/ssl/verify_mode.hpp]
 
 [*Convenience header: ][^boost/asio/ssl.hpp]
 
 
-[section:default_workarounds ssl::context_base::default_workarounds]
+[endsect]
 
-[indexterm2 default_workarounds..ssl::context_base]
-Implement various bug workarounds.
 
 
- static const int default_workarounds = implementation_defined;
+[section:ssl__verify_none ssl::verify_none]
 
+[indexterm1 ssl::verify_none]
+No verification.
 
 
-[endsect]
+ const int verify_none = implementation_defined;
 
 
+[heading Requirements]
 
-[section:file_format ssl::context_base::file_format]
+[*Header: ][^boost/asio/ssl/verify_mode.hpp]
 
-[indexterm2 file_format..ssl::context_base]
-File format types.
+[*Convenience header: ][^boost/asio/ssl.hpp]
 
 
- enum file_format
+[endsect]
 
-[indexterm2 asn1..ssl::context_base]
-[indexterm2 pem..ssl::context_base]
 
-[heading Values]
-[variablelist
 
- [
- [asn1]
- [ASN.1 file. ]
- ]
+[section:ssl__verify_peer ssl::verify_peer]
 
- [
- [pem]
- [PEM file. ]
- ]
+[indexterm1 ssl::verify_peer]
+Verify the peer.
 
-]
 
+ const int verify_peer = implementation_defined;
+
+
+[heading Requirements]
+
+[*Header: ][^boost/asio/ssl/verify_mode.hpp]
+
+[*Convenience header: ][^boost/asio/ssl.hpp]
 
 
 [endsect]
 
 
 
-[section:method ssl::context_base::method]
+[section:steady_timer steady_timer]
 
-[indexterm2 method..ssl::context_base]
-Different methods supported by a context.
+[indexterm1 steady_timer]
+Typedef for a timer based on the steady clock.
 
 
- enum method
+ typedef basic_waitable_timer< chrono::steady_clock > steady_timer;
 
-[indexterm2 sslv2..ssl::context_base]
-[indexterm2 sslv2_client..ssl::context_base]
-[indexterm2 sslv2_server..ssl::context_base]
-[indexterm2 sslv3..ssl::context_base]
-[indexterm2 sslv3_client..ssl::context_base]
-[indexterm2 sslv3_server..ssl::context_base]
-[indexterm2 tlsv1..ssl::context_base]
-[indexterm2 tlsv1_client..ssl::context_base]
-[indexterm2 tlsv1_server..ssl::context_base]
-[indexterm2 sslv23..ssl::context_base]
-[indexterm2 sslv23_client..ssl::context_base]
-[indexterm2 sslv23_server..ssl::context_base]
 
-[heading Values]
-[variablelist
+[heading Types]
+[table
+ [[Name][Description]]
 
   [
- [sslv2]
- [Generic SSL version 2. ]
+
+ [[link boost_asio.reference.basic_waitable_timer.clock_type [*clock_type]]]
+ [The clock type. ]
+
   ]
 
   [
- [sslv2_client]
- [SSL version 2 client. ]
+
+ [[link boost_asio.reference.basic_waitable_timer.duration [*duration]]]
+ [The duration type of the clock. ]
+
   ]
 
   [
- [sslv2_server]
- [SSL version 2 server. ]
+
+ [[link boost_asio.reference.basic_waitable_timer.implementation_type [*implementation_type]]]
+ [The underlying implementation type of I/O object. ]
+
   ]
 
   [
- [sslv3]
- [Generic SSL version 3. ]
+
+ [[link boost_asio.reference.basic_waitable_timer.service_type [*service_type]]]
+ [The type of the service that will be used to provide I/O operations. ]
+
   ]
 
   [
- [sslv3_client]
- [SSL version 3 client. ]
+
+ [[link boost_asio.reference.basic_waitable_timer.time_point [*time_point]]]
+ [The time point type of the clock. ]
+
   ]
 
   [
- [sslv3_server]
- [SSL version 3 server. ]
+
+ [[link boost_asio.reference.basic_waitable_timer.traits_type [*traits_type]]]
+ [The wait traits type. ]
+
   ]
 
+]
+
+[heading Member Functions]
+[table
+ [[Name][Description]]
+
   [
- [tlsv1]
- [Generic TLS version 1. ]
+ [[link boost_asio.reference.basic_waitable_timer.async_wait [*async_wait]]]
+ [Start an asynchronous wait on the timer. ]
   ]
+
+ [
+ [[link boost_asio.reference.basic_waitable_timer.basic_waitable_timer [*basic_waitable_timer]]]
+ [Constructor.
+
+ Constructor to set a particular expiry time as an absolute time.
 
+ Constructor to set a particular expiry time relative to now. ]
+ ]
+
   [
- [tlsv1_client]
- [TLS version 1 client. ]
+ [[link boost_asio.reference.basic_waitable_timer.cancel [*cancel]]]
+ [Cancel any asynchronous operations that are waiting on the timer. ]
   ]
-
+
   [
- [tlsv1_server]
- [TLS version 1 server. ]
+ [[link boost_asio.reference.basic_waitable_timer.cancel_one [*cancel_one]]]
+ [Cancels one asynchronous operation that is waiting on the timer. ]
   ]
-
+
   [
- [sslv23]
- [Generic SSL/TLS. ]
+ [[link boost_asio.reference.basic_waitable_timer.expires_at [*expires_at]]]
+ [Get the timer's expiry time as an absolute time.
+
+ Set the timer's expiry time as an absolute time. ]
   ]
+
+ [
+ [[link boost_asio.reference.basic_waitable_timer.expires_from_now [*expires_from_now]]]
+ [Get the timer's expiry time relative to now.
 
+ Set the timer's expiry time relative to now. ]
+ ]
+
   [
- [sslv23_client]
- [SSL/TLS client. ]
+ [[link boost_asio.reference.basic_waitable_timer.get_io_service [*get_io_service]]]
+ [Get the io_service associated with the object. ]
   ]
-
+
   [
- [sslv23_server]
- [SSL/TLS server. ]
+ [[link boost_asio.reference.basic_waitable_timer.wait [*wait]]]
+ [Perform a blocking wait on the timer. ]
   ]
-
+
 ]
 
+[heading Protected Member Functions]
+[table
+ [[Name][Description]]
 
+ [
+ [[link boost_asio.reference.basic_waitable_timer.get_implementation [*get_implementation]]]
+ [Get the underlying implementation of the I/O object. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_waitable_timer.get_service [*get_service]]]
+ [Get the service associated with the I/O object. ]
+ ]
+
+]
 
-[endsect]
-
-
-
-[section:no_sslv2 ssl::context_base::no_sslv2]
-
-[indexterm2 no_sslv2..ssl::context_base]
-Disable SSL v2.
-
-
- static const int no_sslv2 = implementation_defined;
-
-
-
-[endsect]
-
-
-
-[section:no_sslv3 ssl::context_base::no_sslv3]
-
-[indexterm2 no_sslv3..ssl::context_base]
-Disable SSL v3.
-
-
- static const int no_sslv3 = implementation_defined;
-
+[heading Protected Data Members]
+[table
+ [[Name][Description]]
 
+ [
+ [[link boost_asio.reference.basic_waitable_timer.implementation [*implementation]]]
+ [(Deprecated: Use get_implementation().) The underlying implementation of the I/O object. ]
+ ]
 
-[endsect]
+ [
+ [[link boost_asio.reference.basic_waitable_timer.service [*service]]]
+ [(Deprecated: Use get_service().) The service associated with the I/O object. ]
+ ]
 
+]
 
+The [link boost_asio.reference.basic_waitable_timer `basic_waitable_timer`] class template provides the ability to perform a blocking or asynchronous wait for a timer to expire.
 
-[section:no_tlsv1 ssl::context_base::no_tlsv1]
+A waitable timer is always in one of two states: "expired" or "not expired". If the `wait()` or `async_wait()` function is called on an expired timer, the wait operation will complete immediately.
 
-[indexterm2 no_tlsv1..ssl::context_base]
-Disable TLS v1.
+Most applications will use the boost::asio::waitable\_timer typedef.
 
 
- static const int no_tlsv1 = implementation_defined;
+[heading Remarks]
+
+This waitable timer functionality is for use with the C++11 standard library's `<chrono>` facility, or with the Boost.Chrono library.
 
 
+[heading Thread Safety]
+
+[*Distinct] [*objects:] Safe.
 
-[endsect]
+[*Shared] [*objects:] Unsafe.
 
 
+[heading Examples]
+
+Performing a blocking wait:
 
-[section:options ssl::context_base::options]
+ // Construct a timer without setting an expiry time.
+ boost::asio::waitable_timer timer(io_service);
 
-[indexterm2 options..ssl::context_base]
-Bitmask type for SSL options.
+ // Set an expiry time relative to now.
+ timer.expires_from_now(boost::posix_time::seconds(5));
 
+ // Wait for the timer to expire.
+ timer.wait();
 
- typedef int options;
 
 
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/ssl/context_base.hpp]
+Performing an asynchronous wait:
 
-[*Convenience header: ][^boost/asio/ssl.hpp]
+ void handler(const boost::system::error_code& error)
+ {
+ if (!error)
+ {
+ // Timer expired.
+ }
+ }
 
+ ...
 
-[endsect]
+ // Construct a timer with an absolute expiry time.
+ boost::asio::waitable_timer timer(io_service,
+ boost::posix_time::time_from_string("2005-12-07 23:59:59.000"));
 
+ // Start an asynchronous wait.
+ timer.async_wait(handler);
 
 
-[section:password_purpose ssl::context_base::password_purpose]
 
-[indexterm2 password_purpose..ssl::context_base]
-Purpose of PEM password.
 
 
- enum password_purpose
+[heading Changing an active waitable_timer's expiry time]
+
 
-[indexterm2 for_reading..ssl::context_base]
-[indexterm2 for_writing..ssl::context_base]
 
-[heading Values]
-[variablelist
+Changing the expiry time of a timer while there are pending asynchronous waits causes those wait operations to be cancelled. To ensure that the action associated with the timer is performed only once, use something like this: used:
 
- [
- [for_reading]
- [The password is needed for reading/decryption. ]
- ]
 
- [
- [for_writing]
- [The password is needed for writing/encryption. ]
- ]
 
-]
+ void on_some_event()
+ {
+ if (my_timer.expires_from_now(seconds(5)) > 0)
+ {
+ // We managed to cancel the timer. Start new asynchronous wait.
+ my_timer.async_wait(on_timeout);
+ }
+ else
+ {
+ // Too late, timer has already expired!
+ }
+ }
 
+ void on_timeout(const boost::system::error_code& e)
+ {
+ if (e != boost::asio::error::operation_aborted)
+ {
+ // Timer was not cancelled, take necessary action.
+ }
+ }
 
 
-[endsect]
 
 
 
-[section:single_dh_use ssl::context_base::single_dh_use]
+* The `boost::asio::basic_waitable_timer::expires_from_now()` function cancels any pending asynchronous waits, and returns the number of asynchronous waits that were cancelled. If it returns 0 then you were too late and the wait handler has already been executed, or will soon be executed. If it returns 1 then the wait handler was successfully cancelled.
 
-[indexterm2 single_dh_use..ssl::context_base]
-Always create a new key when using tmp\_dh parameters.
 
+* If a wait handler is cancelled, the boost::system::error\_code passed to it contains the value `boost::asio::error::operation_aborted`.
 
- static const int single_dh_use = implementation_defined;
 
 
 
-[endsect]
+This typedef uses the C++11 `<chrono>` standard library facility, if available. Otherwise, it may use the Boost.Chrono library. To explicitly utilise Boost.Chrono, use the [link boost_asio.reference.basic_waitable_timer `basic_waitable_timer`] template directly:
 
+ typedef basic_waitable_timer<boost::chrono::steady_clock> timer;
 
 
-[section:_context_base ssl::context_base::~context_base]
 
-[indexterm2 ~context_base..ssl::context_base]
-Protected destructor to prevent deletion through this type.
 
+[heading Requirements]
 
- ~context_base();
+[*Header: ][^boost/asio/steady_timer.hpp]
 
+[*Convenience header: ]None
 
 
 [endsect]
 
 
 
-[endsect]
-
-[section:ssl__rfc2818_verification ssl::rfc2818_verification]
-
+[section:strand strand]
 
-Verifies a certificate against a hostname according to the rules described in RFC 2818.
+[indexterm1 strand]
+Typedef for backwards compatibility.
 
 
- class rfc2818_verification
+ typedef boost::asio::io_service::strand strand;
 
 
-[heading Types]
+[heading Member Functions]
 [table
   [[Name][Description]]
 
   [
-
- [[link boost_asio.reference.ssl__rfc2818_verification.result_type [*result_type]]]
- [The type of the function object's result. ]
+ [[link boost_asio.reference.io_service__strand.dispatch [*dispatch]]]
+ [Request the strand to invoke the given handler. ]
+ ]
   
+ [
+ [[link boost_asio.reference.io_service__strand.get_io_service [*get_io_service]]]
+ [Get the io_service associated with the strand. ]
   ]
-
-]
-
-[heading Member Functions]
-[table
- [[Name][Description]]
-
+
+ [
+ [[link boost_asio.reference.io_service__strand.post [*post]]]
+ [Request the strand to invoke the given handler and return immediately. ]
+ ]
+
+ [
+ [[link boost_asio.reference.io_service__strand.strand [*strand]]]
+ [Constructor. ]
+ ]
+
   [
- [[link boost_asio.reference.ssl__rfc2818_verification.operator_lp__rp_ [*operator()]]]
- [Perform certificate verification. ]
+ [[link boost_asio.reference.io_service__strand.wrap [*wrap]]]
+ [Create a new handler that automatically dispatches the wrapped handler on the strand. ]
   ]
   
   [
- [[link boost_asio.reference.ssl__rfc2818_verification.rfc2818_verification [*rfc2818_verification]]]
- [Constructor. ]
+ [[link boost_asio.reference.io_service__strand._strand [*~strand]]]
+ [Destructor. ]
   ]
   
 ]
 
-
-[heading Example]
-
-The following example shows how to synchronously open a secure connection to a given host name:
-
- using boost::asio::ip::tcp;
- namespace ssl = boost::asio::ssl;
- typedef ssl::stream<tcp::socket> ssl_socket;
-
- // Create a context that uses the default paths for finding CA certificates.
- ssl::context ctx(ssl::context::sslv23);
- ctx.set_default_verify_paths();
-
- // Open a socket and connect it to the remote host.
- boost::asio::io_service io_service;
- ssl_socket sock(io_service, ctx);
- tcp::resolver resolver(io_service);
- tcp::resolver::query query("host.name", "https");
- boost::asio::connect(sock.lowest_layer(), resolver.resolve(query));
- sock.lowest_layer().set_option(tcp::no_delay(true));
-
- // Perform SSL handshake and verify the remote host's certificate.
- sock.set_verify_mode(ssl::verify_peer);
- sock.set_verify_callback(ssl::rfc2818_verification("host.name"));
- sock.handshake(ssl_socket::client);
-
- // ... read and write as normal ...
+The [link boost_asio.reference.io_service__strand `io_service::strand`] class provides the ability to post and dispatch handlers with the guarantee that none of those handlers will execute concurrently.
 
 
+[heading Order of handler invocation]
+
+Given:
 
 
+* a strand object `s`
 
 
-[heading Requirements]
+* an object `a` meeting completion handler requirements
 
-[*Header: ][^boost/asio/ssl/rfc2818_verification.hpp]
 
-[*Convenience header: ][^boost/asio/ssl.hpp]
+* an object `a1` which is an arbitrary copy of `a` made by the implementation
 
 
-[section:operator_lp__rp_ ssl::rfc2818_verification::operator()]
+* an object `b` meeting completion handler requirements
 
-[indexterm2 operator()..ssl::rfc2818_verification]
-Perform certificate verification.
 
+* an object `b1` which is an arbitrary copy of `b` made by the implementation
 
- bool operator()(
- bool preverified,
- verify_context & ctx) const;
+if any of the following conditions are true:
 
 
+* `s.post(a)` happens-before `s.post(b)`
 
-[endsect]
 
+* `s.post(a)` happens-before `s.dispatch(b)`, where the latter is performed outside the strand
 
 
-[section:result_type ssl::rfc2818_verification::result_type]
+* `s.dispatch(a)` happens-before `s.post(b)`, where the former is performed outside the strand
 
-[indexterm2 result_type..ssl::rfc2818_verification]
-The type of the function object's result.
 
+* `s.dispatch(a)` happens-before `s.dispatch(b)`, where both are performed outside the strand
 
- typedef bool result_type;
+then `asio_handler_invoke(a1, &a1)` happens-before `asio_handler_invoke(b1, &b1)`.
 
+Note that in the following case:
 
+ async_op_1(..., s.wrap(a));
+ async_op_2(..., s.wrap(b));
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/ssl/rfc2818_verification.hpp]
+the completion of the first async operation will perform `s.dispatch(a)`, and the second will perform `s.dispatch(b)`, but the order in which those are performed is unspecified. That is, you cannot state whether one happens-before the other. Therefore none of the above conditions are met and no ordering guarantee is made.
 
-[*Convenience header: ][^boost/asio/ssl.hpp]
 
+[heading Thread Safety]
+
+[*Distinct] [*objects:] Safe.
 
-[endsect]
+[*Shared] [*objects:] Safe.
 
 
 
-[section:rfc2818_verification ssl::rfc2818_verification::rfc2818_verification]
 
-[indexterm2 rfc2818_verification..ssl::rfc2818_verification]
-Constructor.
 
+[heading Requirements]
 
- rfc2818_verification(
- const std::string & host);
+[*Header: ][^boost/asio/strand.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
-
-[endsect]
-
-[section:ssl__stream ssl::stream]
+[section:stream_socket_service stream_socket_service]
 
 
-Provides stream-oriented functionality using SSL.
+Default service implementation for a stream socket.
 
 
   template<
- typename Stream>
- class stream :
- public ssl::stream_base,
- noncopyable
+ typename ``[link boost_asio.reference.Protocol Protocol]``>
+ class stream_socket_service :
+ public io_service::service
 
 
 [heading Types]
@@ -83219,43 +86826,36 @@
 
   [
 
- [[link boost_asio.reference.ssl__stream__impl_struct [*impl_struct]]]
- [Structure for use with deprecated impl_type. ]
-
- ]
-
- [
-
- [[link boost_asio.reference.ssl__stream.handshake_type [*handshake_type]]]
- [Different handshake types. ]
+ [[link boost_asio.reference.stream_socket_service.endpoint_type [*endpoint_type]]]
+ [The endpoint type. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.ssl__stream.impl_type [*impl_type]]]
- [(Deprecated: Use native_handle_type.) The underlying implementation type. ]
+ [[link boost_asio.reference.stream_socket_service.implementation_type [*implementation_type]]]
+ [The type of a stream socket implementation. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.ssl__stream.lowest_layer_type [*lowest_layer_type]]]
- [The type of the lowest layer. ]
+ [[link boost_asio.reference.stream_socket_service.native_handle_type [*native_handle_type]]]
+ [The native socket type. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.ssl__stream.native_handle_type [*native_handle_type]]]
- [The native handle type of the SSL stream. ]
+ [[link boost_asio.reference.stream_socket_service.native_type [*native_type]]]
+ [(Deprecated: Use native_handle_type.) The native socket type. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.ssl__stream.next_layer_type [*next_layer_type]]]
- [The type of the next layer. ]
+ [[link boost_asio.reference.stream_socket_service.protocol_type [*protocol_type]]]
+ [The protocol type. ]
   
   ]
 
@@ -83266,364 +86866,267 @@
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.ssl__stream.async_handshake [*async_handshake]]]
- [Start an asynchronous SSL handshake. ]
+ [[link boost_asio.reference.stream_socket_service.assign [*assign]]]
+ [Assign an existing native socket to a stream socket. ]
   ]
   
   [
- [[link boost_asio.reference.ssl__stream.async_read_some [*async_read_some]]]
- [Start an asynchronous read. ]
+ [[link boost_asio.reference.stream_socket_service.async_connect [*async_connect]]]
+ [Start an asynchronous connect. ]
   ]
   
   [
- [[link boost_asio.reference.ssl__stream.async_shutdown [*async_shutdown]]]
- [Asynchronously shut down SSL on the stream. ]
+ [[link boost_asio.reference.stream_socket_service.async_receive [*async_receive]]]
+ [Start an asynchronous receive. ]
   ]
   
   [
- [[link boost_asio.reference.ssl__stream.async_write_some [*async_write_some]]]
- [Start an asynchronous write. ]
+ [[link boost_asio.reference.stream_socket_service.async_send [*async_send]]]
+ [Start an asynchronous send. ]
   ]
   
   [
- [[link boost_asio.reference.ssl__stream.get_io_service [*get_io_service]]]
- [Get the io_service associated with the object. ]
+ [[link boost_asio.reference.stream_socket_service.at_mark [*at_mark]]]
+ [Determine whether the socket is at the out-of-band data mark. ]
   ]
   
   [
- [[link boost_asio.reference.ssl__stream.handshake [*handshake]]]
- [Perform SSL handshaking. ]
+ [[link boost_asio.reference.stream_socket_service.available [*available]]]
+ [Determine the number of bytes available for reading. ]
   ]
   
   [
- [[link boost_asio.reference.ssl__stream.impl [*impl]]]
- [(Deprecated: Use native_handle().) Get the underlying implementation in the native type. ]
+ [[link boost_asio.reference.stream_socket_service.bind [*bind]]]
+ [Bind the stream socket to the specified local endpoint. ]
   ]
   
   [
- [[link boost_asio.reference.ssl__stream.lowest_layer [*lowest_layer]]]
- [Get a reference to the lowest layer. ]
+ [[link boost_asio.reference.stream_socket_service.cancel [*cancel]]]
+ [Cancel all asynchronous operations associated with the socket. ]
   ]
   
   [
- [[link boost_asio.reference.ssl__stream.native_handle [*native_handle]]]
- [Get the underlying implementation in the native type. ]
+ [[link boost_asio.reference.stream_socket_service.close [*close]]]
+ [Close a stream socket implementation. ]
   ]
   
   [
- [[link boost_asio.reference.ssl__stream.next_layer [*next_layer]]]
- [Get a reference to the next layer. ]
+ [[link boost_asio.reference.stream_socket_service.connect [*connect]]]
+ [Connect the stream socket to the specified endpoint. ]
   ]
   
   [
- [[link boost_asio.reference.ssl__stream.read_some [*read_some]]]
- [Read some data from the stream. ]
+ [[link boost_asio.reference.stream_socket_service.construct [*construct]]]
+ [Construct a new stream socket implementation. ]
   ]
   
   [
- [[link boost_asio.reference.ssl__stream.set_verify_callback [*set_verify_callback]]]
- [Set the callback used to verify peer certificates. ]
+ [[link boost_asio.reference.stream_socket_service.destroy [*destroy]]]
+ [Destroy a stream socket implementation. ]
   ]
   
   [
- [[link boost_asio.reference.ssl__stream.set_verify_mode [*set_verify_mode]]]
- [Set the peer verification mode. ]
+ [[link boost_asio.reference.stream_socket_service.get_io_service [*get_io_service]]]
+ [Get the io_service object that owns the service. ]
   ]
   
   [
- [[link boost_asio.reference.ssl__stream.shutdown [*shutdown]]]
- [Shut down SSL on the stream. ]
+ [[link boost_asio.reference.stream_socket_service.get_option [*get_option]]]
+ [Get a socket option. ]
   ]
   
   [
- [[link boost_asio.reference.ssl__stream.stream [*stream]]]
- [Construct a stream. ]
+ [[link boost_asio.reference.stream_socket_service.io_control [*io_control]]]
+ [Perform an IO control command on the socket. ]
   ]
   
   [
- [[link boost_asio.reference.ssl__stream.write_some [*write_some]]]
- [Write some data to the stream. ]
+ [[link boost_asio.reference.stream_socket_service.is_open [*is_open]]]
+ [Determine whether the socket is open. ]
   ]
   
   [
- [[link boost_asio.reference.ssl__stream._stream [*~stream]]]
- [Destructor. ]
+ [[link boost_asio.reference.stream_socket_service.local_endpoint [*local_endpoint]]]
+ [Get the local endpoint. ]
   ]
   
-]
-
-The stream class template provides asynchronous and blocking stream-oriented functionality using SSL.
-
-
-[heading Thread Safety]
+ [
+ [[link boost_asio.reference.stream_socket_service.move_assign [*move_assign]]]
+ [Move-assign from another stream socket implementation. ]
+ ]
   
-[*Distinct] [*objects:] Safe.
-
-[*Shared] [*objects:] Unsafe. The application must also ensure that all asynchronous operations are performed within the same implicit or explicit strand.
-
-
-[heading Example]
+ [
+ [[link boost_asio.reference.stream_socket_service.move_construct [*move_construct]]]
+ [Move-construct a new stream socket implementation. ]
+ ]
   
-To use the SSL stream template with an `ip::tcp::socket`, you would write:
-
- boost::asio::io_service io_service;
- boost::asio::ssl::context ctx(boost::asio::ssl::context::sslv23);
- boost::asio::ssl::stream<asio:ip::tcp::socket> sock(io_service, ctx);
-
+ [
+ [[link boost_asio.reference.stream_socket_service.native [*native]]]
+ [(Deprecated: Use native_handle().) Get the native socket implementation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.stream_socket_service.native_handle [*native_handle]]]
+ [Get the native socket implementation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.stream_socket_service.native_non_blocking [*native_non_blocking]]]
+ [Gets the non-blocking mode of the native socket implementation.
 
+ Sets the non-blocking mode of the native socket implementation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.stream_socket_service.non_blocking [*non_blocking]]]
+ [Gets the non-blocking mode of the socket.
 
+ Sets the non-blocking mode of the socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.stream_socket_service.open [*open]]]
+ [Open a stream socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.stream_socket_service.receive [*receive]]]
+ [Receive some data from the peer. ]
+ ]
+
+ [
+ [[link boost_asio.reference.stream_socket_service.remote_endpoint [*remote_endpoint]]]
+ [Get the remote endpoint. ]
+ ]
+
+ [
+ [[link boost_asio.reference.stream_socket_service.send [*send]]]
+ [Send the given data to the peer. ]
+ ]
+
+ [
+ [[link boost_asio.reference.stream_socket_service.set_option [*set_option]]]
+ [Set a socket option. ]
+ ]
+
+ [
+ [[link boost_asio.reference.stream_socket_service.shutdown [*shutdown]]]
+ [Disable sends or receives on the socket. ]
+ ]
+
+ [
+ [[link boost_asio.reference.stream_socket_service.stream_socket_service [*stream_socket_service]]]
+ [Construct a new stream socket service for the specified io_service. ]
+ ]
+
+]
 
+[heading Data Members]
+[table
+ [[Name][Description]]
 
+ [
+ [[link boost_asio.reference.stream_socket_service.id [*id]]]
+ [The unique service identifier. ]
+ ]
 
+]
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/ssl/stream.hpp]
+[*Header: ][^boost/asio/stream_socket_service.hpp]
 
-[*Convenience header: ][^boost/asio/ssl.hpp]
+[*Convenience header: ][^boost/asio.hpp]
 
 
-[section:async_handshake ssl::stream::async_handshake]
+[section:assign stream_socket_service::assign]
 
-[indexterm2 async_handshake..ssl::stream]
-Start an asynchronous SSL handshake.
+[indexterm2 assign..stream_socket_service]
+Assign an existing native socket to a stream socket.
 
 
- template<
- typename ``[link boost_asio.reference.HandshakeHandler HandshakeHandler]``>
- void async_handshake(
- handshake_type type,
- HandshakeHandler handler);
+ boost::system::error_code assign(
+ implementation_type & impl,
+ const protocol_type & protocol,
+ const native_handle_type & native_socket,
+ boost::system::error_code & ec);
 
 
-This function is used to asynchronously perform an SSL handshake on the stream. This function call always returns immediately.
 
+[endsect]
 
-[heading Parameters]
-
 
-[variablelist
-
-[[type][The type of handshaking to be performed, i.e. as a client or as a server.]]
 
-[[handler][The handler to be called when the handshake operation completes. Copies will be made of the handler as required. The equivalent function signature of the handler must be:
-``
- void handler(
- const boost::system::error_code& error // Result of operation.
- );
-``
-]]
+[section:async_connect stream_socket_service::async_connect]
 
-]
+[indexterm2 async_connect..stream_socket_service]
+Start an asynchronous connect.
 
 
+ template<
+ typename ``[link boost_asio.reference.ConnectHandler ConnectHandler]``>
+ void async_connect(
+ implementation_type & impl,
+ const endpoint_type & peer_endpoint,
+ ConnectHandler handler);
+
 
 
 [endsect]
 
 
 
-[section:async_read_some ssl::stream::async_read_some]
+[section:async_receive stream_socket_service::async_receive]
 
-[indexterm2 async_read_some..ssl::stream]
-Start an asynchronous read.
+[indexterm2 async_receive..stream_socket_service]
+Start an asynchronous receive.
 
 
   template<
       typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``,
       typename ``[link boost_asio.reference.ReadHandler ReadHandler]``>
- void async_read_some(
+ void async_receive(
+ implementation_type & impl,
       const MutableBufferSequence & buffers,
+ socket_base::message_flags flags,
       ReadHandler handler);
 
 
-This function is used to asynchronously read one or more bytes of data from the stream. The function call always returns immediately.
-
-
-[heading Parameters]
-
-
-[variablelist
-
-[[buffers][The buffers into which the data will be read. Although the buffers object may be copied as necessary, ownership of the underlying buffers is retained by the caller, which must guarantee that they remain valid until the handler is called.]]
-
-[[handler][The handler to be called when the read operation completes. Copies will be made of the handler as required. The equivalent function signature of the handler must be:
-``
- void handler(
- const boost::system::error_code& error, // Result of operation.
- std::size_t bytes_transferred // Number of bytes read.
- );
-``
-]]
-
-]
-
-
-[heading Remarks]
-
-The async\_read\_some operation may not read all of the requested number of bytes. Consider using the [link boost_asio.reference.async_read `async_read`] function if you need to ensure that the requested amount of data is read before the asynchronous operation completes.
-
-
-
-
-[endsect]
-
-
-
-[section:async_shutdown ssl::stream::async_shutdown]
-
-[indexterm2 async_shutdown..ssl::stream]
-Asynchronously shut down SSL on the stream.
-
-
- template<
- typename ``[link boost_asio.reference.ShutdownHandler ShutdownHandler]``>
- void async_shutdown(
- ShutdownHandler handler);
-
-
-This function is used to asynchronously shut down SSL on the stream. This function call always returns immediately.
-
-
-[heading Parameters]
-
-
-[variablelist
-
-[[handler][The handler to be called when the handshake operation completes. Copies will be made of the handler as required. The equivalent function signature of the handler must be:
-``
- void handler(
- const boost::system::error_code& error // Result of operation.
- );
-``
-]]
-
-]
-
-
-
 
 [endsect]
 
 
 
-[section:async_write_some ssl::stream::async_write_some]
+[section:async_send stream_socket_service::async_send]
 
-[indexterm2 async_write_some..ssl::stream]
-Start an asynchronous write.
+[indexterm2 async_send..stream_socket_service]
+Start an asynchronous send.
 
 
   template<
       typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``,
       typename ``[link boost_asio.reference.WriteHandler WriteHandler]``>
- void async_write_some(
+ void async_send(
+ implementation_type & impl,
       const ConstBufferSequence & buffers,
+ socket_base::message_flags flags,
       WriteHandler handler);
 
 
-This function is used to asynchronously write one or more bytes of data to the stream. The function call always returns immediately.
-
-
-[heading Parameters]
-
-
-[variablelist
-
-[[buffers][The data to be written to the stream. Although the buffers object may be copied as necessary, ownership of the underlying buffers is retained by the caller, which must guarantee that they remain valid until the handler is called.]]
-
-[[handler][The handler to be called when the write operation completes. Copies will be made of the handler as required. The equivalent function signature of the handler must be:
-``
- void handler(
- const boost::system::error_code& error, // Result of operation.
- std::size_t bytes_transferred // Number of bytes written.
- );
-``
-]]
-
-]
-
-
-[heading Remarks]
-
-The async\_write\_some operation may not transmit all of the data to the peer. Consider using the [link boost_asio.reference.async_write `async_write`] function if you need to ensure that all data is written before the blocking operation completes.
-
-
-
-
-[endsect]
-
-
-
-[section:get_io_service ssl::stream::get_io_service]
-
-[indexterm2 get_io_service..ssl::stream]
-Get the [link boost_asio.reference.io_service `io_service`] associated with the object.
-
-
- boost::asio::io_service & get_io_service();
-
-
-This function may be used to obtain the [link boost_asio.reference.io_service `io_service`] object that the stream uses to dispatch handlers for asynchronous operations.
-
-
-[heading Return Value]
-
-A reference to the [link boost_asio.reference.io_service `io_service`] object that stream will use to dispatch handlers. Ownership is not transferred to the caller.
-
-
-
 
 [endsect]
 
 
-[section:handshake ssl::stream::handshake]
-
-[indexterm2 handshake..ssl::stream]
-Perform SSL handshaking.
-
-
- void ``[link boost_asio.reference.ssl__stream.handshake.overload1 handshake]``(
- handshake_type type);
- `` [''''&raquo;''' [link boost_asio.reference.ssl__stream.handshake.overload1 more...]]``
-
- boost::system::error_code ``[link boost_asio.reference.ssl__stream.handshake.overload2 handshake]``(
- handshake_type type,
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.ssl__stream.handshake.overload2 more...]]``
-
-
-[section:overload1 ssl::stream::handshake (1 of 2 overloads)]
-
-
-Perform SSL handshaking.
-
-
- void handshake(
- handshake_type type);
-
-
-This function is used to perform SSL handshaking on the stream. The function call will block until handshaking is complete or an error occurs.
-
-
-[heading Parameters]
-
-
-[variablelist
-
-[[type][The type of handshaking to be performed, i.e. as a client or as a server.]]
-
-]
 
+[section:at_mark stream_socket_service::at_mark]
 
-[heading Exceptions]
-
-
-[variablelist
-
-[[boost::system::system_error][Thrown on failure. ]]
+[indexterm2 at_mark..stream_socket_service]
+Determine whether the socket is at the out-of-band data mark.
 
-]
 
+ bool at_mark(
+ const implementation_type & impl,
+ boost::system::error_code & ec) const;
 
 
 
@@ -83631,221 +87134,222 @@
 
 
 
-[section:overload2 ssl::stream::handshake (2 of 2 overloads)]
+[section:available stream_socket_service::available]
 
+[indexterm2 available..stream_socket_service]
+Determine the number of bytes available for reading.
 
-Perform SSL handshaking.
 
+ std::size_t available(
+ const implementation_type & impl,
+ boost::system::error_code & ec) const;
 
- boost::system::error_code handshake(
- handshake_type type,
- boost::system::error_code & ec);
 
 
-This function is used to perform SSL handshaking on the stream. The function call will block until handshaking is complete or an error occurs.
+[endsect]
 
 
-[heading Parameters]
-
 
-[variablelist
-
-[[type][The type of handshaking to be performed, i.e. as a client or as a server.]]
+[section:bind stream_socket_service::bind]
 
-[[ec][Set to indicate what error occurred, if any. ]]
+[indexterm2 bind..stream_socket_service]
+Bind the stream socket to the specified local endpoint.
 
-]
 
+ boost::system::error_code bind(
+ implementation_type & impl,
+ const endpoint_type & endpoint,
+ boost::system::error_code & ec);
 
 
 
 [endsect]
 
 
-[endsect]
 
+[section:cancel stream_socket_service::cancel]
 
-[section:handshake_type ssl::stream::handshake_type]
+[indexterm2 cancel..stream_socket_service]
+Cancel all asynchronous operations associated with the socket.
 
-[indexterm2 handshake_type..ssl::stream]
-Different handshake types.
 
+ boost::system::error_code cancel(
+ implementation_type & impl,
+ boost::system::error_code & ec);
 
- enum handshake_type
 
-[indexterm2 client..ssl::stream]
-[indexterm2 server..ssl::stream]
 
-[heading Values]
-[variablelist
+[endsect]
 
- [
- [client]
- [Perform handshaking as a client. ]
- ]
 
- [
- [server]
- [Perform handshaking as a server. ]
- ]
 
-]
+[section:close stream_socket_service::close]
 
+[indexterm2 close..stream_socket_service]
+Close a stream socket implementation.
 
 
-[endsect]
+ boost::system::error_code close(
+ implementation_type & impl,
+ boost::system::error_code & ec);
 
 
 
-[section:impl ssl::stream::impl]
+[endsect]
 
-[indexterm2 impl..ssl::stream]
-(Deprecated: Use `native_handle()`.) Get the underlying implementation in the native type.
 
 
- impl_type impl();
+[section:connect stream_socket_service::connect]
 
+[indexterm2 connect..stream_socket_service]
+Connect the stream socket to the specified endpoint.
 
-This function may be used to obtain the underlying implementation of the context. This is intended to allow access to stream functionality that is not otherwise provided.
 
+ boost::system::error_code connect(
+ implementation_type & impl,
+ const endpoint_type & peer_endpoint,
+ boost::system::error_code & ec);
 
-[endsect]
 
 
+[endsect]
 
-[section:impl_type ssl::stream::impl_type]
 
-[indexterm2 impl_type..ssl::stream]
-(Deprecated: Use native\_handle\_type.) The underlying implementation type.
 
+[section:construct stream_socket_service::construct]
 
- typedef impl_struct * impl_type;
+[indexterm2 construct..stream_socket_service]
+Construct a new stream socket implementation.
 
 
+ void construct(
+ implementation_type & impl);
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/ssl/stream.hpp]
 
-[*Convenience header: ][^boost/asio/ssl.hpp]
+[endsect]
 
 
-[endsect]
 
+[section:destroy stream_socket_service::destroy]
 
-[section:lowest_layer ssl::stream::lowest_layer]
+[indexterm2 destroy..stream_socket_service]
+Destroy a stream socket implementation.
 
-[indexterm2 lowest_layer..ssl::stream]
-Get a reference to the lowest layer.
 
+ void destroy(
+ implementation_type & impl);
 
- lowest_layer_type & ``[link boost_asio.reference.ssl__stream.lowest_layer.overload1 lowest_layer]``();
- `` [''''&raquo;''' [link boost_asio.reference.ssl__stream.lowest_layer.overload1 more...]]``
 
- const lowest_layer_type & ``[link boost_asio.reference.ssl__stream.lowest_layer.overload2 lowest_layer]``() const;
- `` [''''&raquo;''' [link boost_asio.reference.ssl__stream.lowest_layer.overload2 more...]]``
 
+[endsect]
 
-[section:overload1 ssl::stream::lowest_layer (1 of 2 overloads)]
 
 
-Get a reference to the lowest layer.
+[section:endpoint_type stream_socket_service::endpoint_type]
 
+[indexterm2 endpoint_type..stream_socket_service]
+The endpoint type.
 
- lowest_layer_type & lowest_layer();
 
+ typedef Protocol::endpoint endpoint_type;
 
-This function returns a reference to the lowest layer in a stack of stream layers.
 
 
-[heading Return Value]
-
-A reference to the lowest layer in the stack of stream layers. Ownership is not transferred to the caller.
+[heading Requirements]
 
+[*Header: ][^boost/asio/stream_socket_service.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
 
-[section:overload2 ssl::stream::lowest_layer (2 of 2 overloads)]
+[section:get_io_service stream_socket_service::get_io_service]
 
 
-Get a reference to the lowest layer.
+['Inherited from io_service.]
 
+[indexterm2 get_io_service..stream_socket_service]
+Get the [link boost_asio.reference.io_service `io_service`] object that owns the service.
 
- const lowest_layer_type & lowest_layer() const;
 
+ boost::asio::io_service & get_io_service();
 
-This function returns a reference to the lowest layer in a stack of stream layers.
 
 
-[heading Return Value]
-
-A reference to the lowest layer in the stack of stream layers. Ownership is not transferred to the caller.
+[endsect]
 
 
 
+[section:get_option stream_socket_service::get_option]
 
-[endsect]
+[indexterm2 get_option..stream_socket_service]
+Get a socket option.
 
 
-[endsect]
+ template<
+ typename ``[link boost_asio.reference.GettableSocketOption GettableSocketOption]``>
+ boost::system::error_code get_option(
+ const implementation_type & impl,
+ GettableSocketOption & option,
+ boost::system::error_code & ec) const;
 
 
-[section:lowest_layer_type ssl::stream::lowest_layer_type]
 
-[indexterm2 lowest_layer_type..ssl::stream]
-The type of the lowest layer.
+[endsect]
 
 
- typedef next_layer_type::lowest_layer_type lowest_layer_type;
 
+[section:id stream_socket_service::id]
 
+[indexterm2 id..stream_socket_service]
+The unique service identifier.
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/ssl/stream.hpp]
+ static boost::asio::io_service::id id;
 
-[*Convenience header: ][^boost/asio/ssl.hpp]
 
 
 [endsect]
 
 
 
-[section:native_handle ssl::stream::native_handle]
+[section:implementation_type stream_socket_service::implementation_type]
 
-[indexterm2 native_handle..ssl::stream]
-Get the underlying implementation in the native type.
+[indexterm2 implementation_type..stream_socket_service]
+The type of a stream socket implementation.
 
 
- native_handle_type native_handle();
+ typedef implementation_defined implementation_type;
 
 
-This function may be used to obtain the underlying implementation of the context. This is intended to allow access to context functionality that is not otherwise provided.
 
+[heading Requirements]
 
-[heading Example]
-
-The `native_handle()` function returns a pointer of type `SSL*` that is suitable for passing to functions such as `SSL_get_verify_result` and `SSL_get_peer_certificate:`
+[*Header: ][^boost/asio/stream_socket_service.hpp]
 
- boost::asio::ssl::stream<asio:ip::tcp::socket> sock(io_service, ctx);
+[*Convenience header: ][^boost/asio.hpp]
 
- // ... establish connection and perform handshake ...
 
- if (X509* cert = SSL_get_peer_certificate(sock.native_handle()))
- {
- if (SSL_get_verify_result(sock.native_handle()) == X509_V_OK)
- {
- // ...
- }
- }
+[endsect]
+
 
 
+[section:io_control stream_socket_service::io_control]
+
+[indexterm2 io_control..stream_socket_service]
+Perform an IO control command on the socket.
 
 
+ template<
+ typename ``[link boost_asio.reference.IoControlCommand IoControlCommand]``>
+ boost::system::error_code io_control(
+ implementation_type & impl,
+ IoControlCommand & command,
+ boost::system::error_code & ec);
 
 
 
@@ -83853,289 +87357,260 @@
 
 
 
-[section:native_handle_type ssl::stream::native_handle_type]
+[section:is_open stream_socket_service::is_open]
 
-[indexterm2 native_handle_type..ssl::stream]
-The native handle type of the SSL stream.
+[indexterm2 is_open..stream_socket_service]
+Determine whether the socket is open.
 
 
- typedef SSL * native_handle_type;
+ bool is_open(
+ const implementation_type & impl) const;
 
 
 
-[heading Requirements]
+[endsect]
 
-[*Header: ][^boost/asio/ssl/stream.hpp]
 
-[*Convenience header: ][^boost/asio/ssl.hpp]
 
+[section:local_endpoint stream_socket_service::local_endpoint]
 
-[endsect]
+[indexterm2 local_endpoint..stream_socket_service]
+Get the local endpoint.
 
 
-[section:next_layer ssl::stream::next_layer]
+ endpoint_type local_endpoint(
+ const implementation_type & impl,
+ boost::system::error_code & ec) const;
 
-[indexterm2 next_layer..ssl::stream]
-Get a reference to the next layer.
 
 
- const next_layer_type & ``[link boost_asio.reference.ssl__stream.next_layer.overload1 next_layer]``() const;
- `` [''''&raquo;''' [link boost_asio.reference.ssl__stream.next_layer.overload1 more...]]``
+[endsect]
 
- next_layer_type & ``[link boost_asio.reference.ssl__stream.next_layer.overload2 next_layer]``();
- `` [''''&raquo;''' [link boost_asio.reference.ssl__stream.next_layer.overload2 more...]]``
 
 
-[section:overload1 ssl::stream::next_layer (1 of 2 overloads)]
+[section:move_assign stream_socket_service::move_assign]
+
+[indexterm2 move_assign..stream_socket_service]
+Move-assign from another stream socket implementation.
 
 
-Get a reference to the next layer.
+ void move_assign(
+ implementation_type & impl,
+ stream_socket_service & other_service,
+ implementation_type & other_impl);
 
 
- const next_layer_type & next_layer() const;
+
+[endsect]
 
 
-This function returns a reference to the next layer in a stack of stream layers.
 
+[section:move_construct stream_socket_service::move_construct]
 
-[heading Return Value]
-
-A reference to the next layer in the stack of stream layers. Ownership is not transferred to the caller.
+[indexterm2 move_construct..stream_socket_service]
+Move-construct a new stream socket implementation.
 
 
+ void move_construct(
+ implementation_type & impl,
+ implementation_type & other_impl);
+
 
 
 [endsect]
 
 
 
-[section:overload2 ssl::stream::next_layer (2 of 2 overloads)]
+[section:native stream_socket_service::native]
 
+[indexterm2 native..stream_socket_service]
+(Deprecated: Use `native_handle()`.) Get the native socket implementation.
 
-Get a reference to the next layer.
 
+ native_type native(
+ implementation_type & impl);
 
- next_layer_type & next_layer();
 
 
-This function returns a reference to the next layer in a stack of stream layers.
+[endsect]
 
 
-[heading Return Value]
-
-A reference to the next layer in the stack of stream layers. Ownership is not transferred to the caller.
 
+[section:native_handle stream_socket_service::native_handle]
+
+[indexterm2 native_handle..stream_socket_service]
+Get the native socket implementation.
 
 
+ native_handle_type native_handle(
+ implementation_type & impl);
 
-[endsect]
 
 
 [endsect]
 
 
-[section:next_layer_type ssl::stream::next_layer_type]
 
-[indexterm2 next_layer_type..ssl::stream]
-The type of the next layer.
+[section:native_handle_type stream_socket_service::native_handle_type]
 
+[indexterm2 native_handle_type..stream_socket_service]
+The native socket type.
 
- typedef boost::remove_reference< Stream >::type next_layer_type;
+
+ typedef implementation_defined native_handle_type;
 
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/ssl/stream.hpp]
+[*Header: ][^boost/asio/stream_socket_service.hpp]
 
-[*Convenience header: ][^boost/asio/ssl.hpp]
+[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
-[section:read_some ssl::stream::read_some]
+[section:native_non_blocking stream_socket_service::native_non_blocking]
 
-[indexterm2 read_some..ssl::stream]
-Read some data from the stream.
+[indexterm2 native_non_blocking..stream_socket_service]
+Gets the non-blocking mode of the native socket implementation.
 
 
- template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
- std::size_t ``[link boost_asio.reference.ssl__stream.read_some.overload1 read_some]``(
- const MutableBufferSequence & buffers);
- `` [''''&raquo;''' [link boost_asio.reference.ssl__stream.read_some.overload1 more...]]``
+ bool ``[link boost_asio.reference.stream_socket_service.native_non_blocking.overload1 native_non_blocking]``(
+ const implementation_type & impl) const;
+ `` [''''&raquo;''' [link boost_asio.reference.stream_socket_service.native_non_blocking.overload1 more...]]``
 
- template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
- std::size_t ``[link boost_asio.reference.ssl__stream.read_some.overload2 read_some]``(
- const MutableBufferSequence & buffers,
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.ssl__stream.read_some.overload2 more...]]``
 
+Sets the non-blocking mode of the native socket implementation.
 
-[section:overload1 ssl::stream::read_some (1 of 2 overloads)]
 
+ boost::system::error_code ``[link boost_asio.reference.stream_socket_service.native_non_blocking.overload2 native_non_blocking]``(
+ implementation_type & impl,
+ bool mode,
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.stream_socket_service.native_non_blocking.overload2 more...]]``
 
-Read some data from the stream.
 
+[section:overload1 stream_socket_service::native_non_blocking (1 of 2 overloads)]
 
- template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
- std::size_t read_some(
- const MutableBufferSequence & buffers);
 
+Gets the non-blocking mode of the native socket implementation.
 
-This function is used to read data from the stream. The function call will block until one or more bytes of data has been read successfully, or until an error occurs.
 
+ bool native_non_blocking(
+ const implementation_type & impl) const;
 
-[heading Parameters]
-
 
-[variablelist
-
-[[buffers][The buffers into which the data will be read.]]
 
-]
+[endsect]
 
 
-[heading Return Value]
-
-The number of bytes read.
 
+[section:overload2 stream_socket_service::native_non_blocking (2 of 2 overloads)]
 
-[heading Exceptions]
-
 
-[variablelist
-
-[[boost::system::system_error][Thrown on failure.]]
+Sets the non-blocking mode of the native socket implementation.
 
-]
 
+ boost::system::error_code native_non_blocking(
+ implementation_type & impl,
+ bool mode,
+ boost::system::error_code & ec);
 
-[heading Remarks]
-
-The read\_some operation may not read all of the requested number of bytes. Consider using the [link boost_asio.reference.read `read`] function if you need to ensure that the requested amount of data is read before the blocking operation completes.
 
 
+[endsect]
 
 
 [endsect]
 
 
+[section:native_type stream_socket_service::native_type]
 
-[section:overload2 ssl::stream::read_some (2 of 2 overloads)]
-
+[indexterm2 native_type..stream_socket_service]
+(Deprecated: Use native\_handle\_type.) The native socket type.
 
-Read some data from the stream.
 
+ typedef implementation_defined native_type;
 
- template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
- std::size_t read_some(
- const MutableBufferSequence & buffers,
- boost::system::error_code & ec);
 
 
-This function is used to read data from the stream. The function call will block until one or more bytes of data has been read successfully, or until an error occurs.
+[heading Requirements]
 
+[*Header: ][^boost/asio/stream_socket_service.hpp]
 
-[heading Parameters]
-
+[*Convenience header: ][^boost/asio.hpp]
 
-[variablelist
-
-[[buffers][The buffers into which the data will be read.]]
 
-[[ec][Set to indicate what error occurred, if any.]]
+[endsect]
 
-]
 
+[section:non_blocking stream_socket_service::non_blocking]
 
-[heading Return Value]
-
-The number of bytes read. Returns 0 if an error occurred.
+[indexterm2 non_blocking..stream_socket_service]
+Gets the non-blocking mode of the socket.
 
 
-[heading Remarks]
-
-The read\_some operation may not read all of the requested number of bytes. Consider using the [link boost_asio.reference.read `read`] function if you need to ensure that the requested amount of data is read before the blocking operation completes.
+ bool ``[link boost_asio.reference.stream_socket_service.non_blocking.overload1 non_blocking]``(
+ const implementation_type & impl) const;
+ `` [''''&raquo;''' [link boost_asio.reference.stream_socket_service.non_blocking.overload1 more...]]``
 
 
+Sets the non-blocking mode of the socket.
 
 
-[endsect]
+ boost::system::error_code ``[link boost_asio.reference.stream_socket_service.non_blocking.overload2 non_blocking]``(
+ implementation_type & impl,
+ bool mode,
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.stream_socket_service.non_blocking.overload2 more...]]``
 
 
-[endsect]
+[section:overload1 stream_socket_service::non_blocking (1 of 2 overloads)]
 
-[section:set_verify_callback ssl::stream::set_verify_callback]
 
-[indexterm2 set_verify_callback..ssl::stream]
-Set the callback used to verify peer certificates.
+Gets the non-blocking mode of the socket.
 
 
- template<
- typename VerifyCallback>
- void ``[link boost_asio.reference.ssl__stream.set_verify_callback.overload1 set_verify_callback]``(
- VerifyCallback callback);
- `` [''''&raquo;''' [link boost_asio.reference.ssl__stream.set_verify_callback.overload1 more...]]``
+ bool non_blocking(
+ const implementation_type & impl) const;
 
- template<
- typename VerifyCallback>
- boost::system::error_code ``[link boost_asio.reference.ssl__stream.set_verify_callback.overload2 set_verify_callback]``(
- VerifyCallback callback,
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.ssl__stream.set_verify_callback.overload2 more...]]``
 
 
-[section:overload1 ssl::stream::set_verify_callback (1 of 2 overloads)]
+[endsect]
 
 
-Set the callback used to verify peer certificates.
 
+[section:overload2 stream_socket_service::non_blocking (2 of 2 overloads)]
 
- template<
- typename VerifyCallback>
- void set_verify_callback(
- VerifyCallback callback);
 
+Sets the non-blocking mode of the socket.
 
-This function is used to specify a callback function that will be called by the implementation when it needs to verify a peer certificate.
 
+ boost::system::error_code non_blocking(
+ implementation_type & impl,
+ bool mode,
+ boost::system::error_code & ec);
 
-[heading Parameters]
-
 
-[variablelist
-
-[[callback][The function object to be used for verifying a certificate. The function signature of the handler must be:
-``
- bool verify_callback(
- bool preverified, // True if the certificate passed pre-verification.
- verify_context& ctx // The peer certificate and other context.
- );
-``
-The return value of the callback is true if the certificate has passed verification, false otherwise.]]
 
-]
+[endsect]
 
 
-[heading Exceptions]
-
+[endsect]
 
-[variablelist
-
-[[boost::system::system_error][Thrown on failure.]]
 
-]
+[section:open stream_socket_service::open]
 
+[indexterm2 open..stream_socket_service]
+Open a stream socket.
 
-[heading Remarks]
-
-Calls `SSL_set_verify`.
 
+ boost::system::error_code open(
+ implementation_type & impl,
+ const protocol_type & protocol,
+ boost::system::error_code & ec);
 
 
 
@@ -84143,106 +87618,95 @@
 
 
 
-[section:overload2 ssl::stream::set_verify_callback (2 of 2 overloads)]
+[section:protocol_type stream_socket_service::protocol_type]
 
+[indexterm2 protocol_type..stream_socket_service]
+The protocol type.
 
-Set the callback used to verify peer certificates.
 
+ typedef Protocol protocol_type;
 
- template<
- typename VerifyCallback>
- boost::system::error_code set_verify_callback(
- VerifyCallback callback,
- boost::system::error_code & ec);
 
 
-This function is used to specify a callback function that will be called by the implementation when it needs to verify a peer certificate.
+[heading Requirements]
 
+[*Header: ][^boost/asio/stream_socket_service.hpp]
 
-[heading Parameters]
-
+[*Convenience header: ][^boost/asio.hpp]
 
-[variablelist
-
-[[callback][The function object to be used for verifying a certificate. The function signature of the handler must be:
-``
- bool verify_callback(
- bool preverified, // True if the certificate passed pre-verification.
- verify_context& ctx // The peer certificate and other context.
- );
-``
-The return value of the callback is true if the certificate has passed verification, false otherwise.]]
 
-[[ec][Set to indicate what error occurred, if any.]]
+[endsect]
 
-]
 
 
-[heading Remarks]
-
-Calls `SSL_set_verify`.
+[section:receive stream_socket_service::receive]
 
+[indexterm2 receive..stream_socket_service]
+Receive some data from the peer.
 
 
+ template<
+ typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
+ std::size_t receive(
+ implementation_type & impl,
+ const MutableBufferSequence & buffers,
+ socket_base::message_flags flags,
+ boost::system::error_code & ec);
 
-[endsect]
 
 
 [endsect]
 
-[section:set_verify_mode ssl::stream::set_verify_mode]
 
-[indexterm2 set_verify_mode..ssl::stream]
-Set the peer verification mode.
 
+[section:remote_endpoint stream_socket_service::remote_endpoint]
 
- void ``[link boost_asio.reference.ssl__stream.set_verify_mode.overload1 set_verify_mode]``(
- verify_mode v);
- `` [''''&raquo;''' [link boost_asio.reference.ssl__stream.set_verify_mode.overload1 more...]]``
+[indexterm2 remote_endpoint..stream_socket_service]
+Get the remote endpoint.
 
- boost::system::error_code ``[link boost_asio.reference.ssl__stream.set_verify_mode.overload2 set_verify_mode]``(
- verify_mode v,
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.ssl__stream.set_verify_mode.overload2 more...]]``
 
+ endpoint_type remote_endpoint(
+ const implementation_type & impl,
+ boost::system::error_code & ec) const;
 
-[section:overload1 ssl::stream::set_verify_mode (1 of 2 overloads)]
 
 
-Set the peer verification mode.
+[endsect]
 
 
- void set_verify_mode(
- verify_mode v);
 
+[section:send stream_socket_service::send]
 
-This function may be used to configure the peer verification mode used by the stream. The new mode will override the mode inherited from the context.
+[indexterm2 send..stream_socket_service]
+Send the given data to the peer.
 
 
-[heading Parameters]
-
+ template<
+ typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
+ std::size_t send(
+ implementation_type & impl,
+ const ConstBufferSequence & buffers,
+ socket_base::message_flags flags,
+ boost::system::error_code & ec);
 
-[variablelist
-
-[[v][A bitmask of peer verification modes. See [link boost_asio.reference.ssl__verify_mode `ssl::verify_mode`] for available values.]]
 
-]
 
+[endsect]
 
-[heading Exceptions]
-
 
-[variablelist
-
-[[boost::system::system_error][Thrown on failure.]]
 
-]
+[section:set_option stream_socket_service::set_option]
 
+[indexterm2 set_option..stream_socket_service]
+Set a socket option.
 
-[heading Remarks]
-
-Calls `SSL_set_verify`.
 
+ template<
+ typename ``[link boost_asio.reference.SettableSocketOption SettableSocketOption]``>
+ boost::system::error_code set_option(
+ implementation_type & impl,
+ const SettableSocketOption & option,
+ boost::system::error_code & ec);
 
 
 
@@ -84250,331 +87714,470 @@
 
 
 
-[section:overload2 ssl::stream::set_verify_mode (2 of 2 overloads)]
-
+[section:shutdown stream_socket_service::shutdown]
 
-Set the peer verification mode.
+[indexterm2 shutdown..stream_socket_service]
+Disable sends or receives on the socket.
 
 
- boost::system::error_code set_verify_mode(
- verify_mode v,
+ boost::system::error_code shutdown(
+ implementation_type & impl,
+ socket_base::shutdown_type what,
       boost::system::error_code & ec);
 
 
-This function may be used to configure the peer verification mode used by the stream. The new mode will override the mode inherited from the context.
-
 
-[heading Parameters]
-
+[endsect]
 
-[variablelist
-
-[[v][A bitmask of peer verification modes. See [link boost_asio.reference.ssl__verify_mode `ssl::verify_mode`] for available values.]]
 
-[[ec][Set to indicate what error occurred, if any.]]
 
-]
+[section:stream_socket_service stream_socket_service::stream_socket_service]
 
+[indexterm2 stream_socket_service..stream_socket_service]
+Construct a new stream socket service for the specified [link boost_asio.reference.io_service `io_service`].
 
-[heading Remarks]
-
-Calls `SSL_set_verify`.
 
+ stream_socket_service(
+ boost::asio::io_service & io_service);
 
 
 
 [endsect]
 
 
+
 [endsect]
 
-[section:shutdown ssl::stream::shutdown]
 
-[indexterm2 shutdown..ssl::stream]
-Shut down SSL on the stream.
+[section:streambuf streambuf]
 
+[indexterm1 streambuf]
+Typedef for the typical usage of [link boost_asio.reference.basic_streambuf `basic_streambuf`].
 
- void ``[link boost_asio.reference.ssl__stream.shutdown.overload1 shutdown]``();
- `` [''''&raquo;''' [link boost_asio.reference.ssl__stream.shutdown.overload1 more...]]``
 
- boost::system::error_code ``[link boost_asio.reference.ssl__stream.shutdown.overload2 shutdown]``(
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.ssl__stream.shutdown.overload2 more...]]``
+ typedef basic_streambuf streambuf;
 
 
-[section:overload1 ssl::stream::shutdown (1 of 2 overloads)]
+[heading Types]
+[table
+ [[Name][Description]]
 
+ [
 
-Shut down SSL on the stream.
+ [[link boost_asio.reference.basic_streambuf.const_buffers_type [*const_buffers_type]]]
+ [The type used to represent the input sequence as a list of buffers. ]
+
+ ]
 
+ [
 
- void shutdown();
+ [[link boost_asio.reference.basic_streambuf.mutable_buffers_type [*mutable_buffers_type]]]
+ [The type used to represent the output sequence as a list of buffers. ]
+
+ ]
 
+]
 
-This function is used to shut down SSL on the stream. The function call will block until SSL has been shut down or an error occurs.
+[heading Member Functions]
+[table
+ [[Name][Description]]
 
+ [
+ [[link boost_asio.reference.basic_streambuf.basic_streambuf [*basic_streambuf]]]
+ [Construct a basic_streambuf object. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_streambuf.commit [*commit]]]
+ [Move characters from the output sequence to the input sequence. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_streambuf.consume [*consume]]]
+ [Remove characters from the input sequence. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_streambuf.data [*data]]]
+ [Get a list of buffers that represents the input sequence. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_streambuf.max_size [*max_size]]]
+ [Get the maximum size of the basic_streambuf. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_streambuf.prepare [*prepare]]]
+ [Get a list of buffers that represents the output sequence, with the given size. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_streambuf.size [*size]]]
+ [Get the size of the input sequence. ]
+ ]
+
+]
 
-[heading Exceptions]
-
+[heading Protected Member Functions]
+[table
+ [[Name][Description]]
 
-[variablelist
+ [
+ [[link boost_asio.reference.basic_streambuf.overflow [*overflow]]]
+ [Override std::streambuf behaviour. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_streambuf.reserve [*reserve]]]
+ []
+ ]
+
+ [
+ [[link boost_asio.reference.basic_streambuf.underflow [*underflow]]]
+ [Override std::streambuf behaviour. ]
+ ]
   
-[[boost::system::system_error][Thrown on failure. ]]
-
 ]
 
+The `basic_streambuf` class is derived from `std::streambuf` to associate the streambuf's input and output sequences with one or more character arrays. These character arrays are internal to the `basic_streambuf` object, but direct access to the array elements is provided to permit them to be used efficiently with I/O operations. Characters written to the output sequence of a `basic_streambuf` object are appended to the input sequence of the same object.
 
+The `basic_streambuf` class's public interface is intended to permit the following implementation strategies:
 
 
-[endsect]
-
+* A single contiguous character array, which is reallocated as necessary to accommodate changes in the size of the character sequence. This is the implementation approach currently used in Asio.
 
 
-[section:overload2 ssl::stream::shutdown (2 of 2 overloads)]
+* A sequence of one or more character arrays, where each array is of the same size. Additional character array objects are appended to the sequence to accommodate changes in the size of the character sequence.
 
 
-Shut down SSL on the stream.
+* A sequence of one or more character arrays of varying sizes. Additional character array objects are appended to the sequence to accommodate changes in the size of the character sequence.
 
+The constructor for [link boost_asio.reference.basic_streambuf `basic_streambuf`] accepts a `size_t` argument specifying the maximum of the sum of the sizes of the input sequence and output sequence. During the lifetime of the `basic_streambuf` object, the following invariant holds:
 
- boost::system::error_code shutdown(
- boost::system::error_code & ec);
+ size() <= max_size()
 
 
-This function is used to shut down SSL on the stream. The function call will block until SSL has been shut down or an error occurs.
+Any member function that would, if successful, cause the invariant to be violated shall throw an exception of class `std::length_error`.
 
+The constructor for `basic_streambuf` takes an Allocator argument. A copy of this argument is used for any memory allocation performed, by the constructor and by all member functions, during the lifetime of each `basic_streambuf` object.
 
-[heading Parameters]
-
 
-[variablelist
+[heading Examples]
   
-[[ec][Set to indicate what error occurred, if any. ]]
+Writing directly from an streambuf to a socket:
 
-]
+ boost::asio::streambuf b;
+ std::ostream os(&b);
+ os << "Hello, World!\n";
 
+ // try sending some data in input sequence
+ size_t n = sock.send(b.data());
 
+ b.consume(n); // sent data is removed from input sequence
 
 
-[endsect]
 
 
-[endsect]
+Reading from a socket directly into a streambuf:
 
+ boost::asio::streambuf b;
 
-[section:stream ssl::stream::stream]
+ // reserve 512 bytes in output sequence
+ boost::asio::streambuf::mutable_buffers_type bufs = b.prepare(512);
 
-[indexterm2 stream..ssl::stream]
-Construct a stream.
+ size_t n = sock.receive(bufs);
 
+ // received data is "committed" from output sequence to input sequence
+ b.commit(n);
 
- template<
- typename Arg>
- stream(
- Arg & arg,
- context & ctx);
+ std::istream is(&b);
+ std::string s;
+ is >> s;
 
 
-This constructor creates a stream and initialises the underlying stream object.
 
 
-[heading Parameters]
-
 
-[variablelist
-
-[[arg][The argument to be passed to initialise the underlying stream.]]
+[heading Requirements]
 
-[[ctx][The SSL context to be used for the stream. ]]
+[*Header: ][^boost/asio/streambuf.hpp]
 
-]
+[*Convenience header: ][^boost/asio.hpp]
 
 
+[endsect]
 
 
-[endsect]
 
+[section:system_timer system_timer]
 
-[section:write_some ssl::stream::write_some]
+[indexterm1 system_timer]
+Typedef for a timer based on the system clock.
 
-[indexterm2 write_some..ssl::stream]
-Write some data to the stream.
 
+ typedef basic_waitable_timer< chrono::system_clock > system_timer;
 
- template<
- typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
- std::size_t ``[link boost_asio.reference.ssl__stream.write_some.overload1 write_some]``(
- const ConstBufferSequence & buffers);
- `` [''''&raquo;''' [link boost_asio.reference.ssl__stream.write_some.overload1 more...]]``
 
- template<
- typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
- std::size_t ``[link boost_asio.reference.ssl__stream.write_some.overload2 write_some]``(
- const ConstBufferSequence & buffers,
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.ssl__stream.write_some.overload2 more...]]``
+[heading Types]
+[table
+ [[Name][Description]]
 
+ [
 
-[section:overload1 ssl::stream::write_some (1 of 2 overloads)]
+ [[link boost_asio.reference.basic_waitable_timer.clock_type [*clock_type]]]
+ [The clock type. ]
+
+ ]
 
+ [
 
-Write some data to the stream.
+ [[link boost_asio.reference.basic_waitable_timer.duration [*duration]]]
+ [The duration type of the clock. ]
+
+ ]
 
+ [
 
- template<
- typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
- std::size_t write_some(
- const ConstBufferSequence & buffers);
+ [[link boost_asio.reference.basic_waitable_timer.implementation_type [*implementation_type]]]
+ [The underlying implementation type of I/O object. ]
+
+ ]
 
+ [
 
-This function is used to write data on the stream. The function call will block until one or more bytes of data has been written successfully, or until an error occurs.
+ [[link boost_asio.reference.basic_waitable_timer.service_type [*service_type]]]
+ [The type of the service that will be used to provide I/O operations. ]
+
+ ]
 
+ [
 
-[heading Parameters]
-
+ [[link boost_asio.reference.basic_waitable_timer.time_point [*time_point]]]
+ [The time point type of the clock. ]
+
+ ]
 
-[variablelist
+ [
+
+ [[link boost_asio.reference.basic_waitable_timer.traits_type [*traits_type]]]
+ [The wait traits type. ]
   
-[[buffers][The data to be written.]]
+ ]
 
 ]
 
+[heading Member Functions]
+[table
+ [[Name][Description]]
 
-[heading Return Value]
-
-The number of bytes written.
+ [
+ [[link boost_asio.reference.basic_waitable_timer.async_wait [*async_wait]]]
+ [Start an asynchronous wait on the timer. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_waitable_timer.basic_waitable_timer [*basic_waitable_timer]]]
+ [Constructor.
 
+ Constructor to set a particular expiry time as an absolute time.
 
-[heading Exceptions]
-
+ Constructor to set a particular expiry time relative to now. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_waitable_timer.cancel [*cancel]]]
+ [Cancel any asynchronous operations that are waiting on the timer. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_waitable_timer.cancel_one [*cancel_one]]]
+ [Cancels one asynchronous operation that is waiting on the timer. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_waitable_timer.expires_at [*expires_at]]]
+ [Get the timer's expiry time as an absolute time.
 
-[variablelist
+ Set the timer's expiry time as an absolute time. ]
+ ]
   
-[[boost::system::system_error][Thrown on failure.]]
+ [
+ [[link boost_asio.reference.basic_waitable_timer.expires_from_now [*expires_from_now]]]
+ [Get the timer's expiry time relative to now.
 
+ Set the timer's expiry time relative to now. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_waitable_timer.get_io_service [*get_io_service]]]
+ [Get the io_service associated with the object. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_waitable_timer.wait [*wait]]]
+ [Perform a blocking wait on the timer. ]
+ ]
+
 ]
 
+[heading Protected Member Functions]
+[table
+ [[Name][Description]]
 
-[heading Remarks]
-
-The write\_some operation may not transmit all of the data to the peer. Consider using the [link boost_asio.reference.write `write`] function if you need to ensure that all data is written before the blocking operation completes.
-
-
+ [
+ [[link boost_asio.reference.basic_waitable_timer.get_implementation [*get_implementation]]]
+ [Get the underlying implementation of the I/O object. ]
+ ]
+
+ [
+ [[link boost_asio.reference.basic_waitable_timer.get_service [*get_service]]]
+ [Get the service associated with the I/O object. ]
+ ]
+
+]
 
+[heading Protected Data Members]
+[table
+ [[Name][Description]]
 
-[endsect]
+ [
+ [[link boost_asio.reference.basic_waitable_timer.implementation [*implementation]]]
+ [(Deprecated: Use get_implementation().) The underlying implementation of the I/O object. ]
+ ]
 
+ [
+ [[link boost_asio.reference.basic_waitable_timer.service [*service]]]
+ [(Deprecated: Use get_service().) The service associated with the I/O object. ]
+ ]
 
+]
 
-[section:overload2 ssl::stream::write_some (2 of 2 overloads)]
+The [link boost_asio.reference.basic_waitable_timer `basic_waitable_timer`] class template provides the ability to perform a blocking or asynchronous wait for a timer to expire.
 
+A waitable timer is always in one of two states: "expired" or "not expired". If the `wait()` or `async_wait()` function is called on an expired timer, the wait operation will complete immediately.
 
-Write some data to the stream.
+Most applications will use the boost::asio::waitable\_timer typedef.
 
 
- template<
- typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
- std::size_t write_some(
- const ConstBufferSequence & buffers,
- boost::system::error_code & ec);
+[heading Remarks]
+
+This waitable timer functionality is for use with the C++11 standard library's `<chrono>` facility, or with the Boost.Chrono library.
 
 
-This function is used to write data on the stream. The function call will block until one or more bytes of data has been written successfully, or until an error occurs.
+[heading Thread Safety]
+
+[*Distinct] [*objects:] Safe.
 
+[*Shared] [*objects:] Unsafe.
 
-[heading Parameters]
-
 
-[variablelist
+[heading Examples]
   
-[[buffers][The data to be written to the stream.]]
-
-[[ec][Set to indicate what error occurred, if any.]]
-
-]
+Performing a blocking wait:
 
+ // Construct a timer without setting an expiry time.
+ boost::asio::waitable_timer timer(io_service);
 
-[heading Return Value]
-
-The number of bytes written. Returns 0 if an error occurred.
+ // Set an expiry time relative to now.
+ timer.expires_from_now(boost::posix_time::seconds(5));
 
+ // Wait for the timer to expire.
+ timer.wait();
 
-[heading Remarks]
-
-The write\_some operation may not transmit all of the data to the peer. Consider using the [link boost_asio.reference.write `write`] function if you need to ensure that all data is written before the blocking operation completes.
 
 
 
 
-[endsect]
+Performing an asynchronous wait:
 
+ void handler(const boost::system::error_code& error)
+ {
+ if (!error)
+ {
+ // Timer expired.
+ }
+ }
 
-[endsect]
+ ...
 
+ // Construct a timer with an absolute expiry time.
+ boost::asio::waitable_timer timer(io_service,
+ boost::posix_time::time_from_string("2005-12-07 23:59:59.000"));
 
-[section:_stream ssl::stream::~stream]
+ // Start an asynchronous wait.
+ timer.async_wait(handler);
 
-[indexterm2 ~stream..ssl::stream]
-Destructor.
 
 
- ~stream();
 
 
+[heading Changing an active waitable_timer's expiry time]
+
 
-[endsect]
 
+Changing the expiry time of a timer while there are pending asynchronous waits causes those wait operations to be cancelled. To ensure that the action associated with the timer is performed only once, use something like this: used:
 
 
-[endsect]
 
-[section:ssl__stream__impl_struct ssl::stream::impl_struct]
+ void on_some_event()
+ {
+ if (my_timer.expires_from_now(seconds(5)) > 0)
+ {
+ // We managed to cancel the timer. Start new asynchronous wait.
+ my_timer.async_wait(on_timeout);
+ }
+ else
+ {
+ // Too late, timer has already expired!
+ }
+ }
 
+ void on_timeout(const boost::system::error_code& e)
+ {
+ if (e != boost::asio::error::operation_aborted)
+ {
+ // Timer was not cancelled, take necessary action.
+ }
+ }
 
-Structure for use with deprecated impl\_type.
 
 
- struct impl_struct
 
 
-[heading Data Members]
-[table
- [[Name][Description]]
+* The `boost::asio::basic_waitable_timer::expires_from_now()` function cancels any pending asynchronous waits, and returns the number of asynchronous waits that were cancelled. If it returns 0 then you were too late and the wait handler has already been executed, or will soon be executed. If it returns 1 then the wait handler was successfully cancelled.
 
- [
- [[link boost_asio.reference.ssl__stream__impl_struct.ssl [*ssl]]]
- []
- ]
 
-]
+* If a wait handler is cancelled, the boost::system::error\_code passed to it contains the value `boost::asio::error::operation_aborted`.
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/ssl/stream.hpp]
 
-[*Convenience header: ][^boost/asio/ssl.hpp]
 
+This typedef uses the C++11 `<chrono>` standard library facility, if available. Otherwise, it may use the Boost.Chrono library. To explicitly utilise Boost.Chrono, use the [link boost_asio.reference.basic_waitable_timer `basic_waitable_timer`] template directly:
 
-[section:ssl ssl::stream::impl_struct::ssl]
+ typedef basic_waitable_timer<boost::chrono::system_clock> timer;
 
-[indexterm2 ssl..ssl::stream::impl_struct]
 
- SSL * ssl;
 
 
+[heading Requirements]
 
-[endsect]
+[*Header: ][^boost/asio/system_timer.hpp]
 
+[*Convenience header: ]None
 
 
 [endsect]
 
-[section:ssl__stream_base ssl::stream_base]
 
+[section:time_traits_lt__ptime__gt_ time_traits< boost::posix_time::ptime >]
 
-The [link boost_asio.reference.ssl__stream_base `ssl::stream_base`] class is used as a base for the [link boost_asio.reference.ssl__stream `ssl::stream`] class template so that we have a common place to define various enums.
 
+Time traits specialised for posix\_time.
 
- class stream_base
+
+ template<>
+ struct time_traits< boost::posix_time::ptime >
 
 
 [heading Types]
@@ -84583,56 +88186,67 @@
 
   [
 
- [[link boost_asio.reference.ssl__stream_base.handshake_type [*handshake_type]]]
- [Different handshake types. ]
+ [[link boost_asio.reference.time_traits_lt__ptime__gt_.duration_type [*duration_type]]]
+ [The duration type. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.time_traits_lt__ptime__gt_.time_type [*time_type]]]
+ [The time type. ]
   
   ]
 
 ]
 
-[heading Protected Member Functions]
+[heading Member Functions]
 [table
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.ssl__stream_base._stream_base [*~stream_base]]]
- [Protected destructor to prevent deletion through this type. ]
+ [[link boost_asio.reference.time_traits_lt__ptime__gt_.add [*add]]]
+ [Add a duration to a time. ]
+ ]
+
+ [
+ [[link boost_asio.reference.time_traits_lt__ptime__gt_.less_than [*less_than]]]
+ [Test whether one time is less than another. ]
+ ]
+
+ [
+ [[link boost_asio.reference.time_traits_lt__ptime__gt_.now [*now]]]
+ [Get the current time. ]
+ ]
+
+ [
+ [[link boost_asio.reference.time_traits_lt__ptime__gt_.subtract [*subtract]]]
+ [Subtract one time from another. ]
+ ]
+
+ [
+ [[link boost_asio.reference.time_traits_lt__ptime__gt_.to_posix_duration [*to_posix_duration]]]
+ [Convert to POSIX duration type. ]
   ]
   
 ]
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/ssl/stream_base.hpp]
-
-[*Convenience header: ][^boost/asio/ssl.hpp]
-
-
-[section:handshake_type ssl::stream_base::handshake_type]
-
-[indexterm2 handshake_type..ssl::stream_base]
-Different handshake types.
-
+[*Header: ][^boost/asio/time_traits.hpp]
 
- enum handshake_type
+[*Convenience header: ][^boost/asio.hpp]
 
-[indexterm2 client..ssl::stream_base]
-[indexterm2 server..ssl::stream_base]
 
-[heading Values]
-[variablelist
+[section:add time_traits< boost::posix_time::ptime >::add]
 
- [
- [client]
- [Perform handshaking as a client. ]
- ]
+[indexterm2 add..time_traits< boost::posix_time::ptime >]
+Add a duration to a time.
 
- [
- [server]
- [Perform handshaking as a server. ]
- ]
 
-]
+ static time_type add(
+ const time_type & t,
+ const duration_type & d);
 
 
 
@@ -84640,365 +88254,354 @@
 
 
 
-[section:_stream_base ssl::stream_base::~stream_base]
-
-[indexterm2 ~stream_base..ssl::stream_base]
-Protected destructor to prevent deletion through this type.
+[section:duration_type time_traits< boost::posix_time::ptime >::duration_type]
 
+[indexterm2 duration_type..time_traits< boost::posix_time::ptime >]
+The duration type.
 
- ~stream_base();
 
+ typedef boost::posix_time::time_duration duration_type;
 
 
-[endsect]
 
+[heading Requirements]
 
+[*Header: ][^boost/asio/time_traits.hpp]
 
-[endsect]
+[*Convenience header: ][^boost/asio.hpp]
 
 
-[section:ssl__verify_client_once ssl::verify_client_once]
+[endsect]
 
-[indexterm1 ssl::verify_client_once]
-Do not request client certificate on renegotiation. Ignored unless [link boost_asio.reference.ssl__verify_peer `ssl::verify_peer`] is set.
 
 
- const int verify_client_once = implementation_defined;
+[section:less_than time_traits< boost::posix_time::ptime >::less_than]
 
+[indexterm2 less_than..time_traits< boost::posix_time::ptime >]
+Test whether one time is less than another.
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/ssl/verify_mode.hpp]
+ static bool less_than(
+ const time_type & t1,
+ const time_type & t2);
 
-[*Convenience header: ][^boost/asio/ssl.hpp]
 
 
 [endsect]
 
 
-[section:ssl__verify_context ssl::verify_context]
-
-
-A simple wrapper around the X509\_STORE\_CTX type, used during verification of a peer certificate.
 
+[section:now time_traits< boost::posix_time::ptime >::now]
 
- class verify_context :
- noncopyable
+[indexterm2 now..time_traits< boost::posix_time::ptime >]
+Get the current time.
 
 
-[heading Types]
-[table
- [[Name][Description]]
+ static time_type now();
 
- [
 
- [[link boost_asio.reference.ssl__verify_context.native_handle_type [*native_handle_type]]]
- [The native handle type of the verification context. ]
-
- ]
 
-]
+[endsect]
 
-[heading Member Functions]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.ssl__verify_context.native_handle [*native_handle]]]
- [Get the underlying implementation in the native type. ]
- ]
-
- [
- [[link boost_asio.reference.ssl__verify_context.verify_context [*verify_context]]]
- [Constructor. ]
- ]
-
-]
 
+[section:subtract time_traits< boost::posix_time::ptime >::subtract]
 
-[heading Remarks]
-
-The [link boost_asio.reference.ssl__verify_context `ssl::verify_context`] does not own the underlying X509\_STORE\_CTX object.
+[indexterm2 subtract..time_traits< boost::posix_time::ptime >]
+Subtract one time from another.
 
 
+ static duration_type subtract(
+ const time_type & t1,
+ const time_type & t2);
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/ssl/verify_context.hpp]
 
-[*Convenience header: ][^boost/asio/ssl.hpp]
+[endsect]
 
 
-[section:native_handle ssl::verify_context::native_handle]
 
-[indexterm2 native_handle..ssl::verify_context]
-Get the underlying implementation in the native type.
+[section:time_type time_traits< boost::posix_time::ptime >::time_type]
 
+[indexterm2 time_type..time_traits< boost::posix_time::ptime >]
+The time type.
 
- native_handle_type native_handle();
 
+ typedef boost::posix_time::ptime time_type;
 
-This function may be used to obtain the underlying implementation of the context. This is intended to allow access to context functionality that is not otherwise provided.
 
 
-[endsect]
+[heading Requirements]
 
+[*Header: ][^boost/asio/time_traits.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
-[section:native_handle_type ssl::verify_context::native_handle_type]
 
-[indexterm2 native_handle_type..ssl::verify_context]
-The native handle type of the verification context.
+[endsect]
 
 
- typedef X509_STORE_CTX * native_handle_type;
 
+[section:to_posix_duration time_traits< boost::posix_time::ptime >::to_posix_duration]
 
+[indexterm2 to_posix_duration..time_traits< boost::posix_time::ptime >]
+Convert to POSIX duration type.
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/ssl/verify_context.hpp]
+ static boost::posix_time::time_duration to_posix_duration(
+ const duration_type & d);
 
-[*Convenience header: ][^boost/asio/ssl.hpp]
 
 
 [endsect]
 
 
 
-[section:verify_context ssl::verify_context::verify_context]
+[endsect]
 
-[indexterm2 verify_context..ssl::verify_context]
-Constructor.
 
+[section:transfer_all transfer_all]
 
- verify_context(
- native_handle_type handle);
+[indexterm1 transfer_all]
+Return a completion condition function object that indicates that a read or write operation should continue until all of the data has been transferred, or until an error occurs.
 
 
+ unspecified transfer_all();
 
-[endsect]
 
+This function is used to create an object, of unspecified type, that meets CompletionCondition requirements.
 
 
-[endsect]
+[heading Example]
+
+Reading until a buffer is full:
 
+ boost::array<char, 128> buf;
+ boost::system::error_code ec;
+ std::size_t n = boost::asio::read(
+ sock, boost::asio::buffer(buf),
+ boost::asio::transfer_all(), ec);
+ if (ec)
+ {
+ // An error occurred.
+ }
+ else
+ {
+ // n == 128
+ }
 
-[section:ssl__verify_fail_if_no_peer_cert ssl::verify_fail_if_no_peer_cert]
 
-[indexterm1 ssl::verify_fail_if_no_peer_cert]
-Fail verification if the peer has no certificate. Ignored unless [link boost_asio.reference.ssl__verify_peer `ssl::verify_peer`] is set.
 
 
- const int verify_fail_if_no_peer_cert = implementation_defined;
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/ssl/verify_mode.hpp]
+[*Header: ][^boost/asio/completion_condition.hpp]
 
-[*Convenience header: ][^boost/asio/ssl.hpp]
+[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
 
-[section:ssl__verify_mode ssl::verify_mode]
+[section:transfer_at_least transfer_at_least]
 
-[indexterm1 ssl::verify_mode]
-Bitmask type for peer verification.
+[indexterm1 transfer_at_least]
+Return a completion condition function object that indicates that a read or write operation should continue until a minimum number of bytes has been transferred, or until an error occurs.
 
 
- typedef int verify_mode;
+ unspecified transfer_at_least(
+ std::size_t minimum);
 
 
+This function is used to create an object, of unspecified type, that meets CompletionCondition requirements.
 
-Possible values are:
 
+[heading Example]
+
+Reading until a buffer is full or contains at least 64 bytes:
 
-* [link boost_asio.reference.ssl__verify_none `ssl::verify_none`]
+ boost::array<char, 128> buf;
+ boost::system::error_code ec;
+ std::size_t n = boost::asio::read(
+ sock, boost::asio::buffer(buf),
+ boost::asio::transfer_at_least(64), ec);
+ if (ec)
+ {
+ // An error occurred.
+ }
+ else
+ {
+ // n >= 64 && n <= 128
+ }
 
-* [link boost_asio.reference.ssl__verify_peer `ssl::verify_peer`]
 
-* [link boost_asio.reference.ssl__verify_fail_if_no_peer_cert `ssl::verify_fail_if_no_peer_cert`]
 
-* [link boost_asio.reference.ssl__verify_client_once `ssl::verify_client_once`]
 
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/ssl/verify_mode.hpp]
+[*Header: ][^boost/asio/completion_condition.hpp]
 
-[*Convenience header: ][^boost/asio/ssl.hpp]
+[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
 
-[section:ssl__verify_none ssl::verify_none]
-
-[indexterm1 ssl::verify_none]
-No verification.
-
-
- const int verify_none = implementation_defined;
+[section:transfer_exactly transfer_exactly]
 
+[indexterm1 transfer_exactly]
+Return a completion condition function object that indicates that a read or write operation should continue until an exact number of bytes has been transferred, or until an error occurs.
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/ssl/verify_mode.hpp]
+ unspecified transfer_exactly(
+ std::size_t size);
 
-[*Convenience header: ][^boost/asio/ssl.hpp]
 
+This function is used to create an object, of unspecified type, that meets CompletionCondition requirements.
 
-[endsect]
 
+[heading Example]
+
+Reading until a buffer is full or contains exactly 64 bytes:
 
+ boost::array<char, 128> buf;
+ boost::system::error_code ec;
+ std::size_t n = boost::asio::read(
+ sock, boost::asio::buffer(buf),
+ boost::asio::transfer_exactly(64), ec);
+ if (ec)
+ {
+ // An error occurred.
+ }
+ else
+ {
+ // n == 64
+ }
 
-[section:ssl__verify_peer ssl::verify_peer]
 
-[indexterm1 ssl::verify_peer]
-Verify the peer.
 
 
- const int verify_peer = implementation_defined;
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/ssl/verify_mode.hpp]
+[*Header: ][^boost/asio/completion_condition.hpp]
 
-[*Convenience header: ][^boost/asio/ssl.hpp]
+[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
 
-[section:strand strand]
-
-[indexterm1 strand]
-Typedef for backwards compatibility.
-
+[section:use_service use_service]
 
- typedef boost::asio::io_service::strand strand;
+[indexterm1 use_service]
 
+ template<
+ typename ``[link boost_asio.reference.Service Service]``>
+ Service & use_service(
+ io_service & ios);
 
-[heading Member Functions]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.io_service__strand.dispatch [*dispatch]]]
- [Request the strand to invoke the given handler. ]
- ]
-
- [
- [[link boost_asio.reference.io_service__strand.get_io_service [*get_io_service]]]
- [Get the io_service associated with the strand. ]
- ]
-
- [
- [[link boost_asio.reference.io_service__strand.post [*post]]]
- [Request the strand to invoke the given handler and return immediately. ]
- ]
-
- [
- [[link boost_asio.reference.io_service__strand.strand [*strand]]]
- [Constructor. ]
- ]
-
- [
- [[link boost_asio.reference.io_service__strand.wrap [*wrap]]]
- [Create a new handler that automatically dispatches the wrapped handler on the strand. ]
- ]
-
- [
- [[link boost_asio.reference.io_service__strand._strand [*~strand]]]
- [Destructor. ]
- ]
-
-]
+This function is used to locate a service object that corresponds to the given service type. If there is no existing implementation of the service, then the [link boost_asio.reference.io_service `io_service`] will create a new instance of the service.
 
-The [link boost_asio.reference.io_service__strand `io_service::strand`] class provides the ability to post and dispatch handlers with the guarantee that none of those handlers will execute concurrently.
 
+[heading Parameters]
+
 
-[heading Order of handler invocation]
+[variablelist
   
-Given:
+[[ios][The [link boost_asio.reference.io_service `io_service`] object that owns the service.]]
 
+]
 
-* a strand object `s`
 
+[heading Return Value]
+
+The service interface implementing the specified service type. Ownership of the service interface is not transferred to the caller.
 
-* an object `a` meeting completion handler requirements
 
 
-* an object `a1` which is an arbitrary copy of `a` made by the implementation
+[heading Requirements]
 
+[*Header: ][^boost/asio/io_service.hpp]
 
-* an object `b` meeting completion handler requirements
+[*Convenience header: ][^boost/asio.hpp]
 
 
-* an object `b1` which is an arbitrary copy of `b` made by the implementation
+[endsect]
 
-if any of the following conditions are true:
 
+[section:wait_traits wait_traits]
 
-* `s.post(a)` happens-before `s.post(b)`
 
+Wait traits suitable for use with the [link boost_asio.reference.basic_waitable_timer `basic_waitable_timer`] class template.
 
-* `s.post(a)` happens-before `s.dispatch(b)`, where the latter is performed outside the strand
 
+ template<
+ typename Clock>
+ struct wait_traits
 
-* `s.dispatch(a)` happens-before `s.post(b)`, where the former is performed outside the strand
 
+[heading Member Functions]
+[table
+ [[Name][Description]]
 
-* `s.dispatch(a)` happens-before `s.dispatch(b)`, where both are performed outside the strand
+ [
+ [[link boost_asio.reference.wait_traits.to_wait_duration [*to_wait_duration]]]
+ [Convert a clock duration into a duration used for waiting. ]
+ ]
+
+]
 
-then `asio_handler_invoke(a1, &a1)` happens-before `asio_handler_invoke(b1, &b1)`.
+[heading Requirements]
 
-Note that in the following case:
+[*Header: ][^boost/asio/wait_traits.hpp]
 
- async_op_1(..., s.wrap(a));
- async_op_2(..., s.wrap(b));
+[*Convenience header: ][^boost/asio.hpp]
 
 
-the completion of the first async operation will perform `s.dispatch(a)`, and the second will perform `s.dispatch(b)`, but the order in which those are performed is unspecified. That is, you cannot state whether one happens-before the other. Therefore none of the above conditions are met and no ordering guarantee is made.
+[section:to_wait_duration wait_traits::to_wait_duration]
 
+[indexterm2 to_wait_duration..wait_traits]
+Convert a clock duration into a duration used for waiting.
 
-[heading Thread Safety]
-
-[*Distinct] [*objects:] Safe.
 
-[*Shared] [*objects:] Safe.
+ static Clock::duration to_wait_duration(
+ const typename Clock::duration & d);
 
 
 
+[heading Return Value]
+
+`d`.
 
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/strand.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
+[endsect]
 
 
-[endsect]
 
+[endsect]
 
-[section:stream_socket_service stream_socket_service]
+[section:waitable_timer_service waitable_timer_service]
 
 
-Default service implementation for a stream socket.
+Default service implementation for a timer.
 
 
   template<
- typename ``[link boost_asio.reference.Protocol Protocol]``>
- class stream_socket_service :
+ typename Clock,
+ typename ``[link boost_asio.reference.WaitTraits WaitTraits]`` = boost::asio::wait_traits<Clock>>
+ class waitable_timer_service :
     public io_service::service
 
 
@@ -85008,36 +88611,36 @@
 
   [
 
- [[link boost_asio.reference.stream_socket_service.endpoint_type [*endpoint_type]]]
- [The endpoint type. ]
+ [[link boost_asio.reference.waitable_timer_service.clock_type [*clock_type]]]
+ [The clock type. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.stream_socket_service.implementation_type [*implementation_type]]]
- [The type of a stream socket implementation. ]
+ [[link boost_asio.reference.waitable_timer_service.duration [*duration]]]
+ [The duration type of the clock. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.stream_socket_service.native_handle_type [*native_handle_type]]]
- [The native socket type. ]
+ [[link boost_asio.reference.waitable_timer_service.implementation_type [*implementation_type]]]
+ [The implementation type of the waitable timer. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.stream_socket_service.native_type [*native_type]]]
- [(Deprecated: Use native_handle_type.) The native socket type. ]
+ [[link boost_asio.reference.waitable_timer_service.time_point [*time_point]]]
+ [The time point type of the clock. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.stream_socket_service.protocol_type [*protocol_type]]]
- [The protocol type. ]
+ [[link boost_asio.reference.waitable_timer_service.traits_type [*traits_type]]]
+ [The wait traits type. ]
   
   ]
 
@@ -85048,209 +88651,156 @@
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.stream_socket_service.assign [*assign]]]
- [Assign an existing native socket to a stream socket. ]
- ]
-
- [
- [[link boost_asio.reference.stream_socket_service.async_connect [*async_connect]]]
- [Start an asynchronous connect. ]
- ]
-
- [
- [[link boost_asio.reference.stream_socket_service.async_receive [*async_receive]]]
- [Start an asynchronous receive. ]
- ]
-
- [
- [[link boost_asio.reference.stream_socket_service.async_send [*async_send]]]
- [Start an asynchronous send. ]
- ]
-
- [
- [[link boost_asio.reference.stream_socket_service.at_mark [*at_mark]]]
- [Determine whether the socket is at the out-of-band data mark. ]
- ]
-
- [
- [[link boost_asio.reference.stream_socket_service.available [*available]]]
- [Determine the number of bytes available for reading. ]
+ [[link boost_asio.reference.waitable_timer_service.async_wait [*async_wait]]]
+ []
   ]
   
   [
- [[link boost_asio.reference.stream_socket_service.bind [*bind]]]
- [Bind the stream socket to the specified local endpoint. ]
+ [[link boost_asio.reference.waitable_timer_service.cancel [*cancel]]]
+ [Cancel any asynchronous wait operations associated with the timer. ]
   ]
   
   [
- [[link boost_asio.reference.stream_socket_service.cancel [*cancel]]]
- [Cancel all asynchronous operations associated with the socket. ]
+ [[link boost_asio.reference.waitable_timer_service.cancel_one [*cancel_one]]]
+ [Cancels one asynchronous wait operation associated with the timer. ]
   ]
   
   [
- [[link boost_asio.reference.stream_socket_service.close [*close]]]
- [Close a stream socket implementation. ]
+ [[link boost_asio.reference.waitable_timer_service.construct [*construct]]]
+ [Construct a new timer implementation. ]
   ]
   
   [
- [[link boost_asio.reference.stream_socket_service.connect [*connect]]]
- [Connect the stream socket to the specified endpoint. ]
+ [[link boost_asio.reference.waitable_timer_service.destroy [*destroy]]]
+ [Destroy a timer implementation. ]
   ]
   
   [
- [[link boost_asio.reference.stream_socket_service.construct [*construct]]]
- [Construct a new stream socket implementation. ]
+ [[link boost_asio.reference.waitable_timer_service.expires_at [*expires_at]]]
+ [Get the expiry time for the timer as an absolute time.
+
+ Set the expiry time for the timer as an absolute time. ]
   ]
   
   [
- [[link boost_asio.reference.stream_socket_service.destroy [*destroy]]]
- [Destroy a stream socket implementation. ]
+ [[link boost_asio.reference.waitable_timer_service.expires_from_now [*expires_from_now]]]
+ [Get the expiry time for the timer relative to now.
+
+ Set the expiry time for the timer relative to now. ]
   ]
   
   [
- [[link boost_asio.reference.stream_socket_service.get_io_service [*get_io_service]]]
+ [[link boost_asio.reference.waitable_timer_service.get_io_service [*get_io_service]]]
     [Get the io_service object that owns the service. ]
   ]
   
   [
- [[link boost_asio.reference.stream_socket_service.get_option [*get_option]]]
- [Get a socket option. ]
- ]
-
- [
- [[link boost_asio.reference.stream_socket_service.io_control [*io_control]]]
- [Perform an IO control command on the socket. ]
- ]
-
- [
- [[link boost_asio.reference.stream_socket_service.is_open [*is_open]]]
- [Determine whether the socket is open. ]
- ]
-
- [
- [[link boost_asio.reference.stream_socket_service.local_endpoint [*local_endpoint]]]
- [Get the local endpoint. ]
- ]
-
- [
- [[link boost_asio.reference.stream_socket_service.move_assign [*move_assign]]]
- [Move-assign from another stream socket implementation. ]
- ]
-
- [
- [[link boost_asio.reference.stream_socket_service.move_construct [*move_construct]]]
- [Move-construct a new stream socket implementation. ]
- ]
-
- [
- [[link boost_asio.reference.stream_socket_service.native [*native]]]
- [(Deprecated: Use native_handle().) Get the native socket implementation. ]
+ [[link boost_asio.reference.waitable_timer_service.wait [*wait]]]
+ []
   ]
   
   [
- [[link boost_asio.reference.stream_socket_service.native_handle [*native_handle]]]
- [Get the native socket implementation. ]
+ [[link boost_asio.reference.waitable_timer_service.waitable_timer_service [*waitable_timer_service]]]
+ [Construct a new timer service for the specified io_service. ]
   ]
   
- [
- [[link boost_asio.reference.stream_socket_service.native_non_blocking [*native_non_blocking]]]
- [Gets the non-blocking mode of the native socket implementation.
+]
 
- Sets the non-blocking mode of the native socket implementation. ]
- ]
-
- [
- [[link boost_asio.reference.stream_socket_service.non_blocking [*non_blocking]]]
- [Gets the non-blocking mode of the socket.
+[heading Data Members]
+[table
+ [[Name][Description]]
 
- Sets the non-blocking mode of the socket. ]
- ]
-
- [
- [[link boost_asio.reference.stream_socket_service.open [*open]]]
- [Open a stream socket. ]
- ]
-
- [
- [[link boost_asio.reference.stream_socket_service.receive [*receive]]]
- [Receive some data from the peer. ]
- ]
-
- [
- [[link boost_asio.reference.stream_socket_service.remote_endpoint [*remote_endpoint]]]
- [Get the remote endpoint. ]
- ]
-
   [
- [[link boost_asio.reference.stream_socket_service.send [*send]]]
- [Send the given data to the peer. ]
- ]
-
- [
- [[link boost_asio.reference.stream_socket_service.set_option [*set_option]]]
- [Set a socket option. ]
- ]
-
- [
- [[link boost_asio.reference.stream_socket_service.shutdown [*shutdown]]]
- [Disable sends or receives on the socket. ]
- ]
-
- [
- [[link boost_asio.reference.stream_socket_service.stream_socket_service [*stream_socket_service]]]
- [Construct a new stream socket service for the specified io_service. ]
+ [[link boost_asio.reference.waitable_timer_service.id [*id]]]
+ [The unique service identifier. ]
   ]
-
+
 ]
 
-[heading Data Members]
-[table
- [[Name][Description]]
+[heading Requirements]
+
+[*Header: ][^boost/asio/waitable_timer_service.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
+
+
+[section:async_wait waitable_timer_service::async_wait]
+
+[indexterm2 async_wait..waitable_timer_service]
+
+ template<
+ typename ``[link boost_asio.reference.WaitHandler WaitHandler]``>
+ void async_wait(
+ implementation_type & impl,
+ WaitHandler handler);
+
+
+
+[endsect]
+
+
+
+[section:cancel waitable_timer_service::cancel]
+
+[indexterm2 cancel..waitable_timer_service]
+Cancel any asynchronous wait operations associated with the timer.
+
+
+ std::size_t cancel(
+ implementation_type & impl,
+ boost::system::error_code & ec);
+
+
+
+[endsect]
+
+
+
+[section:cancel_one waitable_timer_service::cancel_one]
+
+[indexterm2 cancel_one..waitable_timer_service]
+Cancels one asynchronous wait operation associated with the timer.
+
+
+ std::size_t cancel_one(
+ implementation_type & impl,
+ boost::system::error_code & ec);
+
+
+
+[endsect]
 
- [
- [[link boost_asio.reference.stream_socket_service.id [*id]]]
- [The unique service identifier. ]
- ]
 
-]
 
-[heading Requirements]
+[section:clock_type waitable_timer_service::clock_type]
 
-[*Header: ][^boost/asio/stream_socket_service.hpp]
+[indexterm2 clock_type..waitable_timer_service]
+The clock type.
 
-[*Convenience header: ][^boost/asio.hpp]
 
+ typedef Clock clock_type;
 
-[section:assign stream_socket_service::assign]
 
-[indexterm2 assign..stream_socket_service]
-Assign an existing native socket to a stream socket.
 
+[heading Requirements]
 
- boost::system::error_code assign(
- implementation_type & impl,
- const protocol_type & protocol,
- const native_handle_type & native_socket,
- boost::system::error_code & ec);
+[*Header: ][^boost/asio/waitable_timer_service.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
 
-[section:async_connect stream_socket_service::async_connect]
+[section:construct waitable_timer_service::construct]
 
-[indexterm2 async_connect..stream_socket_service]
-Start an asynchronous connect.
+[indexterm2 construct..waitable_timer_service]
+Construct a new timer implementation.
 
 
- template<
- typename ``[link boost_asio.reference.ConnectHandler ConnectHandler]``>
- void async_connect(
- implementation_type & impl,
- const endpoint_type & peer_endpoint,
- ConnectHandler handler);
+ void construct(
+ implementation_type & impl);
 
 
 
@@ -85258,20 +88808,14 @@
 
 
 
-[section:async_receive stream_socket_service::async_receive]
+[section:destroy waitable_timer_service::destroy]
 
-[indexterm2 async_receive..stream_socket_service]
-Start an asynchronous receive.
+[indexterm2 destroy..waitable_timer_service]
+Destroy a timer implementation.
 
 
- template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``,
- typename ``[link boost_asio.reference.ReadHandler ReadHandler]``>
- void async_receive(
- implementation_type & impl,
- const MutableBufferSequence & buffers,
- socket_base::message_flags flags,
- ReadHandler handler);
+ void destroy(
+ implementation_type & impl);
 
 
 
@@ -85279,52 +88823,55 @@
 
 
 
-[section:async_send stream_socket_service::async_send]
+[section:duration waitable_timer_service::duration]
 
-[indexterm2 async_send..stream_socket_service]
-Start an asynchronous send.
+[indexterm2 duration..waitable_timer_service]
+The duration type of the clock.
 
 
- template<
- typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``,
- typename ``[link boost_asio.reference.WriteHandler WriteHandler]``>
- void async_send(
- implementation_type & impl,
- const ConstBufferSequence & buffers,
- socket_base::message_flags flags,
- WriteHandler handler);
+ typedef clock_type::duration duration;
+
+
+
+[heading Requirements]
+
+[*Header: ][^boost/asio/waitable_timer_service.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
+[section:expires_at waitable_timer_service::expires_at]
 
-[section:at_mark stream_socket_service::at_mark]
+[indexterm2 expires_at..waitable_timer_service]
+Get the expiry time for the timer as an absolute time.
 
-[indexterm2 at_mark..stream_socket_service]
-Determine whether the socket is at the out-of-band data mark.
 
+ time_point ``[link boost_asio.reference.waitable_timer_service.expires_at.overload1 expires_at]``(
+ const implementation_type & impl) const;
+ `` [''''&raquo;''' [link boost_asio.reference.waitable_timer_service.expires_at.overload1 more...]]``
 
- bool at_mark(
- const implementation_type & impl,
- boost::system::error_code & ec) const;
 
+Set the expiry time for the timer as an absolute time.
 
 
-[endsect]
+ std::size_t ``[link boost_asio.reference.waitable_timer_service.expires_at.overload2 expires_at]``(
+ implementation_type & impl,
+ const time_point & expiry_time,
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.waitable_timer_service.expires_at.overload2 more...]]``
 
 
+[section:overload1 waitable_timer_service::expires_at (1 of 2 overloads)]
 
-[section:available stream_socket_service::available]
 
-[indexterm2 available..stream_socket_service]
-Determine the number of bytes available for reading.
+Get the expiry time for the timer as an absolute time.
 
 
- std::size_t available(
- const implementation_type & impl,
- boost::system::error_code & ec) const;
+ time_point expires_at(
+ const implementation_type & impl) const;
 
 
 
@@ -85332,15 +88879,15 @@
 
 
 
-[section:bind stream_socket_service::bind]
+[section:overload2 waitable_timer_service::expires_at (2 of 2 overloads)]
 
-[indexterm2 bind..stream_socket_service]
-Bind the stream socket to the specified local endpoint.
 
+Set the expiry time for the timer as an absolute time.
 
- boost::system::error_code bind(
+
+ std::size_t expires_at(
       implementation_type & impl,
- const endpoint_type & endpoint,
+ const time_point & expiry_time,
       boost::system::error_code & ec);
 
 
@@ -85348,16 +88895,37 @@
 [endsect]
 
 
+[endsect]
 
-[section:cancel stream_socket_service::cancel]
+[section:expires_from_now waitable_timer_service::expires_from_now]
 
-[indexterm2 cancel..stream_socket_service]
-Cancel all asynchronous operations associated with the socket.
+[indexterm2 expires_from_now..waitable_timer_service]
+Get the expiry time for the timer relative to now.
 
 
- boost::system::error_code cancel(
+ duration ``[link boost_asio.reference.waitable_timer_service.expires_from_now.overload1 expires_from_now]``(
+ const implementation_type & impl) const;
+ `` [''''&raquo;''' [link boost_asio.reference.waitable_timer_service.expires_from_now.overload1 more...]]``
+
+
+Set the expiry time for the timer relative to now.
+
+
+ std::size_t ``[link boost_asio.reference.waitable_timer_service.expires_from_now.overload2 expires_from_now]``(
       implementation_type & impl,
+ const duration & expiry_time,
       boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.waitable_timer_service.expires_from_now.overload2 more...]]``
+
+
+[section:overload1 waitable_timer_service::expires_from_now (1 of 2 overloads)]
+
+
+Get the expiry time for the timer relative to now.
+
+
+ duration expires_from_now(
+ const implementation_type & impl) const;
 
 
 
@@ -85365,14 +88933,15 @@
 
 
 
-[section:close stream_socket_service::close]
+[section:overload2 waitable_timer_service::expires_from_now (2 of 2 overloads)]
 
-[indexterm2 close..stream_socket_service]
-Close a stream socket implementation.
 
+Set the expiry time for the timer relative to now.
 
- boost::system::error_code close(
+
+ std::size_t expires_from_now(
       implementation_type & impl,
+ const duration & expiry_time,
       boost::system::error_code & ec);
 
 
@@ -85380,17 +88949,19 @@
 [endsect]
 
 
+[endsect]
 
-[section:connect stream_socket_service::connect]
 
-[indexterm2 connect..stream_socket_service]
-Connect the stream socket to the specified endpoint.
+[section:get_io_service waitable_timer_service::get_io_service]
 
 
- boost::system::error_code connect(
- implementation_type & impl,
- const endpoint_type & peer_endpoint,
- boost::system::error_code & ec);
+['Inherited from io_service.]
+
+[indexterm2 get_io_service..waitable_timer_service]
+Get the [link boost_asio.reference.io_service `io_service`] object that owns the service.
+
+
+ boost::asio::io_service & get_io_service();
 
 
 
@@ -85398,14 +88969,13 @@
 
 
 
-[section:construct stream_socket_service::construct]
+[section:id waitable_timer_service::id]
 
-[indexterm2 construct..stream_socket_service]
-Construct a new stream socket implementation.
+[indexterm2 id..waitable_timer_service]
+The unique service identifier.
 
 
- void construct(
- implementation_type & impl);
+ static boost::asio::io_service::id id;
 
 
 
@@ -85413,34 +88983,40 @@
 
 
 
-[section:destroy stream_socket_service::destroy]
+[section:implementation_type waitable_timer_service::implementation_type]
 
-[indexterm2 destroy..stream_socket_service]
-Destroy a stream socket implementation.
+[indexterm2 implementation_type..waitable_timer_service]
+The implementation type of the waitable timer.
 
 
- void destroy(
- implementation_type & impl);
+ typedef implementation_defined implementation_type;
+
+
+
+[heading Requirements]
+
+[*Header: ][^boost/asio/waitable_timer_service.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
 
-[section:endpoint_type stream_socket_service::endpoint_type]
+[section:time_point waitable_timer_service::time_point]
 
-[indexterm2 endpoint_type..stream_socket_service]
-The endpoint type.
+[indexterm2 time_point..waitable_timer_service]
+The time point type of the clock.
 
 
- typedef Protocol::endpoint endpoint_type;
+ typedef clock_type::time_point time_point;
 
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/stream_socket_service.hpp]
+[*Header: ][^boost/asio/waitable_timer_service.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -85449,35 +89025,34 @@
 
 
 
-[section:get_io_service stream_socket_service::get_io_service]
+[section:traits_type waitable_timer_service::traits_type]
 
+[indexterm2 traits_type..waitable_timer_service]
+The wait traits type.
 
-['Inherited from io_service.]
 
-[indexterm2 get_io_service..stream_socket_service]
-Get the [link boost_asio.reference.io_service `io_service`] object that owns the service.
+ typedef WaitTraits traits_type;
 
 
- boost::asio::io_service & get_io_service();
 
+[heading Requirements]
 
+[*Header: ][^boost/asio/waitable_timer_service.hpp]
 
-[endsect]
+[*Convenience header: ][^boost/asio.hpp]
 
 
+[endsect]
 
-[section:get_option stream_socket_service::get_option]
 
-[indexterm2 get_option..stream_socket_service]
-Get a socket option.
 
+[section:wait waitable_timer_service::wait]
 
- template<
- typename ``[link boost_asio.reference.GettableSocketOption GettableSocketOption]``>
- boost::system::error_code get_option(
- const implementation_type & impl,
- GettableSocketOption & option,
- boost::system::error_code & ec) const;
+[indexterm2 wait..waitable_timer_service]
+
+ void wait(
+ implementation_type & impl,
+ boost::system::error_code & ec);
 
 
 
@@ -85485,13 +89060,14 @@
 
 
 
-[section:id stream_socket_service::id]
+[section:waitable_timer_service waitable_timer_service::waitable_timer_service]
 
-[indexterm2 id..stream_socket_service]
-The unique service identifier.
+[indexterm2 waitable_timer_service..waitable_timer_service]
+Construct a new timer service for the specified [link boost_asio.reference.io_service `io_service`].
 
 
- static boost::asio::io_service::id id;
+ waitable_timer_service(
+ boost::asio::io_service & io_service);
 
 
 
@@ -85499,38 +89075,216 @@
 
 
 
-[section:implementation_type stream_socket_service::implementation_type]
+[endsect]
 
-[indexterm2 implementation_type..stream_socket_service]
-The type of a stream socket implementation.
+[section:windows__basic_handle windows::basic_handle]
 
 
- typedef implementation_defined implementation_type;
+Provides Windows handle functionality.
+
+
+ template<
+ typename ``[link boost_asio.reference.HandleService HandleService]``>
+ class basic_handle :
+ public basic_io_object< HandleService >
+
+
+[heading Types]
+[table
+ [[Name][Description]]
+
+ [
+
+ [[link boost_asio.reference.windows__basic_handle.implementation_type [*implementation_type]]]
+ [The underlying implementation type of I/O object. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.windows__basic_handle.lowest_layer_type [*lowest_layer_type]]]
+ [A basic_handle is always the lowest layer. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.windows__basic_handle.native_handle_type [*native_handle_type]]]
+ [The native representation of a handle. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.windows__basic_handle.native_type [*native_type]]]
+ [(Deprecated: Use native_handle_type.) The native representation of a handle. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.windows__basic_handle.service_type [*service_type]]]
+ [The type of the service that will be used to provide I/O operations. ]
+
+ ]
+
+]
+
+[heading Member Functions]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.windows__basic_handle.assign [*assign]]]
+ [Assign an existing native handle to the handle. ]
+ ]
+
+ [
+ [[link boost_asio.reference.windows__basic_handle.basic_handle [*basic_handle]]]
+ [Construct a basic_handle without opening it.
+
+ Construct a basic_handle on an existing native handle.
+
+ Move-construct a basic_handle from another. ]
+ ]
+
+ [
+ [[link boost_asio.reference.windows__basic_handle.cancel [*cancel]]]
+ [Cancel all asynchronous operations associated with the handle. ]
+ ]
+
+ [
+ [[link boost_asio.reference.windows__basic_handle.close [*close]]]
+ [Close the handle. ]
+ ]
+
+ [
+ [[link boost_asio.reference.windows__basic_handle.get_io_service [*get_io_service]]]
+ [Get the io_service associated with the object. ]
+ ]
+
+ [
+ [[link boost_asio.reference.windows__basic_handle.is_open [*is_open]]]
+ [Determine whether the handle is open. ]
+ ]
+
+ [
+ [[link boost_asio.reference.windows__basic_handle.lowest_layer [*lowest_layer]]]
+ [Get a reference to the lowest layer.
+
+ Get a const reference to the lowest layer. ]
+ ]
+
+ [
+ [[link boost_asio.reference.windows__basic_handle.native [*native]]]
+ [(Deprecated: Use native_handle().) Get the native handle representation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.windows__basic_handle.native_handle [*native_handle]]]
+ [Get the native handle representation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.windows__basic_handle.operator_eq_ [*operator=]]]
+ [Move-assign a basic_handle from another. ]
+ ]
+
+]
+
+[heading Protected Member Functions]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.windows__basic_handle.get_implementation [*get_implementation]]]
+ [Get the underlying implementation of the I/O object. ]
+ ]
+
+ [
+ [[link boost_asio.reference.windows__basic_handle.get_service [*get_service]]]
+ [Get the service associated with the I/O object. ]
+ ]
+
+ [
+ [[link boost_asio.reference.windows__basic_handle._basic_handle [*~basic_handle]]]
+ [Protected destructor to prevent deletion through this type. ]
+ ]
+
+]
+
+[heading Protected Data Members]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.windows__basic_handle.implementation [*implementation]]]
+ [(Deprecated: Use get_implementation().) The underlying implementation of the I/O object. ]
+ ]
+
+ [
+ [[link boost_asio.reference.windows__basic_handle.service [*service]]]
+ [(Deprecated: Use get_service().) The service associated with the I/O object. ]
+ ]
+
+]
+
+The [link boost_asio.reference.windows__basic_handle `windows::basic_handle`] class template provides the ability to wrap a Windows handle.
+
+
+[heading Thread Safety]
+
+[*Distinct] [*objects:] Safe.
+
+[*Shared] [*objects:] Unsafe.
 
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/stream_socket_service.hpp]
+[*Header: ][^boost/asio/windows/basic_handle.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
+[section:assign windows::basic_handle::assign]
+
+[indexterm2 assign..windows::basic_handle]
+Assign an existing native handle to the handle.
+
+
+ void ``[link boost_asio.reference.windows__basic_handle.assign.overload1 assign]``(
+ const native_handle_type & handle);
+ `` [''''&raquo;''' [link boost_asio.reference.windows__basic_handle.assign.overload1 more...]]``
+
+ boost::system::error_code ``[link boost_asio.reference.windows__basic_handle.assign.overload2 assign]``(
+ const native_handle_type & handle,
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.windows__basic_handle.assign.overload2 more...]]``
+
+
+[section:overload1 windows::basic_handle::assign (1 of 2 overloads)]
+
+
+Assign an existing native handle to the handle.
+
+
+ void assign(
+ const native_handle_type & handle);
+
+
 
 [endsect]
 
 
 
-[section:io_control stream_socket_service::io_control]
+[section:overload2 windows::basic_handle::assign (2 of 2 overloads)]
 
-[indexterm2 io_control..stream_socket_service]
-Perform an IO control command on the socket.
 
+Assign an existing native handle to the handle.
 
- template<
- typename ``[link boost_asio.reference.IoControlCommand IoControlCommand]``>
- boost::system::error_code io_control(
- implementation_type & impl,
- IoControlCommand & command,
+
+ boost::system::error_code assign(
+ const native_handle_type & handle,
       boost::system::error_code & ec);
 
 
@@ -85538,31 +89292,58 @@
 [endsect]
 
 
+[endsect]
 
-[section:is_open stream_socket_service::is_open]
+[section:basic_handle windows::basic_handle::basic_handle]
 
-[indexterm2 is_open..stream_socket_service]
-Determine whether the socket is open.
+[indexterm2 basic_handle..windows::basic_handle]
+Construct a [link boost_asio.reference.windows__basic_handle `windows::basic_handle`] without opening it.
 
 
- bool is_open(
- const implementation_type & impl) const;
+ explicit ``[link boost_asio.reference.windows__basic_handle.basic_handle.overload1 basic_handle]``(
+ boost::asio::io_service & io_service);
+ `` [''''&raquo;''' [link boost_asio.reference.windows__basic_handle.basic_handle.overload1 more...]]``
 
 
+Construct a [link boost_asio.reference.windows__basic_handle `windows::basic_handle`] on an existing native handle.
 
-[endsect]
 
+ ``[link boost_asio.reference.windows__basic_handle.basic_handle.overload2 basic_handle]``(
+ boost::asio::io_service & io_service,
+ const native_handle_type & handle);
+ `` [''''&raquo;''' [link boost_asio.reference.windows__basic_handle.basic_handle.overload2 more...]]``
 
 
-[section:local_endpoint stream_socket_service::local_endpoint]
+Move-construct a [link boost_asio.reference.windows__basic_handle `windows::basic_handle`] from another.
 
-[indexterm2 local_endpoint..stream_socket_service]
-Get the local endpoint.
 
+ ``[link boost_asio.reference.windows__basic_handle.basic_handle.overload3 basic_handle]``(
+ basic_handle && other);
+ `` [''''&raquo;''' [link boost_asio.reference.windows__basic_handle.basic_handle.overload3 more...]]``
+
+
+[section:overload1 windows::basic_handle::basic_handle (1 of 3 overloads)]
+
+
+Construct a [link boost_asio.reference.windows__basic_handle `windows::basic_handle`] without opening it.
+
+
+ basic_handle(
+ boost::asio::io_service & io_service);
+
+
+This constructor creates a handle without opening it.
+
+
+[heading Parameters]
+
+
+[variablelist
+
+[[io_service][The [link boost_asio.reference.io_service `io_service`] object that the handle will use to dispatch handlers for any asynchronous operations performed on the handle. ]]
+
+]
 
- endpoint_type local_endpoint(
- const implementation_type & impl,
- boost::system::error_code & ec) const;
 
 
 
@@ -85570,16 +89351,41 @@
 
 
 
-[section:move_assign stream_socket_service::move_assign]
+[section:overload2 windows::basic_handle::basic_handle (2 of 3 overloads)]
 
-[indexterm2 move_assign..stream_socket_service]
-Move-assign from another stream socket implementation.
 
+Construct a [link boost_asio.reference.windows__basic_handle `windows::basic_handle`] on an existing native handle.
+
+
+ basic_handle(
+ boost::asio::io_service & io_service,
+ const native_handle_type & handle);
+
+
+This constructor creates a handle object to hold an existing native handle.
+
+
+[heading Parameters]
+
+
+[variablelist
+
+[[io_service][The [link boost_asio.reference.io_service `io_service`] object that the handle will use to dispatch handlers for any asynchronous operations performed on the handle.]]
+
+[[handle][A native handle.]]
+
+]
+
+
+[heading Exceptions]
+
+
+[variablelist
+
+[[boost::system::system_error][Thrown on failure. ]]
+
+]
 
- void move_assign(
- implementation_type & impl,
- stream_socket_service & other_service,
- implementation_type & other_impl);
 
 
 
@@ -85587,45 +89393,76 @@
 
 
 
-[section:move_construct stream_socket_service::move_construct]
+[section:overload3 windows::basic_handle::basic_handle (3 of 3 overloads)]
+
+
+Move-construct a [link boost_asio.reference.windows__basic_handle `windows::basic_handle`] from another.
+
+
+ basic_handle(
+ basic_handle && other);
+
+
+This constructor moves a handle from one object to another.
+
+
+[heading Parameters]
+
+
+[variablelist
+
+[[other][The other [link boost_asio.reference.windows__basic_handle `windows::basic_handle`] object from which the move will occur.]]
+
+]
+
+
+[heading Remarks]
+
+Following the move, the moved-from object is in the same state as if constructed using the `basic_handle(io_service&) constructor`.
 
-[indexterm2 move_construct..stream_socket_service]
-Move-construct a new stream socket implementation.
 
 
- void move_construct(
- implementation_type & impl,
- implementation_type & other_impl);
 
+[endsect]
 
 
 [endsect]
 
+[section:cancel windows::basic_handle::cancel]
 
+[indexterm2 cancel..windows::basic_handle]
+Cancel all asynchronous operations associated with the handle.
 
-[section:native stream_socket_service::native]
 
-[indexterm2 native..stream_socket_service]
-(Deprecated: Use `native_handle()`.) Get the native socket implementation.
+ void ``[link boost_asio.reference.windows__basic_handle.cancel.overload1 cancel]``();
+ `` [''''&raquo;''' [link boost_asio.reference.windows__basic_handle.cancel.overload1 more...]]``
 
+ boost::system::error_code ``[link boost_asio.reference.windows__basic_handle.cancel.overload2 cancel]``(
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.windows__basic_handle.cancel.overload2 more...]]``
 
- native_type native(
- implementation_type & impl);
 
+[section:overload1 windows::basic_handle::cancel (1 of 2 overloads)]
 
 
-[endsect]
+Cancel all asynchronous operations associated with the handle.
 
 
+ void cancel();
 
-[section:native_handle stream_socket_service::native_handle]
 
-[indexterm2 native_handle..stream_socket_service]
-Get the native socket implementation.
+This function causes all outstanding asynchronous read or write operations to finish immediately, and the handlers for cancelled operations will be passed the `boost::asio::error::operation_aborted` error.
 
 
- native_handle_type native_handle(
- implementation_type & impl);
+[heading Exceptions]
+
+
+[variablelist
+
+[[boost::system::system_error][Thrown on failure. ]]
+
+]
+
 
 
 
@@ -85633,130 +89470,131 @@
 
 
 
-[section:native_handle_type stream_socket_service::native_handle_type]
+[section:overload2 windows::basic_handle::cancel (2 of 2 overloads)]
 
-[indexterm2 native_handle_type..stream_socket_service]
-The native socket type.
+
+Cancel all asynchronous operations associated with the handle.
 
 
- typedef implementation_defined native_handle_type;
+ boost::system::error_code cancel(
+ boost::system::error_code & ec);
 
 
+This function causes all outstanding asynchronous read or write operations to finish immediately, and the handlers for cancelled operations will be passed the `boost::asio::error::operation_aborted` error.
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/stream_socket_service.hpp]
+[heading Parameters]
+
 
-[*Convenience header: ][^boost/asio.hpp]
+[variablelist
+
+[[ec][Set to indicate what error occurred, if any. ]]
 
+]
 
-[endsect]
 
 
-[section:native_non_blocking stream_socket_service::native_non_blocking]
 
-[indexterm2 native_non_blocking..stream_socket_service]
-Gets the non-blocking mode of the native socket implementation.
+[endsect]
 
 
- bool ``[link boost_asio.reference.stream_socket_service.native_non_blocking.overload1 native_non_blocking]``(
- const implementation_type & impl) const;
- `` [''''&raquo;''' [link boost_asio.reference.stream_socket_service.native_non_blocking.overload1 more...]]``
+[endsect]
 
+[section:close windows::basic_handle::close]
 
-Sets the non-blocking mode of the native socket implementation.
+[indexterm2 close..windows::basic_handle]
+Close the handle.
 
 
- boost::system::error_code ``[link boost_asio.reference.stream_socket_service.native_non_blocking.overload2 native_non_blocking]``(
- implementation_type & impl,
- bool mode,
+ void ``[link boost_asio.reference.windows__basic_handle.close.overload1 close]``();
+ `` [''''&raquo;''' [link boost_asio.reference.windows__basic_handle.close.overload1 more...]]``
+
+ boost::system::error_code ``[link boost_asio.reference.windows__basic_handle.close.overload2 close]``(
       boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.stream_socket_service.native_non_blocking.overload2 more...]]``
+ `` [''''&raquo;''' [link boost_asio.reference.windows__basic_handle.close.overload2 more...]]``
 
 
-[section:overload1 stream_socket_service::native_non_blocking (1 of 2 overloads)]
+[section:overload1 windows::basic_handle::close (1 of 2 overloads)]
 
 
-Gets the non-blocking mode of the native socket implementation.
+Close the handle.
 
 
- bool native_non_blocking(
- const implementation_type & impl) const;
+ void close();
 
 
+This function is used to close the handle. Any asynchronous read or write operations will be cancelled immediately, and will complete with the `boost::asio::error::operation_aborted` error.
 
-[endsect]
 
+[heading Exceptions]
+
 
+[variablelist
+
+[[boost::system::system_error][Thrown on failure. ]]
 
-[section:overload2 stream_socket_service::native_non_blocking (2 of 2 overloads)]
+]
 
 
-Sets the non-blocking mode of the native socket implementation.
 
 
- boost::system::error_code native_non_blocking(
- implementation_type & impl,
- bool mode,
- boost::system::error_code & ec);
+[endsect]
 
 
 
-[endsect]
+[section:overload2 windows::basic_handle::close (2 of 2 overloads)]
 
 
-[endsect]
+Close the handle.
 
 
-[section:native_type stream_socket_service::native_type]
+ boost::system::error_code close(
+ boost::system::error_code & ec);
 
-[indexterm2 native_type..stream_socket_service]
-(Deprecated: Use native\_handle\_type.) The native socket type.
 
+This function is used to close the handle. Any asynchronous read or write operations will be cancelled immediately, and will complete with the `boost::asio::error::operation_aborted` error.
 
- typedef implementation_defined native_type;
 
+[heading Parameters]
+
 
+[variablelist
+
+[[ec][Set to indicate what error occurred, if any. ]]
 
-[heading Requirements]
+]
 
-[*Header: ][^boost/asio/stream_socket_service.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
-[section:non_blocking stream_socket_service::non_blocking]
+[endsect]
 
-[indexterm2 non_blocking..stream_socket_service]
-Gets the non-blocking mode of the socket.
+[section:get_implementation windows::basic_handle::get_implementation]
 
+[indexterm2 get_implementation..windows::basic_handle]
+Get the underlying implementation of the I/O object.
 
- bool ``[link boost_asio.reference.stream_socket_service.non_blocking.overload1 non_blocking]``(
- const implementation_type & impl) const;
- `` [''''&raquo;''' [link boost_asio.reference.stream_socket_service.non_blocking.overload1 more...]]``
 
+ implementation_type & ``[link boost_asio.reference.windows__basic_handle.get_implementation.overload1 get_implementation]``();
+ `` [''''&raquo;''' [link boost_asio.reference.windows__basic_handle.get_implementation.overload1 more...]]``
 
-Sets the non-blocking mode of the socket.
+ const implementation_type & ``[link boost_asio.reference.windows__basic_handle.get_implementation.overload2 get_implementation]``() const;
+ `` [''''&raquo;''' [link boost_asio.reference.windows__basic_handle.get_implementation.overload2 more...]]``
 
 
- boost::system::error_code ``[link boost_asio.reference.stream_socket_service.non_blocking.overload2 non_blocking]``(
- implementation_type & impl,
- bool mode,
- boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.stream_socket_service.non_blocking.overload2 more...]]``
+[section:overload1 windows::basic_handle::get_implementation (1 of 2 overloads)]
 
 
-[section:overload1 stream_socket_service::non_blocking (1 of 2 overloads)]
+['Inherited from basic_io_object.]
 
 
-Gets the non-blocking mode of the socket.
+Get the underlying implementation of the I/O object.
 
 
- bool non_blocking(
- const implementation_type & impl) const;
+ implementation_type & get_implementation();
 
 
 
@@ -85764,358 +89602,263 @@
 
 
 
-[section:overload2 stream_socket_service::non_blocking (2 of 2 overloads)]
+[section:overload2 windows::basic_handle::get_implementation (2 of 2 overloads)]
 
 
-Sets the non-blocking mode of the socket.
+['Inherited from basic_io_object.]
 
 
- boost::system::error_code non_blocking(
- implementation_type & impl,
- bool mode,
- boost::system::error_code & ec);
+Get the underlying implementation of the I/O object.
 
 
+ const implementation_type & get_implementation() const;
 
-[endsect]
 
 
 [endsect]
 
 
-[section:open stream_socket_service::open]
-
-[indexterm2 open..stream_socket_service]
-Open a stream socket.
-
+[endsect]
 
- boost::system::error_code open(
- implementation_type & impl,
- const protocol_type & protocol,
- boost::system::error_code & ec);
 
+[section:get_io_service windows::basic_handle::get_io_service]
 
 
-[endsect]
+['Inherited from basic_io_object.]
 
+[indexterm2 get_io_service..windows::basic_handle]
+Get the [link boost_asio.reference.io_service `io_service`] associated with the object.
 
 
-[section:protocol_type stream_socket_service::protocol_type]
+ boost::asio::io_service & get_io_service();
 
-[indexterm2 protocol_type..stream_socket_service]
-The protocol type.
 
+This function may be used to obtain the [link boost_asio.reference.io_service `io_service`] object that the I/O object uses to dispatch handlers for asynchronous operations.
 
- typedef Protocol protocol_type;
 
+[heading Return Value]
+
+A reference to the [link boost_asio.reference.io_service `io_service`] object that the I/O object will use to dispatch handlers. Ownership is not transferred to the caller.
 
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/stream_socket_service.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
+[endsect]
 
 
-[endsect]
+[section:get_service windows::basic_handle::get_service]
 
+[indexterm2 get_service..windows::basic_handle]
+Get the service associated with the I/O object.
 
 
-[section:receive stream_socket_service::receive]
+ service_type & ``[link boost_asio.reference.windows__basic_handle.get_service.overload1 get_service]``();
+ `` [''''&raquo;''' [link boost_asio.reference.windows__basic_handle.get_service.overload1 more...]]``
 
-[indexterm2 receive..stream_socket_service]
-Receive some data from the peer.
+ const service_type & ``[link boost_asio.reference.windows__basic_handle.get_service.overload2 get_service]``() const;
+ `` [''''&raquo;''' [link boost_asio.reference.windows__basic_handle.get_service.overload2 more...]]``
 
 
- template<
- typename ``[link boost_asio.reference.MutableBufferSequence MutableBufferSequence]``>
- std::size_t receive(
- implementation_type & impl,
- const MutableBufferSequence & buffers,
- socket_base::message_flags flags,
- boost::system::error_code & ec);
+[section:overload1 windows::basic_handle::get_service (1 of 2 overloads)]
 
 
+['Inherited from basic_io_object.]
 
-[endsect]
 
+Get the service associated with the I/O object.
 
 
-[section:remote_endpoint stream_socket_service::remote_endpoint]
+ service_type & get_service();
 
-[indexterm2 remote_endpoint..stream_socket_service]
-Get the remote endpoint.
 
 
- endpoint_type remote_endpoint(
- const implementation_type & impl,
- boost::system::error_code & ec) const;
+[endsect]
 
 
 
-[endsect]
+[section:overload2 windows::basic_handle::get_service (2 of 2 overloads)]
 
 
+['Inherited from basic_io_object.]
 
-[section:send stream_socket_service::send]
 
-[indexterm2 send..stream_socket_service]
-Send the given data to the peer.
+Get the service associated with the I/O object.
 
 
- template<
- typename ``[link boost_asio.reference.ConstBufferSequence ConstBufferSequence]``>
- std::size_t send(
- implementation_type & impl,
- const ConstBufferSequence & buffers,
- socket_base::message_flags flags,
- boost::system::error_code & ec);
+ const service_type & get_service() const;
 
 
 
 [endsect]
 
 
+[endsect]
 
-[section:set_option stream_socket_service::set_option]
 
-[indexterm2 set_option..stream_socket_service]
-Set a socket option.
+[section:implementation windows::basic_handle::implementation]
 
 
- template<
- typename ``[link boost_asio.reference.SettableSocketOption SettableSocketOption]``>
- boost::system::error_code set_option(
- implementation_type & impl,
- const SettableSocketOption & option,
- boost::system::error_code & ec);
+['Inherited from basic_io_object.]
 
+[indexterm2 implementation..windows::basic_handle]
+(Deprecated: Use `get_implementation()`.) The underlying implementation of the I/O object.
 
 
-[endsect]
+ implementation_type implementation;
 
 
 
-[section:shutdown stream_socket_service::shutdown]
+[endsect]
 
-[indexterm2 shutdown..stream_socket_service]
-Disable sends or receives on the socket.
 
 
- boost::system::error_code shutdown(
- implementation_type & impl,
- socket_base::shutdown_type what,
- boost::system::error_code & ec);
+[section:implementation_type windows::basic_handle::implementation_type]
 
 
+['Inherited from basic_io_object.]
 
-[endsect]
+[indexterm2 implementation_type..windows::basic_handle]
+The underlying implementation type of I/O object.
 
 
+ typedef service_type::implementation_type implementation_type;
 
-[section:stream_socket_service stream_socket_service::stream_socket_service]
 
-[indexterm2 stream_socket_service..stream_socket_service]
-Construct a new stream socket service for the specified [link boost_asio.reference.io_service `io_service`].
 
+[heading Requirements]
 
- stream_socket_service(
- boost::asio::io_service & io_service);
+[*Header: ][^boost/asio/windows/basic_handle.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
 
-[endsect]
-
+[section:is_open windows::basic_handle::is_open]
 
-[section:streambuf streambuf]
+[indexterm2 is_open..windows::basic_handle]
+Determine whether the handle is open.
 
-[indexterm1 streambuf]
-Typedef for the typical usage of [link boost_asio.reference.basic_streambuf `basic_streambuf`].
 
+ bool is_open() const;
 
- typedef basic_streambuf streambuf;
 
 
-[heading Types]
-[table
- [[Name][Description]]
+[endsect]
 
- [
 
- [[link boost_asio.reference.basic_streambuf.const_buffers_type [*const_buffers_type]]]
- [The type used to represent the input sequence as a list of buffers. ]
-
- ]
+[section:lowest_layer windows::basic_handle::lowest_layer]
 
- [
+[indexterm2 lowest_layer..windows::basic_handle]
+Get a reference to the lowest layer.
 
- [[link boost_asio.reference.basic_streambuf.mutable_buffers_type [*mutable_buffers_type]]]
- [The type used to represent the output sequence as a list of buffers. ]
-
- ]
 
-]
+ lowest_layer_type & ``[link boost_asio.reference.windows__basic_handle.lowest_layer.overload1 lowest_layer]``();
+ `` [''''&raquo;''' [link boost_asio.reference.windows__basic_handle.lowest_layer.overload1 more...]]``
 
-[heading Member Functions]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.basic_streambuf.basic_streambuf [*basic_streambuf]]]
- [Construct a basic_streambuf object. ]
- ]
-
- [
- [[link boost_asio.reference.basic_streambuf.commit [*commit]]]
- [Move characters from the output sequence to the input sequence. ]
- ]
-
- [
- [[link boost_asio.reference.basic_streambuf.consume [*consume]]]
- [Remove characters from the input sequence. ]
- ]
-
- [
- [[link boost_asio.reference.basic_streambuf.data [*data]]]
- [Get a list of buffers that represents the input sequence. ]
- ]
-
- [
- [[link boost_asio.reference.basic_streambuf.max_size [*max_size]]]
- [Get the maximum size of the basic_streambuf. ]
- ]
-
- [
- [[link boost_asio.reference.basic_streambuf.prepare [*prepare]]]
- [Get a list of buffers that represents the output sequence, with the given size. ]
- ]
-
- [
- [[link boost_asio.reference.basic_streambuf.size [*size]]]
- [Get the size of the input sequence. ]
- ]
-
-]
+Get a const reference to the lowest layer.
 
-[heading Protected Member Functions]
-[table
- [[Name][Description]]
 
- [
- [[link boost_asio.reference.basic_streambuf.overflow [*overflow]]]
- [Override std::streambuf behaviour. ]
- ]
-
- [
- [[link boost_asio.reference.basic_streambuf.reserve [*reserve]]]
- []
- ]
-
- [
- [[link boost_asio.reference.basic_streambuf.underflow [*underflow]]]
- [Override std::streambuf behaviour. ]
- ]
-
-]
+ const lowest_layer_type & ``[link boost_asio.reference.windows__basic_handle.lowest_layer.overload2 lowest_layer]``() const;
+ `` [''''&raquo;''' [link boost_asio.reference.windows__basic_handle.lowest_layer.overload2 more...]]``
 
-The `basic_streambuf` class is derived from `std::streambuf` to associate the streambuf's input and output sequences with one or more character arrays. These character arrays are internal to the `basic_streambuf` object, but direct access to the array elements is provided to permit them to be used efficiently with I/O operations. Characters written to the output sequence of a `basic_streambuf` object are appended to the input sequence of the same object.
 
-The `basic_streambuf` class's public interface is intended to permit the following implementation strategies:
+[section:overload1 windows::basic_handle::lowest_layer (1 of 2 overloads)]
 
 
-* A single contiguous character array, which is reallocated as necessary to accommodate changes in the size of the character sequence. This is the implementation approach currently used in Asio.
+Get a reference to the lowest layer.
 
 
-* A sequence of one or more character arrays, where each array is of the same size. Additional character array objects are appended to the sequence to accommodate changes in the size of the character sequence.
+ lowest_layer_type & lowest_layer();
 
 
-* A sequence of one or more character arrays of varying sizes. Additional character array objects are appended to the sequence to accommodate changes in the size of the character sequence.
+This function returns a reference to the lowest layer in a stack of layers. Since a [link boost_asio.reference.windows__basic_handle `windows::basic_handle`] cannot contain any further layers, it simply returns a reference to itself.
 
-The constructor for [link boost_asio.reference.basic_streambuf `basic_streambuf`] accepts a `size_t` argument specifying the maximum of the sum of the sizes of the input sequence and output sequence. During the lifetime of the `basic_streambuf` object, the following invariant holds:
 
- size() <= max_size()
+[heading Return Value]
+
+A reference to the lowest layer in the stack of layers. Ownership is not transferred to the caller.
 
 
-Any member function that would, if successful, cause the invariant to be violated shall throw an exception of class `std::length_error`.
 
-The constructor for `basic_streambuf` takes an Allocator argument. A copy of this argument is used for any memory allocation performed, by the constructor and by all member functions, during the lifetime of each `basic_streambuf` object.
 
+[endsect]
 
-[heading Examples]
-
-Writing directly from an streambuf to a socket:
 
- boost::asio::streambuf b;
- std::ostream os(&b);
- os << "Hello, World!\n";
 
- // try sending some data in input sequence
- size_t n = sock.send(b.data());
+[section:overload2 windows::basic_handle::lowest_layer (2 of 2 overloads)]
 
- b.consume(n); // sent data is removed from input sequence
 
+Get a const reference to the lowest layer.
 
 
+ const lowest_layer_type & lowest_layer() const;
 
-Reading from a socket directly into a streambuf:
 
- boost::asio::streambuf b;
+This function returns a const reference to the lowest layer in a stack of layers. Since a [link boost_asio.reference.windows__basic_handle `windows::basic_handle`] cannot contain any further layers, it simply returns a reference to itself.
 
- // reserve 512 bytes in output sequence
- boost::asio::streambuf::mutable_buffers_type bufs = b.prepare(512);
 
- size_t n = sock.receive(bufs);
+[heading Return Value]
+
+A const reference to the lowest layer in the stack of layers. Ownership is not transferred to the caller.
 
- // received data is "committed" from output sequence to input sequence
- b.commit(n);
 
- std::istream is(&b);
- std::string s;
- is >> s;
 
 
+[endsect]
 
 
+[endsect]
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/streambuf.hpp]
+[section:lowest_layer_type windows::basic_handle::lowest_layer_type]
 
-[*Convenience header: ][^boost/asio.hpp]
+[indexterm2 lowest_layer_type..windows::basic_handle]
+A [link boost_asio.reference.windows__basic_handle `windows::basic_handle`] is always the lowest layer.
 
 
-[endsect]
+ typedef basic_handle< HandleService > lowest_layer_type;
 
 
-[section:time_traits_lt__ptime__gt_ time_traits< boost::posix_time::ptime >]
+[heading Types]
+[table
+ [[Name][Description]]
 
+ [
 
-Time traits specialised for posix\_time.
+ [[link boost_asio.reference.windows__basic_handle.implementation_type [*implementation_type]]]
+ [The underlying implementation type of I/O object. ]
+
+ ]
 
+ [
 
- template<>
- struct time_traits< boost::posix_time::ptime >
+ [[link boost_asio.reference.windows__basic_handle.lowest_layer_type [*lowest_layer_type]]]
+ [A basic_handle is always the lowest layer. ]
+
+ ]
 
+ [
 
-[heading Types]
-[table
- [[Name][Description]]
+ [[link boost_asio.reference.windows__basic_handle.native_handle_type [*native_handle_type]]]
+ [The native representation of a handle. ]
+
+ ]
 
   [
 
- [[link boost_asio.reference.time_traits_lt__ptime__gt_.duration_type [*duration_type]]]
- [The duration type. ]
+ [[link boost_asio.reference.windows__basic_handle.native_type [*native_type]]]
+ [(Deprecated: Use native_handle_type.) The native representation of a handle. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.time_traits_lt__ptime__gt_.time_type [*time_type]]]
- [The time type. ]
+ [[link boost_asio.reference.windows__basic_handle.service_type [*service_type]]]
+ [The type of the service that will be used to provide I/O operations. ]
   
   ]
 
@@ -86126,68 +89869,115 @@
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.time_traits_lt__ptime__gt_.add [*add]]]
- [Add a duration to a time. ]
+ [[link boost_asio.reference.windows__basic_handle.assign [*assign]]]
+ [Assign an existing native handle to the handle. ]
   ]
   
   [
- [[link boost_asio.reference.time_traits_lt__ptime__gt_.less_than [*less_than]]]
- [Test whether one time is less than another. ]
+ [[link boost_asio.reference.windows__basic_handle.basic_handle [*basic_handle]]]
+ [Construct a basic_handle without opening it.
+
+ Construct a basic_handle on an existing native handle.
+
+ Move-construct a basic_handle from another. ]
   ]
   
   [
- [[link boost_asio.reference.time_traits_lt__ptime__gt_.now [*now]]]
- [Get the current time. ]
+ [[link boost_asio.reference.windows__basic_handle.cancel [*cancel]]]
+ [Cancel all asynchronous operations associated with the handle. ]
   ]
   
   [
- [[link boost_asio.reference.time_traits_lt__ptime__gt_.subtract [*subtract]]]
- [Subtract one time from another. ]
+ [[link boost_asio.reference.windows__basic_handle.close [*close]]]
+ [Close the handle. ]
   ]
   
   [
- [[link boost_asio.reference.time_traits_lt__ptime__gt_.to_posix_duration [*to_posix_duration]]]
- [Convert to POSIX duration type. ]
+ [[link boost_asio.reference.windows__basic_handle.get_io_service [*get_io_service]]]
+ [Get the io_service associated with the object. ]
   ]
   
-]
-
-[heading Requirements]
-
-[*Header: ][^boost/asio/time_traits.hpp]
-
-[*Convenience header: ][^boost/asio.hpp]
-
-
-[section:add time_traits< boost::posix_time::ptime >::add]
+ [
+ [[link boost_asio.reference.windows__basic_handle.is_open [*is_open]]]
+ [Determine whether the handle is open. ]
+ ]
+
+ [
+ [[link boost_asio.reference.windows__basic_handle.lowest_layer [*lowest_layer]]]
+ [Get a reference to the lowest layer.
 
-[indexterm2 add..time_traits< boost::posix_time::ptime >]
-Add a duration to a time.
+ Get a const reference to the lowest layer. ]
+ ]
+
+ [
+ [[link boost_asio.reference.windows__basic_handle.native [*native]]]
+ [(Deprecated: Use native_handle().) Get the native handle representation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.windows__basic_handle.native_handle [*native_handle]]]
+ [Get the native handle representation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.windows__basic_handle.operator_eq_ [*operator=]]]
+ [Move-assign a basic_handle from another. ]
+ ]
+
+]
 
+[heading Protected Member Functions]
+[table
+ [[Name][Description]]
 
- static time_type add(
- const time_type & t,
- const duration_type & d);
+ [
+ [[link boost_asio.reference.windows__basic_handle.get_implementation [*get_implementation]]]
+ [Get the underlying implementation of the I/O object. ]
+ ]
+
+ [
+ [[link boost_asio.reference.windows__basic_handle.get_service [*get_service]]]
+ [Get the service associated with the I/O object. ]
+ ]
+
+ [
+ [[link boost_asio.reference.windows__basic_handle._basic_handle [*~basic_handle]]]
+ [Protected destructor to prevent deletion through this type. ]
+ ]
+
+]
 
+[heading Protected Data Members]
+[table
+ [[Name][Description]]
 
+ [
+ [[link boost_asio.reference.windows__basic_handle.implementation [*implementation]]]
+ [(Deprecated: Use get_implementation().) The underlying implementation of the I/O object. ]
+ ]
 
-[endsect]
+ [
+ [[link boost_asio.reference.windows__basic_handle.service [*service]]]
+ [(Deprecated: Use get_service().) The service associated with the I/O object. ]
+ ]
 
+]
 
+The [link boost_asio.reference.windows__basic_handle `windows::basic_handle`] class template provides the ability to wrap a Windows handle.
 
-[section:duration_type time_traits< boost::posix_time::ptime >::duration_type]
 
-[indexterm2 duration_type..time_traits< boost::posix_time::ptime >]
-The duration type.
+[heading Thread Safety]
+
+[*Distinct] [*objects:] Safe.
 
+[*Shared] [*objects:] Unsafe.
 
- typedef boost::posix_time::time_duration duration_type;
 
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/time_traits.hpp]
+[*Header: ][^boost/asio/windows/basic_handle.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -86196,65 +89986,51 @@
 
 
 
-[section:less_than time_traits< boost::posix_time::ptime >::less_than]
-
-[indexterm2 less_than..time_traits< boost::posix_time::ptime >]
-Test whether one time is less than another.
-
-
- static bool less_than(
- const time_type & t1,
- const time_type & t2);
-
-
-
-[endsect]
-
-
+[section:native windows::basic_handle::native]
 
-[section:now time_traits< boost::posix_time::ptime >::now]
+[indexterm2 native..windows::basic_handle]
+(Deprecated: Use `native_handle()`.) Get the native handle representation.
 
-[indexterm2 now..time_traits< boost::posix_time::ptime >]
-Get the current time.
 
+ native_type native();
 
- static time_type now();
 
+This function may be used to obtain the underlying representation of the handle. This is intended to allow access to native handle functionality that is not otherwise provided.
 
 
 [endsect]
 
 
 
-[section:subtract time_traits< boost::posix_time::ptime >::subtract]
+[section:native_handle windows::basic_handle::native_handle]
 
-[indexterm2 subtract..time_traits< boost::posix_time::ptime >]
-Subtract one time from another.
+[indexterm2 native_handle..windows::basic_handle]
+Get the native handle representation.
 
 
- static duration_type subtract(
- const time_type & t1,
- const time_type & t2);
+ native_handle_type native_handle();
 
 
+This function may be used to obtain the underlying representation of the handle. This is intended to allow access to native handle functionality that is not otherwise provided.
+
 
 [endsect]
 
 
 
-[section:time_type time_traits< boost::posix_time::ptime >::time_type]
+[section:native_handle_type windows::basic_handle::native_handle_type]
 
-[indexterm2 time_type..time_traits< boost::posix_time::ptime >]
-The time type.
+[indexterm2 native_handle_type..windows::basic_handle]
+The native representation of a handle.
 
 
- typedef boost::posix_time::ptime time_type;
+ typedef HandleService::native_handle_type native_handle_type;
 
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/time_traits.hpp]
+[*Header: ][^boost/asio/windows/basic_handle.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -86263,156 +90039,101 @@
 
 
 
-[section:to_posix_duration time_traits< boost::posix_time::ptime >::to_posix_duration]
-
-[indexterm2 to_posix_duration..time_traits< boost::posix_time::ptime >]
-Convert to POSIX duration type.
+[section:native_type windows::basic_handle::native_type]
 
+[indexterm2 native_type..windows::basic_handle]
+(Deprecated: Use native\_handle\_type.) The native representation of a handle.
 
- static boost::posix_time::time_duration to_posix_duration(
- const duration_type & d);
 
+ typedef HandleService::native_handle_type native_type;
 
 
-[endsect]
 
+[heading Requirements]
 
+[*Header: ][^boost/asio/windows/basic_handle.hpp]
 
-[endsect]
+[*Convenience header: ][^boost/asio.hpp]
 
 
-[section:transfer_all transfer_all]
+[endsect]
 
-[indexterm1 transfer_all]
-Return a completion condition function object that indicates that a read or write operation should continue until all of the data has been transferred, or until an error occurs.
 
 
- unspecified transfer_all();
+[section:operator_eq_ windows::basic_handle::operator=]
 
+[indexterm2 operator=..windows::basic_handle]
+Move-assign a [link boost_asio.reference.windows__basic_handle `windows::basic_handle`] from another.
 
-This function is used to create an object, of unspecified type, that meets CompletionCondition requirements.
 
+ basic_handle & operator=(
+ basic_handle && other);
 
-[heading Example]
-
-Reading until a buffer is full:
 
- boost::array<char, 128> buf;
- boost::system::error_code ec;
- std::size_t n = boost::asio::read(
- sock, boost::asio::buffer(buf),
- boost::asio::transfer_all(), ec);
- if (ec)
- {
- // An error occurred.
- }
- else
- {
- // n == 128
- }
+This assignment operator moves a handle from one object to another.
 
 
+[heading Parameters]
+
 
+[variablelist
+
+[[other][The other [link boost_asio.reference.windows__basic_handle `windows::basic_handle`] object from which the move will occur.]]
 
+]
 
 
-[heading Requirements]
+[heading Remarks]
+
+Following the move, the moved-from object is in the same state as if constructed using the `basic_handle(io_service&) constructor`.
 
-[*Header: ][^boost/asio/completion_condition.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
 
-[section:transfer_at_least transfer_at_least]
-
-[indexterm1 transfer_at_least]
-Return a completion condition function object that indicates that a read or write operation should continue until a minimum number of bytes has been transferred, or until an error occurs.
-
-
- unspecified transfer_at_least(
- std::size_t minimum);
-
-
-This function is used to create an object, of unspecified type, that meets CompletionCondition requirements.
-
+[section:service windows::basic_handle::service]
 
-[heading Example]
-
-Reading until a buffer is full or contains at least 64 bytes:
 
- boost::array<char, 128> buf;
- boost::system::error_code ec;
- std::size_t n = boost::asio::read(
- sock, boost::asio::buffer(buf),
- boost::asio::transfer_at_least(64), ec);
- if (ec)
- {
- // An error occurred.
- }
- else
- {
- // n >= 64 && n <= 128
- }
+['Inherited from basic_io_object.]
 
+[indexterm2 service..windows::basic_handle]
+(Deprecated: Use `get_service()`.) The service associated with the I/O object.
 
 
+ service_type & service;
 
 
 
-[heading Requirements]
+[heading Remarks]
+
+Available only for services that do not support movability.
 
-[*Header: ][^boost/asio/completion_condition.hpp]
 
-[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
 
-[section:transfer_exactly transfer_exactly]
-
-[indexterm1 transfer_exactly]
-Return a completion condition function object that indicates that a read or write operation should continue until an exact number of bytes has been transferred, or until an error occurs.
-
-
- unspecified transfer_exactly(
- std::size_t size);
-
-
-This function is used to create an object, of unspecified type, that meets CompletionCondition requirements.
-
+[section:service_type windows::basic_handle::service_type]
 
-[heading Example]
-
-Reading until a buffer is full or contains exactly 64 bytes:
 
- boost::array<char, 128> buf;
- boost::system::error_code ec;
- std::size_t n = boost::asio::read(
- sock, boost::asio::buffer(buf),
- boost::asio::transfer_exactly(64), ec);
- if (ec)
- {
- // An error occurred.
- }
- else
- {
- // n == 64
- }
+['Inherited from basic_io_object.]
 
+[indexterm2 service_type..windows::basic_handle]
+The type of the service that will be used to provide I/O operations.
 
 
+ typedef HandleService service_type;
 
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/completion_condition.hpp]
+[*Header: ][^boost/asio/windows/basic_handle.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -86421,55 +90142,32 @@
 
 
 
-[section:use_service use_service]
-
-[indexterm1 use_service]
-
- template<
- typename ``[link boost_asio.reference.Service Service]``>
- Service & use_service(
- io_service & ios);
-
-
-This function is used to locate a service object that corresponds to the given service type. If there is no existing implementation of the service, then the [link boost_asio.reference.io_service `io_service`] will create a new instance of the service.
-
-
-[heading Parameters]
-
-
-[variablelist
-
-[[ios][The [link boost_asio.reference.io_service `io_service`] object that owns the service.]]
-
-]
+[section:_basic_handle windows::basic_handle::~basic_handle]
 
+[indexterm2 ~basic_handle..windows::basic_handle]
+Protected destructor to prevent deletion through this type.
 
-[heading Return Value]
-
-The service interface implementing the specified service type. Ownership of the service interface is not transferred to the caller.
 
+ ~basic_handle();
 
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/io_service.hpp]
+[endsect]
 
-[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
-
-[section:windows__basic_handle windows::basic_handle]
+[section:windows__basic_object_handle windows::basic_object_handle]
 
 
-Provides Windows handle functionality.
+Provides object-oriented handle functionality.
 
 
   template<
- typename ``[link boost_asio.reference.HandleService HandleService]``>
- class basic_handle :
- public basic_io_object< HandleService >
+ typename ``[link boost_asio.reference.ObjectHandleService ObjectHandleService]`` = object_handle_service>
+ class basic_object_handle :
+ public windows::basic_handle< ObjectHandleService >
 
 
 [heading Types]
@@ -86478,35 +90176,35 @@
 
   [
 
- [[link boost_asio.reference.windows__basic_handle.implementation_type [*implementation_type]]]
+ [[link boost_asio.reference.windows__basic_object_handle.implementation_type [*implementation_type]]]
     [The underlying implementation type of I/O object. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.windows__basic_handle.lowest_layer_type [*lowest_layer_type]]]
+ [[link boost_asio.reference.windows__basic_object_handle.lowest_layer_type [*lowest_layer_type]]]
     [A basic_handle is always the lowest layer. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.windows__basic_handle.native_handle_type [*native_handle_type]]]
+ [[link boost_asio.reference.windows__basic_object_handle.native_handle_type [*native_handle_type]]]
     [The native representation of a handle. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.windows__basic_handle.native_type [*native_type]]]
+ [[link boost_asio.reference.windows__basic_object_handle.native_type [*native_type]]]
     [(Deprecated: Use native_handle_type.) The native representation of a handle. ]
   
   ]
 
   [
 
- [[link boost_asio.reference.windows__basic_handle.service_type [*service_type]]]
+ [[link boost_asio.reference.windows__basic_object_handle.service_type [*service_type]]]
     [The type of the service that will be used to provide I/O operations. ]
   
   ]
@@ -86518,59 +90216,69 @@
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.windows__basic_handle.assign [*assign]]]
+ [[link boost_asio.reference.windows__basic_object_handle.assign [*assign]]]
     [Assign an existing native handle to the handle. ]
   ]
   
   [
- [[link boost_asio.reference.windows__basic_handle.basic_handle [*basic_handle]]]
- [Construct a basic_handle without opening it.
+ [[link boost_asio.reference.windows__basic_object_handle.async_wait [*async_wait]]]
+ [Start an asynchronous wait on the object handle. ]
+ ]
+
+ [
+ [[link boost_asio.reference.windows__basic_object_handle.basic_object_handle [*basic_object_handle]]]
+ [Construct a basic_object_handle without opening it.
 
- Construct a basic_handle on an existing native handle.
+ Construct a basic_object_handle on an existing native handle.
 
- Move-construct a basic_handle from another. ]
+ Move-construct a basic_object_handle from another. ]
   ]
   
   [
- [[link boost_asio.reference.windows__basic_handle.cancel [*cancel]]]
+ [[link boost_asio.reference.windows__basic_object_handle.cancel [*cancel]]]
     [Cancel all asynchronous operations associated with the handle. ]
   ]
   
   [
- [[link boost_asio.reference.windows__basic_handle.close [*close]]]
+ [[link boost_asio.reference.windows__basic_object_handle.close [*close]]]
     [Close the handle. ]
   ]
   
   [
- [[link boost_asio.reference.windows__basic_handle.get_io_service [*get_io_service]]]
+ [[link boost_asio.reference.windows__basic_object_handle.get_io_service [*get_io_service]]]
     [Get the io_service associated with the object. ]
   ]
   
   [
- [[link boost_asio.reference.windows__basic_handle.is_open [*is_open]]]
+ [[link boost_asio.reference.windows__basic_object_handle.is_open [*is_open]]]
     [Determine whether the handle is open. ]
   ]
   
   [
- [[link boost_asio.reference.windows__basic_handle.lowest_layer [*lowest_layer]]]
+ [[link boost_asio.reference.windows__basic_object_handle.lowest_layer [*lowest_layer]]]
     [Get a reference to the lowest layer.
 
      Get a const reference to the lowest layer. ]
   ]
   
   [
- [[link boost_asio.reference.windows__basic_handle.native [*native]]]
+ [[link boost_asio.reference.windows__basic_object_handle.native [*native]]]
     [(Deprecated: Use native_handle().) Get the native handle representation. ]
   ]
   
   [
- [[link boost_asio.reference.windows__basic_handle.native_handle [*native_handle]]]
+ [[link boost_asio.reference.windows__basic_object_handle.native_handle [*native_handle]]]
     [Get the native handle representation. ]
   ]
   
   [
- [[link boost_asio.reference.windows__basic_handle.operator_eq_ [*operator=]]]
- [Move-assign a basic_handle from another. ]
+ [[link boost_asio.reference.windows__basic_object_handle.operator_eq_ [*operator=]]]
+ [Move-assign a basic_object_handle from another. ]
+ ]
+
+ [
+ [[link boost_asio.reference.windows__basic_object_handle.wait [*wait]]]
+ [Perform a blocking wait on the object handle. ]
   ]
   
 ]
@@ -86580,20 +90288,15 @@
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.windows__basic_handle.get_implementation [*get_implementation]]]
+ [[link boost_asio.reference.windows__basic_object_handle.get_implementation [*get_implementation]]]
     [Get the underlying implementation of the I/O object. ]
   ]
   
   [
- [[link boost_asio.reference.windows__basic_handle.get_service [*get_service]]]
+ [[link boost_asio.reference.windows__basic_object_handle.get_service [*get_service]]]
     [Get the service associated with the I/O object. ]
   ]
   
- [
- [[link boost_asio.reference.windows__basic_handle._basic_handle [*~basic_handle]]]
- [Protected destructor to prevent deletion through this type. ]
- ]
-
 ]
 
 [heading Protected Data Members]
@@ -86601,18 +90304,18 @@
   [[Name][Description]]
 
   [
- [[link boost_asio.reference.windows__basic_handle.implementation [*implementation]]]
+ [[link boost_asio.reference.windows__basic_object_handle.implementation [*implementation]]]
     [(Deprecated: Use get_implementation().) The underlying implementation of the I/O object. ]
   ]
 
   [
- [[link boost_asio.reference.windows__basic_handle.service [*service]]]
+ [[link boost_asio.reference.windows__basic_object_handle.service [*service]]]
     [(Deprecated: Use get_service().) The service associated with the I/O object. ]
   ]
 
 ]
 
-The [link boost_asio.reference.windows__basic_handle `windows::basic_handle`] class template provides the ability to wrap a Windows handle.
+The [link boost_asio.reference.windows__basic_object_handle `windows::basic_object_handle`] class template provides asynchronous and blocking object-oriented handle functionality.
 
 
 [heading Thread Safety]
@@ -86625,27 +90328,30 @@
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/windows/basic_handle.hpp]
+[*Header: ][^boost/asio/windows/basic_object_handle.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
-[section:assign windows::basic_handle::assign]
+[section:assign windows::basic_object_handle::assign]
 
-[indexterm2 assign..windows::basic_handle]
+[indexterm2 assign..windows::basic_object_handle]
 Assign an existing native handle to the handle.
 
 
- void ``[link boost_asio.reference.windows__basic_handle.assign.overload1 assign]``(
+ void ``[link boost_asio.reference.windows__basic_object_handle.assign.overload1 assign]``(
       const native_handle_type & handle);
- `` [''''&raquo;''' [link boost_asio.reference.windows__basic_handle.assign.overload1 more...]]``
+ `` [''''&raquo;''' [link boost_asio.reference.windows__basic_object_handle.assign.overload1 more...]]``
 
- boost::system::error_code ``[link boost_asio.reference.windows__basic_handle.assign.overload2 assign]``(
+ boost::system::error_code ``[link boost_asio.reference.windows__basic_object_handle.assign.overload2 assign]``(
       const native_handle_type & handle,
       boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.windows__basic_handle.assign.overload2 more...]]``
+ `` [''''&raquo;''' [link boost_asio.reference.windows__basic_object_handle.assign.overload2 more...]]``
 
 
-[section:overload1 windows::basic_handle::assign (1 of 2 overloads)]
+[section:overload1 windows::basic_object_handle::assign (1 of 2 overloads)]
+
+
+['Inherited from windows::basic_handle.]
 
 
 Assign an existing native handle to the handle.
@@ -86660,7 +90366,10 @@
 
 
 
-[section:overload2 windows::basic_handle::assign (2 of 2 overloads)]
+[section:overload2 windows::basic_object_handle::assign (2 of 2 overloads)]
+
+
+['Inherited from windows::basic_handle.]
 
 
 Assign an existing native handle to the handle.
@@ -86677,45 +90386,82 @@
 
 [endsect]
 
-[section:basic_handle windows::basic_handle::basic_handle]
 
-[indexterm2 basic_handle..windows::basic_handle]
-Construct a [link boost_asio.reference.windows__basic_handle `windows::basic_handle`] without opening it.
+[section:async_wait windows::basic_object_handle::async_wait]
 
+[indexterm2 async_wait..windows::basic_object_handle]
+Start an asynchronous wait on the object handle.
 
- explicit ``[link boost_asio.reference.windows__basic_handle.basic_handle.overload1 basic_handle]``(
+
+ template<
+ typename ``[link boost_asio.reference.WaitHandler WaitHandler]``>
+ void async_wait(
+ WaitHandler handler);
+
+
+This function is be used to initiate an asynchronous wait against the object handle. It always returns immediately.
+
+
+[heading Parameters]
+
+
+[variablelist
+
+[[handler][The handler to be called when the object handle is set to the signalled state. Copies will be made of the handler as required. The function signature of the handler must be:
+``
+ void handler(
+ const boost::system::error_code& error // Result of operation.
+ );
+``
+Regardless of whether the asynchronous operation completes immediately or not, the handler will not be invoked from within this function. Invocation of the handler will be performed in a manner equivalent to using `boost::asio::io_service::post()`. ]]
+
+]
+
+
+
+
+[endsect]
+
+
+[section:basic_object_handle windows::basic_object_handle::basic_object_handle]
+
+[indexterm2 basic_object_handle..windows::basic_object_handle]
+Construct a [link boost_asio.reference.windows__basic_object_handle `windows::basic_object_handle`] without opening it.
+
+
+ explicit ``[link boost_asio.reference.windows__basic_object_handle.basic_object_handle.overload1 basic_object_handle]``(
       boost::asio::io_service & io_service);
- `` [''''&raquo;''' [link boost_asio.reference.windows__basic_handle.basic_handle.overload1 more...]]``
+ `` [''''&raquo;''' [link boost_asio.reference.windows__basic_object_handle.basic_object_handle.overload1 more...]]``
 
 
-Construct a [link boost_asio.reference.windows__basic_handle `windows::basic_handle`] on an existing native handle.
+Construct a [link boost_asio.reference.windows__basic_object_handle `windows::basic_object_handle`] on an existing native handle.
 
 
- ``[link boost_asio.reference.windows__basic_handle.basic_handle.overload2 basic_handle]``(
+ ``[link boost_asio.reference.windows__basic_object_handle.basic_object_handle.overload2 basic_object_handle]``(
       boost::asio::io_service & io_service,
- const native_handle_type & handle);
- `` [''''&raquo;''' [link boost_asio.reference.windows__basic_handle.basic_handle.overload2 more...]]``
+ const native_handle_type & native_handle);
+ `` [''''&raquo;''' [link boost_asio.reference.windows__basic_object_handle.basic_object_handle.overload2 more...]]``
 
 
-Move-construct a [link boost_asio.reference.windows__basic_handle `windows::basic_handle`] from another.
+Move-construct a [link boost_asio.reference.windows__basic_object_handle `windows::basic_object_handle`] from another.
 
 
- ``[link boost_asio.reference.windows__basic_handle.basic_handle.overload3 basic_handle]``(
- basic_handle && other);
- `` [''''&raquo;''' [link boost_asio.reference.windows__basic_handle.basic_handle.overload3 more...]]``
+ ``[link boost_asio.reference.windows__basic_object_handle.basic_object_handle.overload3 basic_object_handle]``(
+ basic_object_handle && other);
+ `` [''''&raquo;''' [link boost_asio.reference.windows__basic_object_handle.basic_object_handle.overload3 more...]]``
 
 
-[section:overload1 windows::basic_handle::basic_handle (1 of 3 overloads)]
+[section:overload1 windows::basic_object_handle::basic_object_handle (1 of 3 overloads)]
 
 
-Construct a [link boost_asio.reference.windows__basic_handle `windows::basic_handle`] without opening it.
+Construct a [link boost_asio.reference.windows__basic_object_handle `windows::basic_object_handle`] without opening it.
 
 
- basic_handle(
+ basic_object_handle(
       boost::asio::io_service & io_service);
 
 
-This constructor creates a handle without opening it.
+This constructor creates an object handle without opening it.
 
 
 [heading Parameters]
@@ -86723,7 +90469,7 @@
 
 [variablelist
   
-[[io_service][The [link boost_asio.reference.io_service `io_service`] object that the handle will use to dispatch handlers for any asynchronous operations performed on the handle. ]]
+[[io_service][The [link boost_asio.reference.io_service `io_service`] object that the object handle will use to dispatch handlers for any asynchronous operations performed on the handle. ]]
 
 ]
 
@@ -86734,18 +90480,18 @@
 
 
 
-[section:overload2 windows::basic_handle::basic_handle (2 of 3 overloads)]
+[section:overload2 windows::basic_object_handle::basic_object_handle (2 of 3 overloads)]
 
 
-Construct a [link boost_asio.reference.windows__basic_handle `windows::basic_handle`] on an existing native handle.
+Construct a [link boost_asio.reference.windows__basic_object_handle `windows::basic_object_handle`] on an existing native handle.
 
 
- basic_handle(
+ basic_object_handle(
       boost::asio::io_service & io_service,
- const native_handle_type & handle);
+ const native_handle_type & native_handle);
 
 
-This constructor creates a handle object to hold an existing native handle.
+This constructor creates an object handle object to hold an existing native handle.
 
 
 [heading Parameters]
@@ -86753,9 +90499,9 @@
 
 [variablelist
   
-[[io_service][The [link boost_asio.reference.io_service `io_service`] object that the handle will use to dispatch handlers for any asynchronous operations performed on the handle.]]
+[[io_service][The [link boost_asio.reference.io_service `io_service`] object that the object handle will use to dispatch handlers for any asynchronous operations performed on the handle.]]
 
-[[handle][A native handle.]]
+[[native_handle][The new underlying handle implementation.]]
 
 ]
 
@@ -86776,17 +90522,17 @@
 
 
 
-[section:overload3 windows::basic_handle::basic_handle (3 of 3 overloads)]
+[section:overload3 windows::basic_object_handle::basic_object_handle (3 of 3 overloads)]
 
 
-Move-construct a [link boost_asio.reference.windows__basic_handle `windows::basic_handle`] from another.
+Move-construct a [link boost_asio.reference.windows__basic_object_handle `windows::basic_object_handle`] from another.
 
 
- basic_handle(
- basic_handle && other);
+ basic_object_handle(
+ basic_object_handle && other);
 
 
-This constructor moves a handle from one object to another.
+This constructor moves an object handle from one object to another.
 
 
 [heading Parameters]
@@ -86794,14 +90540,14 @@
 
 [variablelist
   
-[[other][The other [link boost_asio.reference.windows__basic_handle `windows::basic_handle`] object from which the move will occur.]]
+[[other][The other [link boost_asio.reference.windows__basic_object_handle `windows::basic_object_handle`] object from which the move will occur.]]
 
 ]
 
 
 [heading Remarks]
       
-Following the move, the moved-from object is in the same state as if constructed using the `basic_handle(io_service&) constructor`.
+Following the move, the moved-from object is in the same state as if constructed using the `basic_object_handle(io_service&) constructor`.
 
 
 
@@ -86811,21 +90557,24 @@
 
 [endsect]
 
-[section:cancel windows::basic_handle::cancel]
+[section:cancel windows::basic_object_handle::cancel]
 
-[indexterm2 cancel..windows::basic_handle]
+[indexterm2 cancel..windows::basic_object_handle]
 Cancel all asynchronous operations associated with the handle.
 
 
- void ``[link boost_asio.reference.windows__basic_handle.cancel.overload1 cancel]``();
- `` [''''&raquo;''' [link boost_asio.reference.windows__basic_handle.cancel.overload1 more...]]``
+ void ``[link boost_asio.reference.windows__basic_object_handle.cancel.overload1 cancel]``();
+ `` [''''&raquo;''' [link boost_asio.reference.windows__basic_object_handle.cancel.overload1 more...]]``
 
- boost::system::error_code ``[link boost_asio.reference.windows__basic_handle.cancel.overload2 cancel]``(
+ boost::system::error_code ``[link boost_asio.reference.windows__basic_object_handle.cancel.overload2 cancel]``(
       boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.windows__basic_handle.cancel.overload2 more...]]``
+ `` [''''&raquo;''' [link boost_asio.reference.windows__basic_object_handle.cancel.overload2 more...]]``
 
 
-[section:overload1 windows::basic_handle::cancel (1 of 2 overloads)]
+[section:overload1 windows::basic_object_handle::cancel (1 of 2 overloads)]
+
+
+['Inherited from windows::basic_handle.]
 
 
 Cancel all asynchronous operations associated with the handle.
@@ -86853,7 +90602,10 @@
 
 
 
-[section:overload2 windows::basic_handle::cancel (2 of 2 overloads)]
+[section:overload2 windows::basic_object_handle::cancel (2 of 2 overloads)]
+
+
+['Inherited from windows::basic_handle.]
 
 
 Cancel all asynchronous operations associated with the handle.
@@ -86883,21 +90635,24 @@
 
 [endsect]
 
-[section:close windows::basic_handle::close]
+[section:close windows::basic_object_handle::close]
 
-[indexterm2 close..windows::basic_handle]
+[indexterm2 close..windows::basic_object_handle]
 Close the handle.
 
 
- void ``[link boost_asio.reference.windows__basic_handle.close.overload1 close]``();
- `` [''''&raquo;''' [link boost_asio.reference.windows__basic_handle.close.overload1 more...]]``
+ void ``[link boost_asio.reference.windows__basic_object_handle.close.overload1 close]``();
+ `` [''''&raquo;''' [link boost_asio.reference.windows__basic_object_handle.close.overload1 more...]]``
 
- boost::system::error_code ``[link boost_asio.reference.windows__basic_handle.close.overload2 close]``(
+ boost::system::error_code ``[link boost_asio.reference.windows__basic_object_handle.close.overload2 close]``(
       boost::system::error_code & ec);
- `` [''''&raquo;''' [link boost_asio.reference.windows__basic_handle.close.overload2 more...]]``
+ `` [''''&raquo;''' [link boost_asio.reference.windows__basic_object_handle.close.overload2 more...]]``
 
 
-[section:overload1 windows::basic_handle::close (1 of 2 overloads)]
+[section:overload1 windows::basic_object_handle::close (1 of 2 overloads)]
+
+
+['Inherited from windows::basic_handle.]
 
 
 Close the handle.
@@ -86925,7 +90680,10 @@
 
 
 
-[section:overload2 windows::basic_handle::close (2 of 2 overloads)]
+[section:overload2 windows::basic_object_handle::close (2 of 2 overloads)]
+
+
+['Inherited from windows::basic_handle.]
 
 
 Close the handle.
@@ -86955,20 +90713,20 @@
 
 [endsect]
 
-[section:get_implementation windows::basic_handle::get_implementation]
+[section:get_implementation windows::basic_object_handle::get_implementation]
 
-[indexterm2 get_implementation..windows::basic_handle]
+[indexterm2 get_implementation..windows::basic_object_handle]
 Get the underlying implementation of the I/O object.
 
 
- implementation_type & ``[link boost_asio.reference.windows__basic_handle.get_implementation.overload1 get_implementation]``();
- `` [''''&raquo;''' [link boost_asio.reference.windows__basic_handle.get_implementation.overload1 more...]]``
+ implementation_type & ``[link boost_asio.reference.windows__basic_object_handle.get_implementation.overload1 get_implementation]``();
+ `` [''''&raquo;''' [link boost_asio.reference.windows__basic_object_handle.get_implementation.overload1 more...]]``
 
- const implementation_type & ``[link boost_asio.reference.windows__basic_handle.get_implementation.overload2 get_implementation]``() const;
- `` [''''&raquo;''' [link boost_asio.reference.windows__basic_handle.get_implementation.overload2 more...]]``
+ const implementation_type & ``[link boost_asio.reference.windows__basic_object_handle.get_implementation.overload2 get_implementation]``() const;
+ `` [''''&raquo;''' [link boost_asio.reference.windows__basic_object_handle.get_implementation.overload2 more...]]``
 
 
-[section:overload1 windows::basic_handle::get_implementation (1 of 2 overloads)]
+[section:overload1 windows::basic_object_handle::get_implementation (1 of 2 overloads)]
 
 
 ['Inherited from basic_io_object.]
@@ -86985,7 +90743,7 @@
 
 
 
-[section:overload2 windows::basic_handle::get_implementation (2 of 2 overloads)]
+[section:overload2 windows::basic_object_handle::get_implementation (2 of 2 overloads)]
 
 
 ['Inherited from basic_io_object.]
@@ -87004,12 +90762,12 @@
 [endsect]
 
 
-[section:get_io_service windows::basic_handle::get_io_service]
+[section:get_io_service windows::basic_object_handle::get_io_service]
 
 
 ['Inherited from basic_io_object.]
 
-[indexterm2 get_io_service..windows::basic_handle]
+[indexterm2 get_io_service..windows::basic_object_handle]
 Get the [link boost_asio.reference.io_service `io_service`] associated with the object.
 
 
@@ -87029,20 +90787,20 @@
 [endsect]
 
 
-[section:get_service windows::basic_handle::get_service]
+[section:get_service windows::basic_object_handle::get_service]
 
-[indexterm2 get_service..windows::basic_handle]
+[indexterm2 get_service..windows::basic_object_handle]
 Get the service associated with the I/O object.
 
 
- service_type & ``[link boost_asio.reference.windows__basic_handle.get_service.overload1 get_service]``();
- `` [''''&raquo;''' [link boost_asio.reference.windows__basic_handle.get_service.overload1 more...]]``
+ service_type & ``[link boost_asio.reference.windows__basic_object_handle.get_service.overload1 get_service]``();
+ `` [''''&raquo;''' [link boost_asio.reference.windows__basic_object_handle.get_service.overload1 more...]]``
 
- const service_type & ``[link boost_asio.reference.windows__basic_handle.get_service.overload2 get_service]``() const;
- `` [''''&raquo;''' [link boost_asio.reference.windows__basic_handle.get_service.overload2 more...]]``
+ const service_type & ``[link boost_asio.reference.windows__basic_object_handle.get_service.overload2 get_service]``() const;
+ `` [''''&raquo;''' [link boost_asio.reference.windows__basic_object_handle.get_service.overload2 more...]]``
 
 
-[section:overload1 windows::basic_handle::get_service (1 of 2 overloads)]
+[section:overload1 windows::basic_object_handle::get_service (1 of 2 overloads)]
 
 
 ['Inherited from basic_io_object.]
@@ -87059,7 +90817,7 @@
 
 
 
-[section:overload2 windows::basic_handle::get_service (2 of 2 overloads)]
+[section:overload2 windows::basic_object_handle::get_service (2 of 2 overloads)]
 
 
 ['Inherited from basic_io_object.]
@@ -87078,12 +90836,12 @@
 [endsect]
 
 
-[section:implementation windows::basic_handle::implementation]
+[section:implementation windows::basic_object_handle::implementation]
 
 
 ['Inherited from basic_io_object.]
 
-[indexterm2 implementation..windows::basic_handle]
+[indexterm2 implementation..windows::basic_object_handle]
 (Deprecated: Use `get_implementation()`.) The underlying implementation of the I/O object.
 
 
@@ -87095,12 +90853,12 @@
 
 
 
-[section:implementation_type windows::basic_handle::implementation_type]
+[section:implementation_type windows::basic_object_handle::implementation_type]
 
 
 ['Inherited from basic_io_object.]
 
-[indexterm2 implementation_type..windows::basic_handle]
+[indexterm2 implementation_type..windows::basic_object_handle]
 The underlying implementation type of I/O object.
 
 
@@ -87110,7 +90868,7 @@
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/windows/basic_handle.hpp]
+[*Header: ][^boost/asio/windows/basic_object_handle.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -87119,9 +90877,12 @@
 
 
 
-[section:is_open windows::basic_handle::is_open]
+[section:is_open windows::basic_object_handle::is_open]
 
-[indexterm2 is_open..windows::basic_handle]
+
+['Inherited from windows::basic_handle.]
+
+[indexterm2 is_open..windows::basic_object_handle]
 Determine whether the handle is open.
 
 
@@ -87132,24 +90893,27 @@
 [endsect]
 
 
-[section:lowest_layer windows::basic_handle::lowest_layer]
+[section:lowest_layer windows::basic_object_handle::lowest_layer]
 
-[indexterm2 lowest_layer..windows::basic_handle]
+[indexterm2 lowest_layer..windows::basic_object_handle]
 Get a reference to the lowest layer.
 
 
- lowest_layer_type & ``[link boost_asio.reference.windows__basic_handle.lowest_layer.overload1 lowest_layer]``();
- `` [''''&raquo;''' [link boost_asio.reference.windows__basic_handle.lowest_layer.overload1 more...]]``
+ lowest_layer_type & ``[link boost_asio.reference.windows__basic_object_handle.lowest_layer.overload1 lowest_layer]``();
+ `` [''''&raquo;''' [link boost_asio.reference.windows__basic_object_handle.lowest_layer.overload1 more...]]``
 
 
 Get a const reference to the lowest layer.
 
 
- const lowest_layer_type & ``[link boost_asio.reference.windows__basic_handle.lowest_layer.overload2 lowest_layer]``() const;
- `` [''''&raquo;''' [link boost_asio.reference.windows__basic_handle.lowest_layer.overload2 more...]]``
+ const lowest_layer_type & ``[link boost_asio.reference.windows__basic_object_handle.lowest_layer.overload2 lowest_layer]``() const;
+ `` [''''&raquo;''' [link boost_asio.reference.windows__basic_object_handle.lowest_layer.overload2 more...]]``
 
 
-[section:overload1 windows::basic_handle::lowest_layer (1 of 2 overloads)]
+[section:overload1 windows::basic_object_handle::lowest_layer (1 of 2 overloads)]
+
+
+['Inherited from windows::basic_handle.]
 
 
 Get a reference to the lowest layer.
@@ -87172,7 +90936,10 @@
 
 
 
-[section:overload2 windows::basic_handle::lowest_layer (2 of 2 overloads)]
+[section:overload2 windows::basic_object_handle::lowest_layer (2 of 2 overloads)]
+
+
+['Inherited from windows::basic_handle.]
 
 
 Get a const reference to the lowest layer.
@@ -87197,13 +90964,16 @@
 [endsect]
 
 
-[section:lowest_layer_type windows::basic_handle::lowest_layer_type]
+[section:lowest_layer_type windows::basic_object_handle::lowest_layer_type]
 
-[indexterm2 lowest_layer_type..windows::basic_handle]
+
+['Inherited from windows::basic_handle.]
+
+[indexterm2 lowest_layer_type..windows::basic_object_handle]
 A [link boost_asio.reference.windows__basic_handle `windows::basic_handle`] is always the lowest layer.
 
 
- typedef basic_handle< HandleService > lowest_layer_type;
+ typedef basic_handle< ObjectHandleService > lowest_layer_type;
 
 
 [heading Types]
@@ -87360,7 +91130,7 @@
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/windows/basic_handle.hpp]
+[*Header: ][^boost/asio/windows/basic_object_handle.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -87369,9 +91139,12 @@
 
 
 
-[section:native windows::basic_handle::native]
+[section:native windows::basic_object_handle::native]
 
-[indexterm2 native..windows::basic_handle]
+
+['Inherited from windows::basic_handle.]
+
+[indexterm2 native..windows::basic_object_handle]
 (Deprecated: Use `native_handle()`.) Get the native handle representation.
 
 
@@ -87385,9 +91158,12 @@
 
 
 
-[section:native_handle windows::basic_handle::native_handle]
+[section:native_handle windows::basic_object_handle::native_handle]
 
-[indexterm2 native_handle..windows::basic_handle]
+
+['Inherited from windows::basic_handle.]
+
+[indexterm2 native_handle..windows::basic_object_handle]
 Get the native handle representation.
 
 
@@ -87401,19 +91177,19 @@
 
 
 
-[section:native_handle_type windows::basic_handle::native_handle_type]
+[section:native_handle_type windows::basic_object_handle::native_handle_type]
 
-[indexterm2 native_handle_type..windows::basic_handle]
+[indexterm2 native_handle_type..windows::basic_object_handle]
 The native representation of a handle.
 
 
- typedef HandleService::native_handle_type native_handle_type;
+ typedef ObjectHandleService::native_handle_type native_handle_type;
 
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/windows/basic_handle.hpp]
+[*Header: ][^boost/asio/windows/basic_object_handle.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -87422,19 +91198,22 @@
 
 
 
-[section:native_type windows::basic_handle::native_type]
+[section:native_type windows::basic_object_handle::native_type]
 
-[indexterm2 native_type..windows::basic_handle]
+
+['Inherited from windows::basic_handle.]
+
+[indexterm2 native_type..windows::basic_object_handle]
 (Deprecated: Use native\_handle\_type.) The native representation of a handle.
 
 
- typedef HandleService::native_handle_type native_type;
+ typedef ObjectHandleService::native_handle_type native_type;
 
 
 
 [heading Requirements]
 
-[*Header: ][^boost/asio/windows/basic_handle.hpp]
+[*Header: ][^boost/asio/windows/basic_object_handle.hpp]
 
 [*Convenience header: ][^boost/asio.hpp]
 
@@ -87443,101 +91222,159 @@
 
 
 
-[section:operator_eq_ windows::basic_handle::operator=]
+[section:operator_eq_ windows::basic_object_handle::operator=]
 
-[indexterm2 operator=..windows::basic_handle]
-Move-assign a [link boost_asio.reference.windows__basic_handle `windows::basic_handle`] from another.
+[indexterm2 operator=..windows::basic_object_handle]
+Move-assign a [link boost_asio.reference.windows__basic_object_handle `windows::basic_object_handle`] from another.
+
+
+ basic_object_handle & operator=(
+ basic_object_handle && other);
+
+
+This assignment operator moves an object handle from one object to another.
+
+
+[heading Parameters]
+
+
+[variablelist
+
+[[other][The other [link boost_asio.reference.windows__basic_object_handle `windows::basic_object_handle`] object from which the move will occur.]]
+
+]
+
+
+[heading Remarks]
+
+Following the move, the moved-from object is in the same state as if constructed using the `basic_object_handle(io_service&) constructor`.
+
+
+
+
+[endsect]
+
+
+
+[section:service windows::basic_object_handle::service]
+
+
+['Inherited from basic_io_object.]
+
+[indexterm2 service..windows::basic_object_handle]
+(Deprecated: Use `get_service()`.) The service associated with the I/O object.
+
+
+ service_type & service;
+
+
+
+[heading Remarks]
+
+Available only for services that do not support movability.
+
+
+
+
+[endsect]
 
 
- basic_handle & operator=(
- basic_handle && other);
 
+[section:service_type windows::basic_object_handle::service_type]
 
-This assignment operator moves a handle from one object to another.
 
+['Inherited from basic_io_object.]
 
-[heading Parameters]
-
+[indexterm2 service_type..windows::basic_object_handle]
+The type of the service that will be used to provide I/O operations.
 
-[variablelist
-
-[[other][The other [link boost_asio.reference.windows__basic_handle `windows::basic_handle`] object from which the move will occur.]]
 
-]
+ typedef ObjectHandleService service_type;
 
 
-[heading Remarks]
-
-Following the move, the moved-from object is in the same state as if constructed using the `basic_handle(io_service&) constructor`.
 
+[heading Requirements]
+
+[*Header: ][^boost/asio/windows/basic_object_handle.hpp]
 
+[*Convenience header: ][^boost/asio.hpp]
 
 
 [endsect]
 
 
+[section:wait windows::basic_object_handle::wait]
 
-[section:service windows::basic_handle::service]
+[indexterm2 wait..windows::basic_object_handle]
+Perform a blocking wait on the object handle.
 
 
-['Inherited from basic_io_object.]
+ void ``[link boost_asio.reference.windows__basic_object_handle.wait.overload1 wait]``();
+ `` [''''&raquo;''' [link boost_asio.reference.windows__basic_object_handle.wait.overload1 more...]]``
 
-[indexterm2 service..windows::basic_handle]
-(Deprecated: Use `get_service()`.) The service associated with the I/O object.
+ void ``[link boost_asio.reference.windows__basic_object_handle.wait.overload2 wait]``(
+ boost::system::error_code & ec);
+ `` [''''&raquo;''' [link boost_asio.reference.windows__basic_object_handle.wait.overload2 more...]]``
 
 
- service_type & service;
+[section:overload1 windows::basic_object_handle::wait (1 of 2 overloads)]
 
 
+Perform a blocking wait on the object handle.
 
-[heading Remarks]
-
-Available only for services that do not support movability.
 
+ void wait();
 
 
+This function is used to wait for the object handle to be set to the signalled state. This function blocks and does not return until the object handle has been set to the signalled state.
 
-[endsect]
 
+[heading Exceptions]
+
 
+[variablelist
+
+[[boost::system::system_error][Thrown on failure. ]]
 
-[section:service_type windows::basic_handle::service_type]
+]
 
 
-['Inherited from basic_io_object.]
 
-[indexterm2 service_type..windows::basic_handle]
-The type of the service that will be used to provide I/O operations.
 
+[endsect]
 
- typedef HandleService service_type;
 
 
+[section:overload2 windows::basic_object_handle::wait (2 of 2 overloads)]
 
-[heading Requirements]
 
-[*Header: ][^boost/asio/windows/basic_handle.hpp]
+Perform a blocking wait on the object handle.
 
-[*Convenience header: ][^boost/asio.hpp]
 
+ void wait(
+ boost::system::error_code & ec);
 
-[endsect]
 
+This function is used to wait for the object handle to be set to the signalled state. This function blocks and does not return until the object handle has been set to the signalled state.
 
 
-[section:_basic_handle windows::basic_handle::~basic_handle]
+[heading Parameters]
+
 
-[indexterm2 ~basic_handle..windows::basic_handle]
-Protected destructor to prevent deletion through this type.
+[variablelist
+
+[[ec][Set to indicate what error occurred, if any. ]]
 
+]
 
- ~basic_handle();
 
 
 
 [endsect]
 
 
+[endsect]
+
 
 [endsect]
 
@@ -90532,6 +94369,566 @@
 
 [endsect]
 
+
+[section:windows__object_handle windows::object_handle]
+
+[indexterm1 windows::object_handle]
+Typedef for the typical usage of an object handle.
+
+
+ typedef basic_object_handle object_handle;
+
+
+[heading Types]
+[table
+ [[Name][Description]]
+
+ [
+
+ [[link boost_asio.reference.windows__basic_object_handle.implementation_type [*implementation_type]]]
+ [The underlying implementation type of I/O object. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.windows__basic_object_handle.lowest_layer_type [*lowest_layer_type]]]
+ [A basic_handle is always the lowest layer. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.windows__basic_object_handle.native_handle_type [*native_handle_type]]]
+ [The native representation of a handle. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.windows__basic_object_handle.native_type [*native_type]]]
+ [(Deprecated: Use native_handle_type.) The native representation of a handle. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.windows__basic_object_handle.service_type [*service_type]]]
+ [The type of the service that will be used to provide I/O operations. ]
+
+ ]
+
+]
+
+[heading Member Functions]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.windows__basic_object_handle.assign [*assign]]]
+ [Assign an existing native handle to the handle. ]
+ ]
+
+ [
+ [[link boost_asio.reference.windows__basic_object_handle.async_wait [*async_wait]]]
+ [Start an asynchronous wait on the object handle. ]
+ ]
+
+ [
+ [[link boost_asio.reference.windows__basic_object_handle.basic_object_handle [*basic_object_handle]]]
+ [Construct a basic_object_handle without opening it.
+
+ Construct a basic_object_handle on an existing native handle.
+
+ Move-construct a basic_object_handle from another. ]
+ ]
+
+ [
+ [[link boost_asio.reference.windows__basic_object_handle.cancel [*cancel]]]
+ [Cancel all asynchronous operations associated with the handle. ]
+ ]
+
+ [
+ [[link boost_asio.reference.windows__basic_object_handle.close [*close]]]
+ [Close the handle. ]
+ ]
+
+ [
+ [[link boost_asio.reference.windows__basic_object_handle.get_io_service [*get_io_service]]]
+ [Get the io_service associated with the object. ]
+ ]
+
+ [
+ [[link boost_asio.reference.windows__basic_object_handle.is_open [*is_open]]]
+ [Determine whether the handle is open. ]
+ ]
+
+ [
+ [[link boost_asio.reference.windows__basic_object_handle.lowest_layer [*lowest_layer]]]
+ [Get a reference to the lowest layer.
+
+ Get a const reference to the lowest layer. ]
+ ]
+
+ [
+ [[link boost_asio.reference.windows__basic_object_handle.native [*native]]]
+ [(Deprecated: Use native_handle().) Get the native handle representation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.windows__basic_object_handle.native_handle [*native_handle]]]
+ [Get the native handle representation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.windows__basic_object_handle.operator_eq_ [*operator=]]]
+ [Move-assign a basic_object_handle from another. ]
+ ]
+
+ [
+ [[link boost_asio.reference.windows__basic_object_handle.wait [*wait]]]
+ [Perform a blocking wait on the object handle. ]
+ ]
+
+]
+
+[heading Protected Member Functions]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.windows__basic_object_handle.get_implementation [*get_implementation]]]
+ [Get the underlying implementation of the I/O object. ]
+ ]
+
+ [
+ [[link boost_asio.reference.windows__basic_object_handle.get_service [*get_service]]]
+ [Get the service associated with the I/O object. ]
+ ]
+
+]
+
+[heading Protected Data Members]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.windows__basic_object_handle.implementation [*implementation]]]
+ [(Deprecated: Use get_implementation().) The underlying implementation of the I/O object. ]
+ ]
+
+ [
+ [[link boost_asio.reference.windows__basic_object_handle.service [*service]]]
+ [(Deprecated: Use get_service().) The service associated with the I/O object. ]
+ ]
+
+]
+
+The [link boost_asio.reference.windows__basic_object_handle `windows::basic_object_handle`] class template provides asynchronous and blocking object-oriented handle functionality.
+
+
+[heading Thread Safety]
+
+[*Distinct] [*objects:] Safe.
+
+[*Shared] [*objects:] Unsafe.
+
+
+
+
+[heading Requirements]
+
+[*Header: ][^boost/asio/windows/object_handle.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
+
+
+[endsect]
+
+
+[section:windows__object_handle_service windows::object_handle_service]
+
+
+Default service implementation for an object handle.
+
+
+ class object_handle_service :
+ public io_service::service
+
+
+[heading Types]
+[table
+ [[Name][Description]]
+
+ [
+
+ [[link boost_asio.reference.windows__object_handle_service.implementation_type [*implementation_type]]]
+ [The type of an object handle implementation. ]
+
+ ]
+
+ [
+
+ [[link boost_asio.reference.windows__object_handle_service.native_handle_type [*native_handle_type]]]
+ [The native handle type. ]
+
+ ]
+
+]
+
+[heading Member Functions]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.windows__object_handle_service.assign [*assign]]]
+ [Assign an existing native handle to an object handle. ]
+ ]
+
+ [
+ [[link boost_asio.reference.windows__object_handle_service.async_wait [*async_wait]]]
+ [Start an asynchronous wait. ]
+ ]
+
+ [
+ [[link boost_asio.reference.windows__object_handle_service.cancel [*cancel]]]
+ [Cancel all asynchronous operations associated with the handle. ]
+ ]
+
+ [
+ [[link boost_asio.reference.windows__object_handle_service.close [*close]]]
+ [Close an object handle implementation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.windows__object_handle_service.construct [*construct]]]
+ [Construct a new object handle implementation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.windows__object_handle_service.destroy [*destroy]]]
+ [Destroy an object handle implementation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.windows__object_handle_service.get_io_service [*get_io_service]]]
+ [Get the io_service object that owns the service. ]
+ ]
+
+ [
+ [[link boost_asio.reference.windows__object_handle_service.is_open [*is_open]]]
+ [Determine whether the handle is open. ]
+ ]
+
+ [
+ [[link boost_asio.reference.windows__object_handle_service.move_assign [*move_assign]]]
+ [Move-assign from another object handle implementation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.windows__object_handle_service.move_construct [*move_construct]]]
+ [Move-construct a new object handle implementation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.windows__object_handle_service.native_handle [*native_handle]]]
+ [Get the native handle implementation. ]
+ ]
+
+ [
+ [[link boost_asio.reference.windows__object_handle_service.object_handle_service [*object_handle_service]]]
+ [Construct a new object handle service for the specified io_service. ]
+ ]
+
+ [
+ [[link boost_asio.reference.windows__object_handle_service.wait [*wait]]]
+ []
+ ]
+
+]
+
+[heading Data Members]
+[table
+ [[Name][Description]]
+
+ [
+ [[link boost_asio.reference.windows__object_handle_service.id [*id]]]
+ [The unique service identifier. ]
+ ]
+
+]
+
+[heading Requirements]
+
+[*Header: ][^boost/asio/windows/object_handle_service.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
+
+
+[section:assign windows::object_handle_service::assign]
+
+[indexterm2 assign..windows::object_handle_service]
+Assign an existing native handle to an object handle.
+
+
+ boost::system::error_code assign(
+ implementation_type & impl,
+ const native_handle_type & handle,
+ boost::system::error_code & ec);
+
+
+
+[endsect]
+
+
+
+[section:async_wait windows::object_handle_service::async_wait]
+
+[indexterm2 async_wait..windows::object_handle_service]
+Start an asynchronous wait.
+
+
+ template<
+ typename ``[link boost_asio.reference.WaitHandler WaitHandler]``>
+ void async_wait(
+ implementation_type & impl,
+ WaitHandler handler);
+
+
+
+[endsect]
+
+
+
+[section:cancel windows::object_handle_service::cancel]
+
+[indexterm2 cancel..windows::object_handle_service]
+Cancel all asynchronous operations associated with the handle.
+
+
+ boost::system::error_code cancel(
+ implementation_type & impl,
+ boost::system::error_code & ec);
+
+
+
+[endsect]
+
+
+
+[section:close windows::object_handle_service::close]
+
+[indexterm2 close..windows::object_handle_service]
+Close an object handle implementation.
+
+
+ boost::system::error_code close(
+ implementation_type & impl,
+ boost::system::error_code & ec);
+
+
+
+[endsect]
+
+
+
+[section:construct windows::object_handle_service::construct]
+
+[indexterm2 construct..windows::object_handle_service]
+Construct a new object handle implementation.
+
+
+ void construct(
+ implementation_type & impl);
+
+
+
+[endsect]
+
+
+
+[section:destroy windows::object_handle_service::destroy]
+
+[indexterm2 destroy..windows::object_handle_service]
+Destroy an object handle implementation.
+
+
+ void destroy(
+ implementation_type & impl);
+
+
+
+[endsect]
+
+
+
+[section:get_io_service windows::object_handle_service::get_io_service]
+
+
+['Inherited from io_service.]
+
+[indexterm2 get_io_service..windows::object_handle_service]
+Get the [link boost_asio.reference.io_service `io_service`] object that owns the service.
+
+
+ boost::asio::io_service & get_io_service();
+
+
+
+[endsect]
+
+
+
+[section:id windows::object_handle_service::id]
+
+[indexterm2 id..windows::object_handle_service]
+The unique service identifier.
+
+
+ static boost::asio::io_service::id id;
+
+
+
+[endsect]
+
+
+
+[section:implementation_type windows::object_handle_service::implementation_type]
+
+[indexterm2 implementation_type..windows::object_handle_service]
+The type of an object handle implementation.
+
+
+ typedef implementation_defined implementation_type;
+
+
+
+[heading Requirements]
+
+[*Header: ][^boost/asio/windows/object_handle_service.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
+
+
+[endsect]
+
+
+
+[section:is_open windows::object_handle_service::is_open]
+
+[indexterm2 is_open..windows::object_handle_service]
+Determine whether the handle is open.
+
+
+ bool is_open(
+ const implementation_type & impl) const;
+
+
+
+[endsect]
+
+
+
+[section:move_assign windows::object_handle_service::move_assign]
+
+[indexterm2 move_assign..windows::object_handle_service]
+Move-assign from another object handle implementation.
+
+
+ void move_assign(
+ implementation_type & impl,
+ object_handle_service & other_service,
+ implementation_type & other_impl);
+
+
+
+[endsect]
+
+
+
+[section:move_construct windows::object_handle_service::move_construct]
+
+[indexterm2 move_construct..windows::object_handle_service]
+Move-construct a new object handle implementation.
+
+
+ void move_construct(
+ implementation_type & impl,
+ implementation_type & other_impl);
+
+
+
+[endsect]
+
+
+
+[section:native_handle windows::object_handle_service::native_handle]
+
+[indexterm2 native_handle..windows::object_handle_service]
+Get the native handle implementation.
+
+
+ native_handle_type native_handle(
+ implementation_type & impl);
+
+
+
+[endsect]
+
+
+
+[section:native_handle_type windows::object_handle_service::native_handle_type]
+
+[indexterm2 native_handle_type..windows::object_handle_service]
+The native handle type.
+
+
+ typedef implementation_defined native_handle_type;
+
+
+
+[heading Requirements]
+
+[*Header: ][^boost/asio/windows/object_handle_service.hpp]
+
+[*Convenience header: ][^boost/asio.hpp]
+
+
+[endsect]
+
+
+
+[section:object_handle_service windows::object_handle_service::object_handle_service]
+
+[indexterm2 object_handle_service..windows::object_handle_service]
+Construct a new object handle service for the specified [link boost_asio.reference.io_service `io_service`].
+
+
+ object_handle_service(
+ boost::asio::io_service & io_service);
+
+
+
+[endsect]
+
+
+
+[section:wait windows::object_handle_service::wait]
+
+[indexterm2 wait..windows::object_handle_service]
+
+ void wait(
+ implementation_type & impl,
+ boost::system::error_code & ec);
+
+
+
+[endsect]
+
+
+
+[endsect]
+
 [section:windows__overlapped_ptr windows::overlapped_ptr]
 
 
@@ -93704,4 +98101,4 @@
 
 [endsect]
 
-[endsect]
+[endsect]
\ No newline at end of file

Modified: trunk/libs/asio/doc/reference.xsl
==============================================================================
--- trunk/libs/asio/doc/reference.xsl (original)
+++ trunk/libs/asio/doc/reference.xsl 2012-01-15 07:51:20 EST (Sun, 15 Jan 2012)
@@ -60,6 +60,7 @@
 [include requirements/IoControlCommand.qbk]
 [include requirements/IoObjectService.qbk]
 [include requirements/MutableBufferSequence.qbk]
+[include requirements/ObjectHandleService.qbk]
 [include requirements/Protocol.qbk]
 [include requirements/RandomAccessHandleService.qbk]
 [include requirements/RawSocketService.qbk]
@@ -85,7 +86,9 @@
 [include requirements/SyncWriteStream.qbk]
 [include requirements/TimeTraits.qbk]
 [include requirements/TimerService.qbk]
+[include requirements/WaitableTimerService.qbk]
 [include requirements/WaitHandler.qbk]
+[include requirements/WaitTraits.qbk]
 [include requirements/WriteHandler.qbk]
 
 </xsl:text>
@@ -732,6 +735,15 @@
     <xsl:when test="contains($file, 'boost/asio/ssl')">
       <xsl:text>[^boost/asio/ssl.hpp]</xsl:text>
     </xsl:when>
+ <xsl:when test="contains($file, 'boost/asio/high_resolution_timer')">
+ <xsl:text>None</xsl:text>
+ </xsl:when>
+ <xsl:when test="contains($file, 'boost/asio/steady_timer')">
+ <xsl:text>None</xsl:text>
+ </xsl:when>
+ <xsl:when test="contains($file, 'boost/asio/system_timer')">
+ <xsl:text>None</xsl:text>
+ </xsl:when>
     <xsl:otherwise>
       <xsl:text>[^boost/asio.hpp]</xsl:text>
     </xsl:otherwise>
@@ -1405,6 +1417,9 @@
         <xsl:when test="declname = 'ByteType'">
           <xsl:value-of select="declname"/>
         </xsl:when>
+ <xsl:when test="declname = 'Clock'">
+ <xsl:value-of select="declname"/>
+ </xsl:when>
         <xsl:when test="declname = 'CompletionCondition'">
           <xsl:value-of select="declname"/>
         </xsl:when>

Added: trunk/libs/asio/doc/requirements/ObjectHandleService.qbk
==============================================================================
--- (empty file)
+++ trunk/libs/asio/doc/requirements/ObjectHandleService.qbk 2012-01-15 07:51:20 EST (Sun, 15 Jan 2012)
@@ -0,0 +1,46 @@
+[/
+ / Copyright (c) 2003-2012 Christopher M. Kohlhoff (chris at kohlhoff dot com)
+ /
+ / Distributed under the Boost Software License, Version 1.0. (See accompanying
+ / file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+ /]
+
+[section:ObjectHandleService Object handle service requirements]
+
+An object handle service must meet the requirements for a [link
+boost_asio.reference.HandleService handle service], as well as the additional
+requirements listed below.
+
+In the table below, `X` denotes an object handle service class, `a` denotes a
+value of type `X`, `b` denotes a value of type `X::implementation_type`, `ec`
+denotes a value of type `error_code`, and `wh` denotes a value meeting [link
+boost_asio.reference.WaitHandler `WaitHandler`] requirements.
+
+[table ObjectHandleService requirements
+ [[expression] [return type] [assertion/note\npre/post-condition]]
+ [
+ [`a.wait(b, ec);`]
+ [`error_code`]
+ [
+ pre: `a.is_open(b)`.\n
+ \n
+ Synchronously waits for the object represented by handle `b` to become
+ signalled.
+ ]
+ ]
+ [
+ [`a.async_wait(b, wh);`]
+ [`void`]
+ [
+ pre: `a.is_open(b)`.\n
+ \n
+ Initiates an asynchronous operation to wait for the object represented by
+ handle `b` to become signalled. The operation is performed via the
+ `io_service` object `a.get_io_service()` and behaves according to [link
+ boost_asio.reference.asynchronous_operations asynchronous operation]
+ requirements.
+ ]
+ ]
+]
+
+[endsect]

Added: trunk/libs/asio/doc/requirements/WaitTraits.qbk
==============================================================================
--- (empty file)
+++ trunk/libs/asio/doc/requirements/WaitTraits.qbk 2012-01-15 07:51:20 EST (Sun, 15 Jan 2012)
@@ -0,0 +1,26 @@
+[/
+ / Copyright (c) 2003-2012 Christopher M. Kohlhoff (chris at kohlhoff dot com)
+ /
+ / Distributed under the Boost Software License, Version 1.0. (See accompanying
+ / file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+ /]
+
+[section:WaitTraits Wait traits requirements]
+
+In the table below, `X` denotes a wait traits class for clock type `Clock`,
+where `Clock` meets the C++11 type requirements for a clock, and `d` denotes
+a value of type `Clock::duration`.
+
+[table WaitTraits requirements
+ [[expression] [return type] [assertion/note\npre/post-condition]]
+ [
+ [`X::to_wait_duration(d);`]
+ [`Clock::duration`]
+ [
+ Returns the maximum duration to be used for an individual,
+ implementation-defined wait operation.
+ ]
+ ]
+]
+
+[endsect]

Added: trunk/libs/asio/doc/requirements/WaitableTimerService.qbk
==============================================================================
--- (empty file)
+++ trunk/libs/asio/doc/requirements/WaitableTimerService.qbk 2012-01-15 07:51:20 EST (Sun, 15 Jan 2012)
@@ -0,0 +1,104 @@
+[/
+ / Copyright (c) 2003-2012 Christopher M. Kohlhoff (chris at kohlhoff dot com)
+ /
+ / Distributed under the Boost Software License, Version 1.0. (See accompanying
+ / file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+ /]
+
+[section:WaitableTimerService Waitable timer service requirements]
+
+A waitable timer service must meet the requirements for an [link
+boost_asio.reference.IoObjectService I/O object service], as well as the
+additional requirements listed below.
+
+In the table below, `X` denotes a waitable timer service class for clock type
+`Clock`, where `Clock` meets the C++11 clock type requirements, `a` denotes a
+value of type `X`, `b` denotes a value of type `X::implementation_type`, `t`
+denotes a value of type `Clock::time_point`, `d` denotes a value of type
+`Clock::duration`, `e` denotes a value of type `error_code`, and `h` denotes a
+value meeting [link boost_asio.reference.WaitHandler `WaitHandler`] requirements.
+
+[table WaitableTimerService requirements
+ [[expression] [return type] [assertion/note\npre/post-condition]]
+ [
+ [`a.destroy(b);`]
+ []
+ [
+ From [link boost_asio.reference.IoObjectService IoObjectService]
+ requirements. Implicitly cancels asynchronous wait operations, as if by
+ calling `a.cancel(b, e)`.
+ ]
+ ]
+ [
+ [``
+ a.cancel(b, e);
+ ``]
+ [`size_t`]
+ [
+ Causes any outstanding asynchronous wait operations to complete as soon
+ as possible. Handlers for cancelled operations shall be passed the error
+ code `error::operation_aborted`. Sets `e` to indicate success or failure.
+ Returns the number of operations that were cancelled.
+ ]
+ ]
+ [
+ [`a.expires_at(b);`]
+ [`Clock::time_point`]
+ []
+ ]
+ [
+ [``
+ a.expires_at(b, t, e);
+ ``]
+ [`size_t`]
+ [
+ Implicitly cancels asynchronous wait operations, as if by calling
+ `a.cancel(b, e)`. Returns the number of operations that were cancelled.\n
+ post: `a.expires_at(b) == t`.
+ ]
+ ]
+ [
+ [`a.expires_from_now(b);`]
+ [`Clock::duration`]
+ [
+ Returns a value equivalent to `a.expires_at(b) - Clock::now()`.
+ ]
+ ]
+ [
+ [``
+ a.expires_from_now(b, d, e);
+ ``]
+ [`size_t`]
+ [
+ Equivalent to `a.expires_at(b, Clock::now() + d, e)`.
+ ]
+ ]
+ [
+ [``
+ a.wait(b, e);
+ ``]
+ [`error_code`]
+ [
+ Sets `e` to indicate success or failure. Returns `e`.\n
+ post: `!!e || !(Clock::now() < a.expires_at(b))`.
+ ]
+ ]
+ [
+ [``
+ a.async_wait(b, h);
+ ``]
+ []
+ [
+ Initiates an asynchronous wait operation that is performed via the
+ `io_service` object `a.get_io_service()` and behaves according to [link
+ boost_asio.reference.asynchronous_operations asynchronous operation]
+ requirements.\n
+ \n
+ The handler shall be posted for execution only if the condition
+ `!!ec || !(Clock::now() < a.expires_at(b))`
+ holds, where `ec` is the error code to be passed to the handler.
+ ]
+ ]
+]
+
+[endsect]

Modified: trunk/libs/asio/doc/tutorial.qbk
==============================================================================
--- trunk/libs/asio/doc/tutorial.qbk (original)
+++ trunk/libs/asio/doc/tutorial.qbk 2012-01-15 07:51:20 EST (Sun, 15 Jan 2012)
@@ -2393,4 +2393,4 @@
 [endsect]
 
 
-[endsect]
+[endsect]
\ No newline at end of file


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk