TARAXA
dev::p2p::RLPXFrameInfo Struct Reference

Encapsulation of Frame. More...

#include <RLPXFrameCoder.h>

Collaboration diagram for dev::p2p::RLPXFrameInfo:

Public Member Functions

 RLPXFrameInfo (bytesConstRef _frameHeader)
 

Public Attributes

uint32_t const length = 0
 Size of frame (excludes padding). Max: 2**24. More...
 
uint8_t const padding = 0
 Length of padding which follows @length. More...
 
bytes const data
 Bytes of Header. More...
 
RLP const header
 Header RLP. More...
 
uint16_t const protocolId = 0
 Protocol ID as negotiated by handshake. More...
 
bool const multiFrame = 0
 If this frame is part of a sequence. More...
 
uint16_t const sequenceId = 0
 Sequence ID of frame. More...
 
uint32_t const totalLength = 0
 

Detailed Description

Encapsulation of Frame.

Todo:
coder integration; padding derived from coder

Constructor & Destructor Documentation

◆ RLPXFrameInfo()

RLPXFrameInfo::RLPXFrameInfo ( bytesConstRef  _frameHeader)
explicit

Constructor. frame-size || protocol-type, [sequence-id[, total-packet-size]]

Member Data Documentation

◆ data

bytes const dev::p2p::RLPXFrameInfo::data

Bytes of Header.

◆ header

RLP const dev::p2p::RLPXFrameInfo::header

Header RLP.

◆ length

uint32_t const dev::p2p::RLPXFrameInfo::length = 0

Size of frame (excludes padding). Max: 2**24.

◆ multiFrame

bool const dev::p2p::RLPXFrameInfo::multiFrame = 0

If this frame is part of a sequence.

◆ padding

uint8_t const dev::p2p::RLPXFrameInfo::padding = 0

Length of padding which follows @length.

◆ protocolId

uint16_t const dev::p2p::RLPXFrameInfo::protocolId = 0

Protocol ID as negotiated by handshake.

◆ sequenceId

uint16_t const dev::p2p::RLPXFrameInfo::sequenceId = 0

Sequence ID of frame.

◆ totalLength

uint32_t const dev::p2p::RLPXFrameInfo::totalLength = 0

Total length of packet in first frame of multiframe packet.


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