ZMQSocket::getSockOpt
PHP function
Edit on GitHub ✎
(PECL zmq >= 0.5.0)
Get socket option
Description
ZMQSocket::getSockOpt(string $key): mixed
Returns the value of a socket option.
Parameters
keyAn integer representing the option. See the
ZMQ::SOCKOPT_*constants.
Return Values
Returns either a String or an Integer depending on key. Throws ZMQSocketException on error.