voelinctl: probe-stream, how a late TS6 client can find a running stream

The server announces a stream only to the clients in the streamer's channel
when it starts; clients that arrive later see only client_is_streaming. To
find out what the server offers instead, probe-stream runs two clients:
A creates a channel and starts a stream, B arrives afterwards and tries
candidate commands from another channel and from A's channel
(requeststreaminfo spellings, clientgetvariables, clientinfo, list-like
command names, joinstreamrequest with the learned id), A tries updatestream
and client_meta_data. Every command both clients exchange is printed raw
through a listener on the tsproto connection (tsclientlib's unstable API),
so notifications the declarations do not know yet show up too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
This commit is contained in:
Claude committed 2026-09-27 03:39:40 +00:00
1 parent fd36372243
commit 1fa6095a5f
5 files changed
+487 -2

No files matched your search

+5
View File
@@ -3,6 +3,7 @@
mod gateway;
mod identity;
mod observe;
mod probe;
mod query;
mod session;
mod stream;
@@ -46,6 +47,9 @@ enum Command {
Relay(observe::RelayArgs),
/// Use a tsgw gateway as a user: presence, chat, history.
Gateway(gateway::GatewayArgs),
/// TeamSpeak 6: probe how a client that arrives after a stream started
/// can learn about it; prints every command both clients exchange.
ProbeStream(probe::ProbeStreamArgs),
}
#[derive(Subcommand, Debug)]
@@ -208,6 +212,7 @@ fn main() -> Result<()> {
Command::Observe(args) => tokio::runtime::Runtime::new()?.block_on(observe::observe(args)),
Command::Relay(args) => tokio::runtime::Runtime::new()?.block_on(observe::relay(args)),
Command::Gateway(args) => tokio::runtime::Runtime::new()?.block_on(gateway::run(args)),
Command::ProbeStream(args) => tokio::runtime::Runtime::new()?.block_on(probe::run(args)),
}
}