Thanks for the quick reply and fix. Everything is working as you described!

Regarding your answer for the last question, I suposse that the map_filters  
could be filled with all the extensions defined in the link 
(http://www.amqp.org/specification/1.0/filters) , isn't ? How are linked 
together  the items of the map_filters? With one AND  or with the OR operator ?

Sent from my iPad

> On 12.01.2018, at 12:44, Gordon Sim <[email protected]> wrote:
> 
>> On 12/01/18 08:48, Daniel Gavrila wrote:
>> My environment:
>> Proton v. 0.19
>> C++ Broker v.1.37 configured with AMQP 1.0
>>  I have problems with setting up correctly the example and to test it.
> 
> It appears that it does not work, due to the selector being sent as binary 
> and not a string (as defined for that filter type). I have committed a fix.
> 
>> 1.       Do you have also a sender example that works with the selected_recv 
>> ?
> 
> No, at present there is no sender example that sets the application property 
> 'colour' on which the selected_recv filters. Would be nice to add one.
> 
> Attached is a simple example, based on simple_send, the sets the colour to 
> green on odd messages and red on even. If you run this, then selected_recv.py 
> should see only the odd messages.
> 
>> 2.       Which configuration do I need to make in the broker ?
> 
> None, other than the examples queue existing or being created on demand.
> 
>> 3.       The variable “proton::codec::encoder enc” from line 44 looks like a 
>> local variable that is never used
> 
> It is used with the << operator, and its purpose is to populate the 
> filter_value variable it wraps.
> 
>> 4.       I cannot figure from documentation which is the purpose of the 
>> selector “apache.org:selector-filter:string” .
>> Why is necessary such a construct ?
> 
> The core spec does not define any specific filter syntax. The 
> “apache.org:selector-filter:string” identifies an extension that uses a JMS 
> selector like syntax[1]. I.e. it tells the broker/server how to interpret the 
> filter value.
> 
> [1] http://www.amqp.org/specification/1.0/filters
> <colour_send.py>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]

Reply via email to