diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2012-10-14 19:44:02 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2012-10-14 19:44:02 +0200 |
commit | f4f22372638d6a9a47c86abb4c4d1a0b55edbce1 (patch) | |
tree | f2223fdb70bd92a86f18fa077841ff35c17a3ea8 | |
parent | 7e93edc722e856f4ac4f273bf4a0fe220d29e76e (diff) | |
download | libssh-f4f22372638d6a9a47c86abb4c4d1a0b55edbce1.tar.gz libssh-f4f22372638d6a9a47c86abb4c4d1a0b55edbce1.tar.xz libssh-f4f22372638d6a9a47c86abb4c4d1a0b55edbce1.zip |
doc: Use the correct channel functions.
-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 96429174..696cb5b9 100644 --- a/doc/forwarding.dox +++ b/doc/forwarding.dox @@ -85,7 +85,7 @@ this tutorial. @subsection libssh_direct Doing direct port forwarding with libssh -To do direct port forwarding, call function channel_open_forward(): +To do direct port forwarding, call function ssh_channel_open_forward(): - you need a separate channel for the tunnel as first parameter; - second and third parameters are the remote endpoint; - fourth and fifth parameters are sent to the remote server @@ -110,9 +110,9 @@ int direct_forwarding(ssh_session session) return rc; } - rc = channel_open_forward(forwarding_channel, - "www.google.com", 80, - "localhost", 5555); + rc = ssh_channel_open_forward(forwarding_channel, + "www.google.com", 80, + "localhost", 5555); if (rc != SSH_OK) { ssh_channel_free(forwarding_channel); @@ -120,7 +120,7 @@ int direct_forwarding(ssh_session session) } nbytes = strlen(http_get); - nwritten = channel_write(forwarding_channel, + nwritten = ssh_channel_write(forwarding_channel, http_get, nbytes); if (nbytes != nwritten) |