ZMQ::Context(3)

NAME
ZMQ::Context - ZMQ Context Object

SYNOPSIS
    my $cxt = ZMQ::Context->new(1);
    my $sock = $cxt->socket( ZMQ_PUB );
    $cxt->term();

DESCRIPTION
A ZMQ::Context object represents a 0MQ context.

METHODS

  ZMQ::Context->new($io_threads)
Creates a new context object. Calls "zmq_init"

  $cxt->socket( $sock_type )
Creates a new socket object of $sock_type.

  $cxt->term();
Terminates the currenct context. May block if there are pending I/O operations.