BitShares-Core  4.0.0
BitShares blockchain implementation and command-line interface software
Public Member Functions | Public Attributes | List of all members
fc::http::websocket_connection Class Referenceabstract

#include <websocket.hpp>

Inheritance diagram for fc::http::websocket_connection:
fc::http::detail::websocket_connection_impl< T >

Public Member Functions

virtual ~websocket_connection ()
 
virtual void send_message (const std::string &message)=0
 
virtual void close (int64_t code, const std::string &reason)
 
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 ()
 
virtual std::string get_request_header (const std::string &key)=0
 

Public Attributes

fc::signal< void()> closed
 

Detailed Description

Definition at line 18 of file websocket.hpp.

Constructor & Destructor Documentation

virtual fc::http::websocket_connection::~websocket_connection ( )
inlinevirtual

Definition at line 21 of file websocket.hpp.

Member Function Documentation

virtual void fc::http::websocket_connection::close ( int64_t  code,
const std::string &  reason 
)
inlinevirtual

Reimplemented in fc::http::detail::websocket_connection_impl< T >.

Definition at line 23 of file websocket.hpp.

virtual std::string fc::http::websocket_connection::get_request_header ( const std::string &  key)
pure virtual
boost::any& fc::http::websocket_connection::get_session_data ( )
inline

Definition at line 31 of file websocket.hpp.

fc::http::reply fc::http::websocket_connection::on_http ( const std::string &  message)
inline

Definition at line 25 of file websocket.hpp.

void fc::http::websocket_connection::on_http_handler ( const std::function< fc::http::reply(const std::string &)> &  h)
inline

Definition at line 28 of file websocket.hpp.

void fc::http::websocket_connection::on_message ( const std::string &  message)
inline

Definition at line 24 of file websocket.hpp.

void fc::http::websocket_connection::on_message_handler ( const std::function< void(const std::string &)> &  h)
inline

Definition at line 27 of file websocket.hpp.

virtual void fc::http::websocket_connection::send_message ( const std::string &  message)
pure virtual
void fc::http::websocket_connection::set_session_data ( boost::any  d)
inline

Definition at line 30 of file websocket.hpp.

Member Data Documentation

fc::signal<void()> fc::http::websocket_connection::closed

Definition at line 35 of file websocket.hpp.


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