3 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4 <title>posix::basic_stream_descriptor::release</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="../posix__basic_stream_descriptor.html" title="posix::basic_stream_descriptor">
9 <link rel="prev" href="read_some/overload2.html" title="posix::basic_stream_descriptor::read_some (2 of 2 overloads)">
10 <link rel="next" href="service.html" title="posix::basic_stream_descriptor::service">
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="read_some/overload2.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../posix__basic_stream_descriptor.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="service.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a>
26 <div class="titlepage"><div><div><h4 class="title">
27 <a name="boost_asio.reference.posix__basic_stream_descriptor.release"></a><a class="link" href="release.html" title="posix::basic_stream_descriptor::release">posix::basic_stream_descriptor::release</a>
28 </h4></div></div></div>
30 <span class="emphasis"><em>Inherited from posix::basic_descriptor.</em></span>
33 <a class="indexterm" name="idp185331776"></a>
34 Release ownership of the native descriptor
37 <pre class="programlisting"><span class="identifier">native_handle_type</span> <span class="identifier">release</span><span class="special">();</span>
40 This function may be used to obtain the underlying representation of the
41 descriptor. After calling this function, <code class="computeroutput"><span class="identifier">is_open</span><span class="special">()</span></code> returns false. The caller is responsible
42 for closing the descriptor.
45 All outstanding asynchronous read or write operations will finish immediately,
46 and the handlers for cancelled operations will be passed the <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">asio</span><span class="special">::</span><span class="identifier">error</span><span class="special">::</span><span class="identifier">operation_aborted</span></code> error.
49 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
50 <td align="left"></td>
51 <td align="right"><div class="copyright-footer">Copyright © 2003-2014 Christopher M. Kohlhoff<p>
52 Distributed under the Boost Software License, Version 1.0. (See accompanying
53 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>)
58 <div class="spirit-nav">
59 <a accesskey="p" href="read_some/overload2.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../posix__basic_stream_descriptor.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="service.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a>