...one of the most highly
regarded and expertly designed C++ library projects in the
world. — Herb Sutter and Andrei
Inherited from basic_socket.
Release ownership of the underlying native socket.
native_handle_type release( boost::system::error_code & ec);
This function causes all outstanding asynchronous connect, send and receive
operations to finish immediately, and the handlers for cancelled operations
will be passed the
error. Ownership of the native socket is then transferred to the caller.
Set to indicate what error occurred, if any.
This function is unsupported on Windows versions prior to Windows 8.1,
and will fail with
on these platforms.