diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2012-12-19 18:15:54 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2012-12-19 18:15:54 +0100 |
commit | e934ab0816e871253cd3d0538638f0b7cf98c375 (patch) | |
tree | 8da9f0699f3bfcedbbfa7b7da2a0108fb5b138cf /doc | |
parent | 9fa53cd9323479e1fbea1990661e4439f6909035 (diff) | |
download | libssh-e934ab0816e871253cd3d0538638f0b7cf98c375.tar.gz libssh-e934ab0816e871253cd3d0538638f0b7cf98c375.tar.xz libssh-e934ab0816e871253cd3d0538638f0b7cf98c375.zip |
BUG 82: Fix function names of ssh_forward_*.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/forwarding.dox | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/forwarding.dox b/doc/forwarding.dox index c250a7b5..9dc0df36 100644 --- a/doc/forwarding.dox +++ b/doc/forwarding.dox @@ -144,10 +144,10 @@ or whatever use you have for it. @subsection libssh_reverse Doing reverse port forwarding with libssh -To do reverse port forwarding, call ssh_channel_forward_listen(), -then ssh_channel_forward_accept(). +To do reverse port forwarding, call ssh_forward_listen(), +then ssh_forward_accept(). -When you call ssh_channel_forward_listen(), you can let the remote server +When you call ssh_forward_listen(), you can let the remote server chose the non-priviledged port it should listen to. Otherwise, you can chose your own priviledged or non-priviledged port. Beware that you should have administrative priviledges on the remote server to open a priviledged port @@ -178,7 +178,7 @@ int web_server(ssh_session session) " </body>\n" "</html>\n"; - rc = ssh_forward_channel_listen(session, NULL, 8080, NULL); + rc = ssh_forward_listen(session, NULL, 8080, NULL); if (rc != SSH_OK) { fprintf(stderr, "Error opening remote port: %s\n", @@ -186,7 +186,7 @@ int web_server(ssh_session session) return rc; } - channel = ssh_forward_channel_accept(session, 60000); + channel = ssh_forward_accept(session, 60000); if (channel == NULL) { fprintf(stderr, "Error waiting for incoming connection: %s\n", |