Beast Logo

PrevUpHomeNext

websocket::async_teardown

Start tearing down a boost::asio::ssl::stream.

template<
    class AsyncStream,
    class TeardownHandler>
void
async_teardown(
    teardown_tag,
    boost::asio::ssl::stream< AsyncStream >& stream,
    TeardownHandler&& handler);

Start tearing down a connection.

template<
    class Socket,
    class TeardownHandler>
void
async_teardown(
    teardown_tag,
    Socket& socket,
    TeardownHandler&& handler);

Start tearing down a boost::asio::ip::tcp::socket.

template<
    class TeardownHandler>
void
async_teardown(
    teardown_tag,
    boost::asio::ip::tcp::socket& socket,
    TeardownHandler&& handler);
Requirements

Header: beast/websocket/ssl.hpp

Convenience header: beast/websocket.hpp


PrevUpHomeNext