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

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


Hi,

I have three clients: ControlUI, ProcessA and ProcessB.

Configuration:
*ControlUI*: PUSH tcp://127.0.0.1:5000/data

*ProcessA*: PULL tcp://127.0.0.1:5000/data
*ProcessB*: PULL tcp://127.0.0.1:5001/data

When running:

ControlUI send "Hello"
ProcessA receives "Hello"
then
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://127.0.0.1:5000";
socket = new Socket(ctx, Socket.DOWNSTREAM);
socket.setsockopt(Socket.HWM, 10);
socket.bind(endpoint);


The receiver code is basically: (Java)
     String endpoint = "tcp://127.0.0.1:5000";
        socket = new Socket(ctx, Socket.UPSTREAM);
        socket.setsockopt(Socket.HWM, 10);
        socket.connect(endpoint);
-------------- 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