_packet_socket.enable_connection_aborted.examples">Examples</a>
        </h6>
<p>
          Setting the option:
        </p>
<pre class="programlisting">boost::asio::ip::tcp::acceptor acceptor(io_context);
...
boost::asio::socket_base::enable_connection_aborted option(true);
acceptor.set_option(option);
</pre>
<p>
          Getting the current option value:
        </p>
<pre class="programlisting">boost::asio::ip::tcp::acceptor acceptor(io_context);
...
boost::asio::socket_base::enable_connection_aborted op