![]() |
BSHA3
0.17.99
P2P Blockchain, based on Bitcoin
|
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 () | |
| CNode (const CNode &)=delete | |
| CNode & | operator= (const CNode &)=delete |
| 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 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 | ( | ) |
|
delete |
|
inline |
|
inline |
| void CNode::copyStats | ( | CNodeStats & | stats | ) |
| CService CNode::GetAddrLocal | ( | ) | const |
| std::string CNode::GetAddrName | ( | ) | const |
|
inline |
|
inline |
| int CNode::GetSendVersion | ( | ) | const |
| void CNode::MaybeSetAddrName | ( | const std::string & | addrNameIn | ) |
|
inline |
|
inline |
| bool CNode::ReceiveMsgBytes | ( | const char * | pch, |
| unsigned int | nBytes, | ||
| bool & | complete | ||
| ) |
| void CNode::SetAddrLocal | ( | const CService & | addrLocalIn | ) |
| 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 |
| std::unique_ptr<CBloomFilter> CNode::pfilter |
| std::list<CNetMessage> CNode::vProcessMsg |
|
private |
1.8.14