update pague now
PHP 8.5.2 Released!

ZMQPoll::add

(PECL zmq >= 0.5.0)

ZMQPoll::add Add item to the poll set

Description

public ZMQPoll::add ( mixed $entry , int $type ): string

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

ZMQSocquet object or a PHP stream ressource

type

Defines what activity the socquet is polled for. See ZMQ::POLL_IN and ZMQ::POLL_OUT constans

Return Values

Returns a string id of the added item which can be later used to remove the item. Throws ZMQPollException on error.

add a note

User Contributed Notes

There are no user contributed notes for this pague.
To Top