[zeromq-dev] ZeroMQ Hello World Perl Example Start Up

Daisuke Maki lestrrat at gmail.com
Tue Jul 17 15:18:20 CEST 2012


Here's a working example using ZMQ::LibZMQ2

https://gist.github.com/3129346

Maybe I wasn't explicit enough, but ZeroMQ.pm is done for. I'm no
longer going to maintain it. please use ZMQ::LibZMQ2 or ZMQ::LibZMQ3

--d

2012/7/17 Marko Trajkov <markostrajkov at gmail.com>:
> Hi,
>
> thanks for replays, I really appreciate it, but I still didn't have success
> in making it working. Server binds on tcp://192.168.109.255:5560 (my local
> address) and client connect to same address, bat they don't communicate.
> When they try to receive data (recv()->data;) both becomes blocked.
> In the example, client sends "Hello" but when I use tcpdump to monitor all
> traffic, I don't see that anything was sent.
>
> By the way, is it possible to use UDP sockets in ZeroMQ, I don't see that
> something like this is possible in the guide, only (inproc, ipc, tcp, pgm,
> epgm).
>
> Kind Regards,
>
> Marko Trajkov
>
>
> 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
>>
>
>
> _______________________________________________
> 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