MDNSService.h 467 B

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