Rabbit Remote Control 0.0.37
|
Includes SSH tunneling and a local socket service for forwarding data. More...
#include <ChannelSSHTunnelForward.h>
Public Types | |
enum class | SOCKET_TYPE { UnixSocket , Socket } |
Signals | |
void | sigServer (QString szHost, quint16 nPort) |
void | sigServer (QString szUnixDomainSocket) |
![]() | |
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 | |
Public Member Functions | |
CChannelSSHTunnelForward (CParameterSSHTunnel *parameter, CParameterNet *remote, CBackend *pBackend, QObject *parent=nullptr) | |
virtual bool | open (OpenMode mode) override |
virtual void | close () override |
virtual int | Process () |
![]() | |
CChannelSSHTunnel (CParameterSSHTunnel *parameter, CParameterNet *remote, CBackend *pBackend, bool bWakeUp=true, QObject *parent=nullptr) | |
int | Process () |
virtual int | DoWait (bool bWrite, int timeout) |
int | GetSocket () |
![]() | |
CChannelSSH (CBackend *pBackend, CParameterSSH *pPara, bool bWakeUp=true, QObject *parent=nullptr) | |
virtual int | WakeUp () |
virtual QString | GetDetails () override |
Depend on information. | |
![]() | |
CChannel (QTcpSocket *pSocket, QObject *parent=nullptr) | |
CChannel. | |
Private Member Functions | |
int | CloseSocket (socket_t &s) |
int | AcceptConnect () |
int | ReadConnect () |
int | SSHReadyRead () |
int | OpenSocket () |
Private Attributes | |
socket_t | m_Listen |
socket_t | m_Connector |
SOCKET_TYPE | m_SocketType |
char * | m_pBuffer |
const int | m_BufferLength = 1024 |
Additional Inherited Members | |
![]() | |
static int | InitTranslation () |
Initial translation. | |
static int | RemoveTranslation () |
Remove translation. | |
static QString | GetSize (qint64 size) |
![]() | |
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 |
![]() | |
ssh_session | m_Session |
ssh_channel | m_Channel |
CBackend * | m_pBackend |
CParameterSSH * | m_pParameter |
Channel::CEvent * | m_pEvent |
Includes SSH tunneling and a local socket service for forwarding data.
Data is forwarded over a local socket and SSH tunnel. It is suitable for cases where the library does not implement a transport layer interface, only socket.
Definition at line 22 of file ChannelSSHTunnelForward.h.
|
strong |
Definition at line 38 of file ChannelSSHTunnelForward.h.
|
virtual |
Definition at line 44 of file ChannelSSHTunnelForward.cpp.
|
private |
Definition at line 241 of file ChannelSSHTunnelForward.cpp.
|
overridevirtual |
Reimplemented from CChannelSSH.
Definition at line 215 of file ChannelSSHTunnelForward.cpp.
|
private |
Definition at line 225 of file ChannelSSHTunnelForward.cpp.
|
overridevirtual |
pSocket | The Owner is the instance of this class. |
Reimplemented from CChannelSSH.
Definition at line 201 of file ChannelSSHTunnelForward.cpp.
|
private |
Definition at line 51 of file ChannelSSHTunnelForward.cpp.
|
virtual |
Definition at line 372 of file ChannelSSHTunnelForward.cpp.
|
private |
Definition at line 276 of file ChannelSSHTunnelForward.cpp.
|
private |
Definition at line 324 of file ChannelSSHTunnelForward.cpp.
|
private |
Definition at line 62 of file ChannelSSHTunnelForward.h.
|
private |
Definition at line 49 of file ChannelSSHTunnelForward.h.
|
private |
Definition at line 48 of file ChannelSSHTunnelForward.h.
|
private |
Definition at line 61 of file ChannelSSHTunnelForward.h.
|
private |
Definition at line 51 of file ChannelSSHTunnelForward.h.