BitShares-Core  5.0.0
BitShares blockchain implementation and command-line interface software
Public Types | Public Member Functions | Public Attributes | List of all members
fc::http::detail::generic_websocket_server_impl< T > Class Template Reference

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...
 

Detailed Description

template<typename T>
class fc::http::detail::generic_websocket_server_impl< T >

Definition at line 242 of file websocket.cpp.

Member Typedef Documentation

template<typename T>
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.

Constructor & Destructor Documentation

template<typename T>
fc::http::detail::generic_websocket_server_impl< T >::generic_websocket_server_impl ( const std::string &  forward_header_key)
inline

Definition at line 245 of file websocket.cpp.

template<typename T>
virtual fc::http::detail::generic_websocket_server_impl< T >::~generic_websocket_server_impl ( )
inlinevirtual

Definition at line 356 of file websocket.cpp.

Member Data Documentation

template<typename T>
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.

template<typename T>
con_map fc::http::detail::generic_websocket_server_impl< T >::_connections

Holds accepted connections.

Definition at line 393 of file websocket.cpp.

template<typename T>
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.

A handler to be called when a new connection is accepted.

Definition at line 396 of file websocket.cpp.

template<typename T>
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.

template<typename T>
websocketpp::server<T> fc::http::detail::generic_websocket_server_impl< T >::_server

The server.

Definition at line 395 of file websocket.cpp.

template<typename T>
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.

template<typename T>
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.


The documentation for this class was generated from the following file: