BitShares-Core  4.0.0
BitShares blockchain implementation and command-line interface 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

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 ()
 

Public Attributes

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

Detailed Description

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

Definition at line 196 of file websocket.cpp.

Constructor & Destructor Documentation

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

Definition at line 199 of file websocket.cpp.

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

Definition at line 203 of file websocket.cpp.

Member Function Documentation

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 214 of file websocket.cpp.

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 219 of file websocket.cpp.

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 207 of file websocket.cpp.

Member Data Documentation

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

Definition at line 224 of file websocket.cpp.


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