[zeromq-dev] ZeroMQ Hello World Perl Example Start Up
Michel Pelletier
pelletier.michel at gmail.com
Mon Jul 16 19:02:21 CEST 2012
Your client and server are not connected to each other. They are both
calling connect() and being passed two different URIs.
One of your components has to call bind (which one is up to you, but
probably your server) and bind to an address, then the other component
must call connect to connect to that address. Please read the guide
which goes into specific details about this right in the beginning.
http://zguide.zeromq.org/page:all
-Michel
On Mon, Jul 16, 2012 at 9:38 AM, Marko Trajkov <markostrajkov at gmail.com> wrote:
> Hello,
>
> I am having trouble in running simple Hello World example in Perl. I
> installed ZeroMQ and perl module, but when I start perl scripts, they are
> running without errors but client and server does not exchange messages (do
> not receive messages and does not sends it) everything else is working
> without errors. This are example which I am trying to run.
>
> https://github.com/imatix/zguide/blob/master/examples/Perl/rrclient.pl
> https://github.com/imatix/zguide/blob/master/examples/Perl/rrserver.pl
>
> When client sends "Hello" tcpdump doesn't catch it, so I can conclude that
> package was not sent. When I manually send package using sendip, server
> doesn't received it.
>
> Please tell me if there is something that I was missing, where I am wrong. I
> don't know how to make it working. By the way, I am using zeroMq 2.2, ubuntu
> linux 12.04 and Perl 5.14.2
>
> Second question: Is there UDP protocol for zeroMQ sockets?
>
> Kind Regards,
>
> Marko Trajkov
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
More information about the zeromq-dev
mailing list