Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | Public Attributes | List of all members
dev::p2p::NodeEntry Struct Reference

NodeEntry. More...

#include <NodeTable.h>

Inheritance diagram for dev::p2p::NodeEntry:
[legend]
Collaboration diagram for dev::p2p::NodeEntry:
[legend]

Public Member Functions

 NodeEntry (NodeID const &_src, Public const &_pubk, NodeIPEndpoint const &_gw)
 
- Public Member Functions inherited from dev::p2p::Node
 Node ()=default
 
 Node (Node const &)=default
 
 Node (Public _publicKey, NodeIPEndpoint const &_ip, PeerType _peerType=PeerType::Optional)
 
 Node (NodeSpec const &_s, PeerType _peerType=PeerType::Optional)
 
virtual NodeID const & address () const
 
virtual Public const & publicKey () const
 
virtual operator bool () const
 

Public Attributes

unsigned const distance
 Node's distance (xor of _src as integer). More...
 
bool pending = true
 Node will be ignored until Pong is received. More...
 
- Public Attributes inherited from dev::p2p::Node
NodeID id
 
NodeIPEndpoint endpoint
 Endpoints by which we expect to reach node. More...
 
PeerType peerType = PeerType::Optional
 

Detailed Description

NodeEntry.

Entry in Node Table

Definition at line 41 of file NodeTable.h.

Constructor & Destructor Documentation

NodeEntry::NodeEntry ( NodeID const &  _src,
Public const &  _pubk,
NodeIPEndpoint const &  _gw 
)

Definition at line 41 of file NodeTable.cpp.

Here is the caller graph for this function:

Member Data Documentation

unsigned const dev::p2p::NodeEntry::distance

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

Definition at line 44 of file NodeTable.h.

bool dev::p2p::NodeEntry::pending = true

Node will be ignored until Pong is received.

Definition at line 45 of file NodeTable.h.


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