<div dir="ltr"><div>Here&#39;s and example on creating a temp queue in rabbitmq-c:<br></div><div><br></div><div><a href="https://github.com/alanxz/rabbitmq-c/blob/master/examples/amqp_consumer.c#L186">https://github.com/alanxz/rabbitmq-c/blob/master/examples/amqp_consumer.c#L186</a><br>
</div><div><br></div><div>Essentially you need to pass a 0-length string as the queue-name when doing a queue.declare (amqp_queue_declare()).</div><div><br></div><div>The generated name of the queue will be returned by the broker (in the amqp_queue_declare_ok_t struct). �You can use this to do a queue.delete (amqp_queue_delete()) later or if its a queue declared with auto-delete set, the queue will be destroyed when the consumer count falls to 0, or the channel that created is closed.</div>
<div><br></div><div>-Alan</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Sep 4, 2013 at 11:49 PM, antony <span dir="ltr">&lt;<a href="mailto:antony.pulicken@gmail.com" target="_blank">antony.pulicken@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks Alan and sorry for the additional email.<br>
<br>
Do you have any example for creating temporary queue in rabbitmq-c?<br>
<br>
I have done it in Java using<br>
<br>
String queueName = channel.queueDeclare().getQueue();<br>
<br>
But not able to figure the corresponding thing in rabbitmq-c?<br>
<br>
Regards,<br>
Antony.<br>
<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://rabbitmq.1065348.n5.nabble.com/amqpcpp-Temp-Queue-tp29342p29361.html" target="_blank">http://rabbitmq.1065348.n5.nabble.com/amqpcpp-Temp-Queue-tp29342p29361.html</a><br>
<div class="HOEnZb"><div class="h5">Sent from the RabbitMQ mailing list archive at Nabble.com.<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>
</div></div></blockquote></div><br></div></div>