Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: How to kill an svdrp connection from vdr ?



> 1 should be very easy to code, 2 only a little harder, and this can be a
> first step towards the 'final' implementation with recording numbers
> stored as state against the svdrp connection.

2 looks just too complex to be worth it.
And introducing new error conditions mean that clients have to be
updated anyway, so you better switch to IDs immediately.

Clients which properly obey the SVDRP protocol shouldn't have problems
with this kind of trivial ID generator anyway: make the ID out of
  sprintf(id, "%d%02d", item_no, connection_no)
This ensures unique IDs, will allow up to 100 concurrent connections
(make that %d%04d if this limit bothers you...), allows an unlimited
number of items and still the IDs are numeric.

Olaf





Home | Main Index | Thread Index