Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for a snapshot of the master branch, built from commit b2e3d0f425.
PrevUpHomeNext

beast_close_socket

Default socket close function.

Synopsis

Defined in header <boost/beast/core/stream_traits.hpp>

template<
    class Protocol,
    class Executor>
void
beast_close_socket(
    net::basic_socket< Protocol, Executor >& sock);
Description

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.

See Also

close_socket


PrevUpHomeNext