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 ?
Am Sonntag, 12. September 2004 16:51 schrieb Philip Lawatsch:
> I had a look at the svdrp code and actually thought about implementing
> this myself for quite a while now.
> All you basically have to do is the following:
> You have one thread doing all the svdrp work.
> This thread would simply have to monitor all connections using select
> and once a whole commmand came in from one connection execute the
> command. This way there is only sequential execution of svdrp commands.
> Its that simple, _as long as_ svdrp remains stateless between commands.
> If ever you have a situation where 2 commands depend on each other
> you've got a problem.
I can only mention all the time, that that is exactly what streamdev-server
does, thus allowing multiple concurrent connections. Most SVDRP commands are
already implemented in that protocol (so that it is not necessary to have two
connections to control streaming and timers etc. at the same time). It is
guaranteed that multiple commands from multiple clients are NOT executed
Feel free to use that interface, to add missing SVDRP commands (simply copy
the code from svdrp.c to connectionVTP.c and add the WRAPPER macros like in
the other commands copied from svdrp.c), or even use this code as an
inspiraton for a VDR patch (but give me the possibility to add commands from
within a plugin, then) :-).
Main Index |