1<html> 2<head> 3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 4<title>generic::seq_packet_protocol</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="generic__raw_protocol/type.html" title="generic::raw_protocol::type"> 10<link rel="next" href="generic__seq_packet_protocol/endpoint.html" title="generic::seq_packet_protocol::endpoint"> 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="generic__raw_protocol/type.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="generic__seq_packet_protocol/endpoint.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.generic__seq_packet_protocol"></a><a class="link" href="generic__seq_packet_protocol.html" title="generic::seq_packet_protocol">generic::seq_packet_protocol</a> 28</h3></div></div></div> 29<p> 30 Encapsulates the flags needed for a generic sequenced packet socket. 31 </p> 32<pre class="programlisting">class seq_packet_protocol 33</pre> 34<h5> 35<a name="boost_asio.reference.generic__seq_packet_protocol.h0"></a> 36 <span class="phrase"><a name="boost_asio.reference.generic__seq_packet_protocol.types"></a></span><a class="link" href="generic__seq_packet_protocol.html#boost_asio.reference.generic__seq_packet_protocol.types">Types</a> 37 </h5> 38<div class="informaltable"><table class="table"> 39<colgroup> 40<col> 41<col> 42</colgroup> 43<thead><tr> 44<th> 45 <p> 46 Name 47 </p> 48 </th> 49<th> 50 <p> 51 Description 52 </p> 53 </th> 54</tr></thead> 55<tbody> 56<tr> 57<td> 58 <p> 59 <a class="link" href="generic__seq_packet_protocol/endpoint.html" title="generic::seq_packet_protocol::endpoint"><span class="bold"><strong>endpoint</strong></span></a> 60 </p> 61 </td> 62<td> 63 <p> 64 The type of an endpoint. 65 </p> 66 </td> 67</tr> 68<tr> 69<td> 70 <p> 71 <a class="link" href="generic__seq_packet_protocol/socket.html" title="generic::seq_packet_protocol::socket"><span class="bold"><strong>socket</strong></span></a> 72 </p> 73 </td> 74<td> 75 <p> 76 The generic socket type. 77 </p> 78 </td> 79</tr> 80</tbody> 81</table></div> 82<h5> 83<a name="boost_asio.reference.generic__seq_packet_protocol.h1"></a> 84 <span class="phrase"><a name="boost_asio.reference.generic__seq_packet_protocol.member_functions"></a></span><a class="link" href="generic__seq_packet_protocol.html#boost_asio.reference.generic__seq_packet_protocol.member_functions">Member 85 Functions</a> 86 </h5> 87<div class="informaltable"><table class="table"> 88<colgroup> 89<col> 90<col> 91</colgroup> 92<thead><tr> 93<th> 94 <p> 95 Name 96 </p> 97 </th> 98<th> 99 <p> 100 Description 101 </p> 102 </th> 103</tr></thead> 104<tbody> 105<tr> 106<td> 107 <p> 108 <a class="link" href="generic__seq_packet_protocol/family.html" title="generic::seq_packet_protocol::family"><span class="bold"><strong>family</strong></span></a> 109 </p> 110 </td> 111<td> 112 <p> 113 Obtain an identifier for the protocol family. 114 </p> 115 </td> 116</tr> 117<tr> 118<td> 119 <p> 120 <a class="link" href="generic__seq_packet_protocol/protocol.html" title="generic::seq_packet_protocol::protocol"><span class="bold"><strong>protocol</strong></span></a> 121 </p> 122 </td> 123<td> 124 <p> 125 Obtain an identifier for the protocol. 126 </p> 127 </td> 128</tr> 129<tr> 130<td> 131 <p> 132 <a class="link" href="generic__seq_packet_protocol/seq_packet_protocol.html" title="generic::seq_packet_protocol::seq_packet_protocol"><span class="bold"><strong>seq_packet_protocol</strong></span></a> <span class="silver">[constructor]</span> 133 </p> 134 </td> 135<td> 136 <p> 137 Construct a protocol object for a specific address family and protocol. 138 <br> <span class="silver"> —</span><br> Construct a generic protocol object from a specific 139 protocol. 140 </p> 141 </td> 142</tr> 143<tr> 144<td> 145 <p> 146 <a class="link" href="generic__seq_packet_protocol/type.html" title="generic::seq_packet_protocol::type"><span class="bold"><strong>type</strong></span></a> 147 </p> 148 </td> 149<td> 150 <p> 151 Obtain an identifier for the type of the protocol. 152 </p> 153 </td> 154</tr> 155</tbody> 156</table></div> 157<h5> 158<a name="boost_asio.reference.generic__seq_packet_protocol.h2"></a> 159 <span class="phrase"><a name="boost_asio.reference.generic__seq_packet_protocol.friends"></a></span><a class="link" href="generic__seq_packet_protocol.html#boost_asio.reference.generic__seq_packet_protocol.friends">Friends</a> 160 </h5> 161<div class="informaltable"><table class="table"> 162<colgroup> 163<col> 164<col> 165</colgroup> 166<thead><tr> 167<th> 168 <p> 169 Name 170 </p> 171 </th> 172<th> 173 <p> 174 Description 175 </p> 176 </th> 177</tr></thead> 178<tbody> 179<tr> 180<td> 181 <p> 182 <a class="link" href="generic__seq_packet_protocol/operator_not__eq_.html" title="generic::seq_packet_protocol::operator!="><span class="bold"><strong>operator!=</strong></span></a> 183 </p> 184 </td> 185<td> 186 <p> 187 Compare two protocols for inequality. 188 </p> 189 </td> 190</tr> 191<tr> 192<td> 193 <p> 194 <a class="link" href="generic__seq_packet_protocol/operator_eq__eq_.html" title="generic::seq_packet_protocol::operator=="><span class="bold"><strong>operator==</strong></span></a> 195 </p> 196 </td> 197<td> 198 <p> 199 Compare two protocols for equality. 200 </p> 201 </td> 202</tr> 203</tbody> 204</table></div> 205<p> 206 The <a class="link" href="generic__seq_packet_protocol.html" title="generic::seq_packet_protocol"><code class="computeroutput">generic::seq_packet_protocol</code></a> 207 class contains flags necessary for seq_packet-oriented sockets of any address 208 family and protocol. 209 </p> 210<h5> 211<a name="boost_asio.reference.generic__seq_packet_protocol.h3"></a> 212 <span class="phrase"><a name="boost_asio.reference.generic__seq_packet_protocol.examples"></a></span><a class="link" href="generic__seq_packet_protocol.html#boost_asio.reference.generic__seq_packet_protocol.examples">Examples</a> 213 </h5> 214<p> 215 Constructing using a native address family and socket protocol: 216 </p> 217<pre class="programlisting">seq_packet_protocol p(AF_INET, IPPROTO_SCTP); 218</pre> 219<h5> 220<a name="boost_asio.reference.generic__seq_packet_protocol.h4"></a> 221 <span class="phrase"><a name="boost_asio.reference.generic__seq_packet_protocol.thread_safety"></a></span><a class="link" href="generic__seq_packet_protocol.html#boost_asio.reference.generic__seq_packet_protocol.thread_safety">Thread 222 Safety</a> 223 </h5> 224<p> 225 <span class="emphasis"><em>Distinct</em></span> <span class="emphasis"><em>objects:</em></span> Safe. 226 </p> 227<p> 228 <span class="emphasis"><em>Shared</em></span> <span class="emphasis"><em>objects:</em></span> Safe. 229 </p> 230<h5> 231<a name="boost_asio.reference.generic__seq_packet_protocol.h5"></a> 232 <span class="phrase"><a name="boost_asio.reference.generic__seq_packet_protocol.requirements"></a></span><a class="link" href="generic__seq_packet_protocol.html#boost_asio.reference.generic__seq_packet_protocol.requirements">Requirements</a> 233 </h5> 234<p> 235 <span class="emphasis"><em>Header: </em></span><code class="literal">boost/asio/generic/seq_packet_protocol.hpp</code> 236 </p> 237<p> 238 <span class="emphasis"><em>Convenience header: </em></span><code class="literal">boost/asio.hpp</code> 239 </p> 240</div> 241<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> 242<td align="left"></td> 243<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M. 244 Kohlhoff<p> 245 Distributed under the Boost Software License, Version 1.0. (See accompanying 246 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>) 247 </p> 248</div></td> 249</tr></table> 250<hr> 251<div class="spirit-nav"> 252<a accesskey="p" href="generic__raw_protocol/type.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="generic__seq_packet_protocol/endpoint.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a> 253</div> 254</body> 255</html> 256