</p>
<pre class="programlisting"><span class="comment">// `ioc` will be used to dispatch completion handlers</span>
<span class="identifier">tcp_stream</span> <span class="identifier">stream</span><span class="special">(</span><span class="identifier">ioc</span><span class="special">);</span>
</pre>
<p>
        Alternatively, we can construct the stream from an executor:
      </p>
<pre class="programlisting"><span class="comment">// The resolver is used to look up the IP addresses for a domain name</span>
