Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CWebSocketV13 Class Reference

#include <WebSocketV13.h>

Inheritance diagram for CWebSocketV13:
CWebSocketV8 CWebSocket

Public Member Functions

 CWebSocketV13 ()
 
bool Handshake (const char *data, size_t length, std::string &response) override
 
const CWebSocketFrameClose (WebSocketCloseReason reason=WebSocketCloseNormal, const std::string &message="") override
 
- Public Member Functions inherited from CWebSocketV8
 CWebSocketV8 ()
 
bool Handshake (const char *data, size_t length, std::string &response) override
 
const CWebSocketFramePing (const char *data=NULL) const override
 
const CWebSocketFramePong (const char *data, uint32_t length) const override
 
const CWebSocketFrameClose (WebSocketCloseReason reason=WebSocketCloseNormal, const std::string &message="") override
 
void Fail () override
 
- Public Member Functions inherited from CWebSocket
 CWebSocket ()
 
virtual ~CWebSocket ()
 
int GetVersion ()
 
WebSocketState GetState ()
 
virtual const CWebSocketMessageHandle (const char *&buffer, size_t &length, bool &send)
 
virtual const CWebSocketMessageSend (WebSocketFrameOpcode opcode, const char *data=NULL, uint32_t length=0)
 

Additional Inherited Members

- Protected Member Functions inherited from CWebSocketV8
CWebSocketFrameGetFrame (const char *data, uint64_t length) override
 
CWebSocketFrameGetFrame (WebSocketFrameOpcode opcode, const char *data=NULL, uint32_t length=0, bool final=true, bool masked=false, int32_t mask=0, int8_t extension=0) override
 
CWebSocketMessageGetMessage () override
 
virtual const CWebSocketFrameclose (WebSocketCloseReason reason=WebSocketCloseNormal, const std::string &message="")
 
std::string calculateKey (const std::string &key)
 
- Protected Member Functions inherited from CWebSocket
- Protected Attributes inherited from CWebSocket
int m_version
 
WebSocketState m_state
 
CWebSocketMessagem_message
 

Constructor & Destructor Documentation

◆ CWebSocketV13()

CWebSocketV13::CWebSocketV13 ( )
inline

Member Function Documentation

◆ Close()

const CWebSocketFrame * CWebSocketV13::Close ( WebSocketCloseReason reason = WebSocketCloseNormal,
const std::string & message = "" )
overridevirtual

Implements CWebSocket.

◆ Handshake()

bool CWebSocketV13::Handshake ( const char * data,
size_t length,
std::string & response )
overridevirtual

Implements CWebSocket.


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