maximum bus timeout limit

Keyur keyur.patel at einfochips.com
Wed Feb 13 20:34:39 PST 2013


Thanks Simon,

I am using Dbus-c++
can you help me in that?


On 14/02/2013 2:08 AM, Simon McVittie wrote:
> On 13/02/13 14:29, Keyur wrote:
>> What is maximum bus timeout limit for dbus blocking function?
> As long as you like.
>
>> how to set timeout for dbus function?
> It depends which implementation you're using. Most implementations let
> you specify a timeout when you call a method, with -1 meaning "let the
> implementation choose" (if you tell libdbus to use timeout -1, it will
> currently use 25 seconds).
>
> If you're using libdbus, it's the timeout_milliseconds parameter to
> dbus_connection_send_with_reply() or
> dbus_connection_send_with_reply_and_block().
>
> If you're using GDBus, it's the timeout_msec parameter to
> g_dbus_connection_call_sync(), g_dbus_connection_call(), etc.
>
> If you're using dbus-glib, don't; but if you really have to, you can use
> dbus_g_proxy_call_with_timeout() or
> dbus_g_proxy_begin_call_with_timeout() or
> dbus_g_proxy_set_default_timeout(). The timeout argument is interpreted
> in the same way as for libdbus.
>
>> and what is maximum timeout limit?
> In recent libdbus, specifying DBUS_TIMEOUT_INFINITE (or INT32_MAX or
> 0x7fffffff) is a special case which results in an infinite timeout.
> In older libdbus, that value is taken literally as 0x7fffffff
> milliseconds, which is more than 24 days.
>
> GDBus uses G_MAXINT for the same thing.
>
>      S
> _______________________________________________
> dbus mailing list
> dbus at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dbus
>
> ---------------------------------------------------------------------------------------------
> Notice:
> This message has been scanned by Trend Micro Mail Security scanner and is believed to be clean
> ---------------------------------------------------------------------------------------------
> *************************************************************************************************************************************************************
> eInfochips Business Disclaimer : This e-mail message and all attachments transmitted with it are intended solely for the use of the addressee and may contain legally privileged and confidential information. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, copying, or other use of this message or its attachments is strictly prohibited. If you have received this message in error, please notify the sender immediately by replying to this message and please delete it from your computer. Any views expressed in this message are those of the individual sender unless otherwise stated. Company has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email.
> *************************************************************************************************************************************************************
>
>

-- 
Regards,
Keyur Patel



---------------------------------------------------------------------------------------------
Notice: 
This message has been scanned by Trend Micro Mail Security scanner and is believed to be clean
---------------------------------------------------------------------------------------------


More information about the dbus mailing list