Open Lighting Architecture  0.9.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Public Types | Public Member Functions | Static Public Attributes | Protected Types | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
ola::e133::BaseSLPThread Class Reference

Detailed Description

The base class for a thread which handles all the SLP stuff.

Inheritance diagram for ola::e133::BaseSLPThread:
ola::thread::Thread ola::e133::OLASLPThread ola::e133::OpenSLPThread

Classes

struct  DiscoveryState
struct  URLRegistrationState

Public Types

typedef ola::BaseCallback1
< void, bool > 
RegistrationCallback
typedef ola::Callback2< void,
bool, const
ola::slp::URLEntries & > 
DiscoveryCallback
typedef
ola::SingleUseCallback2< void,
bool, const
SLPThreadServerInfo & > 
ServerInfoCallback

Public Member Functions

 BaseSLPThread (ola::thread::ExecutorInterface *executor, unsigned int discovery_interval=DEFAULT_DISCOVERY_INTERVAL_SECONDS)
bool SetNewControllerCallback (DiscoveryCallback *callback)
bool SetNewDeviceCallback (DiscoveryCallback *callback)
void RegisterDevice (RegistrationCallback *callback, const IPV4Address &address, const UID &uid, uint16_t lifetime)
void RegisterController (RegistrationCallback *callback, const IPV4Address &address, uint16_t lifetime)
void DeRegisterDevice (RegistrationCallback *callback, const IPV4Address &address, const UID &uid)
void DeRegisterController (RegistrationCallback *callback, const IPV4Address &address)
void ServerInfo (ServerInfoCallback *callback)
void RunDeviceDiscoveryNow ()
virtual bool Init ()
bool Start ()
bool Join (void *ptr=NULL)
virtual void Cleanup ()=0
- Public Member Functions inherited from ola::thread::Thread
virtual bool FastStart ()
bool IsRunning ()
ThreadId Id () const
void * _InternalRun ()

Static Public Attributes

static const unsigned int DEFAULT_DISCOVERY_INTERVAL_SECONDS

Protected Types

typedef
ola::SingleUseCallback2< void,
bool, const
ola::slp::URLEntries & > 
InternalDiscoveryCallback

Protected Member Functions

void * Run ()
void RunCallbackInExecutor (RegistrationCallback *callback, bool ok)
virtual void RunDiscovery (InternalDiscoveryCallback *callback, const string &service)=0
virtual void RegisterSLPService (RegistrationCallback *callback, const string &url, uint16_t lifetime)=0
virtual void DeRegisterSLPService (RegistrationCallback *callback, const string &url)=0
virtual void SLPServerInfo (ServerInfoCallback *callback)=0
virtual void ThreadStopping ()
virtual uint16_t MinRefreshTime ()
void ReRegisterAllServices ()

Protected Attributes

ola::io::SelectServer m_ss
ola::thread::ExecutorInterfacem_executor

Static Protected Attributes

static const char RDNMET_SCOPE []

Additional Inherited Members

- Static Public Member Functions inherited from ola::thread::Thread
static ThreadId Self ()

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