diff options
author | Ulf Hermann <ulf.hermann@theqtcompany.com> | 2016-03-31 18:57:03 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2016-05-23 07:44:06 +0000 |
commit | 6b4963b5499269062e2cffe9e70df4f022c5bf8c (patch) | |
tree | 843803dfdfb23b2b238b515cd54cff5c52740053 /src/libs/ssh/sshconnection.h | |
parent | e05fbf153d98a34ddda63b12402c15642994acdc (diff) |
Ssh: Implement tcp/ip forward tunneling
Change-Id: I529b3392ea7e4cbae2c736c9f55352ef6b19da98
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
Diffstat (limited to 'src/libs/ssh/sshconnection.h')
-rw-r--r-- | src/libs/ssh/sshconnection.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libs/ssh/sshconnection.h b/src/libs/ssh/sshconnection.h index 136c91c199..071c97c0c7 100644 --- a/src/libs/ssh/sshconnection.h +++ b/src/libs/ssh/sshconnection.h @@ -41,6 +41,7 @@ namespace QSsh { class SftpChannel; class SshDirectTcpIpTunnel; class SshRemoteProcess; +class SshTcpIpForwardServer; namespace Internal { class SshConnectionPrivate; } @@ -121,8 +122,10 @@ public: QSharedPointer<SshRemoteProcess> createRemoteProcess(const QByteArray &command); QSharedPointer<SshRemoteProcess> createRemoteShell(); QSharedPointer<SftpChannel> createSftpChannel(); - QSharedPointer<SshDirectTcpIpTunnel> createTunnel(const QString &originatingHost, + QSharedPointer<SshDirectTcpIpTunnel> createDirectTunnel(const QString &originatingHost, quint16 originatingPort, const QString &remoteHost, quint16 remotePort); + QSharedPointer<SshTcpIpForwardServer> createForwardServer(const QString &remoteHost, + quint16 remotePort); // -1 if an error occurred, number of channels closed otherwise. int closeAllChannels(); |