包括 SSH 隧道和用于转发数据的本地 SOCKET 服务。 实现通过本地 SOCKET 与 SSH 隧道转发数据。适用于库没有实现传输层接口,只有 socket 的情况。
更多...
#include <ChannelSSHTunnelForward.h>
|
enum class | SOCKET_TYPE { UnixSocket
, Socket
} |
|
|
void | sigServer (QString szHost, quint16 nPort) |
|
void | sigServer (QString szUnixDomainSocket) |
|
void | sigBlockShowMessageBox (const QString &szTitle, const QString &szMessage, QMessageBox::StandardButtons buttons, QMessageBox::StandardButton &nRet, bool &checkBox, QString checkBoxContext=QString()) |
| 阻塞后台线程,并在前台线程中显示消息对话框(QMessageBox)
|
|
void | sigBlockShowWidget (const QString &className, int &nRet, void *pContext) |
| 阻塞后台线程,并在前台线程中显示窗口。
|
|
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
|
|
包括 SSH 隧道和用于转发数据的本地 SOCKET 服务。 实现通过本地 SOCKET 与 SSH 隧道转发数据。适用于库没有实现传输层接口,只有 socket 的情况。
- 注解
- It is only used in CSSHTunnelThread
- 参见
- CSSHTunnelThread
在文件 ChannelSSHTunnelForward.h 第 22 行定义.
◆ SOCKET_TYPE
enum class CChannelSSHTunnelForward::SOCKET_TYPE |
|
strong |
◆ ~CChannelSSHTunnelForward()
CChannelSSHTunnelForward::~CChannelSSHTunnelForward |
( |
| ) |
|
|
virtual |
◆ AcceptConnect()
int CChannelSSHTunnelForward::AcceptConnect |
( |
| ) |
|
|
private |
◆ close()
void CChannelSSHTunnelForward::close |
( |
| ) |
|
|
overridevirtual |
◆ CloseSocket()
int CChannelSSHTunnelForward::CloseSocket |
( |
socket_t & |
s | ) |
|
|
private |
◆ open()
bool CChannelSSHTunnelForward::open |
( |
OpenMode |
mode | ) |
|
|
overridevirtual |
◆ OpenSocket()
int CChannelSSHTunnelForward::OpenSocket |
( |
| ) |
|
|
private |
◆ Process()
int CChannelSSHTunnelForward::Process |
( |
| ) |
|
|
virtual |
◆ ReadConnect()
int CChannelSSHTunnelForward::ReadConnect |
( |
| ) |
|
|
private |
◆ SSHReadyRead()
int CChannelSSHTunnelForward::SSHReadyRead |
( |
| ) |
|
|
private |
◆ m_BufferLength
const int CChannelSSHTunnelForward::m_BufferLength = 1024 |
|
private |
◆ m_Connector
socket_t CChannelSSHTunnelForward::m_Connector |
|
private |
◆ m_Listen
socket_t CChannelSSHTunnelForward::m_Listen |
|
private |
◆ m_pBuffer
char* CChannelSSHTunnelForward::m_pBuffer |
|
private |
◆ m_SocketType
SOCKET_TYPE CChannelSSHTunnelForward::m_SocketType |
|
private |
该类的文档由以下文件生成: