Rabbit Remote Control 0.0.30
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
CIceSignalWebSocket Class Reference

#include <IceSignalWebSocket.h>

Inheritance diagram for CIceSignalWebSocket:
CIceSignal

Public Member Functions

 CIceSignalWebSocket (QObject *parent=nullptr)
 
virtual int Open (const std::string &szServer, quint16 nPort, const std::string &user=std::string(), const std::string &password=std::string()) override
 
int Open (const std::string &szUrl, const std::string &user=std::string(), const std::string &password=std::string())
 
virtual int Close () override
 
virtual bool IsOpen () override
 
virtual int SendDescription (const QString &toUser, const QString &channelId, const rtc::Description &description, const QString &fromUser=QString()) override
 
virtual int SendCandiate (const QString &toUser, const QString &channelId, const rtc::Candidate &candidate, const QString &fromUser=QString()) override
 
virtual int Write (const char *buf, int nLen) override
 
virtual int Read (char *buf, int nLen) override
 
- Public Member Functions inherited from CIceSignal
 CIceSignal (QObject *parent=nullptr)
 
virtual int Open (const QString &szServer, quint16 nPort, const QString &user=QString(), const QString &password=QString())=0
 
virtual bool IsConnected ()=0
 
virtual int SendCandidate (const QString &toUser, const QString &channelId, const rtc::Candidate &candidate, const QString &fromUser=QString())=0
 

Private Attributes

std::shared_ptr< rtc::WebSocket > m_webSocket
 
std::string m_szUrl
 
std::string m_szUser
 
std::string m_szPeerUser
 
rtc::binary m_Data
 
QMutex m_MutexSend
 

Additional Inherited Members

- Signals inherited from CIceSignal
void sigConnected ()
 
void sigDisconnected ()
 
void sigError (int nError, const QString &szError)
 
void sigOffer (const QString &fromUser, const QString &toUser, const QString &channelId, const QString &type, const QString &sdp)
 sigOffer
 
void sigCandidate (const QString &fromUser, const QString &toUser, const QString &channelId, const QString &mid, const QString &sdp)
 sigCandiate
 
void sigDescription (const QString &fromUser, const QString &toUser, const QString &channelId, const QString &type, const QString &sdp)
 sigDescription
 
- Protected Attributes inherited from CIceSignal
QLoggingCategory m_Log
 

Detailed Description

Author
Kang Lin(kl222.nosp@m.@126.nosp@m..com)

Definition at line 10 of file IceSignalWebSocket.h.

Constructor & Destructor Documentation

◆ CIceSignalWebSocket()

CIceSignalWebSocket::CIceSignalWebSocket ( QObject *  parent = nullptr)
explicit
Author
Kang Lin(kl222.nosp@m.@126.nosp@m..com)

Definition at line 9 of file IceSignalWebSocket.cpp.

◆ ~CIceSignalWebSocket()

CIceSignalWebSocket::~CIceSignalWebSocket ( )
virtual

Definition at line 14 of file IceSignalWebSocket.cpp.

Member Function Documentation

◆ Close()

int CIceSignalWebSocket::Close ( )
overridevirtual

Implements CIceSignal.

Definition at line 132 of file IceSignalWebSocket.cpp.

◆ IsOpen()

bool CIceSignalWebSocket::IsOpen ( )
overridevirtual

Definition at line 139 of file IceSignalWebSocket.cpp.

◆ Open() [1/2]

int CIceSignalWebSocket::Open ( const std::string &  szServer,
quint16  nPort,
const std::string &  user = std::string(),
const std::string &  password = std::string() 
)
overridevirtual

Definition at line 39 of file IceSignalWebSocket.cpp.

◆ Open() [2/2]

int CIceSignalWebSocket::Open ( const std::string &  szUrl,
const std::string &  user = std::string(),
const std::string &  password = std::string() 
)

Definition at line 52 of file IceSignalWebSocket.cpp.

◆ Read()

int CIceSignalWebSocket::Read ( char *  buf,
int  nLen 
)
overridevirtual

Definition at line 32 of file IceSignalWebSocket.cpp.

◆ SendCandiate()

int CIceSignalWebSocket::SendCandiate ( const QString &  toUser,
const QString &  channelId,
const rtc::Candidate &  candidate,
const QString &  fromUser = QString() 
)
overridevirtual

Definition at line 146 of file IceSignalWebSocket.cpp.

◆ SendDescription()

int CIceSignalWebSocket::SendDescription ( const QString &  toUser,
const QString &  channelId,
const rtc::Description &  description,
const QString &  fromUser = QString() 
)
overridevirtual

Implements CIceSignal.

Definition at line 166 of file IceSignalWebSocket.cpp.

◆ Write()

int CIceSignalWebSocket::Write ( const char *  buf,
int  nLen 
)
overridevirtual

Definition at line 19 of file IceSignalWebSocket.cpp.

Member Data Documentation

◆ m_Data

rtc::binary CIceSignalWebSocket::m_Data
private

Definition at line 43 of file IceSignalWebSocket.h.

◆ m_MutexSend

QMutex CIceSignalWebSocket::m_MutexSend
private

Definition at line 44 of file IceSignalWebSocket.h.

◆ m_szPeerUser

std::string CIceSignalWebSocket::m_szPeerUser
private

Definition at line 42 of file IceSignalWebSocket.h.

◆ m_szUrl

std::string CIceSignalWebSocket::m_szUrl
private

Definition at line 41 of file IceSignalWebSocket.h.

◆ m_szUser

std::string CIceSignalWebSocket::m_szUser
private

Definition at line 42 of file IceSignalWebSocket.h.

◆ m_webSocket

std::shared_ptr<rtc::WebSocket> CIceSignalWebSocket::m_webSocket
private

Definition at line 40 of file IceSignalWebSocket.h.


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