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

Macros

#define WS_HTTP_METHOD   "GET"
 
#define WS_HTTP_TAG   "HTTP/"
 
#define WS_HEADER_UPGRADE   "Upgrade"
 
#define WS_HEADER_UPGRADE_LC   "upgrade"
 
#define WS_HEADER_CONNECTION   "Connection"
 
#define WS_HEADER_CONNECTION_LC   "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"
 

Macro Definition Documentation

◆ WS_HEADER_ACCEPT

#define WS_HEADER_ACCEPT   "Sec-WebSocket-Accept"

◆ WS_HEADER_CONNECTION

#define WS_HEADER_CONNECTION   "Connection"

◆ WS_HEADER_CONNECTION_LC

#define WS_HEADER_CONNECTION_LC   "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_LC

#define WS_HEADER_UPGRADE_LC   "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_PROTOCOL_JSONRPC

#define WS_PROTOCOL_JSONRPC   "jsonrpc.xbmc.org"