[zeromq-dev] PUB-SUB filtering question
zee at technocore.ru
Mon Aug 16 15:45:01 CEST 2010
> > Also, am I correct in assuming that you are not limited to ascii
> > character message topics? ie, can I subscribe to messages starting with
> > the 4 non-printable characters 0xDE 0xAD 0xBE 0xEF?
> Yes. It's binary.
There are some problems with considering the topics byte sequences.
First, it will still break on byte sequences with 0x00 in the middle
(like raw UUIDs or something), right? Second, java bindings work with
Strings not byte arrays at the moment, which might pose problems with
If pub/sub topics are considered byte sequences, then I think the API
should change on both sides — setsockopt(ZMQ.SUB, char* topic, int
topic_length) in C and socket.setSubscribe(byte topic) in Java.
More information about the zeromq-dev