2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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>
41template <
typename config>
71
72
73
74
75
76
77
78
79
80
85
86
87
88
95
96
103
104
105
106
107
108
109
110
111
112
113
118
119
120
121
122
129
130
137
138
139
140
141
142
143
144
lib::shared_ptr< type > ptr
Type of a pointer to this endpoint transport component.
void async_accept(transport_con_ptr tcon, accept_handler cb, std::error_code &ec)
Accept a new connection.
config::concurrency_type concurrency_type
Type of this endpoint's concurrency policy.
bool is_listening() const
Tests whether or not the transport is currently listening for new connections.
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.
stub::connection< config > transport_con_type
config::elog_type elog_type
Type of this endpoint's error logging policy.
lib::error_code init(transport_con_ptr tcon)
Initialize a connection.
config::alog_type alog_type
Type of this endpoint's access logging policy.
void async_connect(transport_con_ptr tcon, uri_ptr u, connect_handler cb)
Initiate a new connection.
void init_logging(lib::shared_ptr< alog_type >, lib::shared_ptr< elog_type >)
Initialize logging.
transport_con_type::ptr transport_con_ptr
endpoint type
Type of this endpoint transport component.
lib::error_code make_error_code(error::value e)
Get an error code with the given value and the stub transport category.
@ not_implemented
not implemented
Stub transport policy that has no input or output.
Transport policies provide network connectivity and timers.
lib::function< void(lib::error_code const &)> accept_handler
The type and signature of the callback passed to the accept method.
lib::function< void(lib::error_code const &)> connect_handler
The type and signature of the callback passed to the connect method.
Namespace for the WebSocket++ project.