3 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4 <title>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="ProtoAllocator.html" title="Proto-allocator requirements">
10 <link rel="next" href="RangeConnectHandler.html" title="Range connect handler requirements">
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="ProtoAllocator.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="RangeConnectHandler.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.Protocol"></a><a class="link" href="Protocol.html" title="Protocol requirements">Protocol requirements</a>
28 </h3></div></div></div>
30 A type <code class="computeroutput">X</code> meets the <code class="computeroutput">Protocol</code> requirements if it
31 satisfies the requirements of <code class="computeroutput">Destructible</code> (C++Std [destructible]),
32 <code class="computeroutput">CopyConstructible</code> (C++Std [copyconstructible]), and <code class="computeroutput">CopyAssignable</code>
33 (C++Std [copyassignable]), as well as the additional requirements listed
37 <a name="boost_asio.reference.Protocol.t0"></a><p class="title"><b>Table 23. Protocol requirements</b></p>
38 <div class="table-contents"><table class="table" summary="Protocol requirements">
57 assertion/note<br> pre/post-conditions
64 <code class="computeroutput">X::endpoint</code>
69 type meeting <a class="link" href="Endpoint.html" title="Endpoint requirements">endpoint</a>
78 <br class="table-break"><p>
79 In the table below, <code class="computeroutput">a</code> denotes a (possibly const) value of type
80 <code class="computeroutput">X</code>.
83 <a name="boost_asio.reference.Protocol.t1"></a><p class="title"><b>Table 24. Protocol requirements for extensible implementations</b></p>
84 <div class="table-contents"><table class="table" summary="Protocol requirements for extensible implementations">
103 assertion/note<br> pre/post-conditions
111 <code class="computeroutput">a.family()</code>
116 <code class="computeroutput">int</code>
121 Returns a value suitable for passing as the <span class="emphasis"><em>domain</em></span>
122 argument to <span class="emphasis"><em>POSIX</em></span> <a href="http://www.opengroup.org/onlinepubs/000095399/functions/socket.html" target="_top"><code class="computeroutput"><span class="identifier">socket</span><span class="special">()</span></code></a>
130 <code class="computeroutput">a.type()</code>
135 <code class="computeroutput">int</code>
140 Returns a value suitable for passing as the <span class="emphasis"><em>type</em></span>
141 argument to <span class="emphasis"><em>POSIX</em></span> <a href="http://www.opengroup.org/onlinepubs/000095399/functions/socket.html" target="_top"><code class="computeroutput"><span class="identifier">socket</span><span class="special">()</span></code></a>
149 <code class="computeroutput">a.protocol()</code>
154 <code class="computeroutput">int</code>
159 Returns a value suitable for passing as the <span class="emphasis"><em>protocol</em></span>
160 argument to <span class="emphasis"><em>POSIX</em></span> <a href="http://www.opengroup.org/onlinepubs/000095399/functions/socket.html" target="_top"><code class="computeroutput"><span class="identifier">socket</span><span class="special">()</span></code></a>
168 <br class="table-break">
170 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
171 <td align="left"></td>
172 <td align="right"><div class="copyright-footer">Copyright © 2003-2019 Christopher M. Kohlhoff<p>
173 Distributed under the Boost Software License, Version 1.0. (See accompanying
174 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>)
179 <div class="spirit-nav">
180 <a accesskey="p" href="ProtoAllocator.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="RangeConnectHandler.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>