Beast Logo

PrevUpHomeNext

websocket::teardown

Tear down a boost::asio::ssl::stream.

template<
    class SyncStream>
void
teardown(
    teardown_tag,
    boost::asio::ssl::stream< SyncStream >& stream,
    error_code& ec);

Tear down a connection.

template<
    class Socket>
void
teardown(
    teardown_tag,
    Socket& socket,
    error_code& ec);

Tear down a boost::asio::ip::tcp::socket.

void
teardown(
    teardown_tag,
    boost::asio::ip::tcp::socket& socket,
    error_code& ec);
Requirements

Header: beast/websocket/ssl.hpp

Convenience header: beast/websocket.hpp


PrevUpHomeNext