Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CWebSocketFrame Class Reference

#include <WebSocket.h>

Public Member Functions

 CWebSocketFrame (const char *data, uint64_t length)
 
 CWebSocketFrame (WebSocketFrameOpcode opcode, const char *data=NULL, uint32_t length=0, bool final=true, bool masked=false, int32_t mask=0, int8_t extension=0)
 
virtual ~CWebSocketFrame ()
 
virtual bool IsValid () const
 
virtual uint64_t GetFrameLength () const
 
virtual bool IsFinal () const
 
virtual int8_t GetExtension () const
 
virtual WebSocketFrameOpcode GetOpcode () const
 
virtual bool IsControlFrame () const
 
virtual bool IsMasked () const
 
virtual uint64_t GetLength () const
 
virtual int32_t GetMask () const
 
virtual const char * GetFrameData () const
 
virtual const char * GetApplicationData () const
 

Protected Attributes

bool m_free
 
const char * m_data
 
uint64_t m_lengthFrame
 
uint64_t m_length
 
bool m_valid
 
bool m_final
 
int8_t m_extension
 
WebSocketFrameOpcode m_opcode
 
bool m_masked
 
int32_t m_mask
 
char * m_applicationData
 

Constructor & Destructor Documentation

◆ CWebSocketFrame() [1/2]

CWebSocketFrame::CWebSocketFrame ( const char * data,
uint64_t length )

◆ CWebSocketFrame() [2/2]

CWebSocketFrame::CWebSocketFrame ( WebSocketFrameOpcode opcode,
const char * data = NULL,
uint32_t length = 0,
bool final = true,
bool masked = false,
int32_t mask = 0,
int8_t extension = 0 )

◆ ~CWebSocketFrame()

CWebSocketFrame::~CWebSocketFrame ( )
virtual

Member Function Documentation

◆ GetApplicationData()

virtual const char * CWebSocketFrame::GetApplicationData ( ) const
inlinevirtual

◆ GetExtension()

virtual int8_t CWebSocketFrame::GetExtension ( ) const
inlinevirtual

◆ GetFrameData()

virtual const char * CWebSocketFrame::GetFrameData ( ) const
inlinevirtual

◆ GetFrameLength()

virtual uint64_t CWebSocketFrame::GetFrameLength ( ) const
inlinevirtual

◆ GetLength()

virtual uint64_t CWebSocketFrame::GetLength ( ) const
inlinevirtual

◆ GetMask()

virtual int32_t CWebSocketFrame::GetMask ( ) const
inlinevirtual

◆ GetOpcode()

virtual WebSocketFrameOpcode CWebSocketFrame::GetOpcode ( ) const
inlinevirtual

◆ IsControlFrame()

virtual bool CWebSocketFrame::IsControlFrame ( ) const
inlinevirtual

◆ IsFinal()

virtual bool CWebSocketFrame::IsFinal ( ) const
inlinevirtual

◆ IsMasked()

virtual bool CWebSocketFrame::IsMasked ( ) const
inlinevirtual

◆ IsValid()

virtual bool CWebSocketFrame::IsValid ( ) const
inlinevirtual

Member Data Documentation

◆ m_applicationData

char* CWebSocketFrame::m_applicationData
protected

◆ m_data

const char* CWebSocketFrame::m_data
protected

◆ m_extension

int8_t CWebSocketFrame::m_extension
protected

◆ m_final

bool CWebSocketFrame::m_final
protected

◆ m_free

bool CWebSocketFrame::m_free
protected

◆ m_length

uint64_t CWebSocketFrame::m_length
protected

◆ m_lengthFrame

uint64_t CWebSocketFrame::m_lengthFrame
protected

◆ m_mask

int32_t CWebSocketFrame::m_mask
protected

◆ m_masked

bool CWebSocketFrame::m_masked
protected

◆ m_opcode

WebSocketFrameOpcode CWebSocketFrame::m_opcode
protected

◆ m_valid

bool CWebSocketFrame::m_valid
protected

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