Open Lighting Architecture: ola::DiscoveryAgentInterface Class Reference

| Open Lighting Architecture 0.10.9

Loading...
Searching...
No Matches
Classes | Public Member Functions | List of all members
ola::DiscoveryAgentInterface Class Referenceabstract

## Detailed Description

The interface to DNS-SD operations like register, browse etc.

Inheritance diagram for ola::DiscoveryAgentInterface:

## Classes
struct | RegisterOptions
| Options for the RegisterService method. More...

## Public Member Functions
virtual bool | Init ()=0
| Initialize the DiscoveryAgent.
virtual void | RegisterService (const std::string &service_name, const std::string &type, uint16_t port, const RegisterOptions &options)=0
| Register a service.

## Member Function Documentation

## ◆ Init()

virtual bool ola::DiscoveryAgentInterface::Init | ( |  | ) |
| pure virtual

Initialize the DiscoveryAgent.

Implemented in ola::AvahiDiscoveryAgent, and ola::BonjourDiscoveryAgent.

## ◆ RegisterService()

virtual void ola::DiscoveryAgentInterface::RegisterService | ( | const std::string & | service_name,
|  | const std::string & | type,
|  | uint16_t | port,
|  | const RegisterOptions & | options )
| pure virtual

Register a service.

Parameters

  service_name | the name of the service
  type | the service type
  port | the port the service is on
  options | extra options that control registration.

Implemented in ola::AvahiDiscoveryAgent, and ola::BonjourDiscoveryAgent.

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

- olad/DiscoveryAgent.h