WebSocket++
0.8.1
C++ websocket client/server library
|
28 #ifndef WEBSOCKETPP_SERVER_ENDPOINT_HPP
29 #define WEBSOCKETPP_SERVER_ENDPOINT_HPP
31 #include <websocketpp/endpoint.hpp>
33 #include <websocketpp/logger/levels.hpp>
35 #include <websocketpp/common/system_error.hpp>
43 template <
typename config>
77 #ifdef _WEBSOCKETPP_DEFAULT_DELETE_FUNCTIONS_
79 server<config>(
server<config> &) =
delete;
82 server<config> & operator=(
server<config>
const &) =
delete;
85 #ifdef _WEBSOCKETPP_MOVE_SEMANTICS_
89 #ifdef _WEBSOCKETPP_DEFAULT_DELETE_FUNCTIONS_
127 ec = lib::error_code();
144 con->terminate(lib::error_code());
172 "handle_accept error: "+ec.message());
175 "handle_accept error: "+ec.message());
181 lib::error_code start_ec;
182 start_accept(start_ec);
185 "Stopping acceptance of new connections because the underlying transport is no longer listening.");
186 }
else if (start_ec) {
188 "Restarting async_accept loop failed: "+ec.message());
config::concurrency_type concurrency_type
Type of the endpoint concurrency component.
static level const rerror
void start_accept(lib::error_code &ec)
Starts the server's async connection acceptance loop (exception free)
server< config > type
Type of this endpoint.
void handle_accept(connection_ptr con, lib::error_code const &ec)
Handler callback for start_accept.
void start_accept()
Starts the server's async connection acceptance loop.
endpoint< connection_type, config > endpoint_type
Type of the endpoint component of this server.
transport_con_type::ptr transport_con_ptr
Type of a shared pointer to the connection transport component.
Library level error codes.
connection< config > connection_type
Type of the connections this server will create.
Represents an individual WebSocket connection.
connection_type::ptr connection_ptr
Type of a shared pointer to the connections this server will create.
@ con_creation_failed
Connection creation attempted failed.
config::transport_type transport_type
Type of the endpoint transport component.
static std::vector< int > const versions_supported(helper, helper+4)
Container that stores the list of protocol versions supported.
Package of log levels for logging errors.
Server endpoint role based on the given config.
connection_ptr get_connection()
Create and initialize a new connection.
transport_type::transport_con_type transport_con_type
Type of the connection transport component.
@ async_accept_not_listening
@ operation_canceled
The requested operation was canceled.
Package of log levels for logging access events.
Creates and manages connections associated with a WebSocket endpoint.
static level const devel
Development messages (warning: very chatty)