ZMQ::Context - ZMQ Context Object
my $cxt = ZMQ::Context->new(1); my $sock = $cxt->socket( ZMQ_PUB ); $cxt->term();
A ZMQ::Context object represents a 0MQ context.
Creates a new context object. Calls zmq_init
zmq_init
Creates a new socket object of $sock_type.
$sock_type
Terminates the currenct context. May block if there are pending I/O operations.
To install ZMQ, copy and paste the appropriate command in to your terminal.
cpanm
cpanm ZMQ
CPAN shell
perl -MCPAN -e shell install ZMQ
For more information on module installation, please visit the detailed CPAN module installation guide.