Re: [zeromq-dev] perl binding never completes "init".

2011-02-25 Thread Jonathan Rockway
* 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? >&

Re: [zeromq-dev] perl binding never completes "init".

2011-02-24 Thread Jonathan Rockway
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

Re: [zeromq-dev] perl binding never completes "init".

2011-02-19 Thread Jonathan Rockway
* 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

Re: [zeromq-dev] Announcing em-zeromq, integration with ruby's eventmachine reactor

2011-01-30 Thread Jonathan Rockway
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 =>

Re: [zeromq-dev] Announcing em-zeromq, integration with ruby's eventmachine reactor

2011-01-29 Thread Jonathan Rockway
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

Re: [zeromq-dev] External Event Loop

2011-01-25 Thread Jonathan Rockway
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

Re: [zeromq-dev] Newbie Question: php-zmq and the "Divide and Conquer" Example - "Failed to bind the ZMQ: Address already in use"

2011-01-05 Thread Jonathan Rockway
* 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

Re: [zeromq-dev] External Event Loop

2011-01-01 Thread Jonathan Rockway
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 ___