rippled
Loading...
Searching...
No Matches
Public Attributes | List of all members
ripple::detail::MessageHeader Struct Reference

#include <ProtocolMessage.h>

Collaboration diagram for ripple::detail::MessageHeader:
Collaboration graph
[legend]

Public Attributes

std::uint32_t total_wire_size = 0
 The size of the message on the wire.
 
std::uint32_t header_size = 0
 The size of the header associated with this message.
 
std::uint32_t payload_wire_size = 0
 The size of the payload on the wire.
 
std::uint32_t uncompressed_size = 0
 Uncompressed message size if the message is compressed.
 
std::uint16_t message_type = 0
 The type of the message.
 
compression::Algorithm algorithm = compression::Algorithm::None
 Indicates which compression algorithm the payload is compressed with.
 

Detailed Description

Definition at line 96 of file ProtocolMessage.h.

Member Data Documentation

◆ total_wire_size

std::uint32_t ripple::detail::MessageHeader::total_wire_size = 0

The size of the message on the wire.

Note
This is the sum of sizes of the header and the payload.

Definition at line 102 of file ProtocolMessage.h.

◆ header_size

std::uint32_t ripple::detail::MessageHeader::header_size = 0

The size of the header associated with this message.

Definition at line 105 of file ProtocolMessage.h.

◆ payload_wire_size

std::uint32_t ripple::detail::MessageHeader::payload_wire_size = 0

The size of the payload on the wire.

Definition at line 108 of file ProtocolMessage.h.

◆ uncompressed_size

std::uint32_t ripple::detail::MessageHeader::uncompressed_size = 0

Uncompressed message size if the message is compressed.

Definition at line 111 of file ProtocolMessage.h.

◆ message_type

std::uint16_t ripple::detail::MessageHeader::message_type = 0

The type of the message.

Definition at line 114 of file ProtocolMessage.h.

◆ algorithm

compression::Algorithm ripple::detail::MessageHeader::algorithm = compression::Algorithm::None

Indicates which compression algorithm the payload is compressed with.

Currenly only lz4 is supported. If None then the message is not compressed.

Definition at line 120 of file ProtocolMessage.h.