maximum bus timeout limit
Keyur
keyur.patel at einfochips.com
Wed Feb 13 21:07:59 PST 2013
Hi Pavel,
Thank you so much for instant help.
What is maximum timeout limit if i use this method?
Regards,
Keyur Patel
On 14/02/2013 10:29 AM, Pavel Strashkin wrote:
> Hi Keyur,
>
> There is Object::set_timeout (int new_timeout = -1) available for you.
> You should use it before you make the call. As far as it's the wrapper
> for libdbus, -1 means "25 seconds" as Simon mentioned before, etc.
>
>
> On Wed, Feb 13, 2013 at 8:34 PM, Keyur <keyur.patel at einfochips.com
> <mailto:keyur.patel at einfochips.com>> wrote:
>
> 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 <mailto: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
> ---------------------------------------------------------------------------------------------
> _______________________________________________
> dbus mailing list
> dbus at lists.freedesktop.org <mailto: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
> ---------------------------------------------------------------------------------------------
>
--
Regards,
Keyur Patel
---------------------------------------------------------------------------------------------
Notice:
This message has been scanned by Trend Micro Mail Security scanner and is believed to be clean
---------------------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20130214/7f86174a/attachment-0001.html>
More information about the dbus
mailing list