start multiple instance of the same service ?

Luigi Paioro luigi at
Mon Oct 2 00:37:06 PDT 2006


I was trying to do a factory object as you suggested in the mailing list 
(with Python). I've got some doubt on how to do it in practice. Can you 
post me an example code, please?

Thank you very much!


Julien PUYDT wrote:
> John (J5) Palmieri a écrit :
>> On Thu, 2006-09-14 at 09:21 -0400, Havoc Pennington wrote:
>>> It's not possible. But you could have a service factory service 
>>> perhaps, that starts a dumpcap for each network interface.
>> This sounds like the right way to do it.  Basically have one factory,
>> org.dummy.dumpcap for example, and have a method such as StartInstance()
>> which execs the actual provider and sends back a unique bus name.  You
>> could even get fancy and have the provider also become its own bus
>> server and send a socket to connect to avoiding the overhead of the bus.
> Perhaps some method to query the list of available interfaces would be 
> nice too -- so the client knows what to give to StartInstance.
> Snark

More information about the dbus mailing list