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

Parsed packet metadata plus the owned piece of application payload. More...

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

Public Attributes

BytePacketType type = BytePacketType::kCompleteBytes
 Packet shape.
 
std::string payload
 Bytes contributed by this packet.
 
std::uint64_t transient_id = 0
 Id used to interleave messages safely.
 
std::uint32_t sequence = 0
 Zero-based position in the message.
 
std::uint32_t packet_count
 Total count, when supplied by the first packet.
 

Friends

template<typename Sink >
void AbslStringify (Sink &sink, const BytePacket &packet)
 

Detailed Description

Parsed packet metadata plus the owned piece of application payload.

Friends And Related Symbol Documentation

◆ AbslStringify

template<typename Sink >
void AbslStringify ( Sink sink,
const BytePacket packet 
)
friend

Member Data Documentation

◆ packet_count

std::uint32_t a11::net::BytePacket::packet_count
Initial value:
=
0

Total count, when supplied by the first packet.

◆ payload

std::string a11::net::BytePacket::payload

Bytes contributed by this packet.

◆ sequence

std::uint32_t a11::net::BytePacket::sequence = 0

Zero-based position in the message.

◆ transient_id

std::uint64_t a11::net::BytePacket::transient_id = 0

Id used to interleave messages safely.

◆ type

BytePacketType a11::net::BytePacket::type = BytePacketType::kCompleteBytes

Packet shape.


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