Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
#include <WebSocket.h>
Public Member Functions | |
CWebSocket () | |
virtual | ~CWebSocket () |
int | GetVersion () |
WebSocketState | GetState () |
virtual bool | Handshake (const char *data, size_t length, std::string &response)=0 |
virtual const CWebSocketMessage * | Handle (const char *&buffer, size_t &length, bool &send) |
virtual const CWebSocketMessage * | Send (WebSocketFrameOpcode opcode, const char *data=NULL, uint32_t length=0) |
virtual const CWebSocketFrame * | Ping (const char *data=NULL) const =0 |
virtual const CWebSocketFrame * | Pong (const char *data, uint32_t length) const =0 |
virtual const CWebSocketFrame * | Close (WebSocketCloseReason reason=WebSocketCloseNormal, const std::string &message="")=0 |
virtual void | Fail ()=0 |
Protected Member Functions | |
virtual CWebSocketFrame * | GetFrame (const char *data, uint64_t length)=0 |
virtual CWebSocketFrame * | 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)=0 |
virtual CWebSocketMessage * | GetMessage ()=0 |
Protected Attributes | |
int | m_version |
WebSocketState | m_state |
CWebSocketMessage * | m_message |
|
inline |
|
inlinevirtual |
|
pure virtual |
Implemented in CWebSocketV13, and CWebSocketV8.
|
pure virtual |
Implemented in CWebSocketV8.
|
protectedpure virtual |
Implemented in CWebSocketV8.
|
protectedpure virtual |
Implemented in CWebSocketV8.
|
protectedpure virtual |
Implemented in CWebSocketV8.
|
inline |
|
inline |
|
virtual |
|
pure virtual |
Implemented in CWebSocketV13, and CWebSocketV8.
|
pure virtual |
Implemented in CWebSocketV8.
|
pure virtual |
Implemented in CWebSocketV8.
|
virtual |
|
protected |
|
protected |
|
protected |