[dbus-c++] asynchronous calls?

Andreas Volz lists at brachttal.net
Thu Jun 12 15:31:32 PDT 2008


Hello,

I'm playing around with the dbus-c++ echo example. I tried to simulate
some work and inserted a sleep(10) in the servers Hello() function.
This is the result for the client:

terminate called after throwing an instance of 'DBus::Error'
  what():  Did not receive a reply. Possible causes include: the remote
application did not send a reply, the message bus security policy
blocked the reply, the reply timeout expired, or the network connection
was broken. Aborted

What is the problem here? Is a remote function forced to return faster?

Then I try to create a asynchronous call. How should that be defined in
the XML file? Not sure if dbus-c++ supports this...

regards
Andreas


More information about the dbus mailing list