[rabbitmq-discuss] rabbitmq-c how many channels I need?
alan.antonuk at gmail.com
Tue Jun 18 17:51:38 BST 2013
On Tue, Jun 18, 2013 at 4:58 AM, Michael Klishin <
michael.s.klishin at gmail.com> wrote:
> 2013/6/18 3k4b251 <314992959 at qq.com>
>> I know the channel of sender,but how can I know
>> which queue this message from
> Every delivery has a consumer tag (identifier). The same tag will be
> availalbe on the basic.consume-ok method
> returned by basic.consume (sorry, I'm not sure what function/struct
> exactly that translates in the C client).
The structs you'd care about in rabbitmq-c are:
The amqp_basic_deliver_t method is the first method delivered in this
message reading loop:
You can do the following to get an amqp_basic_delivery_t object from the
amqp_basic_deliver_t *delivery = (amqp_basic_deliver_t
> If you keep a mapping of consumers to queues, you will be able to look up
> queues by consumer tag.
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rabbitmq-discuss