Monero
Loading...
Searching...
No Matches
epee::levin::protocol_handler< t_connection_context > Class Template Reference

#include <levin_protocol_handler.h>

Collaboration diagram for epee::levin::protocol_handler< t_connection_context >:

Public Types

typedef t_connection_context connection_context
typedef protocl_handler_config< t_connection_context > config_type

Public Member Functions

 protocol_handler (net_utils::i_service_endpoint *psnd_hndlr, config_type &config, t_connection_context &conn_context)
virtual ~protocol_handler ()
virtual bool handle_recv (const void *ptr, size_t cb)
bool after_init_connection ()

Private Types

enum  connection_data_state { conn_state_reading_head , conn_state_reading_body }

Private Attributes

config_typem_config
t_connection_context & m_conn_context
net_utils::i_service_endpointm_psnd_hndlr
std::string m_cach_in_buffer
connection_data_state m_state
bucket_head m_current_head

Member Typedef Documentation

◆ config_type

template<class t_connection_context = net_utils::connection_context_base>
typedef protocl_handler_config<t_connection_context> epee::levin::protocol_handler< t_connection_context >::config_type

◆ connection_context

template<class t_connection_context = net_utils::connection_context_base>
typedef t_connection_context epee::levin::protocol_handler< t_connection_context >::connection_context

Member Enumeration Documentation

◆ connection_data_state

template<class t_connection_context = net_utils::connection_context_base>
enum epee::levin::protocol_handler::connection_data_state
private
Enumerator
conn_state_reading_head 
conn_state_reading_body 

Constructor & Destructor Documentation

◆ protocol_handler()

template<class t_connection_context>
epee::levin::protocol_handler< t_connection_context >::protocol_handler ( net_utils::i_service_endpoint * psnd_hndlr,
config_type & config,
t_connection_context & conn_context )

◆ ~protocol_handler()

template<class t_connection_context = net_utils::connection_context_base>
virtual epee::levin::protocol_handler< t_connection_context >::~protocol_handler ( )
inlinevirtual

Member Function Documentation

◆ after_init_connection()

template<class t_connection_context = net_utils::connection_context_base>
bool epee::levin::protocol_handler< t_connection_context >::after_init_connection ( )
inline

◆ handle_recv()

template<class t_connection_context>
bool epee::levin::protocol_handler< t_connection_context >::handle_recv ( const void * ptr,
size_t cb )
virtual

Member Data Documentation

◆ m_cach_in_buffer

template<class t_connection_context = net_utils::connection_context_base>
std::string epee::levin::protocol_handler< t_connection_context >::m_cach_in_buffer
private

◆ m_config

template<class t_connection_context = net_utils::connection_context_base>
config_type& epee::levin::protocol_handler< t_connection_context >::m_config
private

◆ m_conn_context

template<class t_connection_context = net_utils::connection_context_base>
t_connection_context& epee::levin::protocol_handler< t_connection_context >::m_conn_context
private

◆ m_current_head

template<class t_connection_context = net_utils::connection_context_base>
bucket_head epee::levin::protocol_handler< t_connection_context >::m_current_head
private

◆ m_psnd_hndlr

template<class t_connection_context = net_utils::connection_context_base>
net_utils::i_service_endpoint* epee::levin::protocol_handler< t_connection_context >::m_psnd_hndlr
private

◆ m_state

template<class t_connection_context = net_utils::connection_context_base>
connection_data_state epee::levin::protocol_handler< t_connection_context >::m_state
private

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