= 0.5.0)ZMQSocket::getSockOpt — Get socket option說明public ZMQSocket::getSockOpt(string $key): mixedReturns the value o">

ZMQSocket::getSockOpt

(PECL zmq >= 0.5.0)

ZMQSocket::getSockOptGet socket option

說明

public ZMQSocket::getSockOpt(string $key): mixed

Returns the value of a socket option.

參數(shù)

key

An integer representing the option. See the ZMQ::SOCKOPT_* constants.

返回值

Returns either a string or an int depending on key. Throws ZMQSocketException on error.