phpday 2027 - Call for Papers

The ZMQContext class

(PECL zmq >= 0.5.0)

Introduction

Class synopsis

class ZMQContext {
/* Methods */
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
}

Table of Contents

User Contributed Notes

There are no user contributed notes for this page.
Adding new notes is disabled. Please see the links in the Found A Problem? section.
To Top