On Wed, 2015-11-04 at 23:47 +0300, Michael Ivanov wrote:
> I have a question about direct message receive in proton.
> I tried to receive messages directly using amqp://~126.96.36.199 url.
> It works but it seems that queue names in this case are ignored.
> I.e. when I subscribe to amqp://~188.8.131.52/q1 I also get the messages
> for amqp://~184.108.40.206/q2, 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
> 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().