xbmc
Classes | Public Member Functions | Static Public Member Functions | List of all members
CZeroconfBrowser Class Referenceabstract

this class provides support for zeroconf browsing More...

#include <ZeroconfBrowser.h>

Inheritance diagram for CZeroconfBrowser:
Inheritance graph
[legend]

Classes

class  ZeroconfService
 

Public Member Functions

void Start ()
 
void Stop ()
 
std::vector< ZeroconfServiceGetFoundServices ()
 returns the list of found services if this is updated, the following message with "zeroconf://" as path is sent: CGUIMessage message(GUI_MSG_NOTIFY_ALL, 0, 0, GUI_MSG_UPDATE_PATH);
 
bool ResolveService (ZeroconfService &fr_service, double f_timeout=1.0)
 
virtual void ProcessResults ()
 

Static Public Member Functions

static CZeroconfBrowserGetInstance ()
 
static void ReleaseInstance ()
 
static bool IsInstantiated ()
 
bool AddServiceType (const std::string &fcr_service_type)
 methods for browsing and getting results of itadds a service type for browsing More...
 
bool RemoveServiceType (const std::string &fcr_service_type)
 remove the specified service from discovery More...
 
 CZeroconfBrowser (const CZeroconfBrowser &)=delete
 
CZeroconfBrowseroperator= (const CZeroconfBrowser &)=delete
 
virtual bool doAddServiceType (const std::string &fcr_service_type)=0
 
virtual bool doRemoveServiceType (const std::string &fcr_service_type)=0
 
virtual std::vector< ZeroconfServicedoGetFoundServices ()=0
 
virtual bool doResolveService (ZeroconfService &fr_service, double f_timeout)=0
 

Detailed Description

this class provides support for zeroconf browsing

Member Function Documentation

◆ AddServiceType()

bool CZeroconfBrowser::AddServiceType ( const std::string &  fcr_service_type)

methods for browsing and getting results of itadds a service type for browsing

Parameters
fcr_service_typethe service type as string, e.g. _smb._tcp.
Returns
false if it was already there

◆ RemoveServiceType()

bool CZeroconfBrowser::RemoveServiceType ( const std::string &  fcr_service_type)

remove the specified service from discovery

Parameters
fcr_service_typethe service type as string, e.g. _smb._tcp.
Returns
if it was not found

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