[zeromq-dev] multiple publisher synchronization

Martin Sustrik sustrik at 250bpm.com
Sat Dec 31 01:35:22 CET 2011


Hi Joshua,

> After playing around with the XPUB/XSUB/PUB/SUB, I found that it
> won't work. XPUB only receives messages when a brand new subscription
> is received or the all the subscribers unsubscribe. For example:

> sub.subscribe([2, 2, 3, 5)
> xsub.send([1, 2, 2, 3, 5], 0)
> xpub.recv(0) // this is [1, 2, 2, 3, 5]
> xpub.recv(0) // this will block because it is the same subscription

I am not really able to parse this. What do the numbers stand for? What 
are the square brackets?

Martin



More information about the zeromq-dev mailing list