Subject: | example for zmq_poll usage with ZeroMQ::Raw |
Hi Daisuke, thank you for writing the ZeroMQ Perl library, I appreciate
your work :-)
Would you mind writing a quick example for how to use zmq_poll and
ZeroMQ::Raw?
In the documentation section "ASYNCHRONOUS I/O WITH ZEROMQ" you have
described how to setup the zmq_poll hash with callbacks, but not the
parameters passed to the callbacks or how to extract messages in the
callbacks.
I've tried reading thru the sourcecode in ZeroMQ-
0.21/lib/ZeroMQ/Poller.pm, but my Perl isn't good enough to deciper how
you're using zmq_poll:
18 sub poll {
...
25 zmq_poll($self->_raw_poll_items, $timeout);
26 }
Thanks, Sonia.