21#ifndef OLAD_BONJOURDISCOVERYAGENT_H_
22#define OLAD_BONJOURDISCOVERYAGENT_H_
28#include <ola/io/SelectServer.h>
33#include "olad/DiscoveryAgent.h"
46 BonjourDiscoveryAgent();
47 ~BonjourDiscoveryAgent();
52 const std::string &type,
58 std::string service_name;
62 RegisterArgs(
const std::string &service_name,
63 const std::string &type,
70 DNSServiceRef service_ref;
74 typedef std::vector<ServiceRef> ServiceRefs;
77 std::auto_ptr<thread::CallbackThread> m_thread;
80 void InternalRegisterService(RegisterArgs *args);
81 std::string BuildTxtRecord(
const RegisterOptions::TxtData &txt_data);
83 BonjourDiscoveryAgent(
const BonjourDiscoveryAgent &) =
delete;
84 const BonjourDiscoveryAgent &operator=(
const BonjourDiscoveryAgent &) =
delete;
void RegisterService(const std::string &service_name, const std::string &type, uint16_t port, const RegisterOptions &options)
Register a service.
Definition BonjourDiscoveryAgent.cpp:115
bool Init()
Initialize the DiscoveryAgent.
Definition BonjourDiscoveryAgent.cpp:110
Definition BonjourDiscoveryAgent.cpp:56
The interface to DNS-SD operations like register, browse etc.
Definition DiscoveryAgent.h:34
A single threaded I/O event management system.
Definition SelectServer.h:63
A thread which executes a Callback.
Definition CallbackThread.h:36
Threads and synchronization mechanisms.
Definition ConsumerThread.cpp:25
The namespace containing all OLA symbols.
Definition Credentials.cpp:44
Options for the RegisterService method.
Definition DiscoveryAgent.h:49