diff options
author | Vic Lee <llyzs@163.com> | 2009-08-16 18:24:25 +0800 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-08-16 14:40:18 +0200 |
commit | db6aa88bc4edcfb14663140db1ee25f5b2a47952 (patch) | |
tree | 5eac92743656e9db57f2978ae5c3e1056b89ae85 /include | |
parent | e707af1cd78f730e80da7b109ee33985d0ee3419 (diff) | |
download | libssh-db6aa88bc4edcfb14663140db1ee25f5b2a47952.tar.gz libssh-db6aa88bc4edcfb14663140db1ee25f5b2a47952.tar.xz libssh-db6aa88bc4edcfb14663140db1ee25f5b2a47952.zip |
Add forward listening feature
Signed-off-by: Andreas Schneider <mail@cynapses.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/libssh/libssh.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h index 62a74ffa..6daf02af 100644 --- a/include/libssh/libssh.h +++ b/include/libssh/libssh.h @@ -336,6 +336,9 @@ LIBSSH_API int channel_request_sftp(ssh_channel channel); LIBSSH_API int channel_request_x11(ssh_channel channel, int single_connection, const char *protocol, const char *cookie, int screen_number); LIBSSH_API ssh_channel channel_accept_x11(ssh_channel channel, int timeout_ms); +LIBSSH_API int channel_forward_listen(ssh_session session, const char *address, int port, int *bound_port); +LIBSSH_API ssh_channel channel_forward_accept(ssh_session session, int timeout_ms); +LIBSSH_API int channel_forward_cancel(ssh_session session, const char *address, int port); LIBSSH_API int channel_write(ssh_channel channel, const void *data, uint32_t len); LIBSSH_API int channel_send_eof(ssh_channel channel); LIBSSH_API int channel_is_eof(ssh_channel channel); |