ZMQDevice::__construct

(PECL zmq >= 0.5.0) Construct a new device ZMQDevice::__construct ( ZMQSocket $frontend, ZMQSocket $backend [, ZMQSocket $listener ] ) "ØMQ devices can do intermediation of addresses, services, queues, or any other abstraction you care to define above the message and socket layers." -- zguide Parameters: frontend Frontend parameter for the devices. Usually where there

ZMQPoll::remove

(PECL zmq >= 0.5.0) Remove item from poll set public boolean ZMQPoll::remove ( mixed $item ) Remove item from the poll set. The item parameter can be ZMQSocket object, a stream resource or the id returned from ZMQPoll::add() method. Parameters: item The ZMQSocket object, PHP stream or string id of the item. Returns: Returns true if the item wa

ZMQPoll::poll

(PECL zmq >= 0.5.0) Poll the items public integer ZMQPoll::poll ( array &$readable, array &$writable [, integer $timeout = -1 ] ) Polls the items in the current poll set. The readable and writable items are returned in the readable and writable parameters. ZMQPoll::getLastErrors() can be used to check if there were errors. Parameters: readable Array where read

ZMQPoll::getLastErrors

(PECL zmq >= 0.5.0) Get poll errors public array ZMQPoll::getLastErrors ( void ) Returns the ids of the objects that had errors in the last poll. Returns: Returns an array containing ids for the items that had errors in the last poll. Empty array is returned if there were no errors.

ZMQPoll::count

(PECL zmq >= 0.5.0) Count items in the poll set public integer ZMQPoll::count ( void ) Count the items in the poll set. Returns: Returns an integer representing the amount of items in the poll set.

ZMQPoll::clear

(PECL zmq >= 0.5.0) Clear the poll set public ZMQPoll ZMQPoll::clear ( void ) Clears all elements from the poll set. Returns: Returns the current object.

ZMQPoll::add

(PECL zmq >= 0.5.0) Add item to the poll set public string ZMQPoll::add ( mixed $entry, integer $type ) Adds a new item to the poll set and returns the internal id of the added item. The item can be removed from the poll set using the returned string id. Parameters: entry ZMQSocket object or a PHP stream resource type Defines what ac

ZMQSocket::unbind

(PECL zmq >= 1.0.4) Unbind the socket public ZMQSocket ZMQSocket::unbind ( string $dsn ) Unbind the socket from an 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 previously bound dsn, for example transport://address. Returns: Returns th

ZMQSocket::setSockOpt

(PECL zmq >= 0.5.0) Set a socket option public ZMQSocket ZMQSocket::setSockOpt ( integer $key, mixed $value ) Sets a ZMQ socket option. The type of the value depends on the key. See ZMQ Constant Types for more information. Parameters: key One of the ZMQ::SOCKOPT_* constants. value The value of the parameter. Retur

ZMQSocket::sendmulti

(PECL zmq >= 0.8.0) Sends a multipart message public ZMQSocket ZMQSocket::send ( array $message [, integer $mode = 0 ] ) Send a multipart message using the socket. The operation can block unless ZMQ::MODE_NOBLOCK is used. Parameters: message The message to send - an array of strings mode Pass mode flags to receive multipart messages