diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2013-11-03 12:46:27 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2013-11-03 12:46:27 +0100 |
commit | 04cb94a2ddb091c82764ed2b3981f891b093d5d3 (patch) | |
tree | eac65da46a18cd8bbb3334ac577fcc0bd6fb9048 /include | |
parent | 754152aa2244fef75a8e7ed2d97df5bb2a09546c (diff) | |
download | libssh-04cb94a2ddb091c82764ed2b3981f891b093d5d3.tar.gz libssh-04cb94a2ddb091c82764ed2b3981f891b093d5d3.tar.xz libssh-04cb94a2ddb091c82764ed2b3981f891b093d5d3.zip |
socket: Fix check for pending data.
BUG: https://red.libssh.org/issues/119
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/libssh/libssh.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h index a451620e..84d05937 100644 --- a/include/libssh/libssh.h +++ b/include/libssh/libssh.h @@ -208,10 +208,14 @@ enum ssh_publickey_state_e { SSH_PUBLICKEY_STATE_WRONG=2 }; -/* status flags */ +/* Status flags */ +/** Socket is closed */ #define SSH_CLOSED 0x01 +/** Reading to socket won't block */ #define SSH_READ_PENDING 0x02 +/** Session was closed due to an error */ #define SSH_CLOSED_ERROR 0x04 +/** Output buffer not empty */ #define SSH_WRITE_PENDING 0x08 enum ssh_server_known_e { |