Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
WebSocket.h File Reference
#include <stdint.h>
#include <string>
#include <vector>

Classes

class  CWebSocketFrame
 
class  CWebSocketMessage
 
class  CWebSocket
 

Enumerations

enum  WebSocketFrameOpcode {
  WebSocketContinuationFrame = 0x00 , WebSocketTextFrame = 0x01 , WebSocketBinaryFrame = 0x02 , WebSocketConnectionClose = 0x08 ,
  WebSocketPing = 0x09 , WebSocketPong = 0x0A , WebSocketUnknownFrame = 0x10
}
 
enum  WebSocketState {
  WebSocketStateNotConnected = 0 , WebSocketStateHandshaking = 1 , WebSocketStateConnected = 2 , WebSocketStateClosing = 3 ,
  WebSocketStateClosed = 4
}
 
enum  WebSocketCloseReason {
  WebSocketCloseNormal = 1000 , WebSocketCloseLeaving = 1001 , WebSocketCloseProtocolError = 1002 , WebSocketCloseInvalidData = 1003 ,
  WebSocketCloseFrameTooLarge = 1004 , WebSocketCloseInvalidUtf8 = 1007
}
 

Enumeration Type Documentation

◆ WebSocketCloseReason

Enumerator
WebSocketCloseNormal 
WebSocketCloseLeaving 
WebSocketCloseProtocolError 
WebSocketCloseInvalidData 
WebSocketCloseFrameTooLarge 
WebSocketCloseInvalidUtf8 

◆ WebSocketFrameOpcode

Enumerator
WebSocketContinuationFrame 
WebSocketTextFrame 
WebSocketBinaryFrame 
WebSocketConnectionClose 
WebSocketPing 
WebSocketPong 
WebSocketUnknownFrame 

◆ WebSocketState

Enumerator
WebSocketStateNotConnected 
WebSocketStateHandshaking 
WebSocketStateConnected 
WebSocketStateClosing 
WebSocketStateClosed