diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2013-12-04 14:22:10 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2013-12-04 20:34:13 +0100 |
commit | d65777b5705aff7b9af969c8210e3f6671dc105d (patch) | |
tree | 72e37f5182b9ea581dc725e35aa05143e20fbede /include | |
parent | 2df00fd84cbef7244325b2467d9e1d652a5c8629 (diff) | |
download | libssh-d65777b5705aff7b9af969c8210e3f6671dc105d.tar.gz libssh-d65777b5705aff7b9af969c8210e3f6671dc105d.tar.xz libssh-d65777b5705aff7b9af969c8210e3f6671dc105d.zip |
channels: Add a ssh_channel_read_timeout function.
Diffstat (limited to 'include')
-rw-r--r-- | include/libssh/libssh.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h index f3da1e3c..9a00ea7c 100644 --- a/include/libssh/libssh.h +++ b/include/libssh/libssh.h @@ -377,6 +377,7 @@ LIBSSH_API int ssh_channel_open_x11(ssh_channel channel, const char *orig_addr, LIBSSH_API int ssh_channel_poll(ssh_channel channel, int is_stderr); LIBSSH_API int ssh_channel_poll_timeout(ssh_channel channel, int timeout, int is_stderr); LIBSSH_API int ssh_channel_read(ssh_channel channel, void *dest, uint32_t count, int is_stderr); +LIBSSH_API int ssh_channel_read_timeout(ssh_channel channel, void *dest, uint32_t count, int is_stderr, int timeout); LIBSSH_API int ssh_channel_read_nonblocking(ssh_channel channel, void *dest, uint32_t count, int is_stderr); LIBSSH_API int ssh_channel_request_env(ssh_channel channel, const char *name, const char *value); |