[rabbitmq-discuss] C library request/reply
dan.horsey at broadruntech.com
Mon May 6 21:10:41 BST 2013
Yup! That's what I was looking for.
From: rabbitmq-discuss-bounces at lists.rabbitmq.com
[mailto:rabbitmq-discuss-bounces at lists.rabbitmq.com] On Behalf Of Alan
Sent: Monday, May 06, 2013 3:00 PM
To: Discussions about RabbitMQ
Subject: Re: [rabbitmq-discuss] C library request/reply
Starting from the amqp_listen.c example:
That amqp_basic_properties_t* struct is what you're looking for.
You'll have to consult the _flags field to make sure the field is set
amqp_boolean_t is_set = p->_flags & AMQP_BASIC_REPLYTO_FLAG;
Then the reply-to value is stored in the reply_to member.
On Mon, May 6, 2013 at 10:00 AM, Daniel Horsey <dan.horsey at broadruntech.com>
Making my way through the RabbitMQ C api, and so far, so good, but I'm
having trouble implementing the "RPC" model. I can see how the "reply_to"
value gets set in the requests, but having trouble finding it on the
consumer side so I can use it to respond to. Looked at the
rpc_sendstring_client example, but I don't see where it executes the
consumer code to extract the data.
Where do I find this value?
Thanks in advance!
rabbitmq-discuss mailing list
rabbitmq-discuss at lists.rabbitmq.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rabbitmq-discuss