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

IPv4,UDP/TCP endpoints. More...

#include <Common.h>

Public Types

enum  RLPAppend { StreamList, StreamInline }
 

Public Member Functions

 NodeIPEndpoint ()=default
 
 NodeIPEndpoint (bi::address _addr, uint16_t _udp, uint16_t _tcp)
 
 NodeIPEndpoint (RLP const &_r)
 
 operator bi::udp::endpoint () const
 
 operator bi::tcp::endpoint () const
 
 operator bool () const
 
bool isAllowed () const
 
bool operator== (NodeIPEndpoint const &_cmp) const
 
bool operator!= (NodeIPEndpoint const &_cmp) const
 
void streamRLP (RLPStream &_s, RLPAppend _append=StreamList) const
 
void interpretRLP (RLP const &_r)
 

Public Attributes

bi::address address
 
uint16_t udpPort = 0
 
uint16_t tcpPort = 0
 

Static Public Attributes

static bool test_allowLocal = false
 Setting true causes isAllowed to return true for all addresses. (Used by test fixtures) More...
 

Detailed Description

IPv4,UDP/TCP endpoints.

Definition at line 175 of file Common.h.

Member Enumeration Documentation

Enumerator
StreamList 
StreamInline 

Definition at line 178 of file Common.h.

Constructor & Destructor Documentation

dev::p2p::NodeIPEndpoint::NodeIPEndpoint ( )
default
dev::p2p::NodeIPEndpoint::NodeIPEndpoint ( bi::address  _addr,
uint16_t  _udp,
uint16_t  _tcp 
)
inline

Definition at line 188 of file Common.h.

dev::p2p::NodeIPEndpoint::NodeIPEndpoint ( RLP const &  _r)
inline

Definition at line 189 of file Common.h.

Member Function Documentation

void NodeIPEndpoint::interpretRLP ( RLP const &  _r)

Definition at line 168 of file Common.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool dev::p2p::NodeIPEndpoint::isAllowed ( ) const
inline

Definition at line 196 of file Common.h.

Here is the call graph for this function:

Here is the caller graph for this function:

dev::p2p::NodeIPEndpoint::operator bi::tcp::endpoint ( ) const
inline

Definition at line 192 of file Common.h.

Here is the call graph for this function:

dev::p2p::NodeIPEndpoint::operator bi::udp::endpoint ( ) const
inline

Definition at line 191 of file Common.h.

Here is the call graph for this function:

dev::p2p::NodeIPEndpoint::operator bool ( ) const
inline

Definition at line 194 of file Common.h.

Here is the call graph for this function:

bool dev::p2p::NodeIPEndpoint::operator!= ( NodeIPEndpoint const &  _cmp) const
inline

Definition at line 201 of file Common.h.

Here is the call graph for this function:

bool dev::p2p::NodeIPEndpoint::operator== ( NodeIPEndpoint const &  _cmp) const
inline

Definition at line 198 of file Common.h.

Here is the call graph for this function:

void NodeIPEndpoint::streamRLP ( RLPStream _s,
RLPAppend  _append = StreamList 
) const

Definition at line 155 of file Common.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

bi::address dev::p2p::NodeIPEndpoint::address

Definition at line 209 of file Common.h.

uint16_t dev::p2p::NodeIPEndpoint::tcpPort = 0

Definition at line 211 of file Common.h.

bool dev::p2p::NodeIPEndpoint::test_allowLocal = false
static

Setting true causes isAllowed to return true for all addresses. (Used by test fixtures)

Definition at line 185 of file Common.h.

uint16_t dev::p2p::NodeIPEndpoint::udpPort = 0

Definition at line 210 of file Common.h.


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