[zeromq-dev] Perl: zmq_poll
Thomas Klausner
domm at plix.at
Fri Dec 28 17:54:48 CET 2012
Hi!
On Fri, Dec 28, 2012 at 10:49:30AM -0500, Nishant Mittal wrote:
> I checked the example code for multiple socket poller (
> http://zguide.zeromq.org/pl:mspoller) but its not clear to me as to how I
> can get a handle to the socket that fired the callback function. The
> example just prints a warning message and does not attempt to get the
> message.
AFAIK it's not a good idea to use the 0mq poller in Perl. I've had
better success using AnyEvent. I wrote up my first experiences here:
http://domm.plix.at/perl/2012_12_getting_started_with_zeromq_anyevent.html
(but I'm not sure if that's best practice - I'm still learning...)
Greetings,
domm
--
#!/usr/bin/perl http://domm.plix.at
for(ref bless{},just'another'perl'hacker){s-:+-$"-g&&print$_.$/}
More information about the zeromq-dev
mailing list