[prev in list] [next in list] [prev in thread] [next in thread]
List: freedesktop-dbus
Subject: Re: DBUS service using glib: question
From: Ross Burton <ross () burtonini ! com>
Date: 2006-07-14 10:07:36
Message-ID: 1152871656.24354.22.camel () localhost ! localdomain
[Download RAW message or body]
On Fri, 2006-07-14 at 11:13 +0200, Xavier Claessens wrote:
> Thanks ! I can now know when a client connect/disconnect and I keep a
> hash table with information about all clients connected. Then only
> problem remaining: When a method is called on my object, how can I know
> which client called it ?
If you are using the low-level methods the DBusMessage object has a
sender field. If you are using the GLib bindings then you need to
annotate the methods as being Async, then you get a context object that
contains the sender.
> My callback for the "NameOwnerChanged" signal is always called twice !
> Is is a bug ? For example, when a client connect the callback is called
> 2 times with the same args (name=:1.90 ; old_owner='\0' ;
> new_owner=:1.90). I have the same thing when client disconnect. Bug or
> feature ?
I've never seen this before, strange...
Ross
--
Ross Burton mail: ross@burtonini.com
jabber: ross@burtonini.com
www: http://www.burtonini.com./
PGP Fingerprint: 1A21 F5B0 D8D0 CFE3 81D4 E25A 2D09 E447 D0B4 33DF
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic