2012/8/14 Chuck Remes <[email protected]>: > You are using undocumented socket types. Unless you feel like digging into > the code and figuring this out yourself, I recommend you use socket types > that have already been documented. >
Well I was trying to use what was suggested on this list ;) > In this example, you cannot call zmq_setsockopt() on a XSUB socket and pass > the ZMQ_SUBSCRIBE flag. It is not supported. To set the subscription using > XSUB directly, you would need to generate and send messages using the proper > formatting for an upstream PUB socket to understand. You could figure this > out by looking at how a SUB socket does it since that socket type is built on > top of XSUB. > > Shorter answer: you will need to read the code to figure this out. > Alternately, wait for updated documentation that could be months away. > >> 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? > > Andrea, this was answered about a week ago in this same thread. You need 3.2 > to use XSUB. > I didn't understand that it didn't work, I just thought the documentation was not there for 2.2, well never mind I'll find another way and forget about XSUB.. _______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
