21 #ifndef OLAD_DISCOVERYAGENT_H_
22 #define OLAD_DISCOVERYAGENT_H_
41 virtual bool Init() = 0;
54 typedef std::map<std::string, std::string>
TxtData;
71 : if_index(ALL_INTERFACES),
76 : if_index(options.if_index),
77 domain(options.domain),
78 txt_data(options.txt_data) {
91 const std::string &type,
93 const RegisterOptions &options) = 0;
118 #endif // OLAD_DISCOVERYAGENT_H_
static const int ALL_INTERFACES
A constant which represents all Interfaces.
Definition: DiscoveryAgent.h:59
A Factory which produces implementations of DiscoveryAgentInterface.
Definition: DiscoveryAgent.h:102
DiscoveryAgentInterface * New()
Create a new DiscoveryAgent.
Definition: DiscoveryAgent.cpp:36
int if_index
Definition: DiscoveryAgent.h:61
std::map< std::string, std::string > TxtData
Definition: DiscoveryAgent.h:54
std::string domain
The domain to use.
Definition: DiscoveryAgent.h:67
Options for the RegisterService method.
Definition: DiscoveryAgent.h:49
virtual void RegisterService(const std::string &service_name, const std::string &type, uint16_t port, const RegisterOptions &options)=0
Register a service.
The interface to DNS-SD operations like register, browse etc.
Definition: DiscoveryAgent.h:34
TxtData txt_data
Definition: DiscoveryAgent.h:68
The namespace containing all OLA symbols.
Definition: Credentials.cpp:44
virtual bool Init()=0
Initialize the DiscoveryAgent.