PRCYCoin  2.0.0.7rc1
P2P Digital Currency
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Member Functions | Static Private Attributes | List of all members
CNode Class Reference

Information about a peer. More...

#include <net.h>

Collaboration diagram for CNode:
[legend]

Public Member Functions

 CNode (SOCKET hSocketIn, CAddress addrIn, std::string addrNameIn="", bool fInboundIn=false)
 
 ~CNode ()
 
NodeId GetId () const
 
int GetRefCount ()
 
unsigned int GetTotalRecvSize ()
 
bool ReceiveMsgBytes (const char *pch, unsigned int nBytes)
 
void SetRecvVersion (int nVersionIn)
 
CNodeAddRef ()
 
void Release ()
 
void AddAddressKnown (const CAddress &addr)
 
void PushAddress (const CAddress &_addr, FastRandomContext &insecure_rand)
 
void AddInventoryKnown (const CInv &inv)
 
void PushInventory (const CInv &inv)
 
void AskFor (const CInv &inv, bool fImmediateRetry=false)
 
void BeginMessage (const char *pszCommand) EXCLUSIVE_LOCK_FUNCTION(cs_vSend)
 
void AbortMessage () UNLOCK_FUNCTION(cs_vSend)
 
void EndMessage () UNLOCK_FUNCTION(cs_vSend)
 
void PushVersion ()
 
void PushMessage (const char *pszCommand)
 
template<typename T1 >
void PushMessage (const char *pszCommand, const T1 &a1)
 
template<typename T1 , typename T2 >
void PushMessage (const char *pszCommand, const T1 &a1, const T2 &a2)
 
template<typename T1 , typename T2 , typename T3 >
void PushMessage (const char *pszCommand, const T1 &a1, const T2 &a2, const T3 &a3)
 
template<typename T1 , typename T2 , typename T3 , typename T4 >
void PushMessage (const char *pszCommand, const T1 &a1, const T2 &a2, const T3 &a3, const T4 &a4)
 
template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 >
void PushMessage (const char *pszCommand, const T1 &a1, const T2 &a2, const T3 &a3, const T4 &a4, const T5 &a5)
 
template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 >
void PushMessage (const char *pszCommand, const T1 &a1, const T2 &a2, const T3 &a3, const T4 &a4, const T5 &a5, const T6 &a6)
 
template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 >
void PushMessage (const char *pszCommand, const T1 &a1, const T2 &a2, const T3 &a3, const T4 &a4, const T5 &a5, const T6 &a6, const T7 &a7)
 
template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 >
void PushMessage (const char *pszCommand, const T1 &a1, const T2 &a2, const T3 &a3, const T4 &a4, const T5 &a5, const T6 &a6, const T7 &a7, const T8 &a8)
 
template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 , typename T9 >
void PushMessage (const char *pszCommand, const T1 &a1, const T2 &a2, const T3 &a3, const T4 &a4, const T5 &a5, const T6 &a6, const T7 &a7, const T8 &a8, const T9 &a9)
 
template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 , typename T9 , typename T10 >
void PushMessage (const char *pszCommand, const T1 &a1, const T2 &a2, const T3 &a3, const T4 &a4, const T5 &a5, const T6 &a6, const T7 &a7, const T8 &a8, const T9 &a9, const T10 &a10)
 
template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 , typename T9 , typename T10 , typename T11 >
void PushMessage (const char *pszCommand, const T1 &a1, const T2 &a2, const T3 &a3, const T4 &a4, const T5 &a5, const T6 &a6, const T7 &a7, const T8 &a8, const T9 &a9, const T10 &a10, const T11 &a11)
 
template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 , typename T9 , typename T10 , typename T11 , typename T12 >
void PushMessage (const char *pszCommand, const T1 &a1, const T2 &a2, const T3 &a3, const T4 &a4, const T5 &a5, const T6 &a6, const T7 &a7, const T8 &a8, const T9 &a9, const T10 &a10, const T11 &a11, const T12 &a12)
 
bool HasFulfilledRequest (std::string strRequest)
 
void ClearFulfilledRequest (std::string strRequest)
 
void FulfilledRequest (std::string strRequest)
 
bool IsSubscribed (unsigned int nChannel)
 
void Subscribe (unsigned int nChannel, unsigned int nHops=0)
 
void CancelSubscribe (unsigned int nChannel)
 
void CloseSocketDisconnect ()
 
bool DisconnectOldProtocol (int nVersionRequired, std::string strLastCommand="")
 
bool DisconnectOldVersion (std::string strSubVer, int nHeight, std::string strLastCommand="")
 
void copyStats (CNodeStats &stats)
 

Static Public Member Functions

static void ClearBanned ()
 
static bool IsBanned (CNetAddr ip)
 
static bool IsBanned (CSubNet subnet)
 
static void Ban (const CNetAddr &ip, const BanReason &banReason, int64_t bantimeoffset=0, bool sinceUnixEpoch=false)
 
static void Ban (const CSubNet &subNet, const BanReason &banReason, int64_t bantimeoffset=0, bool sinceUnixEpoch=false)
 
static bool Unban (const CNetAddr &ip)
 
static bool Unban (const CSubNet &ip)
 
static void GetBanned (banmap_t &banmap)
 
static void SetBanned (const banmap_t &banmap)
 
static bool BannedSetIsDirty ()
 check is the banlist has unwritten changes More...
 
static void SetBannedSetDirty (bool dirty=true)
 set the "dirty" flag for the banlist More...
 
static void SweepBanned ()
 clean unused entires (if bantime has expired) More...
 
static bool IsWhitelistedRange (const CNetAddr &ip)
 
static void AddWhitelistedRange (const CSubNet &subnet)
 
static void RecordBytesRecv (uint64_t bytes)
 
static void RecordBytesSent (uint64_t bytes)
 
static uint64_t GetTotalBytesRecv ()
 
static uint64_t GetTotalBytesSent ()
 

Public Attributes

ServiceFlags nServices
 
ServiceFlags nServicesExpected
 
SOCKET hSocket
 
CDataStream ssSend
 
size_t nSendSize
 
size_t nSendOffset
 
uint64_t nSendBytes
 
std::deque< CSerializeDatavSendMsg
 
RecursiveMutex cs_vSend
 
RecursiveMutex cs_sendProcessing
 
std::deque< CInvvRecvGetData
 
std::deque< CNetMessagevRecvMsg
 
RecursiveMutex cs_vRecvMsg
 
uint64_t nRecvBytes
 
int nRecvVersion
 
int64_t nLastSend
 
int64_t nLastRecv
 
int64_t nTimeConnected
 
int64_t nTimeOffset
 
CAddress addr
 
std::string addrName
 
CService addrLocal
 
int nVersion
 
std::string strSubVer
 
std::string cleanSubVer
 
bool fWhitelisted
 
bool fFeeler
 
bool fOneShot
 
bool fClient
 
bool fInbound
 
bool fNetworkNode
 
bool fSuccessfullyConnected
 
std::atomic_bool fDisconnect
 
bool fRelayTxes
 
CSemaphoreGrant grantOutbound
 
RecursiveMutex cs_filter
 
CBloomFilterpfilter
 
int nRefCount
 
NodeId id
 
uint256 hashContinue
 
int nStartingHeight
 
std::vector< CAddressvAddrToSend
 
CRollingBloomFilter addrKnown
 
bool fGetAddr
 
std::set< uint256setKnown
 
int64_t nNextAddrSend
 
int64_t nNextLocalAddrSend
 
CRollingBloomFilter filterInventoryKnown
 
std::vector< CInvvInventoryToSend
 
RecursiveMutex cs_inventory
 
std::multimap< int64_t, CInvmapAskFor
 
std::vector< uint256vBlockRequested
 
int64_t nNextInvSend
 
uint64_t nPingNonceSent
 
int64_t nPingUsecStart
 
int64_t nPingUsecTime
 
int64_t nMinPingUsecTime
 
bool fPingQueued
 

Protected Member Functions

void Fuzz (int nChance)
 

Protected Attributes

std::vector< std::string > vecRequestsFulfilled
 

Static Protected Attributes

static banmap_t setBanned
 
static RecursiveMutex cs_setBanned
 
static bool setBannedIsDirty
 
static std::vector< CSubNetvWhitelistedRange
 
static RecursiveMutex cs_vWhitelistedRange
 

Private Member Functions

 CNode (const CNode &)
 
void operator= (const CNode &)
 

Static Private Attributes

static RecursiveMutex cs_totalBytesRecv
 
static RecursiveMutex cs_totalBytesSent
 
static uint64_t nTotalBytesRecv = 0
 
static uint64_t nTotalBytesSent = 0
 

Detailed Description

Information about a peer.

Definition at line 306 of file net.h.

Constructor & Destructor Documentation

◆ CNode() [1/2]

CNode::CNode ( SOCKET  hSocketIn,
CAddress  addrIn,
std::string  addrNameIn = "",
bool  fInboundIn = false 
)

Definition at line 2245 of file net.cpp.

◆ ~CNode()

CNode::~CNode ( )

Definition at line 2307 of file net.cpp.

Here is the call graph for this function:

◆ CNode() [2/2]

CNode::CNode ( const CNode )
private

Member Function Documentation

◆ AbortMessage()

void CNode::AbortMessage ( )
Todo:
: Document the precondition of this function. Is cs_vSend locked?

Definition at line 2358 of file net.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AddAddressKnown()

void CNode::AddAddressKnown ( const CAddress addr)
inline

Definition at line 466 of file net.h.

Here is the call graph for this function:

◆ AddInventoryKnown()

void CNode::AddInventoryKnown ( const CInv inv)
inline

Definition at line 486 of file net.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AddRef()

CNode* CNode::AddRef ( )
inline

Definition at line 454 of file net.h.

Here is the caller graph for this function:

◆ AddWhitelistedRange()

void CNode::AddWhitelistedRange ( const CSubNet subnet)
static

Definition at line 633 of file net.cpp.

◆ AskFor()

void CNode::AskFor ( const CInv inv,
bool  fImmediateRetry = false 
)

Definition at line 2316 of file net.cpp.

◆ Ban() [1/2]

void CNode::Ban ( const CNetAddr ip,
const BanReason banReason,
int64_t  bantimeoffset = 0,
bool  sinceUnixEpoch = false 
)
static

Definition at line 522 of file net.cpp.

Here is the caller graph for this function:

◆ Ban() [2/2]

void CNode::Ban ( const CSubNet subNet,
const BanReason banReason,
int64_t  bantimeoffset = 0,
bool  sinceUnixEpoch = false 
)
static

Definition at line 527 of file net.cpp.

Here is the call graph for this function:

◆ BannedSetIsDirty()

bool CNode::BannedSetIsDirty ( )
static

check is the banlist has unwritten changes

Definition at line 611 of file net.cpp.

◆ BeginMessage()

void CNode::BeginMessage ( const char *  pszCommand)
Todo:
: Document the postcondition of this function. Is cs_vSend locked?

Definition at line 2351 of file net.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CancelSubscribe()

void CNode::CancelSubscribe ( unsigned int  nChannel)

◆ ClearBanned()

void CNode::ClearBanned ( )
static

Definition at line 484 of file net.cpp.

Here is the caller graph for this function:

◆ ClearFulfilledRequest()

void CNode::ClearFulfilledRequest ( std::string  strRequest)
inline

Definition at line 693 of file net.h.

◆ CloseSocketDisconnect()

void CNode::CloseSocketDisconnect ( )

Definition at line 417 of file net.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ copyStats()

void CNode::copyStats ( CNodeStats stats)

Definition at line 641 of file net.cpp.

Here is the call graph for this function:

◆ DisconnectOldProtocol()

bool CNode::DisconnectOldProtocol ( int  nVersionRequired,
std::string  strLastCommand = "" 
)

Definition at line 430 of file net.cpp.

Here is the call graph for this function:

◆ DisconnectOldVersion()

bool CNode::DisconnectOldVersion ( std::string  strSubVer,
int  nHeight,
std::string  strLastCommand = "" 
)

Definition at line 442 of file net.cpp.

Here is the call graph for this function:

◆ EndMessage()

void CNode::EndMessage ( )
Todo:
: Document the precondition of this function. Is cs_vSend locked?

Definition at line 2366 of file net.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FulfilledRequest()

void CNode::FulfilledRequest ( std::string  strRequest)
inline

Definition at line 705 of file net.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Fuzz()

void CNode::Fuzz ( int  nChance)
protected

Definition at line 2107 of file net.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetBanned()

void CNode::GetBanned ( banmap_t banmap)
static

Definition at line 573 of file net.cpp.

Here is the caller graph for this function:

◆ GetId()

NodeId CNode::GetId ( ) const
inline

Definition at line 423 of file net.h.

Here is the caller graph for this function:

◆ GetRefCount()

int CNode::GetRefCount ( )
inline

Definition at line 428 of file net.h.

Here is the caller graph for this function:

◆ GetTotalBytesRecv()

uint64_t CNode::GetTotalBytesRecv ( )
static

Definition at line 2097 of file net.cpp.

Here is the caller graph for this function:

◆ GetTotalBytesSent()

uint64_t CNode::GetTotalBytesSent ( )
static

Definition at line 2102 of file net.cpp.

Here is the caller graph for this function:

◆ GetTotalRecvSize()

unsigned int CNode::GetTotalRecvSize ( )
inline

Definition at line 435 of file net.h.

◆ HasFulfilledRequest()

bool CNode::HasFulfilledRequest ( std::string  strRequest)
inline

Definition at line 685 of file net.h.

Here is the caller graph for this function:

◆ IsBanned() [1/2]

bool CNode::IsBanned ( CNetAddr  ip)
static

Definition at line 494 of file net.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsBanned() [2/2]

bool CNode::IsBanned ( CSubNet  subnet)
static

Definition at line 508 of file net.cpp.

Here is the call graph for this function:

◆ IsSubscribed()

bool CNode::IsSubscribed ( unsigned int  nChannel)

◆ IsWhitelistedRange()

bool CNode::IsWhitelistedRange ( const CNetAddr ip)
static

Definition at line 624 of file net.cpp.

Here is the caller graph for this function:

◆ operator=()

void CNode::operator= ( const CNode )
private

◆ PushAddress()

void CNode::PushAddress ( const CAddress _addr,
FastRandomContext insecure_rand 
)
inline

Definition at line 471 of file net.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ PushInventory()

void CNode::PushInventory ( const CInv inv)
inline

Definition at line 494 of file net.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ PushMessage() [1/13]

void CNode::PushMessage ( const char *  pszCommand)
inline

Definition at line 518 of file net.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ PushMessage() [2/13]

template<typename T1 >
void CNode::PushMessage ( const char *  pszCommand,
const T1 &  a1 
)
inline

Definition at line 530 of file net.h.

Here is the call graph for this function:

◆ PushMessage() [3/13]

template<typename T1 , typename T2 >
void CNode::PushMessage ( const char *  pszCommand,
const T1 &  a1,
const T2 &  a2 
)
inline

Definition at line 543 of file net.h.

Here is the call graph for this function:

◆ PushMessage() [4/13]

template<typename T1 , typename T2 , typename T3 >
void CNode::PushMessage ( const char *  pszCommand,
const T1 &  a1,
const T2 &  a2,
const T3 &  a3 
)
inline

Definition at line 556 of file net.h.

Here is the call graph for this function:

◆ PushMessage() [5/13]

template<typename T1 , typename T2 , typename T3 , typename T4 >
void CNode::PushMessage ( const char *  pszCommand,
const T1 &  a1,
const T2 &  a2,
const T3 &  a3,
const T4 &  a4 
)
inline

Definition at line 569 of file net.h.

Here is the call graph for this function:

◆ PushMessage() [6/13]

template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 >
void CNode::PushMessage ( const char *  pszCommand,
const T1 &  a1,
const T2 &  a2,
const T3 &  a3,
const T4 &  a4,
const T5 &  a5 
)
inline

Definition at line 582 of file net.h.

Here is the call graph for this function:

◆ PushMessage() [7/13]

template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 >
void CNode::PushMessage ( const char *  pszCommand,
const T1 &  a1,
const T2 &  a2,
const T3 &  a3,
const T4 &  a4,
const T5 &  a5,
const T6 &  a6 
)
inline

Definition at line 595 of file net.h.

Here is the call graph for this function:

◆ PushMessage() [8/13]

template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 >
void CNode::PushMessage ( const char *  pszCommand,
const T1 &  a1,
const T2 &  a2,
const T3 &  a3,
const T4 &  a4,
const T5 &  a5,
const T6 &  a6,
const T7 &  a7 
)
inline

Definition at line 608 of file net.h.

Here is the call graph for this function:

◆ PushMessage() [9/13]

template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 >
void CNode::PushMessage ( const char *  pszCommand,
const T1 &  a1,
const T2 &  a2,
const T3 &  a3,
const T4 &  a4,
const T5 &  a5,
const T6 &  a6,
const T7 &  a7,
const T8 &  a8 
)
inline

Definition at line 621 of file net.h.

Here is the call graph for this function:

◆ PushMessage() [10/13]

template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 , typename T9 >
void CNode::PushMessage ( const char *  pszCommand,
const T1 &  a1,
const T2 &  a2,
const T3 &  a3,
const T4 &  a4,
const T5 &  a5,
const T6 &  a6,
const T7 &  a7,
const T8 &  a8,
const T9 &  a9 
)
inline

Definition at line 634 of file net.h.

Here is the call graph for this function:

◆ PushMessage() [11/13]

template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 , typename T9 , typename T10 >
void CNode::PushMessage ( const char *  pszCommand,
const T1 &  a1,
const T2 &  a2,
const T3 &  a3,
const T4 &  a4,
const T5 &  a5,
const T6 &  a6,
const T7 &  a7,
const T8 &  a8,
const T9 &  a9,
const T10 &  a10 
)
inline

Definition at line 647 of file net.h.

Here is the call graph for this function:

◆ PushMessage() [12/13]

template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 , typename T9 , typename T10 , typename T11 >
void CNode::PushMessage ( const char *  pszCommand,
const T1 &  a1,
const T2 &  a2,
const T3 &  a3,
const T4 &  a4,
const T5 &  a5,
const T6 &  a6,
const T7 &  a7,
const T8 &  a8,
const T9 &  a9,
const T10 &  a10,
const T11 &  a11 
)
inline

Definition at line 660 of file net.h.

Here is the call graph for this function:

◆ PushMessage() [13/13]

template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 , typename T9 , typename T10 , typename T11 , typename T12 >
void CNode::PushMessage ( const char *  pszCommand,
const T1 &  a1,
const T2 &  a2,
const T3 &  a3,
const T4 &  a4,
const T5 &  a5,
const T6 &  a6,
const T7 &  a7,
const T8 &  a8,
const T9 &  a9,
const T10 &  a10,
const T11 &  a11,
const T12 &  a12 
)
inline

Definition at line 673 of file net.h.

Here is the call graph for this function:

◆ PushVersion()

void CNode::PushVersion ( )

when NTP implemented, change to just nTime = GetAdjustedTime()

Definition at line 461 of file net.cpp.

Here is the call graph for this function:

◆ ReceiveMsgBytes()

bool CNode::ReceiveMsgBytes ( const char *  pch,
unsigned int  nBytes 
)

Definition at line 680 of file net.cpp.

Here is the call graph for this function:

◆ RecordBytesRecv()

void CNode::RecordBytesRecv ( uint64_t  bytes)
static

Definition at line 2087 of file net.cpp.

◆ RecordBytesSent()

void CNode::RecordBytesSent ( uint64_t  bytes)
static

Definition at line 2092 of file net.cpp.

◆ Release()

void CNode::Release ( )
inline

Definition at line 460 of file net.h.

Here is the caller graph for this function:

◆ SetBanned()

void CNode::SetBanned ( const banmap_t banmap)
static

Definition at line 578 of file net.cpp.

◆ SetBannedSetDirty()

void CNode::SetBannedSetDirty ( bool  dirty = true)
static

set the "dirty" flag for the banlist

Definition at line 616 of file net.cpp.

◆ SetRecvVersion()

void CNode::SetRecvVersion ( int  nVersionIn)
inline

Definition at line 447 of file net.h.

◆ Subscribe()

void CNode::Subscribe ( unsigned int  nChannel,
unsigned int  nHops = 0 
)

◆ SweepBanned()

void CNode::SweepBanned ( )
static

clean unused entires (if bantime has expired)

Definition at line 584 of file net.cpp.

Here is the call graph for this function:

◆ Unban() [1/2]

bool CNode::Unban ( const CNetAddr ip)
static

Definition at line 556 of file net.cpp.

Here is the caller graph for this function:

◆ Unban() [2/2]

bool CNode::Unban ( const CSubNet ip)
static

Definition at line 561 of file net.cpp.

Member Data Documentation

◆ addr

CAddress CNode::addr

Definition at line 332 of file net.h.

◆ addrKnown

CRollingBloomFilter CNode::addrKnown

Definition at line 383 of file net.h.

◆ addrLocal

CService CNode::addrLocal

Definition at line 334 of file net.h.

◆ addrName

std::string CNode::addrName

Definition at line 333 of file net.h.

◆ cleanSubVer

std::string CNode::cleanSubVer

Definition at line 340 of file net.h.

◆ cs_filter

RecursiveMutex CNode::cs_filter

Definition at line 355 of file net.h.

◆ cs_inventory

RecursiveMutex CNode::cs_inventory

Definition at line 392 of file net.h.

◆ cs_sendProcessing

RecursiveMutex CNode::cs_sendProcessing

Definition at line 320 of file net.h.

◆ cs_setBanned

RecursiveMutex CNode::cs_setBanned
staticprotected

Definition at line 364 of file net.h.

◆ cs_totalBytesRecv

RecursiveMutex CNode::cs_totalBytesRecv
staticprivate

Definition at line 414 of file net.h.

◆ cs_totalBytesSent

RecursiveMutex CNode::cs_totalBytesSent
staticprivate

Definition at line 415 of file net.h.

◆ cs_vRecvMsg

RecursiveMutex CNode::cs_vRecvMsg

Definition at line 324 of file net.h.

◆ cs_vSend

RecursiveMutex CNode::cs_vSend

Definition at line 318 of file net.h.

◆ cs_vWhitelistedRange

RecursiveMutex CNode::cs_vWhitelistedRange
staticprotected

Definition at line 372 of file net.h.

◆ fClient

bool CNode::fClient

Definition at line 344 of file net.h.

◆ fDisconnect

std::atomic_bool CNode::fDisconnect

Definition at line 348 of file net.h.

◆ fFeeler

bool CNode::fFeeler

Definition at line 342 of file net.h.

◆ fGetAddr

bool CNode::fGetAddr

Definition at line 384 of file net.h.

◆ filterInventoryKnown

CRollingBloomFilter CNode::filterInventoryKnown

Definition at line 390 of file net.h.

◆ fInbound

bool CNode::fInbound

Definition at line 345 of file net.h.

◆ fNetworkNode

bool CNode::fNetworkNode

Definition at line 346 of file net.h.

◆ fOneShot

bool CNode::fOneShot

Definition at line 343 of file net.h.

◆ fPingQueued

bool CNode::fPingQueued

Definition at line 407 of file net.h.

◆ fRelayTxes

bool CNode::fRelayTxes

Definition at line 353 of file net.h.

◆ fSuccessfullyConnected

bool CNode::fSuccessfullyConnected

Definition at line 347 of file net.h.

◆ fWhitelisted

bool CNode::fWhitelisted

Definition at line 341 of file net.h.

◆ grantOutbound

CSemaphoreGrant CNode::grantOutbound

Definition at line 354 of file net.h.

◆ hashContinue

uint256 CNode::hashContinue

Definition at line 378 of file net.h.

◆ hSocket

SOCKET CNode::hSocket

Definition at line 312 of file net.h.

◆ id

NodeId CNode::id

Definition at line 358 of file net.h.

◆ mapAskFor

std::multimap<int64_t, CInv> CNode::mapAskFor

Definition at line 393 of file net.h.

◆ nLastRecv

int64_t CNode::nLastRecv

Definition at line 329 of file net.h.

◆ nLastSend

int64_t CNode::nLastSend

Definition at line 328 of file net.h.

◆ nMinPingUsecTime

int64_t CNode::nMinPingUsecTime

Definition at line 405 of file net.h.

◆ nNextAddrSend

int64_t CNode::nNextAddrSend

Definition at line 386 of file net.h.

◆ nNextInvSend

int64_t CNode::nNextInvSend

Definition at line 395 of file net.h.

◆ nNextLocalAddrSend

int64_t CNode::nNextLocalAddrSend

Definition at line 387 of file net.h.

◆ nPingNonceSent

uint64_t CNode::nPingNonceSent

Definition at line 399 of file net.h.

◆ nPingUsecStart

int64_t CNode::nPingUsecStart

Definition at line 401 of file net.h.

◆ nPingUsecTime

int64_t CNode::nPingUsecTime

Definition at line 403 of file net.h.

◆ nRecvBytes

uint64_t CNode::nRecvBytes

Definition at line 325 of file net.h.

◆ nRecvVersion

int CNode::nRecvVersion

Definition at line 326 of file net.h.

◆ nRefCount

int CNode::nRefCount

Definition at line 357 of file net.h.

◆ nSendBytes

uint64_t CNode::nSendBytes

Definition at line 316 of file net.h.

◆ nSendOffset

size_t CNode::nSendOffset

Definition at line 315 of file net.h.

◆ nSendSize

size_t CNode::nSendSize

Definition at line 314 of file net.h.

◆ nServices

ServiceFlags CNode::nServices

Definition at line 310 of file net.h.

◆ nServicesExpected

ServiceFlags CNode::nServicesExpected

Definition at line 311 of file net.h.

◆ nStartingHeight

int CNode::nStartingHeight

Definition at line 379 of file net.h.

◆ nTimeConnected

int64_t CNode::nTimeConnected

Definition at line 330 of file net.h.

◆ nTimeOffset

int64_t CNode::nTimeOffset

Definition at line 331 of file net.h.

◆ nTotalBytesRecv

uint64_t CNode::nTotalBytesRecv = 0
staticprivate

Definition at line 416 of file net.h.

◆ nTotalBytesSent

uint64_t CNode::nTotalBytesSent = 0
staticprivate

Definition at line 417 of file net.h.

◆ nVersion

int CNode::nVersion

Definition at line 335 of file net.h.

◆ pfilter

CBloomFilter* CNode::pfilter

Definition at line 356 of file net.h.

◆ setBanned

banmap_t CNode::setBanned
staticprotected

Definition at line 363 of file net.h.

◆ setBannedIsDirty

bool CNode::setBannedIsDirty
staticprotected

Definition at line 365 of file net.h.

◆ setKnown

std::set<uint256> CNode::setKnown

Definition at line 385 of file net.h.

◆ ssSend

CDataStream CNode::ssSend

Definition at line 313 of file net.h.

◆ strSubVer

std::string CNode::strSubVer

Definition at line 340 of file net.h.

◆ vAddrToSend

std::vector<CAddress> CNode::vAddrToSend

Definition at line 382 of file net.h.

◆ vBlockRequested

std::vector<uint256> CNode::vBlockRequested

Definition at line 394 of file net.h.

◆ vecRequestsFulfilled

std::vector<std::string> CNode::vecRequestsFulfilled
protected

Definition at line 367 of file net.h.

◆ vInventoryToSend

std::vector<CInv> CNode::vInventoryToSend

Definition at line 391 of file net.h.

◆ vRecvGetData

std::deque<CInv> CNode::vRecvGetData

Definition at line 322 of file net.h.

◆ vRecvMsg

std::deque<CNetMessage> CNode::vRecvMsg

Definition at line 323 of file net.h.

◆ vSendMsg

std::deque<CSerializeData> CNode::vSendMsg

Definition at line 317 of file net.h.

◆ vWhitelistedRange

std::vector< CSubNet > CNode::vWhitelistedRange
staticprotected

Definition at line 371 of file net.h.


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