MythTV  master
Public Types | Public Member Functions | Public Attributes | List of all members
WebSocketFrame Class Reference

A representation of a single WebSocket frame. More...

#include <websocket.h>

Public Types

enum  OpCode {
  kOpContinuation = 0x0, kOpTextFrame = 0x1, kOpBinaryFrame = 0x2, kOpClose = 0x8,
  kOpPing = 0x9, kOpPong = 0xA
}
 

Public Member Functions

 WebSocketFrame ()
 
 ~WebSocketFrame ()
 
void reset (void)
 

Public Attributes

bool m_finalFrame {false}
 
QByteArray m_payload
 
uint64_t m_payloadSize {0}
 
OpCode m_opCode {kOpTextFrame}
 
bool m_isMasked {false}
 
QByteArray m_mask
 
bool m_fragmented {false}
 

Detailed Description

A representation of a single WebSocket frame.

Definition at line 75 of file websocket.h.

Member Enumeration Documentation

◆ OpCode

Enumerator
kOpContinuation 
kOpTextFrame 
kOpBinaryFrame 
kOpClose 
kOpPing 
kOpPong 

Definition at line 101 of file websocket.h.

Constructor & Destructor Documentation

◆ WebSocketFrame()

WebSocketFrame::WebSocketFrame ( )
inline

Definition at line 78 of file websocket.h.

◆ ~WebSocketFrame()

WebSocketFrame::~WebSocketFrame ( )
inline

Definition at line 83 of file websocket.h.

Member Function Documentation

◆ reset()

void WebSocketFrame::reset ( void  )
inline

Definition at line 89 of file websocket.h.

Referenced by WebSocketWorker::HandleDataFrame(), and WebSocketWorker::ProcessFrames().

Member Data Documentation

◆ m_finalFrame

bool WebSocketFrame::m_finalFrame {false}

◆ m_payload

QByteArray WebSocketFrame::m_payload

◆ m_payloadSize

uint64_t WebSocketFrame::m_payloadSize {0}

◆ m_opCode

OpCode WebSocketFrame::m_opCode {kOpTextFrame}

◆ m_isMasked

bool WebSocketFrame::m_isMasked {false}

Definition at line 117 of file websocket.h.

Referenced by WebSocketWorker::ProcessFrames().

◆ m_mask

QByteArray WebSocketFrame::m_mask

◆ m_fragmented

bool WebSocketFrame::m_fragmented {false}

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