<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On 6 Sep 2012, at 11:39, Sajith Kariyawasam wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi all,&nbsp;<div><br></div><div>My requirement is to read a message from an AMQP based broker queue, using a C Client.&nbsp;</div><div><br></div><div>I tested the samples found in&nbsp;<a target="_blank" 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">https://github.com/alanxz/rabbitmq-c</a>, there I'm more interested in&nbsp;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>Does&nbsp;amqp_consumer.c not do more of what you're interested in?</div><br><blockquote type="cite"><div>How can I do that using C code? Since I'm having a very little experience with C, it would be very helpful if I can get a sample.</div><div><br></div></blockquote><div><br></div></div>I can't help you learn C or write your code for you, but I can suggest you spend a bit more time looking at the samples for the client library as they seem to cover what you're asking for.
</body></html>