通道接口类。此类默认实现一个 TCP 的通道。
更多...
#include <Channel.h>
|
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
|
|
|
| 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 |
|
|
void | slotError (QAbstractSocket::SocketError e) |
|
通道接口类。此类默认实现一个 TCP 的通道。
在文件 Channel.h 第 24 行定义.
◆ CChannel() [1/2]
CChannel::CChannel |
( |
QTcpSocket * |
pSocket, |
|
|
QObject * |
parent = nullptr |
|
) |
| |
|
explicit |
◆ ~CChannel()
◆ CChannel() [2/2]
CChannel::CChannel |
( |
QObject * |
parent = nullptr | ) |
|
|
explicitprotected |
◆ close()
◆ GetDetails()
QString CChannel::GetDetails |
( |
| ) |
|
|
virtual |
◆ InitTranslation()
int CChannel::InitTranslation |
( |
| ) |
|
|
static |
◆ isSequential()
bool CChannel::isSequential |
( |
| ) |
const |
|
overrideprotectedvirtual |
◆ open()
bool CChannel::open |
( |
OpenMode |
mode | ) |
|
|
overridevirtual |
◆ readData()
qint64 CChannel::readData |
( |
char * |
data, |
|
|
qint64 |
maxlen |
|
) |
| |
|
overrideprotectedvirtual |
◆ RemoveTranslation()
int CChannel::RemoveTranslation |
( |
| ) |
|
|
static |
◆ slotError
void CChannel::slotError |
( |
QAbstractSocket::SocketError |
e | ) |
|
|
privateslot |
◆ writeData()
qint64 CChannel::writeData |
( |
const char * |
data, |
|
|
qint64 |
len |
|
) |
| |
|
overrideprotectedvirtual |
◆ m_pSocket
QTcpSocket* CChannel::m_pSocket |
|
private |
该类的文档由以下文件生成:
- /home/runner/work/RabbitRemoteControl/RabbitRemoteControl/Channel/Channel.h
- /home/runner/work/RabbitRemoteControl/RabbitRemoteControl/Channel/Channel.cpp