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

Pong packet: Sent in response to ping. More...

#include <NodeTable.h>

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

Public Member Functions

 Pong (NodeIPEndpoint const &_dest)
 
 Pong (bi::udp::endpoint const &_from, NodeID const &_fromid, h256 const &_echo)
 
uint8_t packetType () const
 
void streamRLP (RLPStream &_s) const
 
void interpretRLP (bytesConstRef _bytes)
 
- Public Member Functions inherited from dev::p2p::DiscoveryDatagram
 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)
 
- 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
 

Public Attributes

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

Static Public Attributes

static const uint8_t type = 2
 

Additional Inherited Members

- Static Public Member Functions inherited from dev::p2p::DiscoveryDatagram
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)
 
- Protected Attributes inherited from dev::p2p::UDPDatagram
bi::udp::endpoint locus
 

Detailed Description

Pong packet: Sent in response to ping.

Definition at line 343 of file NodeTable.h.

Constructor & Destructor Documentation

dev::p2p::Pong::Pong ( NodeIPEndpoint const &  _dest)
inline

Definition at line 345 of file NodeTable.h.

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

Definition at line 346 of file NodeTable.h.

Member Function Documentation

void dev::p2p::Pong::interpretRLP ( bytesConstRef  _bytes)
inlinevirtual

Implements dev::p2p::RLPXDatagramFace.

Definition at line 360 of file NodeTable.h.

Here is the call graph for this function:

uint8_t dev::p2p::Pong::packetType ( ) const
inlinevirtual

Implements dev::p2p::RLPXDatagramFace.

Definition at line 349 of file NodeTable.h.

void dev::p2p::Pong::streamRLP ( RLPStream _s) const
inlinevirtual

Implements dev::p2p::RLPXDatagramFace.

Definition at line 353 of file NodeTable.h.

Here is the call graph for this function:

Member Data Documentation

NodeIPEndpoint dev::p2p::Pong::destination

Definition at line 351 of file NodeTable.h.

const uint8_t dev::p2p::Pong::type = 2
static

Definition at line 348 of file NodeTable.h.


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