[zeromq-dev] PUSH/PULL Seems to be ignoring port?

Jeff Vienneau jpvienneau at gmail.com
Fri Dec 10 15:50:34 CET 2010


I have three clients: ControlUI, ProcessA and ProcessB.

*ControlUI*: PUSH tcp://

*ProcessA*: PULL tcp://
*ProcessB*: PULL tcp://

When running:

ControlUI send "Hello"
ProcessA receives "Hello"
ControlUI sends "Hello"
ProcessB receives "Hello" (it should not be receiving this message!)

ProcessA and ProcessB are both getting the messages, one then the other. It
appears like the sockets are not utilizing the port portion of the URI. I
cannot imagine this expected behavior. Any why it would ignore the port?

The sender code:
     String endpoint = "tcp://";
socket = new Socket(ctx, Socket.DOWNSTREAM);
socket.setsockopt(Socket.HWM, 10);

The receiver code is basically: (Java)
     String endpoint = "tcp://";
        socket = new Socket(ctx, Socket.UPSTREAM);
        socket.setsockopt(Socket.HWM, 10);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20101210/223ca13f/attachment.htm>

More information about the zeromq-dev mailing list