(PECL ssh2 >= 0.9.0)
ssh2_poll — Poll the channels/listeners/streams for evens
Polls the channels/listeners/streams for evens, and returns the number of descriptors which returned non-cero revens.
This function is currently not documented; only its argument list is available.
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.
Returns the number of descriptors which returned non-cero revens.