10 #ifndef BOOST_BEAST_WEBSOCKET_TEARDOWN_HPP 11 #define BOOST_BEAST_WEBSOCKET_TEARDOWN_HPP 16 #include <boost/asio/ip/tcp.hpp> 17 #include <type_traits> 38 template<
class Socket>
45 boost::ignore_unused(role, socket, ec);
54 static_assert(
sizeof(Socket)==-1,
55 "Unknown Socket type in teardown.");
87 class TeardownHandler>
92 TeardownHandler&& handler)
94 boost::ignore_unused(role, socket, handler);
103 static_assert(
sizeof(Socket)==-1,
104 "Unknown Socket type in async_teardown.");
111 namespace websocket {
131 boost::asio::ip::tcp::socket& socket,
161 template<
class TeardownHandler>
165 boost::asio::ip::tcp::socket& socket,
166 TeardownHandler&& handler);
Definition: async_result.hpp:20
role_type
Definition: role.hpp:46
void async_teardown(role_type, boost::asio::ssl::stream< AsyncStream > &stream, TeardownHandler &&handler)
Definition: ssl.ipp:48
boost::system::error_code error_code
The type of error code used by the library.
Definition: error.hpp:21
void teardown(role_type, boost::asio::ssl::stream< AsyncStream > &stream, error_code &ec)
Definition: ssl.ipp:36