Fabcoin Core
0.16.2
P2P Digital Currency
|
RLPFrameReader Reads and assembles RLPX frame byte buffers into RLPX packets. More...
#include <RLPXFrameReader.h>
Public Member Functions | |
RLPXFrameReader (uint16_t _protocolType) | |
std::vector< RLPXPacket > | demux (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... | |
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.
|
inline |
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.
|
protected |
Sequence: Incomplete packet and bytes remaining.
Definition at line 51 of file RLPXFrameReader.h.
|
protected |
Definition at line 50 of file RLPXFrameReader.h.