[rabbitmq-discuss] Rabbitmq-C amqp_simple_wait_frame_noblock API usage

Lothe Shashank Shashank.Lothe at techmahindra.com
Thu Sep 26 07:02:12 BST 2013


Hi Alan,

Thanks for the earlier prompt replies. I am trying amqp_simple_wait_frame_noblock 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.

struct timeval timeout;
timeout.tv_sec = 10;
timeout.tv_usec = 0;

result = amqp_simple_wait_frame_noblock(conn, &frame, &timeout);

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?

Thanks and regards,
Shashank

________________________________

DISCLAIMER:
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130926/d5f93e04/attachment.htm>


More information about the rabbitmq-discuss mailing list