Files
DomiStream/README.md
T

55 lines
3.2 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# DomiStream
Pure Rust protocol code for Arena Domi's **Play remotely**: streaming a game from your PC to Arena Domi TV, phones and
other PCs. Sans-I/O: no sockets, no threads, no clock reads. The caller feeds bytes and the current time in and gets
bytes, events and deadlines out.
| Part | What | Day |
| :-- | :-- | :-- |
| GameStream client | pairing handshake, app list, RTSP, the ENet-compatible control channel, input and gamepad messages, RTP video depacketizer with FEC recovery, Opus audio with FEC, stream encryption | 1 |
| GameStream host (Lumen) | the host's half of the same protocols: HTTP requests and XML answers, the pairing machine and Tessera-trusted clients, the RTSP session with DESCRIBE and a strict ANNOUNCE parser, the accepting ENet peer, the control host, video packetizer with FEC parity, Opus audio packetizer | Lumen L1 |
| Harness maths | clock sync and the added-latency statistics | 2 |
| Lumen | the protocol, FEC, pacing and congestion maths of Arena Domi's own engine | 3–7 |
Written from the public protocol notes in the [Wolf documentation](https://games-on-whales.github.io/wolf/stable/protocols/index.html)
and our own measurements. It is a clean-room implementation: no code from Sunshine, Moonlight, Apollo, Vibeshine,
Rubylight or moonlight-common-c was opened, pasted or ported. See [`docs/CLEAN_ROOM.md`](docs/CLEAN_ROOM.md).
```
cargo test --workspace
```
## Status: `stream-v0.2.0`
| Side | State |
| :-- | :-- |
| Client (since `stream-v0.1.0`) | complete for Day 1. **Interop with a real Sunshine host is unverified**: ten details that block it (U1, U2, U4–U10, U17 in [`docs/PROTOCOL.md`](docs/PROTOCOL.md)) are settled live on Play remotely Day 1 |
| Host, for Lumen (new in `stream-v0.2.0`) | complete for Lumen L1 and tested against our own client in one in-memory session. **Interop with real clients (Arena Domi Remote, the Moonlight PC app) is unverified**: it is measured black-box at the end of L1 |
Written from the Wolf protocol docs, Moonshine (BSD-2, facts only) and the approved permissive sources (stock ENet,
tokio-enet, fec-rs). Evidence for this release is in [`docs/HANDOVER.md`](docs/HANDOVER.md): the test suite, the
mutation pass ([`docs/MUTATION.md`](docs/MUTATION.md)) and 32 fuzz targets with 0 crashes.
| Path | What |
| :-- | :-- |
| `crates/domistream` | the crate: one module per protocol part (see its rustdoc) |
| `fuzz/` | one libFuzzer target per parser, its own workspace (how to run: top of `fuzz/Cargo.toml`) |
| `docs/PROTOCOL.md` | the protocol as we speak it, with every UNKNOWN |
| `docs/CLEAN_ROOM.md` | allowed and forbidden sources, and the source log |
## Licence
DomiStream is licensed under the **Common Public Attribution License 1.0** (SPDX `CPAL-1.0`); see [LICENSE](LICENSE).
**Attribution (Exhibit B).** Anyone who redistributes DomiStream, or a Larger Work built on it, must show this credit
wherever CPAL-1.0 §14 asks for it (display in Larger Works is required):
| Field | Value |
| :-- | :-- |
| Attribution Copyright Notice | Copyright (c) 2026 Marek Novák |
| Attribution Phrase | Built on Domi |
| Attribution URL | https://aula.marek-novak.cz |
| Graphic Image | none |
Third-party crates keep their own licences.