nerve-ipc 0.2.0

Binary framing protocol for local IPC over Unix Domain Sockets
Documentation
//! Protocol constants for NERVE.
//!
//! Includes magic/version identifiers, fixed header size,
//! payload limits, and max in-flight request bounds.

// protocol identifiers : ASCII "NERV"
pub const MAGIC: u32 = 0x4E45_5256;

// protocol version
pub const VERSION: u16 = 1;

// fixed header size in bytes
pub const HEADER_SIZE: usize = 20;

// maximum allowed payload size: 1 MiB
pub const MAX_PAYLOAD_SIZE: usize = 1024 * 1024;

// Maximum number of in-flight requests per connection
pub const MAX_INFLIGHT_REQUESTS: usize = 1024;