* On Thu, Feb 24 2011, Vick Khera wrote:
> On Thu, Feb 24, 2011 at 1:15 PM, Jonathan Rockway wrote:
>> Not true, ithreads are definitely not required. What version of Perl are
>> you using? What does strace say about the lockup? Does a minimal C program
>> lock up?
>&
Not true, ithreads are definitely not required. What version of Perl are you
using? What does strace say about the lockup? Does a minimal C program lock
up?
Something else is up. If zmq works with ithreads but not without, I suspect
that it has something to do with linking or not linking pt
* On Thu, Feb 17 2011, Vick Khera wrote:
> Time to put on my perl XS module authoring hat and dive into the glue
> code... at least I have plenty of experience with that... :)
Also, try my ZeroMQ::Raw binding, which adds no extra code like the
other binding does. It's basically a straight wrapper
ate with
libev.)
If someone will ack this, I'll write up some documentation and a C-based
example on how to correctly integrate zmq >= 2.1.0 with an arbitrary
event loop. Hopefully that will save others some time.
Regards,
Jonathan Rockway
--
print just => another => perl =>
ter/lib/AnyEvent/ZeroMQ.pm
handle:
https://github.com/jrockway/anyevent-zeromq/blob/master/lib/AnyEvent/ZeroMQ/Handle.pm
This approach has been quite successful for me, both within my
applications and for communicating with Mongrel2.
Regards,
Jonathan Rockway
--
print just => another => perl => hacker => if $,=$"
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
pposed
to be used for external event loops pre-2.1.0?
(I'm confused because I've read the mongrel2 source code, and still
don't really understand how Zed integrates ZMQ into his superpoll event
loop. But it works really well, so I'll assume that I'm missing some
detail t
* On Tue, Jan 04 2011, Kermode Bear wrote:
> ventilator.php:
> $context = new ZMQContext();
> $sender = new ZMQSocket($context, ZMQ::SOCKET_PUSH);
> $sender->bind('tcp://*:5557');
> $sender->send('This is a test message.');
> ?>
>
> worker.php:
> $context = new ZMQContext();
> $recv = new ZMQ
o
read something (i.e., there are pending callbacks that need messages),
and "readable", which returns true if ZMQ_EVENTS says the socket is
readable.
Hope this helps, or that someone can tell me how I've botched this
terribly :)
Regards,
Jonathan Rockway
___