Fabcoin Core
0.16.2
P2P Digital Currency
|
Information about a peer. More...
#include <net.h>
Public Member Functions | |
CNode (NodeId id, ServiceFlags nLocalServicesIn, int nMyStartingHeightIn, SOCKET hSocketIn, const CAddress &addrIn, uint64_t nKeyedNetGroupIn, uint64_t nLocalHostNonceIn, const CAddress &addrBindIn, const std::string &addrNameIn="", bool fInboundIn=false) | |
~CNode () | |
NodeId | GetId () const |
uint64_t | GetLocalNonce () const |
int | GetMyStartingHeight () const |
int | GetRefCount () const |
bool | ReceiveMsgBytes (const char *pch, unsigned int nBytes, bool &complete) |
void | SetRecvVersion (int nVersionIn) |
int | GetRecvVersion () const |
void | SetSendVersion (int nVersionIn) |
int | GetSendVersion () const |
CService | GetAddrLocal () const |
void | SetAddrLocal (const CService &addrLocalIn) |
May not be called more than once. More... | |
CNode * | AddRef () |
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 | PushBlockHash (const uint256 &hash) |
void | AskFor (const CInv &inv) |
void | CloseSocketDisconnect () |
void | copyStats (CNodeStats &stats) |
ServiceFlags | GetLocalServices () const |
std::string | GetAddrName () const |
void | MaybeSetAddrName (const std::string &addrNameIn) |
Sets the addrName only if it was not previously set. More... | |
Protected Attributes | |
mapMsgCmdSize | mapSendBytesPerMsgCmd |
mapMsgCmdSize | mapRecvBytesPerMsgCmd |
Private Member Functions | |
CNode (const CNode &) | |
void | operator= (const CNode &) |
Private Attributes | |
const NodeId | id |
const uint64_t | nLocalHostNonce |
const ServiceFlags | nLocalServices |
const int | nMyStartingHeight |
int | nSendVersion |
std::list< CNetMessage > | vRecvMsg |
CCriticalSection | cs_addrName |
std::string | addrName |
CService | addrLocal |
CCriticalSection | cs_addrLocal |
Friends | |
class | CConnman |
CNode::CNode | ( | NodeId | id, |
ServiceFlags | nLocalServicesIn, | ||
int | nMyStartingHeightIn, | ||
SOCKET | hSocketIn, | ||
const CAddress & | addrIn, | ||
uint64_t | nKeyedNetGroupIn, | ||
uint64_t | nLocalHostNonceIn, | ||
const CAddress & | addrBindIn, | ||
const std::string & | addrNameIn = "" , |
||
bool | fInboundIn = false |
||
) |
CNode::~CNode | ( | ) |
|
private |
|
inline |
|
inline |
|
inline |
void CNode::AskFor | ( | const CInv & | inv | ) |
void CNode::CloseSocketDisconnect | ( | ) |
void CNode::copyStats | ( | CNodeStats & | stats | ) |
CService CNode::GetAddrLocal | ( | ) | const |
std::string CNode::GetAddrName | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
int CNode::GetSendVersion | ( | ) | const |
void CNode::MaybeSetAddrName | ( | const std::string & | addrNameIn | ) |
|
private |
|
inline |
|
inline |
bool CNode::ReceiveMsgBytes | ( | const char * | pch, |
unsigned int | nBytes, | ||
bool & | complete | ||
) |
void CNode::SetAddrLocal | ( | const CService & | addrLocalIn | ) |
|
inline |
void CNode::SetSendVersion | ( | int | nVersionIn | ) |
CRollingBloomFilter CNode::addrKnown |
|
mutableprivate |
|
mutableprivate |
CCriticalSection CNode::cs_feeFilter |
CCriticalSection CNode::cs_filter |
CCriticalSection CNode::cs_hSocket |
CCriticalSection CNode::cs_inventory |
CCriticalSection CNode::cs_sendProcessing |
CCriticalSection CNode::cs_SubVer |
CCriticalSection CNode::cs_vProcessMsg |
CCriticalSection CNode::cs_vRecv |
CCriticalSection CNode::cs_vSend |
CRollingBloomFilter CNode::filterInventoryKnown |
CSemaphoreGrant CNode::grantOutbound |
|
protected |
|
protected |
|
private |
std::atomic<ServiceFlags> CNode::nServices |
ServiceFlags CNode::nServicesExpected |
CBloomFilter* CNode::pfilter |
std::list<CNetMessage> CNode::vProcessMsg |
|
private |