Changeset View
Changeset View
Standalone View
Standalone View
src/net.h
Show First 20 Lines • Show All 381 Lines • ▼ Show 20 Lines | private: | ||||
std::vector<CNode *> vNodes; | std::vector<CNode *> vNodes; | ||||
std::list<CNode *> vNodesDisconnected; | std::list<CNode *> vNodesDisconnected; | ||||
mutable CCriticalSection cs_vNodes; | mutable CCriticalSection cs_vNodes; | ||||
std::atomic<NodeId> nLastNodeId; | std::atomic<NodeId> nLastNodeId; | ||||
/** Services this instance offers */ | /** Services this instance offers */ | ||||
ServiceFlags nLocalServices; | ServiceFlags nLocalServices; | ||||
CSemaphore *semOutbound; | std::unique_ptr<CSemaphore> semOutbound; | ||||
CSemaphore *semAddnode; | std::unique_ptr<CSemaphore> semAddnode; | ||||
int nMaxConnections; | int nMaxConnections; | ||||
int nMaxOutbound; | int nMaxOutbound; | ||||
int nMaxAddnode; | int nMaxAddnode; | ||||
int nMaxFeeler; | int nMaxFeeler; | ||||
std::atomic<int> nBestHeight; | std::atomic<int> nBestHeight; | ||||
CClientUIInterface *clientInterface; | CClientUIInterface *clientInterface; | ||||
NetEventsInterface *m_msgproc; | NetEventsInterface *m_msgproc; | ||||
▲ Show 20 Lines • Show All 242 Lines • ▼ Show 20 Lines | public: | ||||
// b) the peer may tell us in its version message that we should not relay | // b) the peer may tell us in its version message that we should not relay | ||||
// tx invs unless it loads a bloom filter. | // tx invs unless it loads a bloom filter. | ||||
// protected by cs_filter | // protected by cs_filter | ||||
bool fRelayTxes; | bool fRelayTxes; | ||||
bool fSentAddr; | bool fSentAddr; | ||||
CSemaphoreGrant grantOutbound; | CSemaphoreGrant grantOutbound; | ||||
CCriticalSection cs_filter; | CCriticalSection cs_filter; | ||||
CBloomFilter *pfilter; | std::unique_ptr<CBloomFilter> pfilter; | ||||
std::atomic<int> nRefCount; | std::atomic<int> nRefCount; | ||||
const uint64_t nKeyedNetGroup; | const uint64_t nKeyedNetGroup; | ||||
std::atomic_bool fPauseRecv; | std::atomic_bool fPauseRecv; | ||||
std::atomic_bool fPauseSend; | std::atomic_bool fPauseSend; | ||||
protected: | protected: | ||||
mapMsgCmdSize mapSendBytesPerMsgCmd; | mapMsgCmdSize mapSendBytesPerMsgCmd; | ||||
▲ Show 20 Lines • Show All 175 Lines • Show Last 20 Lines |