File: non_blocking_io.html

package info (click to toggle)
asio 1.4.1-3.2
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 17,420 kB
  • sloc: cpp: 45,635; sh: 3,789; makefile: 717
file content (55 lines) | stat: -rw-r--r-- 4,082 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>posix::descriptor_base::non_blocking_io</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="../posix__descriptor_base.html" title="posix::descriptor_base">
<link rel="prev" href="bytes_readable.html" title="posix::descriptor_base::bytes_readable">
<link rel="next" href="_descriptor_base.html" title="posix::descriptor_base::~descriptor_base">
</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="bytes_readable.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../posix__descriptor_base.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="_descriptor_base.html"><img src="../../../next.png" alt="Next"></a>
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title">
<a name="asio.reference.posix__descriptor_base.non_blocking_io"></a><a class="link" href="non_blocking_io.html" title="posix::descriptor_base::non_blocking_io">
        posix::descriptor_base::non_blocking_io</a>
</h4></div></div></div>
<p>
          <a class="indexterm" name="id1039064"></a> IO control command to set the blocking
          mode of the descriptor.
        </p>
<pre class="programlisting"><span class="keyword">typedef</span> <span class="identifier">implementation_defined</span> <span class="identifier">non_blocking_io</span><span class="special">;</span>
</pre>
<p>
          Implements the FIONBIO IO control command.
        </p>
<a name="asio.reference.posix__descriptor_base.non_blocking_io.example"></a><h6>
<a name="id1039113"></a>
          <a class="link" href="non_blocking_io.html#asio.reference.posix__descriptor_base.non_blocking_io.example">Example</a>
        </h6>
<pre class="programlisting"><span class="identifier">asio</span><span class="special">::</span><span class="identifier">posix</span><span class="special">::</span><span class="identifier">stream_descriptor</span> <span class="identifier">descriptor</span><span class="special">(</span><span class="identifier">io_service</span><span class="special">);</span> 
<span class="special">...</span>
<span class="identifier">asio</span><span class="special">::</span><span class="identifier">descriptor_base</span><span class="special">::</span><span class="identifier">non_blocking_io</span> <span class="identifier">command</span><span class="special">(</span><span class="keyword">true</span><span class="special">);</span>
<span class="identifier">descriptor</span><span class="special">.</span><span class="identifier">io_control</span><span class="special">(</span><span class="identifier">command</span><span class="special">);</span>
</pre>
</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  2003 - 2008 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="bytes_readable.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../posix__descriptor_base.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="_descriptor_base.html"><img src="../../../next.png" alt="Next"></a>
</div>
</body>
</html>