[rabbitmq-discuss] rabbitmq-c, how to use x-message-ttl ?

Michael Klishin mklishin at gopivotal.com
Mon Nov 4 10:47:33 GMT 2013


On 4 Nov 2013, at 14:41, 3k4b251 <314992959 at qq.com> wrote:

> can  someone  give  me  a  example ?

You need to construct an extra arguments table and pass it instead of
amqp_empty_table, like here:
https://github.com/alanxz/rabbitmq-c/blob/master/examples/amqp_consumer.c#L186

https://github.com/alanxz/rabbitmq-c/blob/master/tests/test_tables.c provides
examples of how attribute tables are constructed in rabbitmq-c.

MK

Software Engineer, Pivotal/RabbitMQ




More information about the rabbitmq-discuss mailing list