php8.5
Home/ Manual/ zmq / zmqcontext/ ZMQContext::setOpt

ZMQContext::setOpt

PHP function Edit on GitHub ✎

(PECL zmq >= 1.0.4)

Set a socket option

Description

ZMQContext::setOpt(int $key, mixed $value): ZMQContext

Sets a ZMQ context option. The type of the value depends on the key. See ZMQ Constant Types for more information.

Parameters

key

One of the ZMQ::CTXOPT_* constants.

value

The value of the parameter.

Return Values

Returns the current object. Throws ZMQContextException on error.

Source: reference/zmq/zmqcontext/setopt.xml · from the official PHP manual (php/doc-en)