diff options
author | Oleksandr Shneyder <o.shneyder@phoca-gmbh.de> | 2014-01-11 00:33:33 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2014-01-16 09:12:03 +0100 |
commit | a1c4fc07d43fb7a7e1e91bfdadbd3dc62b8ce462 (patch) | |
tree | e7d1abc4efec431de0d43293d3f1fe190021910e /include/libssh/libssh.h | |
parent | 6d09104ad3c048a17749bce5de7b370439e52574 (diff) | |
download | libssh-a1c4fc07d43fb7a7e1e91bfdadbd3dc62b8ce462.tar.gz libssh-a1c4fc07d43fb7a7e1e91bfdadbd3dc62b8ce462.tar.xz libssh-a1c4fc07d43fb7a7e1e91bfdadbd3dc62b8ce462.zip |
channel: Add ssh_channel_accept_forward().
This works same way as ssh_forward_accept() but can return a destination
port of the channel (useful if SSH connection forwarding several TCP/IP
ports).
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'include/libssh/libssh.h')
-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 46aafae1..2b125f23 100644 --- a/include/libssh/libssh.h +++ b/include/libssh/libssh.h @@ -406,6 +406,7 @@ LIBSSH_API void ssh_disconnect(ssh_session session); LIBSSH_API char *ssh_dirname (const char *path); LIBSSH_API int ssh_finalize(void); LIBSSH_API ssh_channel ssh_forward_accept(ssh_session session, int timeout_ms); +LIBSSH_API ssh_channel ssh_channel_accept_forward(ssh_session session, int timeout_ms, int *destination_port); LIBSSH_API int ssh_forward_cancel(ssh_session session, const char *address, int port); LIBSSH_API int ssh_forward_listen(ssh_session session, const char *address, int port, int *bound_port); LIBSSH_API void ssh_free(ssh_session session); |