<div dir="ltr">Hi Keyur,<div><br></div><div style>There is Object::set_timeout (int new_timeout = -1) available for you.</div><div style>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.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Feb 13, 2013 at 8:34 PM, Keyur <span dir="ltr"><<a href="mailto:keyur.patel@einfochips.com" target="_blank">keyur.patel@einfochips.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks Simon,<br>
<br>
I am using Dbus-c++<br>
can you help me in that?<div><div class="h5"><br>
<br>
<br>
On 14/02/2013 2:08 AM, Simon McVittie wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
On 13/02/13 14:29, Keyur wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
What is maximum bus timeout limit for dbus blocking function?<br>
</blockquote>
As long as you like.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
how to set timeout for dbus function?<br>
</blockquote>
It depends which implementation you're using. Most implementations let<br>
you specify a timeout when you call a method, with -1 meaning "let the<br>
implementation choose" (if you tell libdbus to use timeout -1, it will<br>
currently use 25 seconds).<br>
<br>
If you're using libdbus, it's the timeout_milliseconds parameter to<br>
dbus_connection_send_with_<u></u>reply() or<br>
dbus_connection_send_with_<u></u>reply_and_block().<br>
<br>
If you're using GDBus, it's the timeout_msec parameter to<br>
g_dbus_connection_call_sync(), g_dbus_connection_call(), etc.<br>
<br>
If you're using dbus-glib, don't; but if you really have to, you can use<br>
dbus_g_proxy_call_with_<u></u>timeout() or<br>
dbus_g_proxy_begin_call_with_<u></u>timeout() or<br>
dbus_g_proxy_set_default_<u></u>timeout(). The timeout argument is interpreted<br>
in the same way as for libdbus.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
and what is maximum timeout limit?<br>
</blockquote>
In recent libdbus, specifying DBUS_TIMEOUT_INFINITE (or INT32_MAX or<br>
0x7fffffff) is a special case which results in an infinite timeout.<br>
In older libdbus, that value is taken literally as 0x7fffffff<br>
milliseconds, which is more than 24 days.<br>
<br>
GDBus uses G_MAXINT for the same thing.<br>
<br>
S<br>
______________________________<u></u>_________________<br>
dbus mailing list<br>
<a href="mailto:dbus@lists.freedesktop.org" target="_blank">dbus@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/dbus" target="_blank">http://lists.freedesktop.org/<u></u>mailman/listinfo/dbus</a><br>
<br></div></div><div class="im">
------------------------------<u></u>------------------------------<u></u>------------------------------<u></u>---<br>
Notice:<br>
This message has been scanned by Trend Micro Mail Security scanner and is believed to be clean<br>
------------------------------<u></u>------------------------------<u></u>------------------------------<u></u>---<br></div>
******************************<u></u>******************************<u></u>******************************<u></u>******************************<u></u>******************************<u></u>*******<br>
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.<br>
******************************<u></u>******************************<u></u>******************************<u></u>******************************<u></u>******************************<u></u>*******<br>
<br>
<br>
</blockquote><div class="im HOEnZb">
<br>
-- <br>
Regards,<br>
Keyur Patel<br>
<br>
<br>
<br>
------------------------------<u></u>------------------------------<u></u>------------------------------<u></u>---<br>
Notice: This message has been scanned by Trend Micro Mail Security scanner and is believed to be clean<br>
------------------------------<u></u>------------------------------<u></u>------------------------------<u></u>---<br></div><div class="HOEnZb"><div class="h5">
______________________________<u></u>_________________<br>
dbus mailing list<br>
<a href="mailto:dbus@lists.freedesktop.org" target="_blank">dbus@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/dbus" target="_blank">http://lists.freedesktop.org/<u></u>mailman/listinfo/dbus</a><br>
</div></div></blockquote></div><br></div>