WebSocket++
0.8.1
C++ websocket client/server library
|
28 #ifndef WEBSOCKETPP_TRANSPORT_STUB_HPP
29 #define WEBSOCKETPP_TRANSPORT_STUB_HPP
31 #include <websocketpp/common/memory.hpp>
32 #include <websocketpp/logger/levels.hpp>
34 #include <websocketpp/transport/base/endpoint.hpp>
35 #include <websocketpp/transport/stub/connection.hpp>
41 template <
typename config>
116 cb(make_error_code(error::not_implemented));
config::concurrency_type concurrency_type
Type of this endpoint's concurrency policy.
lib::function< void(lib::error_code const &)> connect_handler
The type and signature of the callback passed to the connect method.
lib::error_code make_error_code(error::value e)
Get an error code with the given value and the stub transport category.
transport_con_type::ptr transport_con_ptr
config::alog_type alog_type
Type of this endpoint's access logging policy.
@ not_implemented
not implemented
bool is_secure() const
Tests whether or not the underlying transport is secure.
Transport policies provide network connectivity and timers.
Stub transport policy that has no input or output.
lib::shared_ptr< type > ptr
Type of a pointer to this endpoint transport component.
static std::vector< int > const versions_supported(helper, helper+4)
Container that stores the list of protocol versions supported.
void set_secure(bool value)
Set whether or not endpoint can create secure connections.
config::elog_type elog_type
Type of this endpoint's error logging policy.
void init_logging(alog_type *a, elog_type *e)
Initialize logging.
void async_connect(transport_con_ptr tcon, uri_ptr u, connect_handler cb)
Initiate a new connection.
lib::error_code init(transport_con_ptr tcon)
Initialize a connection.
stub::connection< config > transport_con_type
endpoint type
Type of this endpoint transport component.