[rabbitmq-discuss] rabbitmq-c attempting to get routingkey when using amqp_basic_get

obecker obecker at tantalus.com
Fri Jul 12 17:23:40 BST 2013

Thanks, that explainf why I couldn't find it.

So I should be able to get the routing key from the amqp_rpc_reply_t struct?

      amqp_rpc_reply_t reply =  amqp_basic_get(conn, channel,
      if(reply.reply.id == AMQP_BASIC_GET_OK_METHOD)
         amqp_basic_deliver_t * d = (amqp_basic_deliver_t *)
	 printf("Message of type %s on queue %s retrieved Data.\n",(char *)
d->routing_key.bytes, queue[q]);

         ...  (seems to blow up on me... :-)

View this message in context: http://rabbitmq.1065348.n5.nabble.com/rabbitmq-c-attempting-to-get-routingkey-when-using-amqp-basic-get-tp28021p28052.html
Sent from the RabbitMQ mailing list archive at Nabble.com.

More information about the rabbitmq-discuss mailing list