Skip to main content

Crate gtp

Crate gtp 

Source
Expand description

Group Text Protocol — text sub-protocol of the Group Protocol Stack.

GTP is to GBP what TCP is to IP: it adds message-level semantics on top of the GBP base layer’s framing and AEAD. This crate exposes:

  1. GtpMessage — the CBOR-encoded text message format.
  2. GtpClient — a stateful client that:
    • sends text messages through a gbp_node::GroupNode;
    • accepts incoming plaintext payloads delivered by GBP and rejects duplicates by (sender_id, message_id).

See gbp-protocol for the underlying frame format.

Re-exports§

pub use client::GtpAccept;
pub use client::GtpClient;
pub use client::GtpError;
pub use history::MessageHistory;
pub use history::Watermark;
pub use message::GtpContentType;
pub use message::GtpMessage;

Modules§

client
Stateful GTP client.
history
Bounded message log + per-sender resynchronisation watermark.
message
GTP message codec.