DBusPending

John (J5) Palmieri johnp at redhat.com
Fri May 26 08:51:39 PDT 2006


On Fri, 2006-05-26 at 09:19 +0200, WANG Gang RD-ILAB-PEK wrote:
> Hi,
>   I used DBusPendingCall in the client side to make asynchronous method
> call to a service provider.
>   When the service provider receives the incoming method_call message,
> it will generate two method_return messages and send them at an interval
> of 5 seconds.
>   But at the client side, the Notify Function registered with the
> DBusPendingCall is called only once with the first method_return message
> being supplied. Where is the second one?

Why would you send two return messages?  If you need to send at
different intervals you will need messages not return messages.  Return
messages imply a one to one relationship with a received message. Think
of them as any normal function return.

-- 
John (J5) Palmieri <johnp at redhat.com>



More information about the dbus mailing list