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

#include <NodeTable.h>

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

Public Member Functions

 DiscoveryDatagram (bi::udp::endpoint const &_to)
 Constructor used for sending. More...
 
 DiscoveryDatagram (bi::udp::endpoint const &_from, NodeID const &_fromid, h256 const &_echo)
 Constructor used for parsing inbound packets. More...
 
bool isExpired () const
 
- Public Member Functions inherited from dev::p2p::RLPXDatagramFace
 RLPXDatagramFace (bi::udp::endpoint const &_ep)
 
virtual h256 sign (Secret const &_from)
 
virtual uint8_t packetType () const =0
 
virtual void streamRLP (RLPStream &) const =0
 
virtual void interpretRLP (bytesConstRef _bytes)=0
 
- Public Member Functions inherited from dev::p2p::UDPDatagram
 UDPDatagram (bi::udp::endpoint const &_ep)
 
 UDPDatagram (bi::udp::endpoint const &_ep, bytes _data)
 
bi::udp::endpoint const & endpoint () const
 

Static Public Member Functions

static std::unique_ptr< DiscoveryDatagraminterpretUDP (bi::udp::endpoint const &_from, bytesConstRef _packet)
 Decodes UDP packets. More...
 
- Static Public Member Functions inherited from dev::p2p::RLPXDatagramFace
static uint32_t futureFromEpoch (std::chrono::seconds _sec)
 
static uint32_t secondsSinceEpoch ()
 
static Public authenticate (bytesConstRef _sig, bytesConstRef _rlp)
 

Public Attributes

NodeID sourceid
 
h256 echo
 
uint32_t ts = 0
 
- Public Attributes inherited from dev::p2p::UDPDatagram
bytes data
 

Additional Inherited Members

- Protected Attributes inherited from dev::p2p::UDPDatagram
bi::udp::endpoint locus
 

Detailed Description

Definition at line 279 of file NodeTable.h.

Constructor & Destructor Documentation

dev::p2p::DiscoveryDatagram::DiscoveryDatagram ( bi::udp::endpoint const &  _to)
inline

Constructor used for sending.

Definition at line 282 of file NodeTable.h.

dev::p2p::DiscoveryDatagram::DiscoveryDatagram ( bi::udp::endpoint const &  _from,
NodeID const &  _fromid,
h256 const &  _echo 
)
inline

Constructor used for parsing inbound packets.

Definition at line 285 of file NodeTable.h.

Member Function Documentation

unique_ptr< DiscoveryDatagram > DiscoveryDatagram::interpretUDP ( bi::udp::endpoint const &  _from,
bytesConstRef  _packet 
)
static

Decodes UDP packets.

Definition at line 580 of file NodeTable.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool dev::p2p::DiscoveryDatagram::isExpired ( ) const
inline

Definition at line 294 of file NodeTable.h.

Member Data Documentation

h256 dev::p2p::DiscoveryDatagram::echo

Definition at line 289 of file NodeTable.h.

NodeID dev::p2p::DiscoveryDatagram::sourceid

Definition at line 288 of file NodeTable.h.

uint32_t dev::p2p::DiscoveryDatagram::ts = 0

Definition at line 293 of file NodeTable.h.


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