non-blocking dbus server

Colin Walters walters at verbum.org
Fri Jul 10 16:20:40 UTC 2009


On Fri, Jul 10, 2009 at 5:18 AM, Jiri Moskovcak<jmoskovc at redhat.com> wrote:
>
> 3. when the work is finished send reply to the client
> - this is the part where I'm stuck, because I want to send the reply as
> return message to the matching method call, but the method call already
> returned when I started the thread. (So far I can achieve this by sending
> signal with return value as an argument, but I don't think this is a good
> solution).

Your options are:

1) Method returns "work item id", send a signal WorkDone with the id
2) Agent pattern, the server makes calls back to the client using its
unique name.
3) Infinite timeouts on method calls is in dbus git master




More information about the devel mailing list