玉兔远程控制 0.1.0-bate14
载入中...
搜索中...
未找到
CChannelSSH类 参考
类 CChannelSSH 继承关系图:
CChannelSSH 的协作图:

Public 成员函数

 CChannelSSH (CBackend *pBackend, CParameterSSH *pPara, bool bWakeUp=true, QObject *parent=nullptr)
virtual bool open (OpenMode mode) override
virtual void close () override
virtual int WakeUp ()
virtual QString GetDetails () override
 依赖信息
Public 成员函数 继承自 CChannel
 CChannel (QTcpSocket *pSocket, QObject *parent=nullptr)
 CChannel

Protected 属性

ssh_session m_Session
ssh_channel m_Channel
CBackend * m_pBackend
CParameterSSH * m_pParameter
Channel::CEvent * m_pEvent

Private 成员函数

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)
virtual int OnOpen (ssh_session session)
virtual void OnClose ()

静态 Private 成员函数

static void cb_log (ssh_session session, int priority, const char *message, void *userdata)

Private 属性

ssh_pcap_file m_pcapFile

额外继承的成员函数

信号 继承自 CChannel
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
void sigSecurityLevel (CSecurityLevel::Levels level)
 当安全级别改变时触发
void sigSend (quint64 counts)
 Send data counts
void sigReceive (quint64 counts)
 Receive data counts
静态 Public 成员函数 继承自 CChannel
static int InitTranslation ()
 Initial translation
static int RemoveTranslation ()
 Remove translation
Protected 成员函数 继承自 CChannel
 CChannel (QObject *parent=nullptr)
virtual qint64 readData (char *data, qint64 maxlen) override
virtual qint64 writeData (const char *data, qint64 len) override
virtual bool isSequential () const override

详细描述

在文件 ChannelSSH.h 第 13 行定义.

构造及析构函数说明

◆ CChannelSSH()

SSH log CChannelSSH::CChannelSSH ( CBackend * pBackend,
CParameterSSH * pPara,
bool bWakeUp = true,
QObject * parent = nullptr )
explicit

在文件 ChannelSSH.cpp 第 8 行定义.

◆ ~CChannelSSH()

CChannelSSH::~CChannelSSH ( )
virtual

在文件 ChannelSSH.cpp 第 22 行定义.

成员函数说明

◆ authentication()

int CChannelSSH::authentication ( ssh_session session,
const QString szUser,
const QString szPassword,
const QString szPassphrase,
const int nMethod = SSH_AUTH_METHOD_PASSWORD )
private

◆ authenticationPublicKey()

int CChannelSSH::authenticationPublicKey ( ssh_session session,
const QString szUser,
const QString szPublicKeyFile,
const QString szPrivateKeyFile,
const QString szPassphrase )
private

在文件 ChannelSSH.cpp 第 452 行定义.

◆ cb_log()

void CChannelSSH::cb_log ( ssh_session session,
int priority,
const char * message,
void * userdata )
staticprivate

在文件 ChannelSSH.cpp 第 35 行定义.

◆ close()

void CChannelSSH::close ( )
overridevirtual

重载 CChannel .

在文件 ChannelSSH.cpp 第 223 行定义.

◆ GetDetails()

QString CChannelSSH::GetDetails ( )
overridevirtual

依赖信息

重载 CChannel .

在文件 ChannelSSH.cpp 第 27 行定义.

◆ OnClose()

void CChannelSSH::OnClose ( )
privatevirtual

在文件 ChannelSSH.cpp 第 544 行定义.

◆ OnOpen()

int CChannelSSH::OnOpen ( ssh_session session)
privatevirtual

在文件 ChannelSSH.cpp 第 537 行定义.

◆ open()

bool CChannelSSH::open ( OpenMode mode)
overridevirtual
参数
pSocket所有者是这个类的实例

重载 CChannel .

被 CChannelSSHTunnelForward 重载.

在文件 ChannelSSH.cpp 第 60 行定义.

◆ verifyKnownhost()

int CChannelSSH::verifyKnownhost ( ssh_session session)
private

在文件 ChannelSSH.cpp 第 248 行定义.

◆ WakeUp()

int CChannelSSH::WakeUp ( )
virtual

在文件 ChannelSSH.cpp 第 54 行定义.

类成员变量说明

◆ m_Channel

ssh_channel CChannelSSH::m_Channel
protected

在文件 ChannelSSH.h 第 52 行定义.

◆ m_pBackend

CBackend* CChannelSSH::m_pBackend
protected

在文件 ChannelSSH.h 第 53 行定义.

◆ m_pcapFile

ssh_pcap_file CChannelSSH::m_pcapFile
private

在文件 ChannelSSH.h 第 58 行定义.

◆ m_pEvent

Channel::CEvent* CChannelSSH::m_pEvent
protected

在文件 ChannelSSH.h 第 55 行定义.

◆ m_pParameter

CParameterSSH* CChannelSSH::m_pParameter
protected

在文件 ChannelSSH.h 第 54 行定义.

◆ m_Session

ssh_session CChannelSSH::m_Session
protected

在文件 ChannelSSH.h 第 51 行定义.


该类的文档由以下文件生成: