Changeset View
Changeset View
Standalone View
Standalone View
src/net.h
Show First 20 Lines • Show All 426 Lines • ▼ Show 20 Lines | private: | ||||
// Whether the node should be passed out in ForEach* callbacks | // Whether the node should be passed out in ForEach* callbacks | ||||
static bool NodeFullyConnected(const CNode *pnode); | static bool NodeFullyConnected(const CNode *pnode); | ||||
const Config *config; | const Config *config; | ||||
// Network usage totals | // Network usage totals | ||||
RecursiveMutex cs_totalBytesRecv; | RecursiveMutex cs_totalBytesRecv; | ||||
RecursiveMutex cs_totalBytesSent; | RecursiveMutex cs_totalBytesSent; | ||||
uint64_t nTotalBytesRecv GUARDED_BY(cs_totalBytesRecv); | uint64_t nTotalBytesRecv GUARDED_BY(cs_totalBytesRecv){0}; | ||||
uint64_t nTotalBytesSent GUARDED_BY(cs_totalBytesSent); | uint64_t nTotalBytesSent GUARDED_BY(cs_totalBytesSent){0}; | ||||
// outbound limit & stats | // outbound limit & stats | ||||
uint64_t nMaxOutboundTotalBytesSentInCycle GUARDED_BY(cs_totalBytesSent); | uint64_t nMaxOutboundTotalBytesSentInCycle GUARDED_BY(cs_totalBytesSent); | ||||
uint64_t nMaxOutboundCycleStartTime GUARDED_BY(cs_totalBytesSent); | uint64_t nMaxOutboundCycleStartTime GUARDED_BY(cs_totalBytesSent); | ||||
uint64_t nMaxOutboundLimit GUARDED_BY(cs_totalBytesSent); | uint64_t nMaxOutboundLimit GUARDED_BY(cs_totalBytesSent); | ||||
uint64_t nMaxOutboundTimeframe GUARDED_BY(cs_totalBytesSent); | uint64_t nMaxOutboundTimeframe GUARDED_BY(cs_totalBytesSent); | ||||
// P2P timeout in seconds | // P2P timeout in seconds | ||||
▲ Show 20 Lines • Show All 637 Lines • Show Last 20 Lines |