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

#include <WebSocketV8.h>

Inheritance diagram for CWebSocketV8:
CWebSocket CWebSocketV13

Public Member Functions

 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)
 

Protected Member Functions

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

Additional Inherited Members

- Protected Attributes inherited from CWebSocket
int m_version
 
WebSocketState m_state
 
CWebSocketMessagem_message
 

Constructor & Destructor Documentation

◆ CWebSocketV8()

CWebSocketV8::CWebSocketV8 ( )
inline

Member Function Documentation

◆ calculateKey()

std::string CWebSocketV8::calculateKey ( const std::string & key)
protected

◆ Close()

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

Implements CWebSocket.

◆ close()

const CWebSocketFrame * CWebSocketV8::close ( WebSocketCloseReason reason = WebSocketCloseNormal,
const std::string & message = "" )
protectedvirtual

◆ Fail()

void CWebSocketV8::Fail ( )
overridevirtual

Implements CWebSocket.

◆ GetFrame() [1/2]

CWebSocketFrame * CWebSocketV8::GetFrame ( const char * data,
uint64_t length )
overrideprotectedvirtual

Implements CWebSocket.

◆ GetFrame() [2/2]

CWebSocketFrame * CWebSocketV8::GetFrame ( WebSocketFrameOpcode opcode,
const char * data = NULL,
uint32_t length = 0,
bool final = true,
bool masked = false,
int32_t mask = 0,
int8_t extension = 0 )
overrideprotectedvirtual

Implements CWebSocket.

◆ GetMessage()

CWebSocketMessage * CWebSocketV8::GetMessage ( )
overrideprotectedvirtual

Implements CWebSocket.

◆ Handshake()

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

Implements CWebSocket.

◆ Ping()

const CWebSocketFrame * CWebSocketV8::Ping ( const char * data = NULL) const
inlineoverridevirtual

Implements CWebSocket.

◆ Pong()

const CWebSocketFrame * CWebSocketV8::Pong ( const char * data,
uint32_t length ) const
inlineoverridevirtual

Implements CWebSocket.


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