Multiple connections to dbus-daemon in single appication

Simon McVittie smcv at collabora.com
Thu Sep 20 11:55:05 UTC 2018


On Thu, 20 Sep 2018 at 07:05:48 +1200, Lawrence D'Oliveiro 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
> 
> 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

Yes, that's one of the unusual situations where this makes sense. It's
more usual to have a single connection, treat your unique name and all
your well-known names as being essentially equivalent, and use distinct
object paths and interfaces for the different APIs you offer.

    smcv


More information about the dbus mailing list