From db6aa88bc4edcfb14663140db1ee25f5b2a47952 Mon Sep 17 00:00:00 2001 From: Vic Lee Date: Sun, 16 Aug 2009 18:24:25 +0800 Subject: Add forward listening feature Signed-off-by: Andreas Schneider --- include/libssh/libssh.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/libssh') diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h index 62a74ff..6daf02a 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); -- cgit