Expand description
The golden handshake wire codecs (both server-param dialects, rails framing, mode/status bytes) — un-gated, a frozen external wire contract.
Structs§
- Cache
Server Params - The peer’s half of the RW-blade handshake (KV overflow / SSM snapshots): its QP identity + the single RW MR.
- Verbs
Client Params - The client’s half: just its QP identity (its arena MR is local-only).
- Verbs
Server Params - The server’s half of the verbs handshake (RO dialect: expert / weight /
LoRA tiers): its QP identity plus, per MoE layer (or per shard), the base
virtual address + rkey of that entry’s registered MR.
remote_addr(layer, expert) = layers[layer].0 + expert * record_stride.
Constants§
- MODE_
TCP - Two-sided TCP record streaming (the expert record path).
- MODE_
VERBS - One-sided RDMA READ over verbs: the server publishes its store’s MRs and the client READs records directly into its arena.
- STATUS_
ERR - STATUS_
OK
Traits§
- Remote
Qp - Anything that carries a remote QP identity a client rail can
connectto. Implemented by both server-param dialects so the RailSet handshake tail is shared without homogenizing the two wire layouts.
Functions§
- read_
server_ rails - Read
wantper-railVerbsServerParamsframed by a leading[u8 n_rails]. Bails if the framed count is zero, absurd (> 8), or !=want— the client already negotiatedwantrails, so any other count is a protocol error. - write_
server_ rails - Frame N per-rail
VerbsServerParamsfor the dual-rail RO tiers: a leading[u8 n_rails]count followed by each rail’s params — exactly how the RW blade frames its per-railCacheServerParams. Single-rail (n == 1) is the default, byte-for-byte the pre-dual-rail path plus the one-byte count prefix.