dbus_g_proxy_call or dbus_g_proxy_call_no_reply?
Thiago Macieira
thiago at kde.org
Thu Dec 7 09:53:04 PST 2006
Havoc Pennington wrote:
>Frédéric DALLEAU wrote:
>> Hi all,
>>
>> I wrote a DBus Method.
>> I passed the caller from dbus_g_proxy_call to
>> dbus_g_proxy_call_no_reply.
>>
>> What happen if I send the response even if the caller do not wait for
>> the answer.
>> Can I safely remove the response creation from the method call.
>> Are there any drawbacks?
>
>If the caller specifies the "no reply" flag, then you can optimize by
>not sending a reply. However, the optimization is not required; if you
>send the reply, the caller should ignore it.
On the other hand, if the flag isn't specified, you must send a reply.
You probably knew that already, but it's good to be sure of it.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/dbus/attachments/20061207/e04322b7/attachment.pgp
More information about the dbus
mailing list