Rabbit Remote Control 0.1.0-bate14
Loading...
Searching...
No Matches
CChannelSSH Class Reference
Inheritance diagram for CChannelSSH:
Collaboration diagram for CChannelSSH:

Public Member Functions

 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
 Depend on information.
Public Member Functions inherited from CChannel
 CChannel (QTcpSocket *pSocket, QObject *parent=nullptr)
 CChannel.

Protected Attributes

ssh_session m_Session
ssh_channel m_Channel
CBackendm_pBackend
CParameterSSHm_pParameter
Channel::CEventm_pEvent

Private Member Functions

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 ()

Static Private Member Functions

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

Private Attributes

ssh_pcap_file m_pcapFile

Additional Inherited Members

Signals inherited from 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)
 Triggered when the security level changes.
void sigSend (quint64 counts)
 Send data counts.
void sigReceive (quint64 counts)
 Receive data counts.
Static Public Member Functions inherited from CChannel
static int InitTranslation ()
 Initial translation.
static int RemoveTranslation ()
 Remove translation.
Protected Member Functions inherited from 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

Detailed Description

Definition at line 13 of file ChannelSSH.h.

Constructor & Destructor Documentation

◆ CChannelSSH()

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

Definition at line 8 of file ChannelSSH.cpp.

◆ ~CChannelSSH()

CChannelSSH::~CChannelSSH ( )
virtual

Definition at line 22 of file ChannelSSH.cpp.

Member Function Documentation

◆ 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

Definition at line 452 of file ChannelSSH.cpp.

◆ cb_log()

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

Definition at line 35 of file ChannelSSH.cpp.

◆ close()

void CChannelSSH::close ( )
overridevirtual

Reimplemented from CChannel.

Definition at line 223 of file ChannelSSH.cpp.

◆ GetDetails()

QString CChannelSSH::GetDetails ( )
overridevirtual

Depend on information.

Reimplemented from CChannel.

Definition at line 27 of file ChannelSSH.cpp.

◆ OnClose()

void CChannelSSH::OnClose ( )
privatevirtual

Definition at line 544 of file ChannelSSH.cpp.

◆ OnOpen()

int CChannelSSH::OnOpen ( ssh_session session)
privatevirtual

Definition at line 537 of file ChannelSSH.cpp.

◆ open()

bool CChannelSSH::open ( OpenMode mode)
overridevirtual
Parameters
pSocketThe Owner is the instance of this class.

Reimplemented from CChannel.

Reimplemented in CChannelSSHTunnelForward.

Definition at line 60 of file ChannelSSH.cpp.

◆ verifyKnownhost()

int CChannelSSH::verifyKnownhost ( ssh_session session)
private

Definition at line 248 of file ChannelSSH.cpp.

◆ WakeUp()

int CChannelSSH::WakeUp ( )
virtual

Definition at line 54 of file ChannelSSH.cpp.

Member Data Documentation

◆ m_Channel

ssh_channel CChannelSSH::m_Channel
protected

Definition at line 52 of file ChannelSSH.h.

◆ m_pBackend

CBackend* CChannelSSH::m_pBackend
protected

Definition at line 53 of file ChannelSSH.h.

◆ m_pcapFile

ssh_pcap_file CChannelSSH::m_pcapFile
private

Definition at line 58 of file ChannelSSH.h.

◆ m_pEvent

Channel::CEvent* CChannelSSH::m_pEvent
protected

Definition at line 55 of file ChannelSSH.h.

◆ m_pParameter

CParameterSSH* CChannelSSH::m_pParameter
protected

Definition at line 54 of file ChannelSSH.h.

◆ m_Session

ssh_session CChannelSSH::m_Session
protected

Definition at line 51 of file ChannelSSH.h.


The documentation for this class was generated from the following files: