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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user