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

#include <ZeroconfMDNS.h>

Inheritance diagram for CZeroconfMDNS:
CZeroconf CThread

Public Member Functions

 CZeroconfMDNS ()
 
 ~CZeroconfMDNS ()
 
- Public Member Functions inherited from CZeroconf
bool PublishService (const std::string &fcr_identifier, const std::string &fcr_type, const std::string &fcr_name, unsigned int f_port, std::vector< std::pair< std::string, std::string > > txt)
 
bool ForceReAnnounceService (const std::string &fcr_identifier)
 
bool RemoveService (const std::string &fcr_identifier)
 
bool HasService (const std::string &fcr_identifier) const
 returns true if fcr_identifier exists
 
bool Start ()
 
void Stop ()
 
bool IsStarted ()
 
- Public Member Functions inherited from CThread
 CThread (IRunnable *pRunnable, const char *ThreadName)
 
virtual ~CThread ()
 
void Create (bool bAutoDelete=false)
 
template<typename Rep , typename Period >
void Sleep (std::chrono::duration< Rep, Period > duration)
 
bool IsAutoDelete () const
 
virtual void StopThread (bool bWait=true)
 
bool IsRunning () const
 
bool IsCurrentThread () const
 
bool Join (std::chrono::milliseconds duration)
 
bool SetPriority (const ThreadPriority &priority)
 Set the threads priority. This uses the platforms native threading library to do so.
 
bool SetTask (const ThreadTask &task)
 Assign the current thread a task for OS scheduling (platform dependent)
 
bool RevertTask ()
 Revert the current thread to normal scheduling (platform dependent)
 
virtual void OnException ()
 

Protected Member Functions

void Process ()
 
bool doPublishService (const std::string &fcr_identifier, const std::string &fcr_type, const std::string &fcr_name, unsigned int f_port, const std::vector< std::pair< std::string, std::string > > &txt)
 
bool doForceReAnnounceService (const std::string &fcr_identifier)
 
bool doRemoveService (const std::string &fcr_ident)
 
virtual void doStop ()
 
bool IsZCdaemonRunning ()
 
void ProcessResults ()
 
- Protected Member Functions inherited from CZeroconf
 CZeroconf ()
 
 CZeroconf (const CZeroconf &)
 
virtual ~CZeroconf ()
 
- Protected Member Functions inherited from CThread
 CThread (const char *ThreadName)
 
virtual void OnStartup ()
 
virtual void OnExit ()
 
WaitResponse AbortableWait (CEvent &event, std::chrono::milliseconds duration=std::chrono::milliseconds(-1))
 

Additional Inherited Members

- Static Public Member Functions inherited from CZeroconf
static CZeroconfGetInstance ()
 
static void ReleaseInstance ()
 
static bool IsInstantiated ()
 
- Static Public Member Functions inherited from CThread
static const std::thread::id GetCurrentThreadId ()
 
static CThreadGetCurrentThread ()
 
- Protected Types inherited from CThread
enum  WaitResponse { WAIT_INTERRUPTED = -1 , WAIT_SIGNALED = 0 , WAIT_TIMEDOUT = 1 }
 
- Protected Attributes inherited from CThread
std::atomic< boolm_bStop
 

Constructor & Destructor Documentation

◆ CZeroconfMDNS()

CZeroconfMDNS::CZeroconfMDNS ( )

◆ ~CZeroconfMDNS()

CZeroconfMDNS::~CZeroconfMDNS ( )

Member Function Documentation

◆ doForceReAnnounceService()

bool CZeroconfMDNS::doForceReAnnounceService ( const std::string & fcr_identifier)
protectedvirtual

Implements CZeroconf.

◆ doPublishService()

bool CZeroconfMDNS::doPublishService ( const std::string & fcr_identifier,
const std::string & fcr_type,
const std::string & fcr_name,
unsigned int f_port,
const std::vector< std::pair< std::string, std::string > > & txt )
protectedvirtual

HAS_MDNS_EMBEDDED

Implements CZeroconf.

◆ doRemoveService()

bool CZeroconfMDNS::doRemoveService ( const std::string & fcr_ident)
protectedvirtual

Implements CZeroconf.

◆ doStop()

void CZeroconfMDNS::doStop ( )
protectedvirtual

Implements CZeroconf.

◆ IsZCdaemonRunning()

bool CZeroconfMDNS::IsZCdaemonRunning ( )
protectedvirtual

HAS_MDNS_EMBEDDED

Reimplemented from CZeroconf.

◆ Process()

void CZeroconfMDNS::Process ( void )
protectedvirtual

Reimplemented from CThread.

◆ ProcessResults()

void CZeroconfMDNS::ProcessResults ( )
protectedvirtual

Reimplemented from CZeroconf.


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