[rabbitmq-discuss] Simple C Client to read from a Queue
tim at rabbitmq.com
Thu Sep 6 12:03:50 BST 2012
On 6 Sep 2012, at 11:39, Sajith Kariyawasam wrote:
> Hi all,
> My requirement is to read a message from an AMQP based broker queue, using a C Client.
> I tested the samples found in https://github.com/alanxz/rabbitmq-c, there I'm more interested in amqp_listenq.c programme.
> 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.
Does amqp_consumer.c not do more of what you're interested in?
> 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.
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rabbitmq-discuss