Hi Tim,�<div><br></div><div>Thanks for the reply and sorry for the�inconvenience if I have put the message into a &quot;wrong&quot; thread.</div><div><br></div><div>Even before putting the mail I tried commenting out the loops, but still I saw it does wait until a message is available in Queue.�</div>
<div><br></div><div>Also, I found �<a href="http://rabbitmq.1065348.n5.nabble.com/Librabbitmq-c-API-td6134.html">http://rabbitmq.1065348.n5.nabble.com/Librabbitmq-c-API-td6134.html</a>�, that they have referred to &quot;<span style="background-color:rgb(255,255,255);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13px">amqp_basic_get&quot;, and was thinking that someone will give some help in using�</span><span style="background-color:rgb(255,255,255);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13px">amqp_basic_get. I couldn&#39;t find a reference document for C API, but there are docs available for Java/Erlang..etc.. but could not find any for C. �&quot;</span><span style="background-color:rgb(255,255,255);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13px">amqp_basic_get&quot; have not been used in the set of example as well...�</span></div>
<div><span style="background-color:rgb(255,255,255);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13px"><br></span></div><div><font face="Verdana, Geneva, Helvetica, Arial, sans-serif">Actually I&#39;m not a C developer, but a Java Developer, and my requirement is bit urgent,�that&#39;s�why I was expecting such kind of a basic help. If I had time, definitely I would have go through the code n will try to understand more..�</font></div>
<div><font face="Verdana, Geneva, Helvetica, Arial, sans-serif"><br></font></div><div><font face="Verdana, Geneva, Helvetica, Arial, sans-serif">IMO, it would have been better If the documentation related to C libraries are bit improved, so that it will be easy for new comers to understand..�</font></div>
<div><font face="Verdana, Geneva, Helvetica, Arial, sans-serif"><br></font></div><div><font face="Verdana, Geneva, Helvetica, Arial, sans-serif"><br></font></div><div><div class="gmail_quote">On Thu, Sep 6, 2012 at 4:41 PM, Tim Watson <span dir="ltr">&lt;<a href="mailto:tim@rabbitmq.com" target="_blank">tim@rabbitmq.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><br><div><div class="im"><div>On 6 Sep 2012, at 12:03, Tim Watson wrote:</div><br><blockquote type="cite">
<div style="word-wrap:break-word"><div><div>On 6 Sep 2012, at 11:39, Sajith Kariyawasam wrote:</div><br><blockquote type="cite">Hi all,�<div><br></div><div>My requirement is to read a message from an AMQP based broker queue, using a C Client.�</div>
<div><br></div><div>I tested the samples found in�<a href="http://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Falanxz%2Frabbitmq-c&amp;sa=D&amp;sntz=1&amp;usg=AFQjCNEMwRO8OLSNeNdnSc0ZrkktMhO50A" style="text-decoration:none;color:rgb(17,85,204);font-family:arial,sans-serif;font-size:13px" target="_blank">https://github.com/alanxz/rabbitmq-c</a>, there I&#39;m more interested in�amqp_listenq.c programme.</div>
</blockquote><blockquote type="cite">
<div><br></div><div>But my requirement is to run this client periodically, should not continuously listen to the message queue (as in this example). I need to read just a simple message and out put the text content of that message.</div>

<div><br></div></blockquote><div><br></div></div></div></blockquote><div><br></div></div><div>Someone pointed out that you&#39;re after basic.get though. If you are *just* trying to pull 1 message off the queue and then terminate the program, then just drop the loops.�</div>
<div class="im"><br><blockquote type="cite"><div style="word-wrap:break-word"><div><div>Does�amqp_consumer.c not do more of what you&#39;re interested in?</div><br></div></div></blockquote><div><br></div></div><div>No, the listenq.c sample is the one you want. It really does seem that you&#39;re trying to get someone to write your C code for you though - as I said, just remove the looping - and whilst we are very keen to help with rabbit questions, I suspect this might be going a bit far even for the more enthusiastic among us. ;)</div>
<div><br></div></div></div><br>_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Best Regards<div>Sajith</div><br>
</div>