     </p>
<pre class="programlisting">void close();
</pre>
<p>
            This function is used to close the socket. Any asynchronous send, receive
            or connect operations will be cancelled immediately, and will complete
            with the <code class="computeroutput">boost::asio::error::operation_aborted</code> error.
          </p>
<h6>
<a name="boost_asio.reference.basic_socket.close.overload1.h0"></a>
            <span class="phrase"><a name="boost_asio.reference.basic_socket.close.overload