[rabbitmq-discuss] rabbitmq-c - Extracting message attributes / properties

Alan Antonuk alan.antonuk at gmail.com
Mon Nov 19 17:22:16 GMT 2012


You want to cast the decoded void* pointer to a amqp_basic_properties_t*
pointer then you can access the properties.

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.

-Alan

On Mon, Nov 19, 2012 at 9:54 AM, Daniel Hook <dhge at nym.hush.com> wrote:

> 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't know how
> to interpret those pointers.
>
> Thanks.
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20121119/f574b328/attachment.htm>


More information about the rabbitmq-discuss mailing list