Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rrclient examples use port 5559 while rrserver examples use port 5560 #101

Closed
wathiede opened this issue Sep 12, 2011 · 1 comment
Closed

Comments

@wathiede
Copy link

Wouldn't it make sense for the clients to use the same port as the server so the examples were runnable against themselves?

Compare the output below:

$ grep connect examples//rrclient|grep -v println
examples/C++/rrclient.cpp: requester.connect("tcp://localhost:5559");
examples/C/rrclient.c: zmq_connect (requester, "tcp://localhost:5559");
examples/CL/rrclient.lisp: (zmq:connect requester "tcp://localhost:5559")
examples/Erlang/rrclient.es: ok = erlzmq:connect(Requester, "tcp://*:5559"),
examples/Haskell/rrclient.hs: connect requester "tcp://localhost:5559"
examples/Haxe/rrclient.hx: requester.connect ("tcp://localhost:5559");
examples/Java/rrclient.java: requester.connect("tcp://localhost:5559");
examples/Lua/rrclient.lua:requester:connect("tcp://localhost:5559")
examples/PHP/rrclient.php:$requester->connect("tcp://localhost:5559");
examples/Perl/rrclient.pl:$requester->connect('tcp://localhost:5559');
examples/Python/rrclient.py:socket.connect("tcp://localhost:5559")
examples/Racket/rrclient.rkt:(socket-connect! sock "tcp://localhost:5559")
examples/Ruby/rrclient.rb:socket.connect('tcp://localhost:5559')
examples/Scala/rrclient.scala: requester.connect ("tcp://localhost:5559")

$ grep connect examples//rrserver |grep -v println
examples/C++/rrserver.cpp: responder.connect("tcp://localhost:5560");
examples/C/rrserver.c: zmq_connect (responder, "tcp://localhost:5560");
examples/CL/rrserver.lisp: (zmq:connect responder "tcp://localhost:5560")
examples/Erlang/rrserver.es: ok = erlzmq:connect(Responder, "tcp://*:5560"),
examples/Haskell/rrserver.hs: connect responder "tcp://localhost:5560"
examples/Haxe/rrserver.hx: responder.connect("tcp://localhost:5560");
examples/Java/rrserver.java: responder.connect("tcp://localhost:5560");
examples/Lua/rrserver.lua:responder:connect("tcp://localhost:5560")
examples/PHP/rrserver.php:$responder->connect("tcp://localhost:5560");
examples/Perl/rrserver.pl:$responder->connect('tcp://localhost:5560');
examples/Python/rrserver.py:socket.connect("tcp://localhost:5560")
examples/Ruby/rrserver.rb:socket.connect('tcp://localhost:5560')
examples/Scala/rrserver.scala: receiver.connect("tcp://localhost:5560")

@hintjens
Copy link
Contributor

The client and server don't talk directly, but go via the broker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants