You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
635 B

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __NET_SSDP_HEADER__
  2. #define __NET_SSDP_HEADER__
  3. #include "socket_misk.h"
  4. #include <pthread.h>
  5. #define SSDP_QUERY_TTL 60000 /* Query MAX Time To Live 60 seconds */
  6. typedef enum
  7. {
  8. SSDP_INIT,
  9. SSDP_BUSY,
  10. SSDP_FAIL,
  11. SSDP_READY
  12. } _SSDP_STATUS;
  13. class _net_SSDP
  14. {
  15. private:
  16. _SSDP_STATUS m_nStatus;
  17. /* Query Function */
  18. pthread_t m_pthread;
  19. static void * t_procedure(void * handle);
  20. public:
  21. _net_SSDP();
  22. ~_net_SSDP();
  23. bool seachServce(char * URL);
  24. bool seachServce(const char * URL);
  25. _SSDP_STATUS getStatus();
  26. bool getServiceURL(char * URL);
  27. bool getServiceURL(const char * URL);
  28. };
  29. #endif