Sophie

Sophie

distrib > Mageia > 1 > i586 > media > core-release > by-pkgid > 2deed065cd3adb9905decb703c6b0100 > files > 1977

asio-1.4.5-1.mga1.i586.rpm

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>posix::basic_stream_descriptor</title>
<link rel="stylesheet" href="../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
<link rel="start" href="../../index.html" title="Asio">
<link rel="up" href="../reference.html" title="Reference">
<link rel="prev" href="posix__basic_descriptor/_basic_descriptor.html" title="posix::basic_descriptor::~basic_descriptor">
<link rel="next" href="posix__basic_stream_descriptor/assign.html" title="posix::basic_stream_descriptor::assign">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../asio.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="posix__basic_descriptor/_basic_descriptor.html"><img src="../../prev.png" alt="Prev"></a><a accesskey="u" href="../reference.html"><img src="../../up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../home.png" alt="Home"></a><a accesskey="n" href="posix__basic_stream_descriptor/assign.html"><img src="../../next.png" alt="Next"></a>
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title">
<a name="asio.reference.posix__basic_stream_descriptor"></a><a class="link" href="posix__basic_stream_descriptor.html" title="posix::basic_stream_descriptor"> posix::basic_stream_descriptor</a>
</h3></div></div></div>
<p>
        Provides stream-oriented descriptor functionality.
      </p>
<pre class="programlisting"><span class="keyword">template</span><span class="special">&lt;</span>
    <span class="keyword">typename</span> <a class="link" href="StreamDescriptorService.html" title="Stream descriptor service requirements">StreamDescriptorService</a> <span class="special">=</span> <span class="identifier">stream_descriptor_service</span><span class="special">&gt;</span>
<span class="keyword">class</span> <span class="identifier">basic_stream_descriptor</span> <span class="special">:</span>
  <span class="keyword">public</span> <span class="identifier">posix</span><span class="special">::</span><span class="identifier">basic_descriptor</span><span class="special">&lt;</span> <span class="identifier">StreamDescriptorService</span> <span class="special">&gt;</span>
</pre>
<a name="asio.reference.posix__basic_stream_descriptor.types"></a><h5>
<a name="id936489"></a>
        <a class="link" href="posix__basic_stream_descriptor.html#asio.reference.posix__basic_stream_descriptor.types">Types</a>
      </h5>
<div class="informaltable"><table class="table">
<colgroup>
<col>
<col>
</colgroup>
<thead><tr>
<th>
              <p>
                Name
              </p>
              </th>
<th>
              <p>
                Description
              </p>
              </th>
</tr></thead>
<tbody>
<tr>
<td>
              <p>
                <a class="link" href="posix__basic_stream_descriptor/bytes_readable.html" title="posix::basic_stream_descriptor::bytes_readable"><span class="bold"><strong>bytes_readable</strong></span></a>
              </p>
              </td>
<td>
              <p>
                IO control command to get the amount of data that can be read without
                blocking.
              </p>
              </td>
</tr>
<tr>
<td>
              <p>
                <a class="link" href="posix__basic_stream_descriptor/implementation_type.html" title="posix::basic_stream_descriptor::implementation_type"><span class="bold"><strong>implementation_type</strong></span></a>
              </p>
              </td>
<td>
              <p>
                The underlying implementation type of I/O object.
              </p>
              </td>
</tr>
<tr>
<td>
              <p>
                <a class="link" href="posix__basic_stream_descriptor/lowest_layer_type.html" title="posix::basic_stream_descriptor::lowest_layer_type"><span class="bold"><strong>lowest_layer_type</strong></span></a>
              </p>
              </td>
<td>
              <p>
                A basic_descriptor is always the lowest layer.
              </p>
              </td>
</tr>
<tr>
<td>
              <p>
                <a class="link" href="posix__basic_stream_descriptor/native_type.html" title="posix::basic_stream_descriptor::native_type"><span class="bold"><strong>native_type</strong></span></a>
              </p>
              </td>
<td>
              <p>
                The native representation of a descriptor.
              </p>
              </td>
</tr>
<tr>
<td>
              <p>
                <a class="link" href="posix__basic_stream_descriptor/non_blocking_io.html" title="posix::basic_stream_descriptor::non_blocking_io"><span class="bold"><strong>non_blocking_io</strong></span></a>
              </p>
              </td>
<td>
              <p>
                IO control command to set the blocking mode of the descriptor.
              </p>
              </td>
</tr>
<tr>
<td>
              <p>
                <a class="link" href="posix__basic_stream_descriptor/service_type.html" title="posix::basic_stream_descriptor::service_type"><span class="bold"><strong>service_type</strong></span></a>
              </p>
              </td>
<td>
              <p>
                The type of the service that will be used to provide I/O operations.
              </p>
              </td>
</tr>
</tbody>
</table></div>
<a name="asio.reference.posix__basic_stream_descriptor.member_functions"></a><h5>
<a name="id936710"></a>
        <a class="link" href="posix__basic_stream_descriptor.html#asio.reference.posix__basic_stream_descriptor.member_functions">Member
        Functions</a>
      </h5>
<div class="informaltable"><table class="table">
<colgroup>
<col>
<col>
</colgroup>
<thead><tr>
<th>
              <p>
                Name
              </p>
              </th>
<th>
              <p>
                Description
              </p>
              </th>
</tr></thead>
<tbody>
<tr>
<td>
              <p>
                <a class="link" href="posix__basic_stream_descriptor/assign.html" title="posix::basic_stream_descriptor::assign"><span class="bold"><strong>assign</strong></span></a>
              </p>
              </td>
<td>
              <p>
                Assign an existing native descriptor to the descriptor.
              </p>
              </td>
</tr>
<tr>
<td>
              <p>
                <a class="link" href="posix__basic_stream_descriptor/async_read_some.html" title="posix::basic_stream_descriptor::async_read_some"><span class="bold"><strong>async_read_some</strong></span></a>
              </p>
              </td>
<td>
              <p>
                Start an asynchronous read.
              </p>
              </td>
</tr>
<tr>
<td>
              <p>
                <a class="link" href="posix__basic_stream_descriptor/async_write_some.html" title="posix::basic_stream_descriptor::async_write_some"><span class="bold"><strong>async_write_some</strong></span></a>
              </p>
              </td>
<td>
              <p>
                Start an asynchronous write.
              </p>
              </td>
</tr>
<tr>
<td>
              <p>
                <a class="link" href="posix__basic_stream_descriptor/basic_stream_descriptor.html" title="posix::basic_stream_descriptor::basic_stream_descriptor"><span class="bold"><strong>basic_stream_descriptor</strong></span></a>
              </p>
              </td>
<td>
              <p>
                Construct a basic_stream_descriptor without opening it.
              </p>
              <p>
                Construct a basic_stream_descriptor on an existing native descriptor.
              </p>
              </td>
</tr>
<tr>
<td>
              <p>
                <a class="link" href="posix__basic_stream_descriptor/cancel.html" title="posix::basic_stream_descriptor::cancel"><span class="bold"><strong>cancel</strong></span></a>
              </p>
              </td>
<td>
              <p>
                Cancel all asynchronous operations associated with the descriptor.
              </p>
              </td>
</tr>
<tr>
<td>
              <p>
                <a class="link" href="posix__basic_stream_descriptor/close.html" title="posix::basic_stream_descriptor::close"><span class="bold"><strong>close</strong></span></a>
              </p>
              </td>
<td>
              <p>
                Close the descriptor.
              </p>
              </td>
</tr>
<tr>
<td>
              <p>
                <a class="link" href="posix__basic_stream_descriptor/get_io_service.html" title="posix::basic_stream_descriptor::get_io_service"><span class="bold"><strong>get_io_service</strong></span></a>
              </p>
              </td>
<td>
              <p>
                Get the io_service associated with the object.
              </p>
              </td>
</tr>
<tr>
<td>
              <p>
                <a class="link" href="posix__basic_stream_descriptor/io_control.html" title="posix::basic_stream_descriptor::io_control"><span class="bold"><strong>io_control</strong></span></a>
              </p>
              </td>
<td>
              <p>
                Perform an IO control command on the descriptor.
              </p>
              </td>
</tr>
<tr>
<td>
              <p>
                <a class="link" href="posix__basic_stream_descriptor/io_service.html" title="posix::basic_stream_descriptor::io_service"><span class="bold"><strong>io_service</strong></span></a>
              </p>
              </td>
<td>
              <p>
                (Deprecated: use get_io_service().) Get the io_service associated
                with the object.
              </p>
              </td>
</tr>
<tr>
<td>
              <p>
                <a class="link" href="posix__basic_stream_descriptor/is_open.html" title="posix::basic_stream_descriptor::is_open"><span class="bold"><strong>is_open</strong></span></a>
              </p>
              </td>
<td>
              <p>
                Determine whether the descriptor is open.
              </p>
              </td>
</tr>
<tr>
<td>
              <p>
                <a class="link" href="posix__basic_stream_descriptor/lowest_layer.html" title="posix::basic_stream_descriptor::lowest_layer"><span class="bold"><strong>lowest_layer</strong></span></a>
              </p>
              </td>
<td>
              <p>
                Get a reference to the lowest layer.
              </p>
              <p>
                Get a const reference to the lowest layer.
              </p>
              </td>
</tr>
<tr>
<td>
              <p>
                <a class="link" href="posix__basic_stream_descriptor/native.html" title="posix::basic_stream_descriptor::native"><span class="bold"><strong>native</strong></span></a>
              </p>
              </td>
<td>
              <p>
                Get the native descriptor representation.
              </p>
              </td>
</tr>
<tr>
<td>
              <p>
                <a class="link" href="posix__basic_stream_descriptor/read_some.html" title="posix::basic_stream_descriptor::read_some"><span class="bold"><strong>read_some</strong></span></a>
              </p>
              </td>
<td>
              <p>
                Read some data from the descriptor.
              </p>
              </td>
</tr>
<tr>
<td>
              <p>
                <a class="link" href="posix__basic_stream_descriptor/write_some.html" title="posix::basic_stream_descriptor::write_some"><span class="bold"><strong>write_some</strong></span></a>
              </p>
              </td>
<td>
              <p>
                Write some data to the descriptor.
              </p>
              </td>
</tr>
</tbody>
</table></div>
<a name="asio.reference.posix__basic_stream_descriptor.protected_data_members"></a><h5>
<a name="id937160"></a>
        <a class="link" href="posix__basic_stream_descriptor.html#asio.reference.posix__basic_stream_descriptor.protected_data_members">Protected
        Data Members</a>
      </h5>
<div class="informaltable"><table class="table">
<colgroup>
<col>
<col>
</colgroup>
<thead><tr>
<th>
              <p>
                Name
              </p>
              </th>
<th>
              <p>
                Description
              </p>
              </th>
</tr></thead>
<tbody>
<tr>
<td>
              <p>
                <a class="link" href="posix__basic_stream_descriptor/implementation.html" title="posix::basic_stream_descriptor::implementation"><span class="bold"><strong>implementation</strong></span></a>
              </p>
              </td>
<td>
              <p>
                The underlying implementation of the I/O object.
              </p>
              </td>
</tr>
<tr>
<td>
              <p>
                <a class="link" href="posix__basic_stream_descriptor/service.html" title="posix::basic_stream_descriptor::service"><span class="bold"><strong>service</strong></span></a>
              </p>
              </td>
<td>
              <p>
                The service associated with the I/O object.
              </p>
              </td>
</tr>
</tbody>
</table></div>
<p>
        The <a class="link" href="posix__basic_stream_descriptor.html" title="posix::basic_stream_descriptor"><code class="computeroutput"><span class="identifier">posix</span><span class="special">::</span><span class="identifier">basic_stream_descriptor</span></code></a> class template
        provides asynchronous and blocking stream-oriented descriptor functionality.
      </p>
<a name="asio.reference.posix__basic_stream_descriptor.thread_safety"></a><h5>
<a name="id937299"></a>
        <a class="link" href="posix__basic_stream_descriptor.html#asio.reference.posix__basic_stream_descriptor.thread_safety">Thread
        Safety</a>
      </h5>
<p>
        <span class="bold"><strong>Distinct</strong></span> <span class="bold"><strong>objects:</strong></span>
        Safe.
      </p>
<p>
        <span class="bold"><strong>Shared</strong></span> <span class="bold"><strong>objects:</strong></span>
        Unsafe.
      </p>
<a name="asio.reference.posix__basic_stream_descriptor.requirements"></a><h5>
<a name="id937350"></a>
        <a class="link" href="posix__basic_stream_descriptor.html#asio.reference.posix__basic_stream_descriptor.requirements">Requirements</a>
      </h5>
<p>
        <span class="bold"><strong>Header: </strong></span><code class="literal">asio/posix/basic_stream_descriptor.hpp</code>
      </p>
<p>
        <span class="bold"><strong>Convenience header: </strong></span><code class="literal">asio.hpp</code>
      </p>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright &#169; 2003 - 2010 Christopher M. Kohlhoff<p>
        Distributed under the Boost Software License, Version 1.0. (See accompanying
        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>)
      </p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="posix__basic_descriptor/_basic_descriptor.html"><img src="../../prev.png" alt="Prev"></a><a accesskey="u" href="../reference.html"><img src="../../up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../home.png" alt="Home"></a><a accesskey="n" href="posix__basic_stream_descriptor/assign.html"><img src="../../next.png" alt="Next"></a>
</div>
</body>
</html>