Skip to content

SSH.Channel.WaitClose

Andrew Lambert edited this page Jun 15, 2021 · 9 revisions

SSH.Channel.WaitClose

Method Signature

 Sub WaitClose()

Remarks

This method enters a temporary blocking state until the remote host closes the channel or until an error occurs. If the server is still sending data then this method will return once the receive buffer is full and the LastError code will be LIBSSH2_ERROR_CHANNEL_WINDOW_FULL(-47), in which case you need to Read() from the channel before calling this method again.

This method is typically called after calling Close() in order to examine the exit status of the command or program being executed.

See also

Clone this wiki locally