Electroneum
Namespaces | Macros
cryptonote_protocol_handler.inl File Reference

This is the orginal cryptonote protocol network-events handler, modified by us. More...

#include <boost/interprocess/detail/atomic.hpp>
#include <list>
#include <unordered_map>
#include "cryptonote_basic/cryptonote_format_utils.h"
#include "profile_tools.h"
#include "p2p/network_throttle-detail.hpp"
#include "cryptonote_basic/validators.h"
Include dependency graph for cryptonote_protocol_handler.inl:
This graph shows which files directly or indirectly include this file:

Namespaces

 cryptonote
 Holds cryptonote related classes and helpers.
 

Macros

#define ELECTRONEUM_DEFAULT_LOG_CATEGORY   "net.cn"
 
#define MLOG_P2P_MESSAGE(x)   MCINFO("net.p2p.msg", context << x)
 
#define BLOCK_QUEUE_NBLOCKS_THRESHOLD   10
 
#define BLOCK_QUEUE_SIZE_THRESHOLD   (100*1024*1024)
 
#define REQUEST_NEXT_SCHEDULED_SPAN_THRESHOLD   (5 * 1000000)
 
#define IDLE_PEER_KICK_TIME   (45 * 1000000)
 

Detailed Description

This is the orginal cryptonote protocol network-events handler, modified by us.

Author
rfree (current maintainer/user in electroneum.cc project - most of code is from CryptoNote)

Macro Definition Documentation

◆ BLOCK_QUEUE_NBLOCKS_THRESHOLD

#define BLOCK_QUEUE_NBLOCKS_THRESHOLD   10

◆ BLOCK_QUEUE_SIZE_THRESHOLD

#define BLOCK_QUEUE_SIZE_THRESHOLD   (100*1024*1024)

◆ ELECTRONEUM_DEFAULT_LOG_CATEGORY

#define ELECTRONEUM_DEFAULT_LOG_CATEGORY   "net.cn"

◆ IDLE_PEER_KICK_TIME

#define IDLE_PEER_KICK_TIME   (45 * 1000000)

◆ MLOG_P2P_MESSAGE

#define MLOG_P2P_MESSAGE (   x)    MCINFO("net.p2p.msg", context << x)

◆ REQUEST_NEXT_SCHEDULED_SPAN_THRESHOLD

#define REQUEST_NEXT_SCHEDULED_SPAN_THRESHOLD   (5 * 1000000)