ZMQPoll::poll

Beschreibung

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.

Parameter-Liste

readable

Array where readable ZMQSockets/PHP streams are returned. The array
will be cleared at the beginning of the operation.

writable

Array where writable ZMQSockets/PHP streams are returned. The array
will be cleared at the beginning of the operation.

timeout

Timeout for the operation. -1 means that poll waits until
at least one item has activity. Please note that starting from
version 1.0.0 the poll timeout is defined in milliseconds, rather
than microseconds.