BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
Public Member Functions | Public Attributes | List of all members
fc::http::detail::websocket_connection_impl< T > Class Template Reference
Inheritance diagram for fc::http::detail::websocket_connection_impl< T >:
fc::http::websocket_connection fc::http::detail::possibly_proxied_websocket_connection< T >

Public Member Functions

 websocket_connection_impl (T con)
 
virtual ~websocket_connection_impl ()
 
virtual void send_message (const std::string &message) override
 
virtual void close (int64_t code, const std::string &reason) override
 
virtual std::string get_request_header (const std::string &key) override
 
- Public Member Functions inherited from fc::http::websocket_connection
virtual ~websocket_connection ()
 
void on_message (const std::string &message)
 
fc::http::reply on_http (const std::string &message)
 
void on_message_handler (const std::function< void(const std::string &)> &h)
 
void on_http_handler (const std::function< fc::http::reply(const std::string &)> &h)
 
void set_session_data (boost::any d)
 
boost::any & get_session_data ()
 
const std::string & get_remote_endpoint_string () const
 

Public Attributes

_ws_connection
 
- Public Attributes inherited from fc::http::websocket_connection
fc::signal< void()> closed
 

Additional Inherited Members

- Protected Attributes inherited from fc::http::websocket_connection
std::string _remote_endpoint
 

Detailed Description

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

Definition at line 183 of file websocket.cpp.

Constructor & Destructor Documentation

◆ websocket_connection_impl()

template<typename T >
fc::http::detail::websocket_connection_impl< T >::websocket_connection_impl ( con)
inline

Definition at line 186 of file websocket.cpp.

◆ ~websocket_connection_impl()

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

Definition at line 191 of file websocket.cpp.

Member Function Documentation

◆ close()

template<typename T >
virtual void fc::http::detail::websocket_connection_impl< T >::close ( int64_t  code,
const std::string &  reason 
)
inlineoverridevirtual

Reimplemented from fc::http::websocket_connection.

Definition at line 202 of file websocket.cpp.

◆ get_request_header()

template<typename T >
virtual std::string fc::http::detail::websocket_connection_impl< T >::get_request_header ( const std::string &  key)
inlineoverridevirtual

Implements fc::http::websocket_connection.

Definition at line 207 of file websocket.cpp.

◆ send_message()

template<typename T >
virtual void fc::http::detail::websocket_connection_impl< T >::send_message ( const std::string &  message)
inlineoverridevirtual

Implements fc::http::websocket_connection.

Definition at line 195 of file websocket.cpp.

Member Data Documentation

◆ _ws_connection

template<typename T >
T fc::http::detail::websocket_connection_impl< T >::_ws_connection

Definition at line 212 of file websocket.cpp.


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