xbmc
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
CWebSocket Class Referenceabstract
Inheritance diagram for CWebSocket:
Inheritance graph
[legend]
Collaboration diagram for CWebSocket:
Collaboration graph
[legend]

Public Member Functions

int GetVersion ()
 
WebSocketState GetState ()
 
virtual bool Handshake (const char *data, size_t length, std::string &response)=0
 
virtual const CWebSocketMessageHandle (const char *&buffer, size_t &length, bool &send)
 
virtual const CWebSocketMessageSend (WebSocketFrameOpcode opcode, const char *data=NULL, uint32_t length=0)
 
virtual const CWebSocketFramePing (const char *data=NULL) const =0
 
virtual const CWebSocketFramePong (const char *data=NULL) const =0
 
virtual const CWebSocketFrameClose (WebSocketCloseReason reason=WebSocketCloseNormal, const std::string &message="")=0
 
virtual void Fail ()=0
 

Protected Member Functions

virtual CWebSocketFrameGetFrame (const char *data, uint64_t length)=0
 
virtual 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)=0
 
virtual CWebSocketMessageGetMessage ()=0
 

Protected Attributes

int m_version
 
WebSocketState m_state
 
CWebSocketMessagem_message
 

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