MDNSService.h 408 B

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