BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet 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

◆ ~websocket_connection()

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

Definition at line 23 of file websocket.hpp.

Member Function Documentation

◆ close()

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.

◆ get_remote_endpoint_string()

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

Definition at line 37 of file websocket.hpp.

◆ get_request_header()

virtual std::string fc::http::websocket_connection::get_request_header ( const std::string &  key)
pure virtual

◆ get_session_data()

boost::any& fc::http::websocket_connection::get_session_data ( )
inline

Definition at line 33 of file websocket.hpp.

◆ on_http()

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

Definition at line 27 of file websocket.hpp.

◆ on_http_handler()

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.

◆ on_message()

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

Definition at line 26 of file websocket.hpp.

◆ on_message_handler()

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.

◆ send_message()

virtual void fc::http::websocket_connection::send_message ( const std::string &  message)
pure virtual

◆ set_session_data()

void fc::http::websocket_connection::set_session_data ( boost::any  d)
inline

Definition at line 32 of file websocket.hpp.

Member Data Documentation

◆ _remote_endpoint

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

Definition at line 41 of file websocket.hpp.

◆ closed

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: