1<html> 2<head> 3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 4<title>Connect condition 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="CompletionHandler.html" title="Completion handler requirements"> 10<link rel="next" href="ConnectHandler.html" title="Connect 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="CompletionHandler.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="ConnectHandler.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.ConnectCondition"></a><a class="link" href="ConnectCondition.html" title="Connect condition requirements">Connect condition 28 requirements</a> 29</h3></div></div></div> 30<p> 31 A type <code class="computeroutput">X</code> meets the <code class="computeroutput">ConnectCondition</code> requirements 32 if it satisfies the requirements of <code class="computeroutput">Destructible</code> (C++Std [destructible]) 33 and <code class="computeroutput">CopyConstructible</code> (C++Std [copyconstructible]), as well 34 as the additional requirements listed below. 35 </p> 36<p> 37 In the table below, <code class="computeroutput">x</code> denotes a value of type <code class="computeroutput">X</code>, 38 <code class="computeroutput">ec</code> denotes a (possibly const) value of type <code class="computeroutput">error_code</code>, 39 and <code class="computeroutput">ep</code> denotes a (possibly const) value of some type satisfying 40 the <a class="link" href="Endpoint.html" title="Endpoint requirements">endpoint</a> requirements. 41 </p> 42<div class="table"> 43<a name="boost_asio.reference.ConnectCondition.t0"></a><p class="title"><b>Table 7. ConnectCondition requirements</b></p> 44<div class="table-contents"><table class="table" summary="ConnectCondition requirements"> 45<colgroup> 46<col> 47<col> 48<col> 49</colgroup> 50<thead><tr> 51<th> 52 <p> 53 expression 54 </p> 55 </th> 56<th> 57 <p> 58 return type 59 </p> 60 </th> 61<th> 62 <p> 63 assertion/note<br> pre/post-condition 64 </p> 65 </th> 66</tr></thead> 67<tbody><tr> 68<td> 69 <p> 70 <code class="computeroutput">x(ec, ep)</code> 71 </p> 72 </td> 73<td> 74 <p> 75 <code class="computeroutput">bool</code> 76 </p> 77 </td> 78<td> 79 <p> 80 Returns <code class="computeroutput">true</code> to indicate that the <code class="computeroutput">connect</code> 81 or <code class="computeroutput">async_connect</code> algorithm should attempt a connection 82 to the endpoint <code class="computeroutput">ep</code>. Otherwise, returns <code class="computeroutput">false</code> 83 to indicate that the algorithm should not attempt connection to 84 the endpoint <code class="computeroutput">ep</code>, and should instead skip to the next 85 endpoint in the sequence. 86 </p> 87 </td> 88</tr></tbody> 89</table></div> 90</div> 91<br class="table-break"> 92</div> 93<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> 94<td align="left"></td> 95<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M. 96 Kohlhoff<p> 97 Distributed under the Boost Software License, Version 1.0. (See accompanying 98 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>) 99 </p> 100</div></td> 101</tr></table> 102<hr> 103<div class="spirit-nav"> 104<a accesskey="p" href="CompletionHandler.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="ConnectHandler.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a> 105</div> 106</body> 107</html> 108