PHP.nl

ssh2_poll

ssh2_poll

Poll the channels/listeners/streams for events

int **ssh2_poll** array $desc int $timeout

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 and . 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 element on return, whose values are SSH2_POLL* flags bitwise ORed together of the events that occurred. 'resource'``'events'``'revents'

timeoutThe timeout in seconds.

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