ZMQPoll::add
(PECL zmq >= 0.5.0)
ZMQPoll::add — Add item to the poll set
Parameters
entry
-
ZMQSocket object or a PHP stream resource
type
-
Defines what activity the socket is polled for.
See ZMQ::POLL_IN and ZMQ::POLL_OUT constants.
Return Values
Returns a string id of the added item which can be later used to remove the item.
Throws ZMQPollException on error.