<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
</head>
<body>
<div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt">Hi Alan,<br>
<br>
Thanks for the earlier prompt replies. I am trying<b> amqp_simple_wait_frame_noblock</b> API in amqp_listen.c example from rabbitmq-c library. I have successfully opened new connection and channel and created queue for this listner. I want the frame to wait
 for 10 seconds to receive the message sent by sender. I declared the timeout as follows.<br>
<br>
struct timeval timeout;<br>
timeout.tv_sec = 10;<br>
timeout.tv_usec = 0;<br>
<br>
result = amqp_simple_wait_frame_noblock(conn, &amp;frame, &amp;timeout);<br>
<br>
However I noticed that this API is not waiting for 10seconds and I am getting timeout in around 1-2seconds. Could you please provide a snippet for the usage of this API as I was not able to get it from the current examples?<br>
<br>
Thanks and regards,<br>
Shashank</div>
<br>
<hr>
<font face="Arial" color="Navy" size="2"><br>
DISCLAIMER:<br>
This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or
 all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated.<br>
</font>
</body>
</html>