...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Default socket close function.
Defined in header <boost/beast/core/stream_traits.hpp>
template< class Protocol, class Executor> void beast_close_socket( net::basic_socket< Protocol, Executor >& sock);
This function is not meant to be called directly. Instead, it is called automatically
when using close_socket
. To enable closure
of user-defined types or classes derived from a particular user-defined type,
this function should be overloaded in the corresponding namespace for the
type in question.