></a><a accesskey="n" href="overload3.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="boost_asio.reference.connect.overload2"></a><a class="link" href="overload2.html" title="connect (2 of 8 overloads)">connect (2
        of 8 overloads)</a>
</h4></div></div></div>
<p>
          Establishes a socket connection by trying each endpoint in a sequence.
        </p>
<pre class="programlisting"><span 