[zeromq-dev] ZeroMQ Hello World Perl Example Start Up
Alex Sergeyev
abc at alexsergeyev.com
Tue Jul 17 03:55:51 CEST 2012
This would be appropriate to commit:
------------------------------------------------
--- a/examples/Perl/rrserver.pl
+++ b/examples/Perl/rrserver.pl
@@ -21,7 +21,7 @@ my $context = ZeroMQ::Context->new();
# Socket to talk to clients
my $responder = $context->socket(ZMQ_REP);
-$responder->connect('tcp://localhost:5560');
+$responder->bind('tcp://*:5559');
while (1) {
# Wait for next request from client
------------------------------------------------
(localhost is ambiguous IPv6 vs IPv4, so I used * for simplicity)
More information about the zeromq-dev
mailing list