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

#include <Common.h>

Collaboration diagram for dev::p2p::NodeSpec:
[legend]

Public Member Functions

 NodeSpec ()
 
 NodeSpec (std::string const &_user)
 Accepts user-readable strings of the form (enode://pubkey@)host({:port,:tcpport.udpport}) More...
 
 NodeSpec (std::string const &_addr, uint16_t _port, int _udpPort=-1)
 
NodeID id () const
 
NodeIPEndpoint nodeIPEndpoint () const
 
std::string enode () const
 

Private Attributes

std::string m_address
 
uint16_t m_tcpPort = 0
 
uint16_t m_udpPort = 0
 
NodeID m_id
 

Detailed Description

Definition at line 214 of file Common.h.

Constructor & Destructor Documentation

dev::p2p::NodeSpec::NodeSpec ( )
inline

Definition at line 216 of file Common.h.

Here is the caller graph for this function:

dev::p2p::NodeSpec::NodeSpec ( std::string const &  _user)

Accepts user-readable strings of the form (enode://pubkey@)host({:port,:tcpport.udpport})

dev::p2p::NodeSpec::NodeSpec ( std::string const &  _addr,
uint16_t  _port,
int  _udpPort = -1 
)
inline

Definition at line 221 of file Common.h.

Member Function Documentation

std::string NodeSpec::enode ( ) const

Definition at line 238 of file Common.cpp.

Here is the call graph for this function:

NodeID dev::p2p::NodeSpec::id ( ) const
inline

Definition at line 227 of file Common.h.

Here is the caller graph for this function:

NodeIPEndpoint NodeSpec::nodeIPEndpoint ( ) const

Definition at line 233 of file Common.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

std::string dev::p2p::NodeSpec::m_address
private

Definition at line 234 of file Common.h.

NodeID dev::p2p::NodeSpec::m_id
private

Definition at line 237 of file Common.h.

uint16_t dev::p2p::NodeSpec::m_tcpPort = 0
private

Definition at line 235 of file Common.h.

uint16_t dev::p2p::NodeSpec::m_udpPort = 0
private

Definition at line 236 of file Common.h.


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