POEx::ZMQ::FFI::Context
# Used internally by POEx::ZMQ
An object representing a ZeroMQ context; used internally by POEx::ZMQ.
See ZMQ::FFI for a ZeroMQ FFI implementation intended for use outside POE.
The dynamic library name to use (see FFI::Raw).
Defaults to calling "find_soname" in POEx::ZMQ::FFI.
The size of the ZeroMQ IO thread pool.
Defaults to 1.
The maximum number of sockets allowed on this context.
Defaults to 1023 (the ZMQ4 default).
my $sock = $ctx->create_socket($type);
Returns a new POEx::ZMQ::FFI::Socket for the given type.
There is no destroy method; the ZeroMQ context is terminated when the object, and any sock created on this context, falls out of scope.
my $val = $ctx->get_ctx_opt( $option );
Retrieve context options.
See zmq_ctx_get(3).
$ctx->set_ctx_opt( $option, $value );
Set context options.
See zmq_ctx_set(3).
Returns the raw context pointer, suitable for use with direct FFI::Raw calls (used internally by POEx::ZMQ::FFI::Socket objects).
my $vstruct = $ctx->get_zmq_version; my $major = $vstruct->major; # See POEx::ZMQ::FFI for complete method list
Returns the "get_version" in POEx::ZMQ::FFI struct-like object for the current "soname".
POEx::ZMQ::FFI::Role::ErrorChecking
Jon Portnoy <avenj@cobaltirc.org>
Significant portions of this code are inspired by or derived from ZMQ::FFI by Dylan Calid (CPAN: CALID).
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.