LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 12-06-2012, 09:00 AM   #1
manojjk
LQ Newbie
 
Registered: Aug 2011
Posts: 1

Rep: Reputation: Disabled
DBUS - Is it possible to have 2 instance of session bus or something similar?


Hi,

I am facing some weird requirement with DBus based implementation. I would like to know if this is possible to have 2 instance of DBUS_SESSION_BUS or anything similar to this.

Well, the reason why I am looking for this typical requirement is my processes (nodes on bus) are duplicated (i.e having 1+ instance) and they all have registered for same signals.
(For ex) Node-A and Node-B both emits SIGNAL-1 and Node-X and Node-Y both would like to receive SIGNAL-1 (they have registered for SIGNAL-1 by dbus_add_match() call),
Now, if once the signal-1 gets emitted, the dbus daemon will deliver it to both Node-X and Node-Y.
Where as my requirement is Node-A's signal-1 should be received by Node-X and Node-B's SINGAL-1 should be receieved by Node-B

What all I have tried / analysed :
1. dbus_connection_open_private() - Not much help, not sure on usage part as limited documentation is available.
2. dbus_bus_get_private() - not relevant in this scenario.
3. Thinking of replication the daemon - Too complicated and not easy to achieve.
4. Possibility of using DBUS_XYX_BUS instead of DBUS_SESSION_BUS (with respective changes) - again too complicated and not sure on dependencies.


I would like to know your views on this, any help / directions / heads up will be very much appreciated.

Thanks,
Manoj
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Failed to execute dbus-launch to autolaunch D-Bus session wds Linux - Desktop 1 04-21-2012 05:39 PM
open an ssh session in a new instance of gnome-terminal? recomboDNA Programming 1 09-14-2010 08:49 PM
Dbus System bus and Session bus mainloops deimus Linux - Distributions 0 08-20-2010 06:49 AM
[SOLVED] No DBUS session-bus found Widgeteye Slackware 1 06-22-2010 03:46 PM
Starting system message bus :dbus --ldap client hangs at this stage sarajevo Linux - Server 1 02-05-2010 01:03 PM


All times are GMT -5. The time now is 10:40 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration