Electroneum
cryptonote::cryptonote_connection_context Struct Reference

#include <connection_context.h>

Inheritance diagram for cryptonote::cryptonote_connection_context:
Collaboration diagram for cryptonote::cryptonote_connection_context:

Public Types

enum  state {
  state_before_handshake = 0, state_synchronizing, state_standby, state_idle,
  state_normal
}
 

Public Member Functions

 cryptonote_connection_context ()
 
- Public Member Functions inherited from epee::net_utils::connection_context_base
 connection_context_base (boost::uuids::uuid connection_id, const network_address &remote_address, bool is_income, bool ssl, time_t last_recv=0, time_t last_send=0, uint64_t recv_cnt=0, uint64_t send_cnt=0)
 
 connection_context_base ()
 
 connection_context_base (const connection_context_base &a)
 
connection_context_baseoperator= (const connection_context_base &a)
 

Public Attributes

state m_state
 
std::vector< crypto::hashm_needed_objects
 
std::unordered_set< crypto::hashm_requested_objects
 
uint64_t m_remote_blockchain_height
 
uint64_t m_last_response_height
 
boost::posix_time::ptime m_last_request_time
 
epee::copyable_atomic m_callback_request_count
 
crypto::hash m_last_known_hash
 
uint32_t m_pruning_seed
 
uint16_t m_rpc_port
 
bool m_anchor
 
std::list< std::pair< std::string, uint8_t > > emergency_lists_recv
 
std::list< std::string > emergency_lists_sent
 
- Public Attributes inherited from epee::net_utils::connection_context_base
const boost::uuids::uuid m_connection_id
 
const network_address m_remote_address
 
const bool m_is_income
 
const time_t m_started
 
const time_t m_ssl
 
time_t m_last_recv
 
time_t m_last_send
 
uint64_t m_recv_cnt
 
uint64_t m_send_cnt
 
double m_current_speed_down
 
double m_current_speed_up
 
double m_max_speed_down
 
double m_max_speed_up
 

Detailed Description

Definition at line 41 of file connection_context.h.

Member Enumeration Documentation

◆ state

Constructor & Destructor Documentation

◆ cryptonote_connection_context()

cryptonote::cryptonote_connection_context::cryptonote_connection_context ( )
inline

Definition at line 43 of file connection_context.h.

Member Data Documentation

◆ emergency_lists_recv

std::list<std::pair<std::string, uint8_t> > cryptonote::cryptonote_connection_context::emergency_lists_recv

Definition at line 67 of file connection_context.h.

◆ emergency_lists_sent

std::list<std::string> cryptonote::cryptonote_connection_context::emergency_lists_sent

Definition at line 68 of file connection_context.h.

◆ m_anchor

bool cryptonote::cryptonote_connection_context::m_anchor

Definition at line 66 of file connection_context.h.

◆ m_callback_request_count

epee::copyable_atomic cryptonote::cryptonote_connection_context::m_callback_request_count

Definition at line 62 of file connection_context.h.

◆ m_last_known_hash

crypto::hash cryptonote::cryptonote_connection_context::m_last_known_hash

Definition at line 63 of file connection_context.h.

◆ m_last_request_time

boost::posix_time::ptime cryptonote::cryptonote_connection_context::m_last_request_time

Definition at line 61 of file connection_context.h.

◆ m_last_response_height

uint64_t cryptonote::cryptonote_connection_context::m_last_response_height

Definition at line 60 of file connection_context.h.

◆ m_needed_objects

std::vector<crypto::hash> cryptonote::cryptonote_connection_context::m_needed_objects

Definition at line 57 of file connection_context.h.

◆ m_pruning_seed

uint32_t cryptonote::cryptonote_connection_context::m_pruning_seed

Definition at line 64 of file connection_context.h.

◆ m_remote_blockchain_height

uint64_t cryptonote::cryptonote_connection_context::m_remote_blockchain_height

Definition at line 59 of file connection_context.h.

◆ m_requested_objects

std::unordered_set<crypto::hash> cryptonote::cryptonote_connection_context::m_requested_objects

Definition at line 58 of file connection_context.h.

◆ m_rpc_port

uint16_t cryptonote::cryptonote_connection_context::m_rpc_port

Definition at line 65 of file connection_context.h.

◆ m_state

state cryptonote::cryptonote_connection_context::m_state

Definition at line 56 of file connection_context.h.


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