POEx::ZMQ::FFI - libzmq3+ FFI wrapper for POEx::ZMQ
# Used internally by POEx::ZMQ.
This is a minimalist FFI::Raw interface to ZeroMQ version 3+, derived from Dylan Cali's ZMQ::FFI (which is where you likely want to look if you're not using POEx::ZMQ).
my $soname = POEx::ZMQ::FFI->find_soname;
Attempts to find an appropriate libzmq dynamic library, with a preference for the newest known version; croaks on failure.
libzmq
my $vstruct = POEx::ZMQ::FFI->get_version; my $version = $vstruct->string; # 3.2.1 my $major = $vstruct->major; # 3 my $minor = $vstruct->minor; # 2 my $patch = $vstruct->patch; # 1
Returns a struct-like object containing the zmq_version(3) version information.
The dynamic library name can be supplied:
my $vstruct = POEx::ZMQ::FFI->get_version($soname);
... otherwise the library found by "find_soname" is used.
Jon Portnoy <avenj@cobaltirc.org>
Significant portions of the FFI backend are derived from ZMQ::FFI by Dylan Cali (CPAN: CALID).
Licensed under the same terms as Perl.
To install POEx::ZMQ, copy and paste the appropriate command in to your terminal.
cpanm
cpanm POEx::ZMQ
CPAN shell
perl -MCPAN -e shell install POEx::ZMQ
For more information on module installation, please visit the detailed CPAN module installation guide.