<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, <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 target="_blank" href="http://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Falanxz%2Frabbitmq-c&sa=D&sntz=1&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 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 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>