[domistream] Control: empty-body START_B, PERIODIC_PING, IDR request #15

Merged
mnovak merged 2 commits from feature/control-empty-bodies into main 2026-12-04 13:46:40 +01:00
Owner

Lumen L2 prerequisite: our client's ControlStream can now start a stream on our host. encode_client_message writes START_B (0x0307), PERIODIC_PING (0x0200) and the IDR request (0x0302) with an empty body (type + length 0, little-endian); START_A stays Unsupported (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_messages expects 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

  • Sources: none new (the empty-body fact is S-21, already logged).
  • No forbidden source; no GPL-provenance value.
  • Public repo: nothing private.

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.

Lumen L2 prerequisite: our client's `ControlStream` can now start a stream on our host. `encode_client_message` writes START_B (0x0307), PERIODIC_PING (0x0200) and the IDR request (0x0302) with an empty body (type + length 0, little-endian); START_A stays `Unsupported` (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_messages` expects 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** - [x] Sources: none new (the empty-body fact is S-21, already logged). - [x] No forbidden source; no GPL-provenance value. - [x] Public repo: nothing private. **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.
mnovak added 2 commits 2026-12-04 13:46:22 +01:00
mnovak merged commit 9434d16422 into main 2026-12-04 13:46:40 +01:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mnovak/DomiStream#15