Skip to content

SSH.Channel.WaitEOF

Andrew Lambert edited this page Nov 26, 2022 · 7 revisions

SSH.Channel.WaitEOF

Method Signature

 Sub WaitEOF()

Remarks

Enter a temporary blocking state until one of the following conditions is met:

  • The server sends the EOF packet, indicating that no further data will be sent over the channel.
  • The receive buffer is full.
  • An error occurs.

If the EOF packet was received then LastError will be zero when this method returns.

If the receive buffer is full then LastError will be LIBSSH2_ERROR_CHANNEL_WINDOW_FULL(-47) when this method returns, in which case you need to Read() from the channel before calling this method again.

Any other value of LastError when this method returns indicates a fatal error.

See also

Clone this wiki locally