28 #ifndef WEBSOCKETPP_TRANSPORT_IOSTREAM_HPP
29 #define WEBSOCKETPP_TRANSPORT_IOSTREAM_HPP
31 #include <websocketpp/common/memory.hpp>
32 #include <websocketpp/logger/levels.hpp>
34 #include <websocketpp/transport/base/endpoint.hpp>
35 #include <websocketpp/transport/iostream/connection.hpp>
43 template <
typename config>
49 typedef lib::shared_ptr<type>
ptr;
66 explicit endpoint() : m_output_stream(NULL), m_is_secure(false)
144 cb(lib::error_code());
157 lib::error_code
init(transport_con_ptr tcon) {
158 tcon->register_ostream(m_output_stream);
159 return lib::error_code();
162 std::ostream * m_output_stream;
173 #endif // WEBSOCKETPP_TRANSPORT_IOSTREAM_HPP
transport_con_type::ptr transport_con_ptr
uint16_t value
The type of a close code value.
config::alog_type alog_type
Type of this endpoint's access logging policy.
void register_ostream(std::ostream *o)
Register a default output stream.
config::concurrency_type concurrency_type
Type of this endpoint's concurrency policy.
static level const devel
Development messages (warning: very chatty)
iostream::connection< config > transport_con_type
void init_logging(alog_type *a, elog_type *e)
Initialize logging.
endpoint type
Type of this endpoint transport component.
bool is_secure() const
Tests whether or not the underlying transport is secure.
void set_secure(bool value)
Set whether or not endpoint can create secure connections.
Namespace for the WebSocket++ project.
lib::shared_ptr< type > ptr
Type of a pointer to this endpoint transport component.
lib::shared_ptr< uri > uri_ptr
Pointer to a URI.
lib::error_code init(transport_con_ptr tcon)
Initialize a connection.
void async_connect(transport_con_ptr tcon, uri_ptr u, connect_handler cb)
Initiate a new connection.
lib::shared_ptr< type > ptr
Type of a shared pointer to this connection transport component.
lib::function< void(lib::error_code const &)> connect_handler
The type and signature of the callback passed to the connect method.
config::elog_type elog_type
Type of this endpoint's error logging policy.