aboutsummaryrefslogtreecommitdiff
path: root/include/libssh/libssh.h
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2013-11-03 12:46:27 +0100
committerAndreas Schneider <asn@cryptomilk.org>2013-11-03 12:48:12 +0100
commit7c8a793b0a53182566a275fb43d5a1e868c792e4 (patch)
treee807acf4d15de3f422e577c4af85fe6101e4a536 /include/libssh/libssh.h
parente9b0a8210d6fda4ce6a8a9d761b151db0db9befb (diff)
downloadlibssh-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.h6
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 {