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

#include <Common.h>

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

Public Member Functions

 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

NodeID id
 
NodeIPEndpoint endpoint
 Endpoints by which we expect to reach node. More...
 
PeerType peerType = PeerType::Optional
 

Detailed Description

Definition at line 240 of file Common.h.

Constructor & Destructor Documentation

dev::p2p::Node::Node ( )
default
dev::p2p::Node::Node ( Node const &  )
default
dev::p2p::Node::Node ( Public  _publicKey,
NodeIPEndpoint const &  _ip,
PeerType  _peerType = PeerType::Optional 
)
inline

Definition at line 245 of file Common.h.

Node::Node ( NodeSpec const &  _s,
PeerType  _peerType = PeerType::Optional 
)

Definition at line 203 of file Common.cpp.

Here is the call graph for this function:

Member Function Documentation

virtual NodeID const& dev::p2p::Node::address ( ) const
inlinevirtual

Definition at line 248 of file Common.h.

Here is the caller graph for this function:

virtual dev::p2p::Node::operator bool ( ) const
inlinevirtual

Definition at line 251 of file Common.h.

virtual Public const& dev::p2p::Node::publicKey ( ) const
inlinevirtual

Definition at line 249 of file Common.h.

Member Data Documentation

NodeIPEndpoint dev::p2p::Node::endpoint

Endpoints by which we expect to reach node.

Definition at line 258 of file Common.h.

NodeID dev::p2p::Node::id

Definition at line 254 of file Common.h.

PeerType dev::p2p::Node::peerType = PeerType::Optional

Definition at line 261 of file Common.h.


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