BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
|
Public Types | |
typedef std::map< connection_hdl, websocket_connection_ptr, std::owner_less< connection_hdl > > | con_map |
Public Member Functions | |
generic_websocket_server_impl (const std::string &forward_header_key) | |
virtual | ~generic_websocket_server_impl () |
Public Attributes | |
con_map | _connections |
Holds accepted connections. More... | |
fc::thread & | _server_thread |
The thread that runs the server. More... | |
websocketpp::server< T > | _server |
The server. More... | |
on_connection_handler | _on_connection |
A handler to be called when a new connection is accepted. More... | |
fc::promise< void >::ptr | _all_connections_closed |
Promise to wait for all connections to be closed. More... | |
fc::promise< void >::ptr | _server_socket_closed |
Promise to wait for the server socket to be closed. More... | |
uint32_t | _pending_messages = 0 |
Number of messages not processed, for rate limiting. More... | |
std::string | _forward_header_key |
A header like "X-Forwarded-For" (XFF) with data IP:port. More... | |
Definition at line 242 of file websocket.cpp.
typedef std::map<connection_hdl, websocket_connection_ptr, std::owner_less<connection_hdl> > fc::http::detail::generic_websocket_server_impl< T >::con_map |
Definition at line 389 of file websocket.cpp.
|
inline |
Definition at line 245 of file websocket.cpp.
|
inlinevirtual |
Definition at line 356 of file websocket.cpp.
fc::promise<void>::ptr fc::http::detail::generic_websocket_server_impl< T >::_all_connections_closed |
Promise to wait for all connections to be closed.
Definition at line 397 of file websocket.cpp.
con_map fc::http::detail::generic_websocket_server_impl< T >::_connections |
Holds accepted connections.
Definition at line 393 of file websocket.cpp.
std::string fc::http::detail::generic_websocket_server_impl< T >::_forward_header_key |
A header like "X-Forwarded-For" (XFF) with data IP:port.
Definition at line 400 of file websocket.cpp.
on_connection_handler fc::http::detail::generic_websocket_server_impl< T >::_on_connection |
A handler to be called when a new connection is accepted.
Definition at line 396 of file websocket.cpp.
uint32_t fc::http::detail::generic_websocket_server_impl< T >::_pending_messages = 0 |
Number of messages not processed, for rate limiting.
Definition at line 399 of file websocket.cpp.
websocketpp::server<T> fc::http::detail::generic_websocket_server_impl< T >::_server |
The server.
Definition at line 395 of file websocket.cpp.
fc::promise<void>::ptr fc::http::detail::generic_websocket_server_impl< T >::_server_socket_closed |
Promise to wait for the server socket to be closed.
Definition at line 398 of file websocket.cpp.
fc::thread& fc::http::detail::generic_websocket_server_impl< T >::_server_thread |
The thread that runs the server.
Definition at line 394 of file websocket.cpp.