Fabcoin Core  0.16.2
P2P Digital Currency
Classes | Public Types | Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
CConnman Class Reference

#include <net.h>

Collaboration diagram for CConnman:
[legend]

Classes

struct  ListenSocket
 
struct  Options
 

Public Types

enum  NumConnections { CONNECTIONS_NONE = 0, CONNECTIONS_IN = (1U << 0), CONNECTIONS_OUT = (1U << 1), CONNECTIONS_ALL = (CONNECTIONS_IN | CONNECTIONS_OUT) }
 

Public Member Functions

void Init (const Options &connOptions)
 
 CConnman (uint64_t seed0, uint64_t seed1)
 
 ~CConnman ()
 
bool Start (CScheduler &scheduler, const Options &options)
 
void Stop ()
 
void Interrupt ()
 
bool GetNetworkActive () const
 
void SetNetworkActive (bool active)
 
bool OpenNetworkConnection (const CAddress &addrConnect, bool fCountFailure, CSemaphoreGrant *grantOutbound=nullptr, const char *strDest=nullptr, bool fOneShot=false, bool fFeeler=false, bool manual_connection=false)
 
bool CheckIncomingNonce (uint64_t nonce)
 
bool ForNode (NodeId id, std::function< bool(CNode *pnode)> func)
 
void PushMessage (CNode *pnode, CSerializedNetMsg &&msg)
 
template<typename Callable >
void ForEachNode (Callable &&func)
 
template<typename Callable >
void ForEachNode (Callable &&func) const
 
template<typename Callable , typename CallableAfter >
void ForEachNodeThen (Callable &&pre, CallableAfter &&post)
 
template<typename Callable , typename CallableAfter >
void ForEachNodeThen (Callable &&pre, CallableAfter &&post) const
 
size_t GetAddressCount () const
 
void SetServices (const CService &addr, ServiceFlags nServices)
 
void MarkAddressGood (const CAddress &addr)
 
void AddNewAddresses (const std::vector< CAddress > &vAddr, const CAddress &addrFrom, int64_t nTimePenalty=0)
 
std::vector< CAddressGetAddresses ()
 
void Ban (const CNetAddr &netAddr, const BanReason &reason, int64_t bantimeoffset=0, bool sinceUnixEpoch=false)
 
void Ban (const CSubNet &subNet, const BanReason &reason, int64_t bantimeoffset=0, bool sinceUnixEpoch=false)
 
void ClearBanned ()
 
bool IsBanned (CNetAddr ip)
 
bool IsBanned (CSubNet subnet)
 
bool Unban (const CNetAddr &ip)
 
bool Unban (const CSubNet &ip)
 
void GetBanned (banmap_t &banmap)
 
void SetBanned (const banmap_t &banmap)
 
void SetTryNewOutboundPeer (bool flag)
 
bool GetTryNewOutboundPeer ()
 
int GetExtraOutboundCount ()
 
bool AddNode (const std::string &node)
 
bool RemoveAddedNode (const std::string &node)
 
std::vector< AddedNodeInfoGetAddedNodeInfo ()
 
size_t GetNodeCount (NumConnections num)
 
void GetNodeStats (std::vector< CNodeStats > &vstats)
 
bool DisconnectNode (const std::string &node)
 
bool DisconnectNode (NodeId id)
 
ServiceFlags GetLocalServices () const
 
void SetMaxOutboundTarget (uint64_t limit)
 set the max outbound target in bytes More...
 
uint64_t GetMaxOutboundTarget ()
 
void SetMaxOutboundTimeframe (uint64_t timeframe)
 set the timeframe for the max outbound target More...
 
uint64_t GetMaxOutboundTimeframe ()
 
bool OutboundTargetReached (bool historicalBlockServingLimit)
 check if the outbound target is reached More...
 
uint64_t GetOutboundTargetBytesLeft ()
 response the bytes left in the current max outbound cycle More...
 
uint64_t GetMaxOutboundTimeLeftInCycle ()
 response the time in second left in the current max outbound cycle More...
 
uint64_t GetTotalBytesRecv ()
 
uint64_t GetTotalBytesSent ()
 
void SetBestHeight (int height)
 
int GetBestHeight () const
 
CSipHasher GetDeterministicRandomizer (uint64_t id) const
 Get a unique deterministic randomizer. More...
 
unsigned int GetReceiveFloodSize () const
 
void WakeMessageHandler ()
 

Private Member Functions

bool BindListenPort (const CService &bindAddr, std::string &strError, bool fWhitelisted=false)
 
bool Bind (const CService &addr, unsigned int flags)
 
bool InitBinds (const std::vector< CService > &binds, const std::vector< CService > &whiteBinds)
 
void ThreadOpenAddedConnections ()
 
void AddOneShot (const std::string &strDest)
 
void ProcessOneShot ()
 
void ThreadOpenConnections ()
 
void ThreadMessageHandler ()
 
void AcceptConnection (const ListenSocket &hListenSocket)
 
void ThreadSocketHandler ()
 
void ThreadDNSAddressSeed ()
 
uint64_t CalculateKeyedNetGroup (const CAddress &ad) const
 
CNodeFindNode (const CNetAddr &ip)
 
CNodeFindNode (const CSubNet &subNet)
 
CNodeFindNode (const std::string &addrName)
 
CNodeFindNode (const CService &addr)
 
bool AttemptToEvictConnection ()
 Try to find a connection to evict when the node is full. More...
 
CNodeConnectNode (CAddress addrConnect, const char *pszDest, bool fCountFailure)
 
bool IsWhitelistedRange (const CNetAddr &addr)
 
void DeleteNode (CNode *pnode)
 
NodeId GetNewNodeId ()
 
size_t SocketSendData (CNode *pnode) const
 
bool BannedSetIsDirty ()
 check is the banlist has unwritten changes More...
 
void SetBannedSetDirty (bool dirty=true)
 set the "dirty" flag for the banlist More...
 
void SweepBanned ()
 clean unused entries (if bantime has expired) More...
 
void DumpAddresses ()
 
void DumpData ()
 
void DumpBanlist ()
 
void RecordBytesRecv (uint64_t bytes)
 
void RecordBytesSent (uint64_t bytes)
 

Static Private Member Functions

static bool NodeFullyConnected (const CNode *pnode)
 

Private Attributes

CCriticalSection cs_totalBytesRecv
 
CCriticalSection cs_totalBytesSent
 
uint64_t nTotalBytesRecv
 
uint64_t nTotalBytesSent
 
uint64_t nMaxOutboundTotalBytesSentInCycle
 
uint64_t nMaxOutboundCycleStartTime
 
uint64_t nMaxOutboundLimit
 
uint64_t nMaxOutboundTimeframe
 
std::vector< CSubNetvWhitelistedRange
 
unsigned int nSendBufferMaxSize
 
unsigned int nReceiveFloodSize
 
std::vector< ListenSocketvhListenSocket
 
std::atomic< bool > fNetworkActive
 
banmap_t setBanned
 
CCriticalSection cs_setBanned
 
bool setBannedIsDirty
 
bool fAddressesInitialized
 
CAddrMan addrman
 
std::deque< std::string > vOneShots
 
CCriticalSection cs_vOneShots
 
std::vector< std::string > vAddedNodes
 
CCriticalSection cs_vAddedNodes
 
std::vector< CNode * > vNodes
 
std::list< CNode * > vNodesDisconnected
 
CCriticalSection cs_vNodes
 
std::atomic< NodeIdnLastNodeId
 
ServiceFlags nLocalServices
 Services this instance offers. More...
 
ServiceFlags nRelevantServices
 Services this instance cares about. More...
 
CSemaphoresemOutbound
 
CSemaphoresemAddnode
 
int nMaxConnections
 
int nMaxOutbound
 
int nMaxAddnode
 
int nMaxFeeler
 
std::atomic< int > nBestHeight
 
CClientUIInterfaceclientInterface
 
NetEventsInterfacem_msgproc
 
const uint64_t nSeed0
 SipHasher seeds for deterministic randomness. More...
 
const uint64_t nSeed1
 
bool fMsgProcWake
 flag for waking the message processor. More...
 
std::condition_variable condMsgProc
 
std::mutex mutexMsgProc
 
std::atomic< bool > flagInterruptMsgProc
 
CThreadInterrupt interruptNet
 
std::thread threadDNSAddressSeed
 
std::thread threadSocketHandler
 
std::thread threadOpenAddedConnections
 
std::thread threadOpenConnections
 
std::thread threadMessageHandler
 
std::atomic_bool m_try_another_outbound_peer
 flag for deciding to connect to an extra outbound peer, in excess of nMaxOutbound This takes the place of a feeler connection More...
 

Friends

struct CConnmanTest
 

Detailed Description

Definition at line 120 of file net.h.

Member Enumeration Documentation

Enumerator
CONNECTIONS_NONE 
CONNECTIONS_IN 
CONNECTIONS_OUT 
CONNECTIONS_ALL 

Definition at line 124 of file net.h.

Constructor & Destructor Documentation

CConnman::CConnman ( uint64_t  seed0,
uint64_t  seed1 
)

Definition at line 2232 of file net.cpp.

Here is the call graph for this function:

CConnman::~CConnman ( )

Definition at line 2484 of file net.cpp.

Here is the call graph for this function:

Member Function Documentation

void CConnman::AcceptConnection ( const ListenSocket hListenSocket)
private

Definition at line 1043 of file net.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void CConnman::AddNewAddresses ( const std::vector< CAddress > &  vAddr,
const CAddress addrFrom,
int64_t  nTimePenalty = 0 
)

Definition at line 2505 of file net.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool CConnman::AddNode ( const std::string &  node)

Definition at line 2515 of file net.cpp.

void CConnman::AddOneShot ( const std::string &  strDest)
private

Definition at line 92 of file net.cpp.

Here is the caller graph for this function:

bool CConnman::AttemptToEvictConnection ( )
private

Try to find a connection to evict when the node is full.

Extreme care must be taken to avoid opening the node to attacker triggered network partitioning. The strategy used here is to protect a small number of peers for each of several distinct characteristics which are difficult to forge. In order to partition a node the attacker must be simultaneously better at all of them than honest peers.

Definition at line 950 of file net.cpp.

Here is the caller graph for this function:

void CConnman::Ban ( const CNetAddr netAddr,
const BanReason reason,
int64_t  bantimeoffset = 0,
bool  sinceUnixEpoch = false 
)

Definition at line 503 of file net.cpp.

Here is the caller graph for this function:

void CConnman::Ban ( const CSubNet subNet,
const BanReason reason,
int64_t  bantimeoffset = 0,
bool  sinceUnixEpoch = false 
)

Definition at line 508 of file net.cpp.

Here is the call graph for this function:

bool CConnman::BannedSetIsDirty ( )
private

check is the banlist has unwritten changes

Definition at line 594 of file net.cpp.

Here is the caller graph for this function:

bool CConnman::Bind ( const CService addr,
unsigned int  flags 
)
private

Definition at line 2255 of file net.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool CConnman::BindListenPort ( const CService bindAddr,
std::string &  strError,
bool  fWhitelisted = false 
)
private

Definition at line 2061 of file net.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

uint64_t CConnman::CalculateKeyedNetGroup ( const CAddress ad) const
private

Definition at line 2892 of file net.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool CConnman::CheckIncomingNonce ( uint64_t  nonce)

Definition at line 337 of file net.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void CConnman::ClearBanned ( )

Definition at line 462 of file net.cpp.

Here is the call graph for this function:

CNode * CConnman::ConnectNode ( CAddress  addrConnect,
const char *  pszDest,
bool  fCountFailure 
)
private

debug print

Definition at line 363 of file net.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void CConnman::DeleteNode ( CNode pnode)
private

Definition at line 2473 of file net.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool CConnman::DisconnectNode ( const std::string &  node)

Definition at line 2565 of file net.cpp.

Here is the call graph for this function:

bool CConnman::DisconnectNode ( NodeId  id)

Definition at line 2574 of file net.cpp.

void CConnman::DumpAddresses ( )
private

Definition at line 1639 of file net.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void CConnman::DumpBanlist ( )
private

Definition at line 431 of file net.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void CConnman::DumpData ( )
private

Definition at line 1650 of file net.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

CNode * CConnman::FindNode ( const CNetAddr ip)
private

Definition at line 299 of file net.cpp.

Here is the caller graph for this function:

CNode * CConnman::FindNode ( const CSubNet subNet)
private

Definition at line 308 of file net.cpp.

Here is the call graph for this function:

CNode * CConnman::FindNode ( const std::string &  addrName)
private

Definition at line 317 of file net.cpp.

CNode * CConnman::FindNode ( const CService addr)
private

Definition at line 328 of file net.cpp.

template<typename Callable >
void CConnman::ForEachNode ( Callable &&  func)
inline

Definition at line 183 of file net.h.

Here is the caller graph for this function:

template<typename Callable >
void CConnman::ForEachNode ( Callable &&  func) const
inline

Definition at line 193 of file net.h.

template<typename Callable , typename CallableAfter >
void CConnman::ForEachNodeThen ( Callable &&  pre,
CallableAfter &&  post 
)
inline

Definition at line 203 of file net.h.

Here is the caller graph for this function:

template<typename Callable , typename CallableAfter >
void CConnman::ForEachNodeThen ( Callable &&  pre,
CallableAfter &&  post 
) const
inline

Definition at line 214 of file net.h.

bool CConnman::ForNode ( NodeId  id,
std::function< bool(CNode *pnode)>  func 
)

Definition at line 2870 of file net.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

std::vector< AddedNodeInfo > CConnman::GetAddedNodeInfo ( )

Definition at line 1878 of file net.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

size_t CConnman::GetAddressCount ( ) const

Definition at line 2490 of file net.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

std::vector< CAddress > CConnman::GetAddresses ( )

Definition at line 2510 of file net.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void CConnman::GetBanned ( banmap_t banmap)

Definition at line 558 of file net.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

int CConnman::GetBestHeight ( ) const

Definition at line 2706 of file net.cpp.

Here is the caller graph for this function:

CSipHasher CConnman::GetDeterministicRandomizer ( uint64_t  id) const

Get a unique deterministic randomizer.

Definition at line 2887 of file net.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

int CConnman::GetExtraOutboundCount ( )

Definition at line 1691 of file net.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

ServiceFlags CConnman::GetLocalServices ( ) const

Definition at line 2696 of file net.cpp.

uint64_t CConnman::GetMaxOutboundTarget ( )

Definition at line 2615 of file net.cpp.

uint64_t CConnman::GetMaxOutboundTimeframe ( )

Definition at line 2621 of file net.cpp.

uint64_t CConnman::GetMaxOutboundTimeLeftInCycle ( )

response the time in second left in the current max outbound cycle

Definition at line 2627 of file net.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool CConnman::GetNetworkActive ( ) const
inline

Definition at line 173 of file net.h.

NodeId CConnman::GetNewNodeId ( )
private

Definition at line 2249 of file net.cpp.

Here is the caller graph for this function:

size_t CConnman::GetNodeCount ( NumConnections  num)

Definition at line 2539 of file net.cpp.

void CConnman::GetNodeStats ( std::vector< CNodeStats > &  vstats)

Definition at line 2553 of file net.cpp.

Here is the call graph for this function:

uint64_t CConnman::GetOutboundTargetBytesLeft ( )

response the bytes left in the current max outbound cycle

Definition at line 2675 of file net.cpp.

unsigned int CConnman::GetReceiveFloodSize ( ) const

Definition at line 2711 of file net.cpp.

Here is the caller graph for this function:

uint64_t CConnman::GetTotalBytesRecv ( )

Definition at line 2684 of file net.cpp.

uint64_t CConnman::GetTotalBytesSent ( )

Definition at line 2690 of file net.cpp.

bool CConnman::GetTryNewOutboundPeer ( )

Definition at line 1674 of file net.cpp.

Here is the caller graph for this function:

void CConnman::Init ( const Options connOptions)
inline

Definition at line 151 of file net.h.

Here is the call graph for this function:

Here is the caller graph for this function:

bool CConnman::InitBinds ( const std::vector< CService > &  binds,
const std::vector< CService > &  whiteBinds 
)
private

Definition at line 2268 of file net.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void CConnman::Interrupt ( )

Definition at line 2406 of file net.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool CConnman::IsBanned ( CNetAddr  ip)

Definition at line 474 of file net.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool CConnman::IsBanned ( CSubNet  subnet)

Definition at line 489 of file net.cpp.

Here is the call graph for this function:

bool CConnman::IsWhitelistedRange ( const CNetAddr addr)
private

Definition at line 607 of file net.cpp.

Here is the caller graph for this function:

void CConnman::MarkAddressGood ( const CAddress addr)

Definition at line 2500 of file net.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool CConnman::NodeFullyConnected ( const CNode pnode)
staticprivate

Definition at line 2828 of file net.cpp.

bool CConnman::OpenNetworkConnection ( const CAddress addrConnect,
bool  fCountFailure,
CSemaphoreGrant grantOutbound = nullptr,
const char *  strDest = nullptr,
bool  fOneShot = false,
bool  fFeeler = false,
bool  manual_connection = false 
)

Definition at line 1966 of file net.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool CConnman::OutboundTargetReached ( bool  historicalBlockServingLimit)

check if the outbound target is reached

Definition at line 2653 of file net.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void CConnman::ProcessOneShot ( )
private

Definition at line 1656 of file net.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void CConnman::PushMessage ( CNode pnode,
CSerializedNetMsg &&  msg 
)

Definition at line 2833 of file net.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void CConnman::RecordBytesRecv ( uint64_t  bytes)
private

Definition at line 2586 of file net.cpp.

Here is the caller graph for this function:

void CConnman::RecordBytesSent ( uint64_t  bytes)
private

Definition at line 2592 of file net.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool CConnman::RemoveAddedNode ( const std::string &  node)

Definition at line 2527 of file net.cpp.

void CConnman::SetBanned ( const banmap_t banmap)

Definition at line 566 of file net.cpp.

Here is the caller graph for this function:

void CConnman::SetBannedSetDirty ( bool  dirty = true)
private

set the "dirty" flag for the banlist

Definition at line 600 of file net.cpp.

Here is the caller graph for this function:

void CConnman::SetBestHeight ( int  height)

Definition at line 2701 of file net.cpp.

Here is the caller graph for this function:

void CConnman::SetMaxOutboundTarget ( uint64_t  limit)

set the max outbound target in bytes

Definition at line 2609 of file net.cpp.

void CConnman::SetMaxOutboundTimeframe ( uint64_t  timeframe)

set the timeframe for the max outbound target

Definition at line 2641 of file net.cpp.

Here is the call graph for this function:

void CConnman::SetNetworkActive ( bool  active)

Definition at line 2211 of file net.cpp.

void CConnman::SetServices ( const CService addr,
ServiceFlags  nServices 
)

Definition at line 2495 of file net.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void CConnman::SetTryNewOutboundPeer ( bool  flag)

Definition at line 1679 of file net.cpp.

Here is the caller graph for this function:

size_t CConnman::SocketSendData ( CNode pnode) const
private

Definition at line 845 of file net.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool CConnman::Start ( CScheduler scheduler,
const Options options 
)

Definition at line 2285 of file net.cpp.

Here is the call graph for this function:

void CConnman::Stop ( )

Definition at line 2430 of file net.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void CConnman::SweepBanned ( )
private

clean unused entries (if bantime has expired)

Definition at line 573 of file net.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void CConnman::ThreadDNSAddressSeed ( )
private

Definition at line 1568 of file net.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void CConnman::ThreadMessageHandler ( )
private

Definition at line 2007 of file net.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void CConnman::ThreadOpenAddedConnections ( )
private

Definition at line 1931 of file net.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void CConnman::ThreadOpenConnections ( )
private

Definition at line 1705 of file net.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void CConnman::ThreadSocketHandler ( )
private

Definition at line 1124 of file net.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool CConnman::Unban ( const CNetAddr ip)

Definition at line 540 of file net.cpp.

bool CConnman::Unban ( const CSubNet ip)

Definition at line 545 of file net.cpp.

Here is the call graph for this function:

void CConnman::WakeMessageHandler ( )

Definition at line 1420 of file net.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Friends And Related Function Documentation

friend struct CConnmanTest
friend

Definition at line 439 of file net.h.

Member Data Documentation

CAddrMan CConnman::addrman
private

Definition at line 390 of file net.h.

CClientUIInterface* CConnman::clientInterface
private

Definition at line 413 of file net.h.

std::condition_variable CConnman::condMsgProc
private

Definition at line 422 of file net.h.

CCriticalSection CConnman::cs_setBanned
private

Definition at line 387 of file net.h.

CCriticalSection CConnman::cs_totalBytesRecv
private

Definition at line 366 of file net.h.

CCriticalSection CConnman::cs_totalBytesSent
private

Definition at line 367 of file net.h.

CCriticalSection CConnman::cs_vAddedNodes
private

Definition at line 394 of file net.h.

CCriticalSection CConnman::cs_vNodes
mutableprivate

Definition at line 397 of file net.h.

CCriticalSection CConnman::cs_vOneShots
private

Definition at line 392 of file net.h.

bool CConnman::fAddressesInitialized
private

Definition at line 389 of file net.h.

std::atomic<bool> CConnman::flagInterruptMsgProc
private

Definition at line 424 of file net.h.

bool CConnman::fMsgProcWake
private

flag for waking the message processor.

Definition at line 420 of file net.h.

std::atomic<bool> CConnman::fNetworkActive
private

Definition at line 385 of file net.h.

CThreadInterrupt CConnman::interruptNet
private

Definition at line 426 of file net.h.

NetEventsInterface* CConnman::m_msgproc
private

Definition at line 414 of file net.h.

std::atomic_bool CConnman::m_try_another_outbound_peer
private

flag for deciding to connect to an extra outbound peer, in excess of nMaxOutbound This takes the place of a feeler connection

Definition at line 437 of file net.h.

std::mutex CConnman::mutexMsgProc
private

Definition at line 423 of file net.h.

std::atomic<int> CConnman::nBestHeight
private

Definition at line 412 of file net.h.

std::atomic<NodeId> CConnman::nLastNodeId
private

Definition at line 398 of file net.h.

ServiceFlags CConnman::nLocalServices
private

Services this instance offers.

Definition at line 401 of file net.h.

int CConnman::nMaxAddnode
private

Definition at line 410 of file net.h.

int CConnman::nMaxConnections
private

Definition at line 408 of file net.h.

int CConnman::nMaxFeeler
private

Definition at line 411 of file net.h.

int CConnman::nMaxOutbound
private

Definition at line 409 of file net.h.

uint64_t CConnman::nMaxOutboundCycleStartTime
private

Definition at line 373 of file net.h.

uint64_t CConnman::nMaxOutboundLimit
private

Definition at line 374 of file net.h.

uint64_t CConnman::nMaxOutboundTimeframe
private

Definition at line 375 of file net.h.

uint64_t CConnman::nMaxOutboundTotalBytesSentInCycle
private

Definition at line 372 of file net.h.

unsigned int CConnman::nReceiveFloodSize
private

Definition at line 382 of file net.h.

ServiceFlags CConnman::nRelevantServices
private

Services this instance cares about.

Definition at line 404 of file net.h.

const uint64_t CConnman::nSeed0
private

SipHasher seeds for deterministic randomness.

Definition at line 417 of file net.h.

const uint64_t CConnman::nSeed1
private

Definition at line 417 of file net.h.

unsigned int CConnman::nSendBufferMaxSize
private

Definition at line 381 of file net.h.

uint64_t CConnman::nTotalBytesRecv
private

Definition at line 368 of file net.h.

uint64_t CConnman::nTotalBytesSent
private

Definition at line 369 of file net.h.

CSemaphore* CConnman::semAddnode
private

Definition at line 407 of file net.h.

CSemaphore* CConnman::semOutbound
private

Definition at line 406 of file net.h.

banmap_t CConnman::setBanned
private

Definition at line 386 of file net.h.

bool CConnman::setBannedIsDirty
private

Definition at line 388 of file net.h.

std::thread CConnman::threadDNSAddressSeed
private

Definition at line 428 of file net.h.

std::thread CConnman::threadMessageHandler
private

Definition at line 432 of file net.h.

std::thread CConnman::threadOpenAddedConnections
private

Definition at line 430 of file net.h.

std::thread CConnman::threadOpenConnections
private

Definition at line 431 of file net.h.

std::thread CConnman::threadSocketHandler
private

Definition at line 429 of file net.h.

std::vector<std::string> CConnman::vAddedNodes
private

Definition at line 393 of file net.h.

std::vector<ListenSocket> CConnman::vhListenSocket
private

Definition at line 384 of file net.h.

std::vector<CNode*> CConnman::vNodes
private

Definition at line 395 of file net.h.

std::list<CNode*> CConnman::vNodesDisconnected
private

Definition at line 396 of file net.h.

std::deque<std::string> CConnman::vOneShots
private

Definition at line 391 of file net.h.

std::vector<CSubNet> CConnman::vWhitelistedRange
private

Definition at line 379 of file net.h.


The documentation for this class was generated from the following files: