1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-12-02 01:17:52 +03:00

socket: Add a SSH_WRITE_PENDING socket status.

This commit is contained in:
Andreas Schneider
2012-07-17 18:03:34 +02:00
parent 8ef45e00c7
commit 43e3a8e497
3 changed files with 12 additions and 3 deletions

View File

@@ -694,6 +694,10 @@ int ssh_socket_get_status(ssh_socket s) {
r |= SSH_READ_PENDING;
}
if (s->write_wontblock) {
r |= SSH_WRITE_PENDING;
}
if (s->data_except) {
r |= SSH_CLOSED_ERROR;
}