18 virtual int Open(
const std::string& szServer, quint16 nPort,
19 const std::string &user = std::string(),
20 const std::string &password = std::string())
override;
21 int Open(
const std::string &szUrl,
22 const std::string &user = std::string(),
23 const std::string &password = std::string());
24 virtual int Close()
override;
25 virtual bool IsOpen()
override;
27 virtual int SendDescription(
const QString& toUser,
28 const QString& channelId,
29 const rtc::Description& description,
30 const QString& fromUser = QString())
override;
31 virtual int SendCandiate(
const QString& toUser,
32 const QString& channelId,
33 const rtc::Candidate& candidate,
34 const QString& fromUser = QString())
override;
36 virtual int Write(
const char* buf,
int nLen)
override;
37 virtual int Read(
char* buf,
int nLen)
override;
40 std::shared_ptr<rtc::WebSocket> m_webSocket;
42 std::string m_szUser, m_szPeerUser;