TARAXA
dev::p2p::NodeEntry Struct Reference

Entry in Node Table. More...

#include <NodeTable.h>

Collaboration diagram for dev::p2p::NodeEntry:

Public Member Functions

 NodeEntry (h256 const &_hostNodeIDHash, Public const &_pubk, NodeIPEndpoint const &_gw, uint32_t _pongReceivedTime, uint32_t _pongSentTime)
 
bool hasValidEndpointProof () const
 
NodeID const & id () const
 
NodeIPEndpoint endpoint () const
 
PeerType peerType () const
 

Public Attributes

Node node
 
h256 const nodeIDHash
 
int const distance = 0
 Node's distance (xor of _hostNodeIDHash as integer). More...
 
uint32_t lastPongReceivedTime = 0
 
uint32_t lastPongSentTime = 0
 

Detailed Description

Entry in Node Table.

NodeEntry

Constructor & Destructor Documentation

◆ NodeEntry()

dev::p2p::NodeEntry::NodeEntry ( h256 const &  _hostNodeIDHash,
Public const &  _pubk,
NodeIPEndpoint const &  _gw,
uint32_t  _pongReceivedTime,
uint32_t  _pongSentTime 
)
inline

Member Function Documentation

◆ endpoint()

NodeIPEndpoint dev::p2p::NodeEntry::endpoint ( ) const
inline

◆ hasValidEndpointProof()

bool dev::p2p::NodeEntry::hasValidEndpointProof ( ) const
inline

◆ id()

NodeID const& dev::p2p::NodeEntry::id ( ) const
inline

◆ peerType()

PeerType dev::p2p::NodeEntry::peerType ( ) const
inline

Member Data Documentation

◆ distance

int const dev::p2p::NodeEntry::distance = 0

Node's distance (xor of _hostNodeIDHash as integer).

◆ lastPongReceivedTime

uint32_t dev::p2p::NodeEntry::lastPongReceivedTime = 0

◆ lastPongSentTime

uint32_t dev::p2p::NodeEntry::lastPongSentTime = 0

◆ node

Node dev::p2p::NodeEntry::node

◆ nodeIDHash

h256 const dev::p2p::NodeEntry::nodeIDHash

The documentation for this struct was generated from the following file: