[repo] Docs: host side overview in PROTOCOL.md, README status and the stream-v0.2.0 handover (evidence filled in after the mutation pass)
This commit is contained in:
+26
-1
@@ -1,10 +1,35 @@
|
||||
# GameStream protocol, as DomiStream speaks it (client side)
|
||||
# GameStream protocol, as DomiStream speaks it (client and host side)
|
||||
|
||||
The protocol between a GameStream host (Sunshine, later Lumen) and a client (Arena Domi TV). Written from the Wolf
|
||||
protocol docs in our own words, completed with facts read in Moonshine (BSD-2). Every fact has a tag; every gap is
|
||||
marked **UNKNOWN Un** with what would settle it. Status: 2026-11-25, implemented as stream-v0.1.0 per these docs and the approved sources; interop with a real host
|
||||
is unverified (the lab capture was not run, [LAB_CAPTURE.md](LAB_CAPTURE.md)). U9 narrowed and U14 settled from the
|
||||
approved sources (sections 3.1, 5.3); where an UNKNOWN remains, the code follows the Wolf-documented behaviour.
|
||||
2026-12-04: the host side for Lumen added as stream-v0.2.0 (below).
|
||||
|
||||
## Host side (Lumen)
|
||||
|
||||
Since stream-v0.2.0 DomiStream also holds the host's half of every protocol, for Lumen, Arena Domi's own streaming
|
||||
host ([LUMEN-HOST-PLAN.md](LUMEN-HOST-PLAN.md) 3.1). The wire is the one this document describes; what is a choice of
|
||||
ours on the host side is marked as such in the host notes:
|
||||
|
||||
| Section | Host module | Host notes |
|
||||
| :-- | :-- | :-- |
|
||||
| 1.1-1.4 HTTP/HTTPS | `host::http` | strict request head and query parsing into typed routes; XML answers that the client's parsers accept; `PairStatus` 1 only over HTTPS with a paired certificate (1.2). Notes in the module docs |
|
||||
| 1.5 Pairing | `host::pairing` | the mirror state machine with a pending-PIN slot; Tessera-trusted clients recorded without a PIN. Notes in the module docs |
|
||||
| 2.2-2.4 RTSP | `rtsp::server` | 2.5: one session per launch, order, statuses, `Session`, DESCRIBE writer, strict ANNOUNCE parser |
|
||||
| 3.1 ENet | `enet::host` | 3.1, "The accepting side, as stock ENet 1.3 does it" |
|
||||
| 3.2-3.3 Control | `control::host` | 3.3, last paragraph: client frames, host messages, stop deadline |
|
||||
| 5.2-5.3 Video | `video::packetizer` | 5.3, "Host side": FEC block split and parity |
|
||||
| 6.2-6.4 Audio | `audio::packetizer` | 6.4, last paragraph: no parity until U16 |
|
||||
|
||||
Both halves are tested against each other in one in-memory session (`crates/domistream/tests/session.rs`). Found
|
||||
there, still open: the client's `ControlStream` refuses to send `START_B`, `PERIODIC_PING` and the IDR request
|
||||
(bodies U10, 3.3). With `ControlStream` alone our client cannot start a stream on our host, and a host with a stop
|
||||
deadline (60 s by default) would end the session; the session test sends the three with empty bodies over
|
||||
`EnetClient` and `ControlCipher`, as `tools/gs-probe` does. The host keeps the client's `updateState` (1.5, U1) for the
|
||||
logs without reading it. Interop with real clients (Arena Domi Remote, the Moonlight PC app) is unverified: it is measured black-box
|
||||
(decision D2).
|
||||
|
||||
**Tags** (details in the source log, [CLEAN_ROOM.md](CLEAN_ROOM.md)):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user