notification of disconnect?

Eugene Gorodinsky e.gorodinsky at gmail.com
Thu Jul 30 07:13:19 PDT 2009


Thanks, looks like what I was looking for!

2009/7/30 Colin Walters <walters at verbum.org>:
> On Thu, Jul 30, 2009 at 9:33 AM, Eugene
> Gorodinsky<e.gorodinsky at gmail.com> wrote:
>> Hi all. I'm writing a client-server application where the server needs
>> to be aware of the clients currently running. Is there a way to make
>> dbus send a signal to my server when a certain application has lost
>> connection to dbus?
>
> Each process connected to the bus has a "unique name", and the bus
> will send you notifications (NameOwnerChanged) when those names appear
> or disappear.  A pattern used by some programs like bluetooth is the
> "agent" pattern where the client sends a "Register" message with its
> unique name, then the server monitors that client and sends messages
> directly to it.
>


More information about the dbus mailing list