...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Release ownership of the underlying native acceptor.
native_handle_type release();
This function causes all outstanding asynchronous accept operations to
finish immediately, and the handlers for cancelled operations will be
passed the boost::asio::error::operation_aborted
error. Ownership
of the native acceptor is then transferred to the caller.
Thrown on failure.
This function is unsupported on Windows versions prior to Windows 8.1,
and will fail with boost::asio::error::operation_not_supported
on these platforms.