gtp-protocol
Group Text Protocol — text-messaging sub-protocol of the Group Protocol Stack.
GTP is to GBP what TCP is to IP: it adds idempotent message-level semantics on top of the GBP base layer's framing and AEAD.
What this crate provides
GtpMessage— the text message envelope; can be encoded as CBOR, Protobuf, or FlatBuffers (selected byPayloadCodec).GtpClient— stateful client that:- sends text messages through a
gbp_node::GroupNodewith a caller-chosenPayloadCodec(defaultCborfor backward compat); - accepts incoming plaintext payloads delivered by GBP (codec echoed from
the
payload_receivedevent) and rejects duplicates by(sender_id, message_id).
- sends text messages through a
Example
use GtpClient;
let mut client = new;
let frame = client.send?;
// hand `frame.wire` to your transport...
License
Licensed under Apache License, Version 2.0.