update : 2015.11.03
php.shukuma.com

검색:
 
 
Add item to the poll set

ZMQPoll::add

(PECL zmq >= 0.5.0)

ZMQPoll::addAdd 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.

인수

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.

반환값

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