The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

POEx::ZMQ::FFI - libzmq3+ FFI wrapper for POEx::ZMQ

SYNOPSIS

  # Used internally by POEx::ZMQ.

DESCRIPTION

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).

CLASS METHODS

find_soname

  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.

get_version

  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.

AUTHOR

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.