# The ZMQContext class

(PECL zmq >= 0.5.0)

## Einführung

## Klassenbeschreibung

class ZMQContext {
/* Methoden */
public function __construct(int `$io_threads` = 1, bool `$is_persistent` = `true`)
public function getOpt(string `$key`): mixed
public function getSocket(int `$type`, string `$persistent_id` = `null`, callable `$on_new_socket` = `null`): ZMQSocket
public function isPersistent(): bool
public function setOpt(int `$key`, mixed `$value`): ZMQContext
}

## Inhaltsverzeichnis

- ZMQContext::__construct — Construct a new ZMQContext object
- ZMQContext::getOpt — Get context option
- ZMQContext::getSocket — Create a new socket
- ZMQContext::isPersistent — Whether the context is persistent
- ZMQContext::setOpt — Set a socket option

`↑` and `↓` to navigate • `Enter` to select • `Esc` to close • `/` to open