略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: ZMQPoll::add

2024-12-21

ZMQPoll::add

(PECL zmq >= 0.5.0)

ZMQPoll::addAdd item to the poll set

说明

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.

参数

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.

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/zmqpoll.add.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3