aboutsummaryrefslogtreecommitdiff
path: root/include/libssh/libssh.h
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2013-12-04 14:22:10 +0100
committerAndreas Schneider <asn@cryptomilk.org>2013-12-04 20:34:52 +0100
commit397be918cd081b05456f28034118e865d061720c (patch)
tree5305b3b3d6fd370fbb3bd2d23b847f26963b861a /include/libssh/libssh.h
parent880fdb4b529f12471f9f8e3b1766fb7be3aa0468 (diff)
downloadlibssh-397be918cd081b05456f28034118e865d061720c.tar.gz
libssh-397be918cd081b05456f28034118e865d061720c.tar.xz
libssh-397be918cd081b05456f28034118e865d061720c.zip
channels: Add a ssh_channel_read_timeout function.
Diffstat (limited to 'include/libssh/libssh.h')
-rw-r--r--include/libssh/libssh.h1
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);