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

#include <EventServer.h>

Inheritance diagram for EVENTSERVER::CEventServer:
CThread

Public Member Functions

 CEventServer ()
 
 ~CEventServer () override=default
 
void Process () override
 
bool Running ()
 
void RefreshSettings ()
 
void StartServer ()
 
void StopServer (bool bWait)
 
unsigned int GetButtonCode (std::string &strMapName, bool &isAxis, float &amount, bool &isJoystick)
 
bool ExecuteNextAction ()
 
bool GetMousePos (float &x, float &y)
 
int GetNumberOfClients ()
 

Static Public Member Functions

static void RemoveInstance ()
 
static CEventServerGetInstance ()
 

Protected Member Functions

void Cleanup ()
 
void Run ()
 
void ProcessPacket (SOCKETS::CAddress &addr, int packetSize)
 
void ProcessEvents ()
 
void RefreshClients ()
 

Protected Attributes

std::map< unsigned long, std::unique_ptr< EVENTCLIENT::CEventClient > > m_clients
 
std::unique_ptr< SOCKETS::CUDPSocketm_pSocket
 
int m_iPort
 
int m_iListenTimeout
 
int m_iMaxClients
 
std::vector< uint8_tm_pPacketBuffer
 
std::atomic< boolm_bRunning = false
 
CCriticalSection m_critSection
 
bool m_bRefreshSettings
 

Static Protected Attributes

static std::unique_ptr< CEventServerm_pInstance
 

Constructor & Destructor Documentation

◆ CEventServer()

CEventServer::CEventServer ( )

◆ ~CEventServer()

EVENTSERVER::CEventServer::~CEventServer ( )
overridedefault

Member Function Documentation

◆ Cleanup()

void CEventServer::Cleanup ( )
protected

◆ ExecuteNextAction()

bool CEventServer::ExecuteNextAction ( )

◆ GetButtonCode()

unsigned int CEventServer::GetButtonCode ( std::string & strMapName,
bool & isAxis,
float & amount,
bool & isJoystick )

◆ GetInstance()

CEventServer * CEventServer::GetInstance ( )
static

◆ GetMousePos()

bool CEventServer::GetMousePos ( float & x,
float & y )

◆ GetNumberOfClients()

int CEventServer::GetNumberOfClients ( )

◆ Process()

void CEventServer::Process ( void )
overridevirtual

Reimplemented from CThread.

◆ ProcessEvents()

void CEventServer::ProcessEvents ( )
protected

◆ ProcessPacket()

void CEventServer::ProcessPacket ( SOCKETS::CAddress & addr,
int packetSize )
protected

◆ RefreshClients()

void CEventServer::RefreshClients ( )
protected

◆ RefreshSettings()

void EVENTSERVER::CEventServer::RefreshSettings ( )
inline

◆ RemoveInstance()

void CEventServer::RemoveInstance ( )
static

◆ Run()

void CEventServer::Run ( )
protected

◆ Running()

bool EVENTSERVER::CEventServer::Running ( )
inline

◆ StartServer()

void CEventServer::StartServer ( )

◆ StopServer()

void CEventServer::StopServer ( bool bWait)

Member Data Documentation

◆ m_bRefreshSettings

bool EVENTSERVER::CEventServer::m_bRefreshSettings
protected

◆ m_bRunning

std::atomic<bool> EVENTSERVER::CEventServer::m_bRunning = false
protected

◆ m_clients

std::map<unsigned long, std::unique_ptr<EVENTCLIENT::CEventClient> > EVENTSERVER::CEventServer::m_clients
protected

◆ m_critSection

CCriticalSection EVENTSERVER::CEventServer::m_critSection
protected

◆ m_iListenTimeout

int EVENTSERVER::CEventServer::m_iListenTimeout
protected

◆ m_iMaxClients

int EVENTSERVER::CEventServer::m_iMaxClients
protected

◆ m_iPort

int EVENTSERVER::CEventServer::m_iPort
protected

◆ m_pInstance

std::unique_ptr< CEventServer > CEventServer::m_pInstance
staticprotected

◆ m_pPacketBuffer

std::vector<uint8_t> EVENTSERVER::CEventServer::m_pPacketBuffer
protected

◆ m_pSocket

std::unique_ptr<SOCKETS::CUDPSocket> EVENTSERVER::CEventServer::m_pSocket
protected

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