Rabbit Remote Control 0.0.30
Loading...
Searching...
No Matches
SSHTunnelThread.h
1// Author: Kang Lin <kl222@126.com>
2
3#ifndef CSSHTUNNELTHREAD_H
4#define CSSHTUNNELTHREAD_H
5
6#include <QThread>
7
8#include "ParameterChannelSSH.h"
9
24class CHANNEL_EXPORT CSSHTunnelThread : public QThread
25{
26 Q_OBJECT
27public:
28 explicit CSSHTunnelThread(QSharedPointer<CParameterChannelSSH> parameter);
29 virtual ~CSSHTunnelThread();
30
31 void run() override;
32
33 void Exit();
34
35Q_SIGNALS:
43 void sigServer(QString szHost, quint16 nPort);
44 void sigServer(QString szUnixDomainSocket);
45 void sigError(const int nError, const QString &szError = QString());
46 void sigDisconnect();
47
48private:
49 QSharedPointer<CParameterChannelSSH> m_Parameter;
50 bool m_bExit;
51};
52
53#endif // CSSHTUNNELTHREAD_H
Data is forwarded over a local socket and SSH tunnel.
void sigServer(QString szHost, quint16 nPort)
It is triggered when the socket service establishes a listener and is used to notify other local sock...