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

RLPFrameReader Reads and assembles RLPX frame byte buffers into RLPX packets. More...

#include <RLPXFrameReader.h>

Public Member Functions

 RLPXFrameReader (uint16_t _protocolType)
 
std::vector< RLPXPacketdemux (RLPXFrameCoder &_coder, RLPXFrameInfo const &_info, bytesRef _frame)
 Processes a single frame returning complete packets. More...
 

Protected Attributes

uint16_t m_protocolType
 
std::map< uint16_t, std::pair< RLPXPacket, uint32_t > > m_incomplete
 Sequence: Incomplete packet and bytes remaining. More...
 

Detailed Description

RLPFrameReader Reads and assembles RLPX frame byte buffers into RLPX packets.

Additionally buffers incomplete packets which are pieced into multiple frames (has sequence).

Definition at line 41 of file RLPXFrameReader.h.

Constructor & Destructor Documentation

dev::p2p::RLPXFrameReader::RLPXFrameReader ( uint16_t  _protocolType)
inline

Definition at line 44 of file RLPXFrameReader.h.

Here is the call graph for this function:

Member Function Documentation

std::vector< RLPXPacket > RLPXFrameReader::demux ( RLPXFrameCoder _coder,
RLPXFrameInfo const &  _info,
bytesRef  _frame 
)

Processes a single frame returning complete packets.

Definition at line 28 of file RLPXFrameReader.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

std::map<uint16_t, std::pair<RLPXPacket, uint32_t> > dev::p2p::RLPXFrameReader::m_incomplete
protected

Sequence: Incomplete packet and bytes remaining.

Definition at line 51 of file RLPXFrameReader.h.

uint16_t dev::p2p::RLPXFrameReader::m_protocolType
protected

Definition at line 50 of file RLPXFrameReader.h.


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