Why not adopt me?
This distribution is up for adoption!
If you're interested then please contact the PAUSE module admins via
email.
NAME
POEx::ZMQ3::Context - A ZeroMQ context singleton
SYNOPSIS
## new() returns (lazy build) singleton:
my $zsock = zmq_socket( POEx::ZMQ3::Context->new, $type );
## ... if you fork later:
POEx::ZMQ3::Context->reset;
DESCRIPTION
A ZeroMQ context should be shared amongst pieces of a single process.
This is the singleton used internally by POEx::ZMQ3 bits.
Forked children should call POEx::ZMQ3::Context->reset
before issuing new socket operations.
Calling POEx::ZMQ::Context->term
will force a context termination. This may block (and is rarely needed); see the man page for zmq_ctx_destroy.
AUTHOR
Jon Portnoy <avenj@cobaltirc.org>