3 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4 <title>windows::basic_stream_handle</title>
5 <link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css">
6 <meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
7 <link rel="home" href="../../boost_asio.html" title="Boost.Asio">
8 <link rel="up" href="../reference.html" title="Reference">
9 <link rel="prev" href="windows__basic_random_access_handle/write_some_at/overload2.html" title="windows::basic_random_access_handle::write_some_at (2 of 2 overloads)">
10 <link rel="next" href="windows__basic_stream_handle/assign.html" title="windows::basic_stream_handle::assign">
12 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13 <table cellpadding="2" width="100%"><tr>
14 <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../boost.png"></td>
15 <td align="center"><a href="../../../../index.html">Home</a></td>
16 <td align="center"><a href="../../../../libs/libraries.htm">Libraries</a></td>
17 <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
18 <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
19 <td align="center"><a href="../../../../more/index.htm">More</a></td>
22 <div class="spirit-nav">
23 <a accesskey="p" href="windows__basic_random_access_handle/write_some_at/overload2.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../reference.html"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../boost_asio.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="windows__basic_stream_handle/assign.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
26 <div class="titlepage"><div><div><h3 class="title">
27 <a name="boost_asio.reference.windows__basic_stream_handle"></a><a class="link" href="windows__basic_stream_handle.html" title="windows::basic_stream_handle">windows::basic_stream_handle</a>
28 </h3></div></div></div>
30 Provides stream-oriented handle functionality.
32 <pre class="programlisting"><span class="keyword">template</span><span class="special"><</span>
33 <span class="keyword">typename</span> <a class="link" href="StreamHandleService.html" title="Stream handle service requirements">StreamHandleService</a> <span class="special">=</span> <span class="identifier">stream_handle_service</span><span class="special">></span>
34 <span class="keyword">class</span> <span class="identifier">basic_stream_handle</span> <span class="special">:</span>
35 <span class="keyword">public</span> <span class="identifier">windows</span><span class="special">::</span><span class="identifier">basic_handle</span><span class="special"><</span> <span class="identifier">StreamHandleService</span> <span class="special">></span>
38 <a name="boost_asio.reference.windows__basic_stream_handle.h0"></a>
39 <span class="phrase"><a name="boost_asio.reference.windows__basic_stream_handle.types"></a></span><a class="link" href="windows__basic_stream_handle.html#boost_asio.reference.windows__basic_stream_handle.types">Types</a>
41 <div class="informaltable"><table class="table">
62 <a class="link" href="windows__basic_stream_handle/implementation_type.html" title="windows::basic_stream_handle::implementation_type"><span class="bold"><strong>implementation_type</strong></span></a>
67 The underlying implementation type of I/O object.
74 <a class="link" href="windows__basic_stream_handle/lowest_layer_type.html" title="windows::basic_stream_handle::lowest_layer_type"><span class="bold"><strong>lowest_layer_type</strong></span></a>
79 A basic_handle is always the lowest layer.
86 <a class="link" href="windows__basic_stream_handle/native_handle_type.html" title="windows::basic_stream_handle::native_handle_type"><span class="bold"><strong>native_handle_type</strong></span></a>
91 The native representation of a handle.
98 <a class="link" href="windows__basic_stream_handle/native_type.html" title="windows::basic_stream_handle::native_type"><span class="bold"><strong>native_type</strong></span></a>
103 (Deprecated: Use native_handle_type.) The native representation
111 <a class="link" href="windows__basic_stream_handle/service_type.html" title="windows::basic_stream_handle::service_type"><span class="bold"><strong>service_type</strong></span></a>
116 The type of the service that will be used to provide I/O operations.
123 <a name="boost_asio.reference.windows__basic_stream_handle.h1"></a>
124 <span class="phrase"><a name="boost_asio.reference.windows__basic_stream_handle.member_functions"></a></span><a class="link" href="windows__basic_stream_handle.html#boost_asio.reference.windows__basic_stream_handle.member_functions">Member
127 <div class="informaltable"><table class="table">
148 <a class="link" href="windows__basic_stream_handle/assign.html" title="windows::basic_stream_handle::assign"><span class="bold"><strong>assign</strong></span></a>
153 Assign an existing native handle to the handle.
160 <a class="link" href="windows__basic_stream_handle/async_read_some.html" title="windows::basic_stream_handle::async_read_some"><span class="bold"><strong>async_read_some</strong></span></a>
165 Start an asynchronous read.
172 <a class="link" href="windows__basic_stream_handle/async_write_some.html" title="windows::basic_stream_handle::async_write_some"><span class="bold"><strong>async_write_some</strong></span></a>
177 Start an asynchronous write.
184 <a class="link" href="windows__basic_stream_handle/basic_stream_handle.html" title="windows::basic_stream_handle::basic_stream_handle"><span class="bold"><strong>basic_stream_handle</strong></span></a>
189 Construct a basic_stream_handle without opening it.
192 Construct a basic_stream_handle on an existing native handle.
195 Move-construct a basic_stream_handle from another.
202 <a class="link" href="windows__basic_stream_handle/cancel.html" title="windows::basic_stream_handle::cancel"><span class="bold"><strong>cancel</strong></span></a>
207 Cancel all asynchronous operations associated with the handle.
214 <a class="link" href="windows__basic_stream_handle/close.html" title="windows::basic_stream_handle::close"><span class="bold"><strong>close</strong></span></a>
226 <a class="link" href="windows__basic_stream_handle/get_io_service.html" title="windows::basic_stream_handle::get_io_service"><span class="bold"><strong>get_io_service</strong></span></a>
231 Get the io_service associated with the object.
238 <a class="link" href="windows__basic_stream_handle/is_open.html" title="windows::basic_stream_handle::is_open"><span class="bold"><strong>is_open</strong></span></a>
243 Determine whether the handle is open.
250 <a class="link" href="windows__basic_stream_handle/lowest_layer.html" title="windows::basic_stream_handle::lowest_layer"><span class="bold"><strong>lowest_layer</strong></span></a>
255 Get a reference to the lowest layer.
258 Get a const reference to the lowest layer.
265 <a class="link" href="windows__basic_stream_handle/native.html" title="windows::basic_stream_handle::native"><span class="bold"><strong>native</strong></span></a>
270 (Deprecated: Use native_handle().) Get the native handle representation.
277 <a class="link" href="windows__basic_stream_handle/native_handle.html" title="windows::basic_stream_handle::native_handle"><span class="bold"><strong>native_handle</strong></span></a>
282 Get the native handle representation.
289 <a class="link" href="windows__basic_stream_handle/operator_eq_.html" title="windows::basic_stream_handle::operator="><span class="bold"><strong>operator=</strong></span></a>
294 Move-assign a basic_stream_handle from another.
301 <a class="link" href="windows__basic_stream_handle/read_some.html" title="windows::basic_stream_handle::read_some"><span class="bold"><strong>read_some</strong></span></a>
306 Read some data from the handle.
313 <a class="link" href="windows__basic_stream_handle/write_some.html" title="windows::basic_stream_handle::write_some"><span class="bold"><strong>write_some</strong></span></a>
318 Write some data to the handle.
325 <a name="boost_asio.reference.windows__basic_stream_handle.h2"></a>
326 <span class="phrase"><a name="boost_asio.reference.windows__basic_stream_handle.protected_member_functions"></a></span><a class="link" href="windows__basic_stream_handle.html#boost_asio.reference.windows__basic_stream_handle.protected_member_functions">Protected
329 <div class="informaltable"><table class="table">
350 <a class="link" href="windows__basic_stream_handle/get_implementation.html" title="windows::basic_stream_handle::get_implementation"><span class="bold"><strong>get_implementation</strong></span></a>
355 Get the underlying implementation of the I/O object.
362 <a class="link" href="windows__basic_stream_handle/get_service.html" title="windows::basic_stream_handle::get_service"><span class="bold"><strong>get_service</strong></span></a>
367 Get the service associated with the I/O object.
374 <a name="boost_asio.reference.windows__basic_stream_handle.h3"></a>
375 <span class="phrase"><a name="boost_asio.reference.windows__basic_stream_handle.protected_data_members"></a></span><a class="link" href="windows__basic_stream_handle.html#boost_asio.reference.windows__basic_stream_handle.protected_data_members">Protected
378 <div class="informaltable"><table class="table">
399 <a class="link" href="windows__basic_stream_handle/implementation.html" title="windows::basic_stream_handle::implementation"><span class="bold"><strong>implementation</strong></span></a>
404 (Deprecated: Use get_implementation().) The underlying implementation
412 <a class="link" href="windows__basic_stream_handle/service.html" title="windows::basic_stream_handle::service"><span class="bold"><strong>service</strong></span></a>
417 (Deprecated: Use get_service().) The service associated with the
425 The <a class="link" href="windows__basic_stream_handle.html" title="windows::basic_stream_handle"><code class="computeroutput"><span class="identifier">windows</span><span class="special">::</span><span class="identifier">basic_stream_handle</span></code></a> class template
426 provides asynchronous and blocking stream-oriented handle functionality.
429 <a name="boost_asio.reference.windows__basic_stream_handle.h4"></a>
430 <span class="phrase"><a name="boost_asio.reference.windows__basic_stream_handle.thread_safety"></a></span><a class="link" href="windows__basic_stream_handle.html#boost_asio.reference.windows__basic_stream_handle.thread_safety">Thread
434 <span class="emphasis"><em>Distinct</em></span> <span class="emphasis"><em>objects:</em></span> Safe.
437 <span class="emphasis"><em>Shared</em></span> <span class="emphasis"><em>objects:</em></span> Unsafe.
440 <a name="boost_asio.reference.windows__basic_stream_handle.h5"></a>
441 <span class="phrase"><a name="boost_asio.reference.windows__basic_stream_handle.requirements"></a></span><a class="link" href="windows__basic_stream_handle.html#boost_asio.reference.windows__basic_stream_handle.requirements">Requirements</a>
444 <span class="emphasis"><em>Header: </em></span><code class="literal">boost/asio/windows/basic_stream_handle.hpp</code>
447 <span class="emphasis"><em>Convenience header: </em></span><code class="literal">boost/asio.hpp</code>
450 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
451 <td align="left"></td>
452 <td align="right"><div class="copyright-footer">Copyright © 2003-2014 Christopher M. Kohlhoff<p>
453 Distributed under the Boost Software License, Version 1.0. (See accompanying
454 file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
459 <div class="spirit-nav">
460 <a accesskey="p" href="windows__basic_random_access_handle/write_some_at/overload2.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../reference.html"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../boost_asio.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="windows__basic_stream_handle/assign.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>