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
keyOne of the
ZMQ::CTXOPT_*constants.valueThe value of the parameter.
Return Values
Returns the current object. Throws ZMQContextException on error.