[zeromq-dev] fire up new subscribers

andrea crotti andrea.crotti.0 at gmail.com
Tue Aug 14 15:10:08 CEST 2012

2012/8/14 Pieter Hintjens <ph at imatix.com>:
> On Tue, Aug 14, 2012 at 9:00 PM, andrea crotti
> <andrea.crotti.0 at gmail.com> wrote:
>>> Maybe an example would be nice to have in the guide or in the examples
>>> directory, what do you think?
> Yes, when we update the Guide for 3.x...
>> This for example doesn't work, because the setsockopt is not compatible:
>> Traceback (most recent call last):
>>   File "xsub.py", line 21, in <module>
>>     sock.setsockopt(zmq.SUBSCRIBE, '')
> Set the subscription on a SUB socket, not an XSUB.
> -Pieter

I don't understand what you mean exactly, and changing XSUB to SUB
still doesn't work...

And where should I use XSUB then if the subscriber should always be SUB?

But a more important question, is XSUB supposed to work fine on 2.2
too since that's what I have to use now for production?

More information about the zeromq-dev mailing list