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.
34 lines
736 B
34 lines
736 B
#ifndef __NET_SSDP_HEADER__
|
|
#define __NET_SSDP_HEADER__
|
|
|
|
#include <pthread.h>
|
|
|
|
#include "socket_misk.h"
|
|
|
|
#define SSDP_QUERY_TTL 60000 /* Query MAX Time To Live 60 seconds */
|
|
|
|
typedef enum {
|
|
SSDP_INIT,
|
|
SSDP_BUSY,
|
|
SSDP_FAIL,
|
|
SSDP_READY
|
|
} _SSDP_STATUS;
|
|
|
|
class _net_SSDP{
|
|
private:
|
|
_SSDP_STATUS m_nStatus;
|
|
/* Query Function */
|
|
pthread_t m_pthread;
|
|
static void *t_procedure( void *handle );
|
|
|
|
public:
|
|
_net_SSDP();
|
|
~_net_SSDP();
|
|
bool seachServce( char *URL );
|
|
bool seachServce( const char *URL );
|
|
_SSDP_STATUS getStatus();
|
|
bool getServiceURL( char *URL );
|
|
bool getServiceURL( const char *URL );
|
|
};
|
|
|
|
#endif
|