28 #ifndef WEBSOCKETPP_TRANSPORT_IOSTREAM_HPP
29 #define WEBSOCKETPP_TRANSPORT_IOSTREAM_HPP
31 #include <websocketpp/transport/base/endpoint.hpp>
32 #include <websocketpp/transport/iostream/connection.hpp>
34 #include <websocketpp/uri.hpp>
35 #include <websocketpp/logger/levels.hpp>
37 #include <websocketpp/common/memory.hpp>
45 template <
typename config>
68 explicit endpoint() : m_output_stream(NULL), m_is_secure(
false)
155 m_shutdown_handler = h;
184 cb(lib::error_code());
198 tcon->register_ostream(m_output_stream);
199 if (m_shutdown_handler) {
200 tcon->set_shutdown_handler(m_shutdown_handler);
202 if (m_write_handler) {
203 tcon->set_write_handler(m_write_handler);
205 return lib::error_code();
208 std::ostream * m_output_stream;