#include <cryptonote_protocol_handler.h>
◆ cryptonote_protocol_handler_base()
| cryptonote::cryptonote_protocol_handler_base::cryptonote_protocol_handler_base |
( |
| ) |
|
◆ ~cryptonote_protocol_handler_base()
| cryptonote::cryptonote_protocol_handler_base::~cryptonote_protocol_handler_base |
( |
| ) |
|
|
virtual |
◆ estimate_one_block_size()
| double cryptonote::cryptonote_protocol_handler_base::estimate_one_block_size |
( |
| ) |
|
|
virtualnoexcept |
◆ get_avg_block_size()
| virtual double cryptonote::cryptonote_protocol_handler_base::get_avg_block_size |
( |
| ) |
|
|
pure virtual |
◆ handler_request_blocks_history()
| void cryptonote::cryptonote_protocol_handler_base::handler_request_blocks_history |
( |
std::list< crypto::hash > & |
ids | ) |
|
◆ handler_response_blocks_now()
| void cryptonote::cryptonote_protocol_handler_base::handler_response_blocks_now |
( |
size_t |
packet_size | ) |
|
Definition at line 104 of file cryptonote_protocol_handler-base.cpp.
107 MDEBUG(
"Packet size: " << packet_size);
122 delay = network_throttle_manager::get_global_throttle_out().get_sleep_time_after_tick( packet_size );
130 long int ms = (
long int)(delay * 1000);
131 MDEBUG(
"Sleeping for " << ms <<
" ms before packet_size="<<packet_size);
132 boost::this_thread::sleep(boost::posix_time::milliseconds( ms ) );
139 network_throttle_manager::get_global_throttle_out().handle_trafic_tcp( packet_size );
#define CRITICAL_REGION_LOCAL(x)
The documentation for this class was generated from the following files: