xample</a>
          </h6>
<pre class="programlisting">boost::asio::ip::tcp::acceptor acceptor(io_context);
...
boost::asio::ip::tcp::socket socket(acceptor.accept(ec));
if (ec)
{
  // An error occurred.
}
</pre>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright &#169; 2003-2017 Christopher M. Kohlhoff<p>
        Distributed under the Boost Software License, Version 1.0. (See acc