Responder.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "Service.h"
4 
5 namespace mDNS
6 {
7 class Responder
8 {
9 public:
15  bool begin(const String& hostname);
16 
22  void end();
23 
32  bool addService(Service& svc);
33 
39  bool restart();
40 
41 private:
42 #if LWIP_VERSION_MAJOR == 1
43  String hostname;
44  Service* service = nullptr;
45 #endif
46 };
47 
48 } // namespace mDNS
Definition: Responder.h:7
bool begin(const String &hostname)
Initialise the responder.
The String class.
Definition: WString.h:136
Definition: Responder.h:5
Definition: Service.h:23
void end()
Stop the responder.
bool addService(Service &svc)
Add a service object.
bool restart()
Restart a running stack.