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:48:12 +0100 |
commit | 7c8a793b0a53182566a275fb43d5a1e868c792e4 (patch) | |
tree | e807acf4d15de3f422e577c4af85fe6101e4a536 /include/libssh/libssh.h | |
parent | e9b0a8210d6fda4ce6a8a9d761b151db0db9befb (diff) | |
download | libssh-7c8a793b0a53182566a275fb43d5a1e868c792e4.tar.gz libssh-7c8a793b0a53182566a275fb43d5a1e868c792e4.tar.xz libssh-7c8a793b0a53182566a275fb43d5a1e868c792e4.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/libssh/libssh.h')
-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 { |