...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 socket.
socket_type release_socket();
This function causes all outstanding asynchronous connect, read, and write
operations to be canceled as if by a call to cancel
. Ownership of the underlying
socket is then transferred to the caller.