Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
WebSocketV8.cpp File Reference
#include "WebSocketV8.h"
#include "WebSocket.h"
#include "utils/Base64.h"
#include "utils/Digest.h"
#include "utils/EndianSwap.h"
#include "utils/HttpParser.h"
#include "utils/HttpResponse.h"
#include "utils/StringUtils.h"
#include "utils/log.h"
#include <sstream>
#include <string>

Macros

#define WS_HTTP_METHOD   "GET"
 
#define WS_HTTP_TAG   "HTTP/"
 
#define WS_HEADER_UPGRADE   "Upgrade"
 
#define WS_HEADER_CONNECTION   "Connection"
 
#define WS_HEADER_KEY_LC   "sec-websocket-key"
 
#define WS_HEADER_ACCEPT   "Sec-WebSocket-Accept"
 
#define WS_HEADER_PROTOCOL   "Sec-WebSocket-Protocol"
 
#define WS_HEADER_PROTOCOL_LC   "sec-websocket-protocol"
 
#define WS_PROTOCOL_JSONRPC   "jsonrpc.xbmc.org"
 
#define WS_HEADER_UPGRADE_VALUE   "websocket"
 
#define WS_KEY_MAGICSTRING   "258EAFA5-E914-47DA-95CA-C5AB0DC85B11"
 

Macro Definition Documentation

◆ WS_HEADER_ACCEPT

#define WS_HEADER_ACCEPT   "Sec-WebSocket-Accept"

◆ WS_HEADER_CONNECTION

#define WS_HEADER_CONNECTION   "Connection"

◆ WS_HEADER_KEY_LC

#define WS_HEADER_KEY_LC   "sec-websocket-key"

◆ WS_HEADER_PROTOCOL

#define WS_HEADER_PROTOCOL   "Sec-WebSocket-Protocol"

◆ WS_HEADER_PROTOCOL_LC

#define WS_HEADER_PROTOCOL_LC   "sec-websocket-protocol"

◆ WS_HEADER_UPGRADE

#define WS_HEADER_UPGRADE   "Upgrade"

◆ WS_HEADER_UPGRADE_VALUE

#define WS_HEADER_UPGRADE_VALUE   "websocket"

◆ WS_HTTP_METHOD

#define WS_HTTP_METHOD   "GET"

◆ WS_HTTP_TAG

#define WS_HTTP_TAG   "HTTP/"

◆ WS_KEY_MAGICSTRING

#define WS_KEY_MAGICSTRING   "258EAFA5-E914-47DA-95CA-C5AB0DC85B11"

◆ WS_PROTOCOL_JSONRPC

#define WS_PROTOCOL_JSONRPC   "jsonrpc.xbmc.org"