diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2011-09-02 13:58:37 +0300 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2011-09-02 13:58:37 +0300 |
commit | 20f8e73e3eaf8d7f69786db3f6385095e244e85c (patch) | |
tree | 1fba85badc6b95baceda20f4871735eac6a2404b /include/libssh/session.h | |
parent | ef5701a5357e3f5b71aa5c387e4f976fe5df0ab7 (diff) | |
download | libssh-20f8e73e3eaf8d7f69786db3f6385095e244e85c.tar.gz libssh-20f8e73e3eaf8d7f69786db3f6385095e244e85c.tar.xz libssh-20f8e73e3eaf8d7f69786db3f6385095e244e85c.zip |
Update libssh to ssh_handle_packets_termination
cherry-picked from 0cb5248
Should resolve all timeout problems
Conflicts:
src/auth.c
src/channels.c
Diffstat (limited to 'include/libssh/session.h')
-rw-r--r-- | include/libssh/session.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/libssh/session.h b/include/libssh/session.h index d251e7e..0f5989b 100644 --- a/include/libssh/session.h +++ b/include/libssh/session.h @@ -62,6 +62,11 @@ enum ssh_pending_call_e { /* libssh calls may block an undefined amount of time */ #define SSH_SESSION_FLAG_BLOCKING 1 +/* codes to use with ssh_handle_packets*() */ +#define SSH_TIMEOUT_INFINITE -1 +#define SSH_TIMEOUT_USER -2 +#define SSH_TIMEOUT_NONBLOCKING 0 + /* members that are common to ssh_session and ssh_bind */ struct ssh_common_struct { struct error_struct error; |