MDNSService.h 524 B

12345678910111213141516171819
  1. #pragma once
  2. #include <map> // for map
  3. #include <memory> // for unique_ptr
  4. #include <string> // for string
  5. namespace bell {
  6. class MDNSService {
  7. public:
  8. virtual ~MDNSService() {}
  9. static std::unique_ptr<MDNSService> registerService(
  10. const std::string& serviceName, const std::string& serviceType,
  11. const std::string& serviceProto, const std::string& serviceHost,
  12. int servicePort, const std::map<std::string, std::string> txtData);
  13. virtual void unregisterService() = 0;
  14. };
  15. } // namespace bell