SSH 隧道
更多...
#include <ChannelSSHTunnel.h>
|
| virtual qint64 | readData (char *data, qint64 maxlen) override |
| |
| virtual qint64 | writeData (const char *data, qint64 len) override |
| |
| | CChannel (QObject *parent=nullptr) |
| |
| virtual bool | isSequential () const override |
| |
|
| int | verifyKnownhost (ssh_session session) |
| |
| int | authentication (ssh_session session, const QString szUser, const QString szPassword, const QString szPassphrase, const int nMethod=SSH_AUTH_METHOD_PASSWORD) |
| |
| int | authenticationPublicKey (ssh_session session, const QString szUser, const QString szPublicKeyFile, const QString szPrivateKeyFile, const QString szPassphrase) |
| |
| int | forward (ssh_session session) |
| |
|
| static void | cb_log (ssh_session session, int priority, const char *message, void *userdata) |
| |
|
|
void | sigConnected () |
| | emit when the channel is connected.
|
| |
|
void | sigDisconnected () |
| | emit when the channel is disconnected
|
| |
|
void | sigError (int nErr, const QString &szErr) |
| | emit when the channel is error
|
| |
| static int | InitTranslation () |
| | Initial translation
|
| |
| static int | RemoveTranslation () |
| | Remove translation
|
| |
◆ CChannelSSHTunnel()
◆ ~CChannelSSHTunnel()
| CChannelSSHTunnel::~CChannelSSHTunnel |
( |
| ) |
|
|
virtual |
◆ authentication()
| int CChannelSSHTunnel::authentication |
( |
ssh_session |
session, |
|
|
const QString |
szUser, |
|
|
const QString |
szPassword, |
|
|
const QString |
szPassphrase, |
|
|
const int |
nMethod = SSH_AUTH_METHOD_PASSWORD |
|
) |
| |
|
private |
◆ authenticationPublicKey()
| int CChannelSSHTunnel::authenticationPublicKey |
( |
ssh_session |
session, |
|
|
const QString |
szUser, |
|
|
const QString |
szPublicKeyFile, |
|
|
const QString |
szPrivateKeyFile, |
|
|
const QString |
szPassphrase |
|
) |
| |
|
private |
◆ cb_log()
| void CChannelSSHTunnel::cb_log |
( |
ssh_session |
session, |
|
|
int |
priority, |
|
|
const char * |
message, |
|
|
void * |
userdata |
|
) |
| |
|
staticprivate |
◆ close()
| void CChannelSSHTunnel::close |
( |
| ) |
|
|
overridevirtual |
◆ DoWait()
| int CChannelSSHTunnel::DoWait |
( |
bool |
bWrite, |
|
|
int |
timeout |
|
) |
| |
|
virtual |
◆ forward()
| int CChannelSSHTunnel::forward |
( |
ssh_session |
session | ) |
|
|
private |
◆ GetDetails()
| QString CChannelSSHTunnel::GetDetails |
( |
| ) |
|
|
overridevirtual |
◆ GetSocket()
| int CChannelSSHTunnel::GetSocket |
( |
| ) |
|
◆ open()
| bool CChannelSSHTunnel::open |
( |
OpenMode |
mode | ) |
|
|
overridevirtual |
◆ Process()
| int CChannelSSHTunnel::Process |
( |
| ) |
|
◆ readData()
| qint64 CChannelSSHTunnel::readData |
( |
char * |
data, |
|
|
qint64 |
maxlen |
|
) |
| |
|
overrideprotectedvirtual |
◆ verifyKnownhost()
| int CChannelSSHTunnel::verifyKnownhost |
( |
ssh_session |
session | ) |
|
|
private |
◆ WakeUp()
| int CChannelSSHTunnel::WakeUp |
( |
| ) |
|
|
virtual |
◆ writeData()
| qint64 CChannelSSHTunnel::writeData |
( |
const char * |
data, |
|
|
qint64 |
len |
|
) |
| |
|
overrideprotectedvirtual |
◆ m_Channel
| ssh_channel CChannelSSHTunnel::m_Channel |
|
protected |
◆ m_pcapFile
| ssh_pcap_file CChannelSSHTunnel::m_pcapFile |
|
private |
◆ m_pConnect
◆ m_pEvent
◆ m_pParameter
◆ m_pRemoteNet
◆ m_Session
| ssh_session CChannelSSHTunnel::m_Session |
|
protected |
该类的文档由以下文件生成: