[zeromq-dev] Subscribing in JAVA api

Martin Sustrik sustrik at 250bpm.com
Tue May 11 21:11:00 CEST 2010


Hi Robin,

> One oddity I noticed... can java code subscribe using a precise match e.g. in c you hand a null terminated string as the topic to setsockopt. In java I guess the equivalent would be a string ending with "\u0000"?

The matching is done on the beginning of the message and that's it.

Thus you can use any character that doesn't appear in the topic as a 
boundary between topic and actual data. I myself often use pipe sign, 
e.g "animals.mammals.cats|kitty".

> Also what are the plans for PGM on windows? Read a few posts and it seems its not ready yet for general consumption yet. Are there instructions if we want to try to build it ourselves? Any ETA on a binary package?

Others may have more info about this...

Cheers.
Martin



More information about the zeromq-dev mailing list