1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-07-29 13:01:14 +03:00

Document the obscure LIBSSH2_ERROR_BAD_USE when writing to a channel (#713)

Document the obscure LIBSSH2_ERROR_BAD_USE when writing to a channel

Credit:
Miguel de Icaza
This commit is contained in:
Miguel de Icaza
2022-08-16 12:13:51 -04:00
committed by GitHub
parent 31ae48885d
commit 6c59eea5a9

View File

@ -41,6 +41,11 @@ LIBSSH2_ERROR_EAGAIN is a negative number, it isn't really a failure per se.
\fILIBSSH2_ERROR_CHANNEL_CLOSED\fP - The channel has been closed.
\fILIBSSH2_ERROR_CHANNEL_EOF_SENT\fP - The channel has been requested to be
\fILIBSSH2_ERROR_BAD_USE\fP - This can be returned if you ignored a previous
return for LIBSSH2_ERROR_EAGAIN and rather than sending the original buffer with
the original size, you sent a new buffer with a different size.
closed.
.SH SEE ALSO
.BR libssh2_channel_open_ex(3)