[Klone-users] Compile KLone as a lib

Stefano Barbato barbato at koanlogic.com
Mon Aug 20 05:14:19 EDT 2007


Hi Christian,


On Aug 19, 2007, at 3:21 PM, Christian Kelinski wrote:

> Hi,
>
> I'm working on a webinterface for a DVB-T STB running a embedded Linux
> (MIPS based) Box and a PVR-application called VDR.
>
> KLone is working like charm on it and, compared to the busybox-httpd,
> its really, really fast.
>
> But: This VDR has a plugin-interface with which a direct connection to
> the VDR itself is realized (until now, the KLoned and the VDR
> communicate through a network protocoll called SVDRP).
>
> What I'm trying is to rewrite my webinterace so it will be a
> VDR-plugin. Building a VDR-plugin is not a big deal, but it has to be
> compiled as a lib. I have no glue how to achieve this when (cross)
> compiling my webapp (I'm using klone-2.0.0rc9).
>
> Thanks in advance!
> Christian

At the moment Klone cannot be used as an external library, it requires 
its own daemon.

BTW keeping Klone as a daemon and using a RPC protocol like SVDRP to 
trigger DVB operation is something I would prefer over integrating 
everything into a single object; Klone by default runs in pre-forking 
mode so address space sharing would not be possible anyway.

You could use iterative mode (kloned.conf:"model iterative") to avoid 
fork()s but that kills performance most of the time and may not work 
properly with AJAX webapps (because simultaneous connections are 
impossibile in iterative mode).

In few words I would keep the current design :-)

bye,
stefano


---
Stefano Barbato
KoanLogic srl
http://koanlogic.com




More information about the Klone-users mailing list