ZMQ::LibCZMQ1 - Wrapper Around czmq high level ZMQ API
use ZMQ::LibCZMQ1; my $ctx = zctx_new(); zctx_destroy( $ctx ); zctx_set_iothreads( $ctx, $iothreads ); zctx_set_linger( $ctx, $linger ); # ...and a lot more
This is a wrapper around libczmq (1.3.4). Versions prior to 1.3.4 have been deliberately dropped off from the supported libczmq version (however, patches are welcome)
This module is still in heavey development. Please send issues, patches and pull requests if you have problems.
You need to make sure that BOTH libzmq and libczmq files are searchable when the compilation happens: Consider this case: you have zeromq-2.x in /usr/local, but you want to build against a custom zeromq-3.x in /path/to/app. If you don't specify anything, your compiler will look find zeromq-2.x in the standard location (/usr/local) and not the custom one.
If you installed your libraries with pkg-config data, then our scripts should be able to detect them automatically (but of course, you still need to make sure that zeromq-3.x files are found before zeromq-2.x files in the above scenario). Otherwise, use ZMQ_HOME and CZMQ_HOME environment variables:
ZMQ_HOME=/path/to/zeromq \ CZMQ_HOME=/path/to/czmq \ perl Makefile.PL make make test make install
Returns the version of libzmq this czmq (and hence this module) is built against.
In list context, returns 3 elements consisting of major version, minor version, and patch version.
In scalar context returns dotted version string.
Returns the version of czmq this module is built against.
To install ZMQ::LibCZMQ1, copy and paste the appropriate command in to your terminal.
cpanm
cpanm ZMQ::LibCZMQ1
CPAN shell
perl -MCPAN -e shell install ZMQ::LibCZMQ1
For more information on module installation, please visit the detailed CPAN module installation guide.