[rabbitmq-discuss] question about amqp_queue_declare

singledon mrhol at qq.com
Tue Sep 9 05:34:34 BST 2014


when i called amqp_queue_declare with arguments, it return some error message
like "received bad AMQP data
, -6", i have no idea what's wrong.please help..

queue durable
exchange durable
arguments in c++:
    amqp_table_t  arg;
    arg = (amqp_table_t) {0};
    amqp_table_entry_t entries = {0};
    entries.key = amqp_cstring_bytes("x-ha-policy");
    entries.value.kind = AMQP_FIELD_KIND_UTF8;
    entries.value.value.bytes = amqp_cstring_bytes("all");
    arg.num_entries = 1;
    arg.entries = &entries;



--
View this message in context: http://rabbitmq.1065348.n5.nabble.com/question-about-amqp-queue-declare-tp37060.html
Sent from the RabbitMQ mailing list archive at Nabble.com.


More information about the rabbitmq-discuss mailing list