A11 (C++ runtime)
Native C++ implementation of the A11 action and streaming runtime
Loading...
Searching...
No Matches
a11::net::ByteChunkingOptions Struct Reference

Bounds packet size and incomplete-message memory during reassembly. More...

#include <cpp/a11/net/byte_chunking.h>

Public Member Functions

absl::Status Validate () const
 Validate that all limits can represent at least one useful packet.
 

Public Attributes

size_t packet_size = 64 * 1024
 Maximum encoded packet size.
 
size_t max_message_size = 32 * 1024 * 1024
 Reassembled message limit.
 
size_t max_pending_messages = 64
 Simultaneous incomplete messages.
 
size_t max_pending_bytes
 Aggregate pending payload limit.
 

Detailed Description

Bounds packet size and incomplete-message memory during reassembly.

Member Function Documentation

◆ Validate()

absl::Status a11::net::ByteChunkingOptions::Validate ( ) const

Validate that all limits can represent at least one useful packet.

Member Data Documentation

◆ max_message_size

size_t a11::net::ByteChunkingOptions::max_message_size = 32 * 1024 * 1024

Reassembled message limit.

◆ max_pending_bytes

size_t a11::net::ByteChunkingOptions::max_pending_bytes
Initial value:
=
64 * 1024 * 1024

Aggregate pending payload limit.

◆ max_pending_messages

size_t a11::net::ByteChunkingOptions::max_pending_messages = 64

Simultaneous incomplete messages.

◆ packet_size

size_t a11::net::ByteChunkingOptions::packet_size = 64 * 1024

Maximum encoded packet size.


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