Expand description
Mesh routing, session handling, and peer management.
This module is the heart of Rift’s P2P system. It:
- manages UDP sockets (direct + TURN relays)
- negotiates sessions and capabilities
- handles routing (direct vs relayed) and ICE-lite candidates
- performs encryption/decryption and rate limiting
- emits high-level events to clients
Structs§
- Global
Stats - Link
Stats - Mesh
- High-level mesh controller used by clients.
- Mesh
Config - Mesh
Handle - Cloneable handle for sending commands without owning the event stream.
- Rendezvous
Config - Async rendezvous configuration for Predictive Rendezvous sessions.
- Rendezvous
Result - Result of a successful rendezvous attempt.
- Session
Config - Negotiated session configuration with a peer.