• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4<title>Internet protocol requirements</title>
5<link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css">
6<meta name="generator" content="DocBook XSL Stylesheets V1.79.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="HandshakeHandler.html" title="SSL handshake handler requirements">
10<link rel="next" href="IoControlCommand.html" title="I/O control command requirements">
11</head>
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>
20</tr></table>
21<hr>
22<div class="spirit-nav">
23<a accesskey="p" href="HandshakeHandler.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="IoControlCommand.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
24</div>
25<div class="section">
26<div class="titlepage"><div><div><h3 class="title">
27<a name="boost_asio.reference.InternetProtocol"></a><a class="link" href="InternetProtocol.html" title="Internet protocol requirements">Internet protocol
28      requirements</a>
29</h3></div></div></div>
30<p>
31        A type <code class="computeroutput">X</code> meets the <code class="computeroutput">InternetProtocol</code> requirements
32        if it satisfies the requirements of <a class="link" href="AcceptableProtocol.html" title="Acceptable protocol requirements"><code class="computeroutput">AcceptableProtocol</code></a>,
33        as well as the additional requirements listed below.
34      </p>
35<p>
36        In the table below, <code class="computeroutput">a</code> denotes a (possibly const) value of type
37        <code class="computeroutput">X</code>, and <code class="computeroutput">b</code> denotes a (possibly const) value of type
38        <code class="computeroutput">X</code>.
39      </p>
40<div class="table">
41<a name="boost_asio.reference.InternetProtocol.t0"></a><p class="title"><b>Table 19. InternetProtocol requirements</b></p>
42<div class="table-contents"><table class="table" summary="InternetProtocol requirements">
43<colgroup>
44<col>
45<col>
46<col>
47</colgroup>
48<thead><tr>
49<th>
50                <p>
51                  expression
52                </p>
53              </th>
54<th>
55                <p>
56                  return type
57                </p>
58              </th>
59<th>
60                <p>
61                  assertion/note<br> pre/post-conditions
62                </p>
63              </th>
64</tr></thead>
65<tbody>
66<tr>
67<td>
68                <p>
69                  <code class="computeroutput">X::resolver</code>
70                </p>
71              </td>
72<td>
73                <p>
74                  <code class="computeroutput">ip::basic_resolver&lt;X&gt;</code>
75                </p>
76              </td>
77<td>
78                <p>
79                  The type of a resolver for the protocol.
80                </p>
81              </td>
82</tr>
83<tr>
84<td>
85                <p>
86                  <code class="computeroutput">X::v4()</code>
87                </p>
88              </td>
89<td>
90                <p>
91                  <code class="computeroutput">X</code>
92                </p>
93              </td>
94<td>
95                <p>
96                  Returns an object representing the IP version 4 protocol.
97                </p>
98              </td>
99</tr>
100<tr>
101<td>
102                <p>
103                  <code class="computeroutput">X::v6()</code>
104                </p>
105              </td>
106<td>
107                <p>
108                  <code class="computeroutput">X</code>
109                </p>
110              </td>
111<td>
112                <p>
113                  Returns an object representing the IP version 6 protocol.
114                </p>
115              </td>
116</tr>
117<tr>
118<td>
119                <p>
120                  <code class="computeroutput">a == b</code>
121                </p>
122              </td>
123<td>
124                <p>
125                  convertible to <code class="computeroutput">bool</code>
126                </p>
127              </td>
128<td>
129                <p>
130                  Returns <code class="computeroutput">true</code> if <code class="computeroutput">a</code> and <code class="computeroutput">b</code>
131                  represent the same IP protocol version, otherwise <code class="computeroutput">false</code>.
132                </p>
133              </td>
134</tr>
135<tr>
136<td>
137                <p>
138                  <code class="computeroutput">a != b</code>
139                </p>
140              </td>
141<td>
142                <p>
143                  convertible to <code class="computeroutput">bool</code>
144                </p>
145              </td>
146<td>
147                <p>
148                  Returns <code class="computeroutput">!(a == b)</code>.
149                </p>
150              </td>
151</tr>
152</tbody>
153</table></div>
154</div>
155<br class="table-break">
156</div>
157<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
158<td align="left"></td>
159<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
160      Kohlhoff<p>
161        Distributed under the Boost Software License, Version 1.0. (See accompanying
162        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>)
163      </p>
164</div></td>
165</tr></table>
166<hr>
167<div class="spirit-nav">
168<a accesskey="p" href="HandshakeHandler.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="IoControlCommand.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
169</div>
170</body>
171</html>
172