[zeromq-dev] PUB/SUB with multiple publishers

Chuck Remes cremes.devlist at mac.com
Fri Jul 16 19:47:37 CEST 2010


On Jul 16, 2010, at 12:34 PM, Dmitri Toubelis wrote:

> I have a scenario when I need to use PUB/SUB scheme with multiple publishers. Is it possible to do with "inproc" transport?
>  
> Here is what I tried:
> - create PUB socket and bind it to "inproc://pipe" endpoint
> - create another PUB socket and connect it to the same "inproc://pipe" endpoint
> - create SUB socket for each subscriber and connect them to thre "inproc://pipe" endpoint.
> - publish message using second publisher.
>  
> I'm getting no error, but message is not getting delivered to subscribers. Am I doing something wrong?

I don't think it is possible to have multiple sockets bind to the same endpoint. Are you certain that the result code from calling bind is 0? If it is, then this is likely a bug and should be reported (with sample code).

Alternately, if you are running this on Windows then I don't think inproc or ipc transports are supported on that platform. That should also error out (if you are on Windows).

cr


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20100716/d22272ec/attachment.htm>


More information about the zeromq-dev mailing list