gbp-proto 1.8.1

Protobuf codec for the Group Protocol Stack (GBP/GTP/GAP/GSP). Alternative wire format to CBOR per gbp_rfc §12.2.
Documentation

gbp-proto

Protobuf codec for the Group Protocol Stack (GBP/GTP/GAP/GSP).

Protobuf wire format (PayloadCodec::Protobuf, pf=1) for the Group Protocol Stack. Selected at runtime via the GBP frame pf field; backward-compatible with CBOR-only (pf=0) receivers that reject unknown codecs. All message types derive prost::Message — no protoc compiler required.

Messages

Module Types
gbp GbpFrame, ControlMessage, ErrorObject
gtp GtpMessage, AttachmentManifest, AttachmentChunk
gap GapPayload
gsp GspSignal

Usage

use gbp_proto::gbp::GbpFrame;
use prost::Message;

let frame = GbpFrame { version: 1, sequence_no: 1, ..Default::default() };
let bytes = frame.encode_to_vec();
let decoded = GbpFrame::decode(bytes.as_slice()).unwrap();

License

Apache-2.0