BitShares-Core  5.0.0
BitShares blockchain implementation and command-line interface software
Public Member Functions | Public Attributes | Protected 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 > fc::http::detail::possibly_proxied_websocket_connection< 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
 
const std::string & get_remote_endpoint_string () const
 

Public Attributes

fc::signal< void()> closed
 

Protected Attributes

std::string _remote_endpoint
 

Detailed Description

Definition at line 20 of file websocket.hpp.

Constructor & Destructor Documentation

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

Definition at line 23 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 25 of file websocket.hpp.

const std::string& fc::http::websocket_connection::get_remote_endpoint_string ( ) const
inline

Definition at line 37 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 33 of file websocket.hpp.

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

Definition at line 27 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 30 of file websocket.hpp.

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

Definition at line 26 of file websocket.hpp.

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

Definition at line 29 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 32 of file websocket.hpp.

Member Data Documentation

std::string fc::http::websocket_connection::_remote_endpoint
protected

Definition at line 41 of file websocket.hpp.

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

Definition at line 39 of file websocket.hpp.


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