1<html> 2<head> 3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 4<title>Acceptable 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="asynchronous_socket_operations.html" title="Requirements on asynchronous socket operations"> 10<link rel="next" href="AcceptHandler.html" title="Accept handler 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="asynchronous_socket_operations.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="AcceptHandler.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.AcceptableProtocol"></a><a class="link" href="AcceptableProtocol.html" title="Acceptable protocol requirements">Acceptable protocol 28 requirements</a> 29</h3></div></div></div> 30<p> 31 A type <code class="computeroutput">X</code> meets the <code class="computeroutput">AcceptableProtocol</code> requirements 32 if it satisfies the requirements of <a class="link" href="Protocol.html" title="Protocol requirements"><code class="computeroutput">Protocol</code></a> 33 as well as the additional requirements listed below. 34 </p> 35<div class="table"> 36<a name="boost_asio.reference.AcceptableProtocol.t0"></a><p class="title"><b>Table 1. AcceptableProtocol requirements</b></p> 37<div class="table-contents"><table class="table" summary="AcceptableProtocol requirements"> 38<colgroup> 39<col> 40<col> 41<col> 42</colgroup> 43<thead><tr> 44<th> 45 <p> 46 expression 47 </p> 48 </th> 49<th> 50 <p> 51 return type 52 </p> 53 </th> 54<th> 55 <p> 56 assertion/note<br> pre/post-conditions 57 </p> 58 </th> 59</tr></thead> 60<tbody><tr> 61<td> 62 <p> 63 <code class="computeroutput">X::socket</code> 64 </p> 65 </td> 66<td> 67 <p> 68 A type that satisfies the requirements of <code class="computeroutput">Destructible</code> 69 (C++Std [destructible]) and <code class="computeroutput">MoveConstructible</code> (C++Std 70 [moveconstructible]), and that is publicly and unambiguously derived 71 from <code class="computeroutput">basic_socket<X></code>. 72 </p> 73 </td> 74<td> 75 </td> 76</tr></tbody> 77</table></div> 78</div> 79<br class="table-break"> 80</div> 81<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> 82<td align="left"></td> 83<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M. 84 Kohlhoff<p> 85 Distributed under the Boost Software License, Version 1.0. (See accompanying 86 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>) 87 </p> 88</div></td> 89</tr></table> 90<hr> 91<div class="spirit-nav"> 92<a accesskey="p" href="asynchronous_socket_operations.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="AcceptHandler.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a> 93</div> 94</body> 95</html> 96