On Wed, 2015-11-04 at 23:47 +0300, Michael Ivanov wrote:
> Hallo,
> I have a question about direct message receive in proton.
> I tried to receive messages directly using amqp://~ url.
> It works but it seems that queue names in this case are ignored.
> I.e. when I subscribe to amqp://~ I also get the messages
> for amqp://~, q3 etc.
> Is it possible either receive only message for queue specified
> in url or at least to get the target queue name from the received
> message?
> Best regards,

The direct_recv message is rather simple and just accepts any message
it gets on the connection without looking at the link or message

Normally the link address is used identify a queue or topic in a
broker. You can see this address when the link is established or when
you receive a message you can check the link it arrived on. Check the
broker.hpp example on_link_opening() and on_message().


Reply via email to