ICE 通道类。此类实现一个 ICE 的通道。
更多...
#include <ChannelIce.h>
|
| CChannelIce (CIceSignal *pSignal, QObject *parent=nullptr) |
|
int | SetConfigure (const rtc::Configuration &config) |
|
virtual bool | open (const QString &user, const QString &peer, bool bChannelId) |
| 打开通道。用于激活呼叫
|
|
virtual bool | open (const QString &fromUser, const QString &toUser, const QString &channelId, const QString &type, const QString &sdp) |
| 打开通道。用于被动接收
|
|
virtual void | close () |
|
QString | GetUser () |
|
QString | GetPeerUser () |
|
QString | GetChannelId () |
|
| CChannel (QTcpSocket *pSocket, QObject *parent=nullptr) |
| CChannel
|
|
virtual bool | open (OpenMode mode) override |
|
virtual QString | GetDetails () |
|
|
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
|
|
static int | InitTranslation () |
|
static int | RemoveTranslation () |
|
◆ CChannelIce() [1/2]
CChannelIce::CChannelIce |
( |
CIceSignal * |
pSignal, |
|
|
QObject * |
parent = nullptr |
|
) |
| |
|
explicit |
◆ ~CChannelIce()
CChannelIce::~CChannelIce |
( |
| ) |
|
|
virtual |
◆ CChannelIce() [2/2]
CChannelIce::CChannelIce |
( |
QObject * |
parent = nullptr | ) |
|
|
private |
◆ close()
void CChannelIce::close |
( |
| ) |
|
|
virtual |
◆ CreateDataChannel()
int CChannelIce::CreateDataChannel |
( |
bool |
bDataChannel | ) |
|
|
privatevirtual |
◆ GenerateID()
QString CChannelIce::GenerateID |
( |
const QString & |
label = QString() | ) |
|
|
private |
◆ GetChannelId()
QString CChannelIce::GetChannelId |
( |
| ) |
|
◆ GetPeerUser()
QString CChannelIce::GetPeerUser |
( |
| ) |
|
◆ GetUser()
QString CChannelIce::GetUser |
( |
| ) |
|
◆ isSequential()
bool CChannelIce::isSequential |
( |
| ) |
const |
|
protectedvirtual |
◆ open() [1/2]
bool CChannelIce::open |
( |
const QString & |
fromUser, |
|
|
const QString & |
toUser, |
|
|
const QString & |
channelId, |
|
|
const QString & |
type, |
|
|
const QString & |
sdp |
|
) |
| |
|
virtual |
打开通道。用于被动接收
- 注解
- 由服务器调用。调用此函数前,必须先调用 SetConfigure 设置服务器属性。
在文件 ChannelIce.cpp 第 267 行定义.
◆ open() [2/2]
bool CChannelIce::open |
( |
const QString & |
user, |
|
|
const QString & |
peer, |
|
|
bool |
bChannelId |
|
) |
| |
|
virtual |
打开通道。用于激活呼叫
- 注解
- 由客户端调用。调用此函数前,必须先调用 SetConfigure 设置服务器属性。
在文件 ChannelIce.cpp 第 255 行定义.
◆ readData()
qint64 CChannelIce::readData |
( |
char * |
data, |
|
|
qint64 |
maxlen |
|
) |
| |
|
protectedvirtual |
◆ SetConfigure()
int CChannelIce::SetConfigure |
( |
const rtc::Configuration & |
config | ) |
|
◆ SetDataChannel()
int CChannelIce::SetDataChannel |
( |
std::shared_ptr< rtc::DataChannel > |
dc | ) |
|
|
privatevirtual |
◆ SetSignal()
◆ slotSignalConnected
void CChannelIce::slotSignalConnected |
( |
| ) |
|
|
privatevirtualslot |
◆ slotSignalDisconnected
void CChannelIce::slotSignalDisconnected |
( |
| ) |
|
|
privatevirtualslot |
◆ slotSignalError
void CChannelIce::slotSignalError |
( |
int |
error, |
|
|
const QString & |
szError |
|
) |
| |
|
privatevirtualslot |
◆ slotSignalReceiverCandidate
void CChannelIce::slotSignalReceiverCandidate |
( |
const QString & |
fromUser, |
|
|
const QString & |
toUser, |
|
|
const QString & |
channelId, |
|
|
const QString & |
mid, |
|
|
const QString & |
sdp |
|
) |
| |
|
privatevirtualslot |
◆ slotSignalReceiverDescription
void CChannelIce::slotSignalReceiverDescription |
( |
const QString & |
fromUser, |
|
|
const QString & |
toUser, |
|
|
const QString & |
channelId, |
|
|
const QString & |
type, |
|
|
const QString & |
sdp |
|
) |
| |
|
privatevirtualslot |
◆ writeData()
qint64 CChannelIce::writeData |
( |
const char * |
data, |
|
|
qint64 |
len |
|
) |
| |
|
protectedvirtual |
◆ m_Config
rtc::Configuration CChannelIce::m_Config |
|
private |
◆ m_data
QByteArray CChannelIce::m_data |
|
private |
◆ m_dataChannel
std::shared_ptr<rtc::DataChannel> CChannelIce::m_dataChannel |
|
private |
◆ m_Log
QLoggingCategory CChannelIce::m_Log |
|
private |
◆ m_MutexData
QMutex CChannelIce::m_MutexData |
|
private |
◆ m_peerConnection
std::shared_ptr<rtc::PeerConnection> CChannelIce::m_peerConnection |
|
private |
◆ m_pSignal
◆ m_szChannelId
QString CChannelIce::m_szChannelId |
|
private |
◆ m_szPeerUser
QString CChannelIce::m_szPeerUser |
|
private |
◆ m_szUser
QString CChannelIce::m_szUser |
|
private |
该类的文档由以下文件生成:
- /home/runner/work/RabbitRemoteControl/RabbitRemoteControl/Channel/ICE/ChannelIce.h
- /home/runner/work/RabbitRemoteControl/RabbitRemoteControl/Channel/ICE/ChannelIce.cpp