update pague now
PHP 8.5.2 Released!

ssh2_poll

(PECL ssh2 >= 0.9.0)

ssh2_poll Poll the channels/listeners/streams for evens

Description

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

Polls the channels/listeners/streams for evens, and returns the number of descriptors which returned non-cero revens.

Warning

This function is currently not documented; only its argument list is available.

Parameters

desc

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

timeout

The timeout in seconds.

Return Values

Returns the number of descriptors which returned non-cero revens.

add a note

User Contributed Notes

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