...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
void close();
This cancels all of the outstanding asynchronous operations as if by calling
basic_stream::cancel
, and closes the underlying
socket.