summaryrefslogtreecommitdiffstats
path: root/include/libssh/libsshpp.hpp
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2010-08-28 23:31:07 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2010-08-28 23:31:07 +0200
commit1fa94095543c2b20fade817a5be412edf94dec06 (patch)
tree7efb7fe3f0f9992a23448e527273c0a021608ac1 /include/libssh/libsshpp.hpp
parentadcd2e38e9199d0a3c9d4ad1380851c7e3858d6a (diff)
downloadlibssh-1fa94095543c2b20fade817a5be412edf94dec06.tar.gz
libssh-1fa94095543c2b20fade817a5be412edf94dec06.tar.xz
libssh-1fa94095543c2b20fade817a5be412edf94dec06.zip
ssh_channel_forward_* -> ssh_forward_*
Fixes bug #108
Diffstat (limited to 'include/libssh/libsshpp.hpp')
-rw-r--r--include/libssh/libsshpp.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/libssh/libsshpp.hpp b/include/libssh/libsshpp.hpp
index 34fd711..b874ae9 100644
--- a/include/libssh/libsshpp.hpp
+++ b/include/libssh/libsshpp.hpp
@@ -365,13 +365,13 @@ public:
/* acceptForward is implemented later in this file */
void_throwable cancelForward(const char *address, int port){
- int err=ssh_channel_forward_cancel(c_session, address, port);
+ int err=ssh_forward_cancel(c_session, address, port);
ssh_throw(err);
}
void_throwable listenForward(const char *address, int port,
int &boundport){
- int err=ssh_channel_forward_listen(c_session, address, port, &boundport);
+ int err=ssh_forward_listen(c_session, address, port, &boundport);
ssh_throw(err);
}
@@ -570,7 +570,7 @@ private:
/* This code cannot be put inline due to references to Channel */
Channel *Session::acceptForward(int timeout_ms){
- ssh_channel forward = ssh_channel_forward_accept(c_session,
+ ssh_channel forward = ssh_forward_accept(c_session,
timeout_ms);
ssh_throw_null(c_session,forward);
Channel *newchan = new Channel(*this,forward);