mirror of
https://github.com/CloudNebulaProject/wayray.git
synced 2026-04-10 21:20:40 +00:00
Encoder: xor_diff + encode_region (per damage rectangle). Decoder: apply_region (decompress + XOR apply to framebuffer). Both live in wayray-protocol::encoding for shared access. 14 tests including 3 end-to-end round-trip integration tests.
12 lines
374 B
Rust
12 lines
374 B
Rust
//! WayRay wire protocol definitions.
|
|
//!
|
|
//! Shared between wrsrvd (server) and wrclient (client).
|
|
//! Messages are serialized with postcard and framed with a 4-byte
|
|
//! length prefix for transmission over QUIC streams.
|
|
|
|
pub mod codec;
|
|
pub mod encoding;
|
|
pub mod messages;
|
|
|
|
/// Current protocol version. Incremented on breaking changes.
|
|
pub const PROTOCOL_VERSION: u32 = 1;
|