Emitting signals

Ross Burton ross at burtonini.com
Wed Jul 27 23:14:57 EST 2005


On Wed, 2005-07-27 at 14:21 +0200, Lennart Poettering wrote:
> > Yes, signals are broadcast to all clients.  I'd suggest either sending
> > the signals and make the client filter the signals itself.  My app
> > solves this by sending normal messages to the client, but I can do this
> > as I've got a client library which handles the incoming messages and
> > transforms them into GObject signals for the applications.
> 
> Isn't this a waste of resources? You're spamming all DBUS clients
> with signals only one client might be interested in, arent' you? If
> hundreds of clients are connected to the bus (which is easily
> possible, since avahi uses the system bus), you'll wake up all clients
> for nothing.

Clients have to register a filter to receive signals, so you'll only
send it to all Avahi clients.

Ross
-- 
Ross Burton                                 mail: ross at burtonini.com
                                          jabber: ross at burtonini.com
                                     www: http://www.burtonini.com./
 PGP Fingerprint: 1A21 F5B0 D8D0 CFE3 81D4 E25A 2D09 E447 D0B4 33DF





More information about the dbus mailing list