PHP 8.4.0 RC4 available for testing

ssh2_poll

(PECL ssh2 >= 0.9.0)

ssh2_pollPoll the channels/listeners/streams for events

Beschreibung

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.

Warnung

Diese Funktion ist bis jetzt nicht dokumentiert. Es steht nur die Liste der Parameter zur Verfügung.

Parameter-Liste

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.

Rückgabewerte

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

add a note

User Contributed Notes

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