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

Encapsulation of Frame. More...

#include <RLPXFrameCoder.h>

Collaboration diagram for dev::p2p::RLPXFrameInfo:
[legend]

Public Member Functions

 RLPXFrameInfo ()=default
 
 RLPXFrameInfo (bytesConstRef _frameHeader)
 Constructor. frame-size || protocol-type, [sequence-id[, total-packet-size]]. More...
 

Public Attributes

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

Detailed Description

Encapsulation of Frame.

Todo:
coder integration; padding derived from coder

Definition at line 42 of file RLPXFrameCoder.h.

Constructor & Destructor Documentation

dev::p2p::RLPXFrameInfo::RLPXFrameInfo ( )
default
RLPXFrameInfo::RLPXFrameInfo ( bytesConstRef  _frameHeader)

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

Definition at line 38 of file RLPXFrameCoder.cpp.

Member Data Documentation

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

Bytes of Header.

Definition at line 51 of file RLPXFrameCoder.h.

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

Header RLP.

Definition at line 52 of file RLPXFrameCoder.h.

uint32_t const dev::p2p::RLPXFrameInfo::length

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

Definition at line 48 of file RLPXFrameCoder.h.

bool const dev::p2p::RLPXFrameInfo::multiFrame

If this frame is part of a sequence.

Definition at line 55 of file RLPXFrameCoder.h.

uint8_t const dev::p2p::RLPXFrameInfo::padding

Length of padding which follows .

Definition at line 49 of file RLPXFrameCoder.h.

uint16_t const dev::p2p::RLPXFrameInfo::protocolId

Protocol ID as negotiated by handshake.

Definition at line 54 of file RLPXFrameCoder.h.

uint16_t const dev::p2p::RLPXFrameInfo::sequenceId

Sequence ID of frame.

Definition at line 56 of file RLPXFrameCoder.h.

uint32_t const dev::p2p::RLPXFrameInfo::totalLength

Set to total length of packet in first frame of multiframe packet.

Definition at line 57 of file RLPXFrameCoder.h.


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