GoLang ZMQPoll::add

request it (252)
GoLang replacement for PHP's ZMQPoll::add [edit | history]

Do you know a GoLang replacement for PHP's ZMQPoll::add? Write it!

PHP ZMQPoll::add

PHP original manual for ZMQPoll::add [ show | php.net ]


(PECL zmq >= 0.5.0)

ZMQPoll::addAdd item to the poll set


public string ZMQPoll::add ( mixed $entry , int $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.



ZMQSocket object or a PHP stream resource


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.