略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: ssh2_poll

2024-11-13

ssh2_poll

(PECL ssh2 >= 0.9.0)

ssh2_pollPoll the channels/listeners/streams for events

说明

ssh2_poll(array &$desc, int $timeout = 30): int

Polls the channels/listeners/streams for events, and returns the number of descriptors which returned non-zero revents.

警告

本函数还未编写文档,仅有参数列表。

参数

desc

An indexed array of subarrays with the keys 'resource' and 'events'. The value of the resource is a (channel) stream or an SSH2 Listener resource. The value of the event are SSH2_POLL* flags bitwise ORed together. Each subarray will be populated with an 'revents' element on return, whose values are SSH2_POLL* flags bitwise ORed together of the events that occurred.

timeout

The timeout in seconds.

返回值

Returns the number of descriptors which returned non-zero revents.

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/function.ssh2-poll.php

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