>error_code</span><span class="special">&amp;</span> <span class="identifier">ec</span><span class="special">);</span>
  <span class="emphasis"><em>&#187; <a class="link" href="connect/overload2.html" title="basic_stream::connect (2 of 10 overloads)">more...</a></em></span>
</pre>
<p>
          Establishes a connection by trying each endpoint in a sequence.
        </p>
<pre class="programlisting"><span class="keyword">template</span><span class="special">&lt;</span>
    <span class="keyword">class</span> <