I call bind only once. The second time I use connect and it returns 0.
 
Dmitri Toubelis
Solution Architect / Director @ Alkeron Multimedia
cell: +1-647-400-3876
email:  <mailto:[email protected]> [email protected]
 

  _____  

From: [email protected]
[mailto:[email protected]] On Behalf Of Chuck Remes
Sent: July 16, 2010 1:48 PM
To: 0MQ development list
Subject: Re: [zeromq-dev] PUB/SUB with multiple publishers


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


_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to