[domistream] Control: empty-body START_B, PERIODIC_PING, IDR request #15
Reference in New Issue
Block a user
Delete Branch "feature/control-empty-bodies"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Lumen L2 prerequisite: our client's
ControlStreamcan now start a stream on our host.encode_client_messagewrites START_B (0x0307), PERIODIC_PING (0x0200) and the IDR request (0x0302) with an empty body (type + length 0, little-endian); START_A staysUnsupported(U10). This is the lead's decision recorded in stream-v0.2.0's handover: an empty body is what Moonshine (S-21) and Lumen read; whether Sunshine reads more is still U10, noted in PROTOCOL.md's host overview.Tests first (commit
6667922):client_messagesexpects the exact 4-byte encodings and START_A refused; the session test asserts START_B's bytes. Workspace 422 passed / 0 failed; clippy, fmt, rustdoc clean.Clean-room checklist
Self-review: the host side already reads no body (control host), so the in-memory session and the real host agree; the change is confined to the client encoder, its docs and two test assertions.