Re: Multiple connections to dbus-daemon in single appication

Lawrence D'Oliveiro <ldo-kC51rjc0cqs1dNLGKZg6taU/[email protected]>
Newsgroups gmane.comp.freedesktop.dbus
Organization Geek Central
Message-ID <[email protected]>
On Mon, 17 Sep 2018 12:45:10 +0100, Simon McVittie wrote:

> You can also open multiple connections, each of which can own any
> number of well-known names, by calling dbus_bus_get_private() several
> times to get several distinct DBusConnection objects. This is usually
> the wrong thing to do, but is an option if you have specialized
> requirements.

Actually, come to think of it, if you want messages addressed to
different bus names to be handled differently, this is the only way to
do it. This is because your clients might be addressing the messages
using either the unique name or the well-known name, and you probably
don’t want your behaviour to vary based on this. So you need to pair a
different unique name with each well-known name.
_______________________________________________
dbus mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dbus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.