ZMQSocket::send

(PECL zmq >= 0.5.0) Sends a message public ZMQSocket ZMQSocket::send ( string $message [, integer $mode = 0 ] ) Send a message using the socket. The operation can block unless ZMQ::MODE_NOBLOCK is used. Parameters: message The message to send. mode Pass mode flags to receive multipart messages or non-blocking operation. See ZMQ::MOD

ZMQSocket::recvMulti

(PECL zmq >= 0.8.0) Receives a multipart message public string ZMQSocket::recvMulti ([ integer $mode = 0 ] ) Receive an array multipart message from a socket. By default receiving will block until a message is available unless ZMQ::MODE_NOBLOCK flag is used. Parameters: mode Pass mode flags to receive multipart messages or non-blocking operation. See ZMQ::MODE_* const

ZMQSocket::recv

(PECL zmq >= 0.5.0) Receives a message public string ZMQSocket::recv ([ integer $mode = 0 ] ) Receive a message from a socket. By default receiving will block until a message is available unless ZMQ::MODE_NOBLOCK flag is used. ZMQ::SOCKOPT_RCVMORE socket option can be used for receiving multi-part messages. See ZMQSocket::setSockOpt() for more information. Parameters: mode

ZMQSocket::isPersistent

(PECL zmq >= 0.5.0) Whether the socket is persistent public boolean ZMQSocket::isPersistent ( void ) Check whether the socket is persistent. Returns: Returns a boolean based on whether the socket is persistent or not.

ZMQSocket::getSockOpt

(PECL zmq >= 0.5.0) Get socket option public mixed ZMQSocket::getSockOpt ( string $key ) Returns the value of a socket option. Parameters: key An integer representing the option. See the ZMQ::SOCKOPT_* constants. Returns: Returns either a string or an integer depending on key. Throws ZMQSocketException on error.

ZMQSocket::getSocketType

(PECL zmq >= 0.5.0) Get the socket type public integer ZMQSocket::getSocketType ( void ) Gets the socket type. Returns: Returns an integer representing the socket type. The integer can be compared against ZMQ::SOCKET_* constants.

ZMQSocket::getPersistentId

(PECL zmq >= 0.5.0) Get the persistent id public string ZMQSocket::getPersistentId ( void ) Returns the persistent id of the socket. Returns: Returns the persistent id string assigned of the object and NULL if socket is not persistent.

ZMQSocket::getEndpoints

(PECL zmq >= 0.5.0) Get list of endpoints public array ZMQSocket::getEndpoints ( void ) Returns a list of endpoints where the socket is connected or bound to. Returns: Returns an array containing elements 'bind' and 'connect'.

ZMQSocket::disconnect

(PECL zmq >= 1.0.4) Disconnect a socket public ZMQSocket ZMQSocket::disconnect ( string $dsn ) Disconnect the socket from a previously connected remote endpoint. The endpoint is defined in format transport://address where transport is one of the following: inproc, ipc, tcp, pgm or epgm. Parameters: dsn The connect dsn, for example transport://address.

ZMQSocket::__construct

(PECL zmq >= 0.5.0) Construct a new ZMQSocket ZMQSocket::__construct ( ZMQContext $context, int $type [, string $persistent_id = null [, callback $on_new_socket = null ]] ) Constructs a ZMQSocket object. persistent_id parameter can be used to allocated a persistent socket. A persistent socket has to be allocated from a persistent context and it stays connected over multiple requests. The persistent_id parameter can be u