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

obecker obecker at tantalus.com
Fri Jul 12 17:27:48 BST 2013


Never  mind, I got it now... :-)


      amqp_rpc_reply_t reply =  amqp_basic_get(conn, channel,
amqp_cstring_bytes(queue),1); 
      
      if(reply.reply.id == AMQP_BASIC_GET_OK_METHOD)
      {
         amqp_basic_get_ok_t * d = (amqp_basic_get_ok_t *)
reply.reply.decoded;
	 
	 printf("Message of type %s on queue %s retrieved Data.\n",(char *)
d->routing_key.bytes, queue);
	 printf("  Message: %s\n",  get_message(conn));

      }     

Thanks for the help.





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


More information about the rabbitmq-discuss mailing list