<div>The first frame you get when receiving a message is the basic.deliver method frame.</div><div><br></div><div>Cast the amqp_frame_t.payload.method.decoded to an amqp_basic_deliver_t*, then it will be in the routing_key member of that struct. �You can also get the exchange and consumer tag that way.</div>
<div><br></div><div>-Alan<br><br><div class="gmail_quote">On Mon, Nov 19, 2012 at 1:53 PM, Daniel Hook <span dir="ltr">&lt;<a href="mailto:dhge@nym.hush.com" target="_blank">dhge@nym.hush.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.� One more thing.� How can I get the routing key of a received message?� <br><div class="im"><br>On Monday, November 19, 2012 12:22:19 PM UTC-5, Alan Antonuk wrote:</div><blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">You want to cast the decoded void* pointer to a amqp_basic_properties_t* pointer then you can access the properties.<div><br></div><div>Note that this pointer is invalidated the next time you call amqp_maybe_release_buffers, so be sure to copy anything you need out before you call that function.</div>

<div><br></div></div><div>-Alan<br><br><div class="gmail_quote"><div class="im">On Mon, Nov 19, 2012 at 9:54 AM, Daniel Hook <span dir="ltr">&lt;<a>dh...@nym.hush.com</a>&gt;</span> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">
I can see clearly how to set the properties in amqp_basic_publish, but how does the consumer read them?� I think it relates to the void * decoded and amqp_bytes_t raw members of amqp_frame_t::properties, but I don&#39;t know how to interpret those pointers.<br>

<br>Thanks.<br><br>______________________________<u></u>_________________<br>
rabbitmq-discuss mailing list<br>
</div><a>rabbitmq...@lists.<u></u>rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/<u></u>cgi-bin/mailman/listinfo/<u></u>rabbitmq-discuss</a><br>
<br></blockquote></div><br></div>
</blockquote><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>
<br></blockquote></div><br></div>