chiark / gitweb /
clients/playrtp.c: Fix the RTP-stream request syntax.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 4 May 2020 17:28:39 +0000 (18:28 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Tue, 5 May 2020 22:18:28 +0000 (23:18 +0100)
commit169f1a6f188cf0f088c29f5da19aa04efc19b564
treed5b099325f109aed4d5c870d52fac95422b94415
parentc5fbc6c7535ef526dcdc64b43ec5d8ff6c161b2c
clients/playrtp.c: Fix the RTP-stream request syntax.

Previously, the `-' syntax was an undocumented (and booby-trapped) way
to inform the rest of the program that it should request a unicast
stream.  If we see this, then we apply some heuristics to select an
interface to bind to, and ask the server to hurl packets at it.

This is unsatisfactory.  One might want to set a particular port, say
because other ports are firewalled off by default.  And one might want
to set a particular address if the heuristics go wrong.

As a first step, overhaul the command-line parser to accept an address
and port name/number.  We still apply the old heuristics if no address
is provided explicitly, and we get the kernel to select a port number if
none is given.

This change is rather larger than I usually like, but there doesn't seem
to be a useful intermediate state.  Sorry.
clients/playrtp.c
doc/disorder-playrtp.1.in