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

#include <EventPacket.h>

Public Member Functions

 CEventPacket ()=default
 
 CEventPacket (int datasize, const void *data)
 
virtual ~CEventPacket ()=default
 
virtual bool Parse (int datasize, const void *data)
 
bool IsValid () const
 
PacketType Type () const
 
unsigned int Size () const
 
unsigned int Sequence () const
 
const uint8_tPayload () const
 
unsigned int PayloadSize () const
 
unsigned int ClientToken () const
 
void SetPayload (std::vector< uint8_t > payload)
 

Protected Attributes

bool m_bValid {false}
 
unsigned int m_iSeq {0}
 
unsigned int m_iTotalPackets {0}
 
unsigned char m_header [32]
 
std::vector< uint8_tm_pPayload
 
unsigned int m_iClientToken {0}
 
unsigned char m_cMajVer {'0'}
 
unsigned char m_cMinVer {'0'}
 
PacketType m_eType {PT_LAST}
 

Constructor & Destructor Documentation

◆ CEventPacket() [1/2]

EVENTPACKET::CEventPacket::CEventPacket ( )
default

◆ CEventPacket() [2/2]

EVENTPACKET::CEventPacket::CEventPacket ( int datasize,
const void * data )
inlineexplicit

◆ ~CEventPacket()

virtual EVENTPACKET::CEventPacket::~CEventPacket ( )
virtualdefault

Member Function Documentation

◆ ClientToken()

unsigned int EVENTPACKET::CEventPacket::ClientToken ( ) const
inline

◆ IsValid()

bool EVENTPACKET::CEventPacket::IsValid ( ) const
inline

◆ Parse()

bool CEventPacket::Parse ( int datasize,
const void * data )
virtual

◆ Payload()

const uint8_t * EVENTPACKET::CEventPacket::Payload ( ) const
inline

◆ PayloadSize()

unsigned int EVENTPACKET::CEventPacket::PayloadSize ( ) const
inline

◆ Sequence()

unsigned int EVENTPACKET::CEventPacket::Sequence ( ) const
inline

◆ SetPayload()

void CEventPacket::SetPayload ( std::vector< uint8_t > payload)

◆ Size()

unsigned int EVENTPACKET::CEventPacket::Size ( ) const
inline

◆ Type()

PacketType EVENTPACKET::CEventPacket::Type ( ) const
inline

Member Data Documentation

◆ m_bValid

bool EVENTPACKET::CEventPacket::m_bValid {false}
protected

◆ m_cMajVer

unsigned char EVENTPACKET::CEventPacket::m_cMajVer {'0'}
protected

◆ m_cMinVer

unsigned char EVENTPACKET::CEventPacket::m_cMinVer {'0'}
protected

◆ m_eType

PacketType EVENTPACKET::CEventPacket::m_eType {PT_LAST}
protected

◆ m_header

unsigned char EVENTPACKET::CEventPacket::m_header[32]
protected

◆ m_iClientToken

unsigned int EVENTPACKET::CEventPacket::m_iClientToken {0}
protected

◆ m_iSeq

unsigned int EVENTPACKET::CEventPacket::m_iSeq {0}
protected

◆ m_iTotalPackets

unsigned int EVENTPACKET::CEventPacket::m_iTotalPackets {0}
protected

◆ m_pPayload

std::vector<uint8_t> EVENTPACKET::CEventPacket::m_pPayload
protected

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