Electroneum
cryptonote::t_cryptonote_protocol_handler< t_core > Class Template Reference

#include <cryptonote_protocol_handler.h>

Inheritance diagram for cryptonote::t_cryptonote_protocol_handler< t_core >:
Collaboration diagram for cryptonote::t_cryptonote_protocol_handler< t_core >:

Public Types

typedef cryptonote_connection_context connection_context
 
typedef core_stat_info stat_info
 
typedef t_cryptonote_protocol_handler< t_core > cryptonote_protocol_handler
 
typedef CORE_SYNC_DATA payload_type
 

Public Member Functions

 t_cryptonote_protocol_handler (t_core &rcore, nodetool::i_p2p_endpoint< connection_context > *p_net_layout, bool offline=false)
 
bool on_idle ()
 
bool init (const boost::program_options::variables_map &vm)
 
bool deinit ()
 
void set_p2p_endpoint (nodetool::i_p2p_endpoint< connection_context > *p2p)
 
bool process_payload_sync_data (const CORE_SYNC_DATA &hshd, cryptonote_connection_context &context, bool is_inital)
 
bool get_payload_sync_data (blobdata &data)
 
bool get_payload_sync_data (CORE_SYNC_DATA &hshd)
 
bool get_stat_info (core_stat_info &stat_inf)
 
bool on_callback (cryptonote_connection_context &context)
 
t_core & get_core ()
 
bool is_synchronized ()
 
void log_connections ()
 
std::list< connection_infoget_connections ()
 
const block_queueget_block_queue () const
 
void stop ()
 
void on_connection_close (cryptonote_connection_context &context)
 
void set_max_out_peers (unsigned int max)
 
void set_no_sync (bool value)
 
std::string get_peers_overview () const
 
std::pair< uint32_t, uint32_tget_next_needed_pruning_stripe () const
 
bool needs_new_sync_connections () const
 

Detailed Description

template<class t_core>
class cryptonote::t_cryptonote_protocol_handler< t_core >

Definition at line 77 of file cryptonote_protocol_handler.h.

Member Typedef Documentation

◆ connection_context

◆ cryptonote_protocol_handler

◆ payload_type

template<class t_core>
typedef CORE_SYNC_DATA cryptonote::t_cryptonote_protocol_handler< t_core >::payload_type

Definition at line 83 of file cryptonote_protocol_handler.h.

◆ stat_info

template<class t_core>
typedef core_stat_info cryptonote::t_cryptonote_protocol_handler< t_core >::stat_info

Definition at line 81 of file cryptonote_protocol_handler.h.

Constructor & Destructor Documentation

◆ t_cryptonote_protocol_handler()

template<class t_core>
cryptonote::t_cryptonote_protocol_handler< t_core >::t_cryptonote_protocol_handler ( t_core &  rcore,
nodetool::i_p2p_endpoint< connection_context > *  p_net_layout,
bool  offline = false 
)

Member Function Documentation

◆ deinit()

template<class t_core>
bool cryptonote::t_cryptonote_protocol_handler< t_core >::deinit ( )
Here is the caller graph for this function:

◆ get_block_queue()

template<class t_core>
const block_queue& cryptonote::t_cryptonote_protocol_handler< t_core >::get_block_queue ( ) const
inline

Definition at line 114 of file cryptonote_protocol_handler.h.

114 { return m_block_queue; }

◆ get_connections()

template<class t_core>
std::list<connection_info> cryptonote::t_cryptonote_protocol_handler< t_core >::get_connections ( )

◆ get_core()

template<class t_core>
t_core& cryptonote::t_cryptonote_protocol_handler< t_core >::get_core ( )
inline

Definition at line 110 of file cryptonote_protocol_handler.h.

110 {return m_core;}

◆ get_next_needed_pruning_stripe()

template<class t_core>
std::pair<uint32_t, uint32_t> cryptonote::t_cryptonote_protocol_handler< t_core >::get_next_needed_pruning_stripe ( ) const

◆ get_payload_sync_data() [1/2]

template<class t_core>
bool cryptonote::t_cryptonote_protocol_handler< t_core >::get_payload_sync_data ( blobdata data)

◆ get_payload_sync_data() [2/2]

template<class t_core>
bool cryptonote::t_cryptonote_protocol_handler< t_core >::get_payload_sync_data ( CORE_SYNC_DATA hshd)

◆ get_peers_overview()

template<class t_core>
std::string cryptonote::t_cryptonote_protocol_handler< t_core >::get_peers_overview ( ) const

◆ get_stat_info()

template<class t_core>
bool cryptonote::t_cryptonote_protocol_handler< t_core >::get_stat_info ( core_stat_info stat_inf)

◆ init()

template<class t_core>
bool cryptonote::t_cryptonote_protocol_handler< t_core >::init ( const boost::program_options::variables_map &  vm)
Here is the caller graph for this function:

◆ is_synchronized()

template<class t_core>
bool cryptonote::t_cryptonote_protocol_handler< t_core >::is_synchronized ( )
inline

Definition at line 111 of file cryptonote_protocol_handler.h.

111 {return m_synchronized;}

◆ log_connections()

template<class t_core>
void cryptonote::t_cryptonote_protocol_handler< t_core >::log_connections ( )

◆ needs_new_sync_connections()

template<class t_core>
bool cryptonote::t_cryptonote_protocol_handler< t_core >::needs_new_sync_connections ( ) const

◆ on_callback()

template<class t_core>
bool cryptonote::t_cryptonote_protocol_handler< t_core >::on_callback ( cryptonote_connection_context context)

◆ on_connection_close()

template<class t_core>
void cryptonote::t_cryptonote_protocol_handler< t_core >::on_connection_close ( cryptonote_connection_context context)

◆ on_idle()

template<class t_core>
bool cryptonote::t_cryptonote_protocol_handler< t_core >::on_idle ( )

◆ process_payload_sync_data()

template<class t_core>
bool cryptonote::t_cryptonote_protocol_handler< t_core >::process_payload_sync_data ( const CORE_SYNC_DATA hshd,
cryptonote_connection_context context,
bool  is_inital 
)

◆ set_max_out_peers()

template<class t_core>
void cryptonote::t_cryptonote_protocol_handler< t_core >::set_max_out_peers ( unsigned int  max)
inline

Definition at line 117 of file cryptonote_protocol_handler.h.

117 { m_max_out_peers = max; }

◆ set_no_sync()

template<class t_core>
void cryptonote::t_cryptonote_protocol_handler< t_core >::set_no_sync ( bool  value)
inline

Definition at line 118 of file cryptonote_protocol_handler.h.

118 { m_no_sync = value; }
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1225

◆ set_p2p_endpoint()

template<class t_core>
void cryptonote::t_cryptonote_protocol_handler< t_core >::set_p2p_endpoint ( nodetool::i_p2p_endpoint< connection_context > *  p2p)
Here is the caller graph for this function:

◆ stop()

template<class t_core>
void cryptonote::t_cryptonote_protocol_handler< t_core >::stop ( )

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