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

RLPX Packet. More...

#include <RLPXPacket.h>

Public Member Functions

 RLPXPacket (uint8_t _capId, RLPStream &_type, RLPStream &_data)
 Construct packet. RLPStream data is invalidated. More...
 
 RLPXPacket (uint8_t _capId, bytesConstRef _in)
 Construct packet from single bytestream. RLPStream data is invalidated. More...
 
 RLPXPacket (RLPXPacket const &_p)=delete
 
 RLPXPacket (RLPXPacket &&_p)
 
bytes const & type () const
 
bytes const & data () const
 
uint8_t cap () const
 
size_t size () const
 
bool append (bytesConstRef _in)
 Appends byte data and returns if packet is valid. More...
 
virtual bool isValid () const noexcept
 

Protected Attributes

uint8_t m_cap
 
bytes m_type
 
bytes m_data
 

Detailed Description

RLPX Packet.

Definition at line 39 of file RLPXPacket.h.

Constructor & Destructor Documentation

dev::p2p::RLPXPacket::RLPXPacket ( uint8_t  _capId,
RLPStream _type,
RLPStream _data 
)
inline

Construct packet. RLPStream data is invalidated.

Definition at line 43 of file RLPXPacket.h.

dev::p2p::RLPXPacket::RLPXPacket ( uint8_t  _capId,
bytesConstRef  _in 
)
inline

Construct packet from single bytestream. RLPStream data is invalidated.

Definition at line 46 of file RLPXPacket.h.

Here is the call graph for this function:

dev::p2p::RLPXPacket::RLPXPacket ( RLPXPacket const &  _p)
delete
dev::p2p::RLPXPacket::RLPXPacket ( RLPXPacket &&  _p)
inline

Definition at line 49 of file RLPXPacket.h.

Member Function Documentation

bool dev::p2p::RLPXPacket::append ( bytesConstRef  _in)
inline

Appends byte data and returns if packet is valid.

Definition at line 60 of file RLPXPacket.h.

Here is the call graph for this function:

Here is the caller graph for this function:

uint8_t dev::p2p::RLPXPacket::cap ( ) const
inline

Definition at line 55 of file RLPXPacket.h.

bytes const& dev::p2p::RLPXPacket::data ( ) const
inline

Definition at line 53 of file RLPXPacket.h.

Here is the caller graph for this function:

virtual bool dev::p2p::RLPXPacket::isValid ( ) const
inlinevirtualnoexcept

Definition at line 62 of file RLPXPacket.h.

Here is the call graph for this function:

Here is the caller graph for this function:

size_t dev::p2p::RLPXPacket::size ( ) const
inline

Definition at line 57 of file RLPXPacket.h.

Here is the call graph for this function:

Here is the caller graph for this function:

bytes const& dev::p2p::RLPXPacket::type ( ) const
inline

Definition at line 51 of file RLPXPacket.h.

Here is the caller graph for this function:

Member Data Documentation

uint8_t dev::p2p::RLPXPacket::m_cap
protected

Definition at line 65 of file RLPXPacket.h.

bytes dev::p2p::RLPXPacket::m_data
protected

Definition at line 67 of file RLPXPacket.h.

bytes dev::p2p::RLPXPacket::m_type
protected

Definition at line 66 of file RLPXPacket.h.


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