1<html> 2<head> 3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 4<title>ip::tcp</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="ip__resolver_query_base/_resolver_query_base.html" title="ip::resolver_query_base::~resolver_query_base"> 10<link rel="next" href="ip__tcp/acceptor.html" title="ip::tcp::acceptor"> 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="ip__resolver_query_base/_resolver_query_base.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="ip__tcp/acceptor.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.ip__tcp"></a><a class="link" href="ip__tcp.html" title="ip::tcp">ip::tcp</a> 28</h3></div></div></div> 29<p> 30 Encapsulates the flags needed for TCP. 31 </p> 32<pre class="programlisting">class tcp 33</pre> 34<h5> 35<a name="boost_asio.reference.ip__tcp.h0"></a> 36 <span class="phrase"><a name="boost_asio.reference.ip__tcp.types"></a></span><a class="link" href="ip__tcp.html#boost_asio.reference.ip__tcp.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="ip__tcp/acceptor.html" title="ip::tcp::acceptor"><span class="bold"><strong>acceptor</strong></span></a> 60 </p> 61 </td> 62<td> 63 <p> 64 The TCP acceptor type. 65 </p> 66 </td> 67</tr> 68<tr> 69<td> 70 <p> 71 <a class="link" href="ip__tcp/endpoint.html" title="ip::tcp::endpoint"><span class="bold"><strong>endpoint</strong></span></a> 72 </p> 73 </td> 74<td> 75 <p> 76 The type of a TCP endpoint. 77 </p> 78 </td> 79</tr> 80<tr> 81<td> 82 <p> 83 <a class="link" href="ip__tcp/iostream.html" title="ip::tcp::iostream"><span class="bold"><strong>iostream</strong></span></a> 84 </p> 85 </td> 86<td> 87 <p> 88 The TCP iostream type. 89 </p> 90 </td> 91</tr> 92<tr> 93<td> 94 <p> 95 <a class="link" href="ip__tcp/no_delay.html" title="ip::tcp::no_delay"><span class="bold"><strong>no_delay</strong></span></a> 96 </p> 97 </td> 98<td> 99 <p> 100 Socket option for disabling the Nagle algorithm. 101 </p> 102 </td> 103</tr> 104<tr> 105<td> 106 <p> 107 <a class="link" href="ip__tcp/resolver.html" title="ip::tcp::resolver"><span class="bold"><strong>resolver</strong></span></a> 108 </p> 109 </td> 110<td> 111 <p> 112 The TCP resolver type. 113 </p> 114 </td> 115</tr> 116<tr> 117<td> 118 <p> 119 <a class="link" href="ip__tcp/socket.html" title="ip::tcp::socket"><span class="bold"><strong>socket</strong></span></a> 120 </p> 121 </td> 122<td> 123 <p> 124 The TCP socket type. 125 </p> 126 </td> 127</tr> 128</tbody> 129</table></div> 130<h5> 131<a name="boost_asio.reference.ip__tcp.h1"></a> 132 <span class="phrase"><a name="boost_asio.reference.ip__tcp.member_functions"></a></span><a class="link" href="ip__tcp.html#boost_asio.reference.ip__tcp.member_functions">Member 133 Functions</a> 134 </h5> 135<div class="informaltable"><table class="table"> 136<colgroup> 137<col> 138<col> 139</colgroup> 140<thead><tr> 141<th> 142 <p> 143 Name 144 </p> 145 </th> 146<th> 147 <p> 148 Description 149 </p> 150 </th> 151</tr></thead> 152<tbody> 153<tr> 154<td> 155 <p> 156 <a class="link" href="ip__tcp/family.html" title="ip::tcp::family"><span class="bold"><strong>family</strong></span></a> 157 </p> 158 </td> 159<td> 160 <p> 161 Obtain an identifier for the protocol family. 162 </p> 163 </td> 164</tr> 165<tr> 166<td> 167 <p> 168 <a class="link" href="ip__tcp/protocol.html" title="ip::tcp::protocol"><span class="bold"><strong>protocol</strong></span></a> 169 </p> 170 </td> 171<td> 172 <p> 173 Obtain an identifier for the protocol. 174 </p> 175 </td> 176</tr> 177<tr> 178<td> 179 <p> 180 <a class="link" href="ip__tcp/type.html" title="ip::tcp::type"><span class="bold"><strong>type</strong></span></a> 181 </p> 182 </td> 183<td> 184 <p> 185 Obtain an identifier for the type of the protocol. 186 </p> 187 </td> 188</tr> 189<tr> 190<td> 191 <p> 192 <a class="link" href="ip__tcp/v4.html" title="ip::tcp::v4"><span class="bold"><strong>v4</strong></span></a> 193 <span class="silver">[static]</span> 194 </p> 195 </td> 196<td> 197 <p> 198 Construct to represent the IPv4 TCP protocol. 199 </p> 200 </td> 201</tr> 202<tr> 203<td> 204 <p> 205 <a class="link" href="ip__tcp/v6.html" title="ip::tcp::v6"><span class="bold"><strong>v6</strong></span></a> 206 <span class="silver">[static]</span> 207 </p> 208 </td> 209<td> 210 <p> 211 Construct to represent the IPv6 TCP protocol. 212 </p> 213 </td> 214</tr> 215</tbody> 216</table></div> 217<h5> 218<a name="boost_asio.reference.ip__tcp.h2"></a> 219 <span class="phrase"><a name="boost_asio.reference.ip__tcp.friends"></a></span><a class="link" href="ip__tcp.html#boost_asio.reference.ip__tcp.friends">Friends</a> 220 </h5> 221<div class="informaltable"><table class="table"> 222<colgroup> 223<col> 224<col> 225</colgroup> 226<thead><tr> 227<th> 228 <p> 229 Name 230 </p> 231 </th> 232<th> 233 <p> 234 Description 235 </p> 236 </th> 237</tr></thead> 238<tbody> 239<tr> 240<td> 241 <p> 242 <a class="link" href="ip__tcp/operator_not__eq_.html" title="ip::tcp::operator!="><span class="bold"><strong>operator!=</strong></span></a> 243 </p> 244 </td> 245<td> 246 <p> 247 Compare two protocols for inequality. 248 </p> 249 </td> 250</tr> 251<tr> 252<td> 253 <p> 254 <a class="link" href="ip__tcp/operator_eq__eq_.html" title="ip::tcp::operator=="><span class="bold"><strong>operator==</strong></span></a> 255 </p> 256 </td> 257<td> 258 <p> 259 Compare two protocols for equality. 260 </p> 261 </td> 262</tr> 263</tbody> 264</table></div> 265<p> 266 The <a class="link" href="ip__tcp.html" title="ip::tcp"><code class="computeroutput">ip::tcp</code></a> 267 class contains flags necessary for TCP sockets. 268 </p> 269<h5> 270<a name="boost_asio.reference.ip__tcp.h3"></a> 271 <span class="phrase"><a name="boost_asio.reference.ip__tcp.thread_safety"></a></span><a class="link" href="ip__tcp.html#boost_asio.reference.ip__tcp.thread_safety">Thread 272 Safety</a> 273 </h5> 274<p> 275 <span class="emphasis"><em>Distinct</em></span> <span class="emphasis"><em>objects:</em></span> Safe. 276 </p> 277<p> 278 <span class="emphasis"><em>Shared</em></span> <span class="emphasis"><em>objects:</em></span> Safe. 279 </p> 280<h5> 281<a name="boost_asio.reference.ip__tcp.h4"></a> 282 <span class="phrase"><a name="boost_asio.reference.ip__tcp.requirements"></a></span><a class="link" href="ip__tcp.html#boost_asio.reference.ip__tcp.requirements">Requirements</a> 283 </h5> 284<p> 285 <span class="emphasis"><em>Header: </em></span><code class="literal">boost/asio/ip/tcp.hpp</code> 286 </p> 287<p> 288 <span class="emphasis"><em>Convenience header: </em></span><code class="literal">boost/asio.hpp</code> 289 </p> 290</div> 291<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> 292<td align="left"></td> 293<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M. 294 Kohlhoff<p> 295 Distributed under the Boost Software License, Version 1.0. (See accompanying 296 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>) 297 </p> 298</div></td> 299</tr></table> 300<hr> 301<div class="spirit-nav"> 302<a accesskey="p" href="ip__resolver_query_base/_resolver_query_base.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="ip__tcp/acceptor.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a> 303</div> 304</body> 305</html> 306