Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
sysio::msg_handler Struct Reference
Inheritance diagram for sysio::msg_handler:
Collaboration diagram for sysio::msg_handler:

Public Member Functions

 msg_handler (const connection_ptr &conn)
 
template<typename T >
void operator() (const T &) const
 
void operator() (const handshake_message &msg) const
 
void operator() (const chain_size_message &msg) const
 
void operator() (const go_away_message &msg) const
 
void operator() (const time_message &msg) const
 
void operator() (const notice_message &msg) const
 
void operator() (const request_message &msg) const
 
void operator() (const sync_request_message &msg) const
 

Public Attributes

connection_ptr c
 

Detailed Description

Definition at line 807 of file net_plugin.cpp.

Constructor & Destructor Documentation

◆ msg_handler()

sysio::msg_handler::msg_handler ( const connection_ptr & conn)
inlineexplicit

Definition at line 809 of file net_plugin.cpp.

809: c(conn) {}
connection_ptr c

Member Function Documentation

◆ operator()() [1/8]

void sysio::msg_handler::operator() ( const chain_size_message & msg) const
inline

Definition at line 822 of file net_plugin.cpp.

822 {
823 // continue call to handle_message on connection strand
824 peer_dlog( c, "handle chain_size_message" );
825 c->handle_message( msg );
826 }
#define peer_dlog(PEER, FORMAT,...)

◆ operator()() [2/8]

void sysio::msg_handler::operator() ( const go_away_message & msg) const
inline

Definition at line 828 of file net_plugin.cpp.

828 {
829 // continue call to handle_message on connection strand
830 peer_dlog( c, "handle go_away_message" );
831 c->handle_message( msg );
832 }

◆ operator()() [3/8]

void sysio::msg_handler::operator() ( const handshake_message & msg) const
inline

Definition at line 816 of file net_plugin.cpp.

816 {
817 // continue call to handle_message on connection strand
818 peer_dlog( c, "handle handshake_message" );
819 c->handle_message( msg );
820 }

◆ operator()() [4/8]

void sysio::msg_handler::operator() ( const notice_message & msg) const
inline

Definition at line 840 of file net_plugin.cpp.

840 {
841 // continue call to handle_message on connection strand
842 peer_dlog( c, "handle notice_message" );
843 c->handle_message( msg );
844 }

◆ operator()() [5/8]

void sysio::msg_handler::operator() ( const request_message & msg) const
inline

Definition at line 846 of file net_plugin.cpp.

846 {
847 // continue call to handle_message on connection strand
848 peer_dlog( c, "handle request_message" );
849 c->handle_message( msg );
850 }

◆ operator()() [6/8]

void sysio::msg_handler::operator() ( const sync_request_message & msg) const
inline

Definition at line 852 of file net_plugin.cpp.

852 {
853 // continue call to handle_message on connection strand
854 peer_dlog( c, "handle sync_request_message" );
855 c->handle_message( msg );
856 }

◆ operator()() [7/8]

template<typename T >
void sysio::msg_handler::operator() ( const T & ) const
inline

Definition at line 812 of file net_plugin.cpp.

812 {
813 SYS_ASSERT( false, plugin_config_exception, "Not implemented, call handle_message directly instead" );
814 }
#define SYS_ASSERT(expr, exc_type, FORMAT,...)
Definition exceptions.hpp:7

◆ operator()() [8/8]

void sysio::msg_handler::operator() ( const time_message & msg) const
inline

Definition at line 834 of file net_plugin.cpp.

834 {
835 // continue call to handle_message on connection strand
836 peer_dlog( c, "handle time_message" );
837 c->handle_message( msg );
838 }

Member Data Documentation

◆ c

connection_ptr sysio::msg_handler::c

Definition at line 808 of file net_plugin.cpp.


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