ZMQ::CZMQ - Perl-ish wrapper for libczmq
use ZMQ::CZMQ; use ZMQ::Constants ...;
ZMQ::CZMQ is a Perl-ish wrapper for libczmq. It uses ZMQ::LibCZMQ1 for its backend (when/if libczmq 2.x comes out, we may change to use ZMQ::LibCZMQ2 or whatever)
If you want a one-to-one direct mapping to libzmq, then you should be using ZMQ::LibCZMQ1
If you think your code will be used from another program that also uses libczmq, you might want to consider using the ZMQ::LibCZMQ* modules. This is because you can't write "truly" portable code using this high level interface (libczmq's API change rather drastically between versions). Personally, I'd recommend only using this module for your one-shot scripts, and use ZMQ::LibCZMQ* for all other uses. YMMV.
Calls $funcname via whichever backend loaded by ZMQ.pm. If @args is passed, they are passed directly to the target function.
$funcname
@args
Functions in this area doesn't make sense to be made OO/Perlish. Either use them directly via ZMQ::LibCZMQ*:: or ZMQ::CZMQ::call()
ZMQ::LibCZMQ*::
ZMQ::CZMQ::call()
If you don't agree and would like to add them, patches are welcome.
http://zeromq.org
http://github.com/lestrrat/p5-ZMQ
ZMQ::LibCZMQ1, ZMQ::Constants
Daisuke Maki <daisuke@endeworks.jp>
<daisuke@endeworks.jp>
The ZMQ module is
Copyright (C) 2013 by Daisuke Maki
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.0 or, at your option, any later version of Perl 5 you may have available.
To install ZMQ::CZMQ, copy and paste the appropriate command in to your terminal.
cpanm
cpanm ZMQ::CZMQ
CPAN shell
perl -MCPAN -e shell install ZMQ::CZMQ
For more information on module installation, please visit the detailed CPAN module installation guide.