rift-protocol
Part of the riftd project — serverless P2P voice + text chat over UDP.
What's in this crate?
rift-protocol defines the on-the-wire format for all rift messages:
- Message Types — Chat, voice, control, and relay messages
- Framing — Length-prefixed binary encoding
- Versioning — Protocol version negotiation
- Serialization — Efficient bincode encoding/decoding
Usage
use ;
use PeerId;
// Create a chat message
let chat = new;
// Encode for transmission
let bytes = chat.encode?;
// Decode on receive
let msg = decode?;
Protocol Documentation
See PROTOCOL.md for the full protocol specification.
Related Crates
| Crate | Description |
|---|---|
| rift-core | Core types and identity |
| rift-mesh | Mesh networking layer |
| rift-media | Audio encoding for voice frames |
License
Licensed under either of Apache License, Version 2.0 or MIT license at your option.