libUPnP  1.8.4
Data Structures | Macros | Typedefs | Enumerations
ssdplib.h File Reference
#include "httpparser.h"
#include "httpreadwrite.h"
#include "miniserver.h"
#include "UpnpInet.h"
#include <sys/types.h>
#include <signal.h>
#include <setjmp.h>
#include <errno.h>
#include <syslog.h>
#include <netinet/in_systm.h>
#include <netinet/ip.h>
#include <netinet/ip_icmp.h>
#include <sys/time.h>
Include dependency graph for ssdplib.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  SsdpEventStruct
 
struct  TData
 
struct  ssdpsearchreply
 
struct  ssdpsearcharg
 
struct  ssdpsearchexparg
 
struct  ssdp_thread_data
 

Macros

#define BUFSIZE   (size_t)2500
 
#define SSDP_IP   "239.255.255.250"
 
#define SSDP_IPV6_LINKLOCAL   "FF02::C"
 
#define SSDP_IPV6_SITELOCAL   "FF05::C"
 
#define SSDP_PORT   1900
 
#define NUM_TRY   3
 
#define THREAD_LIMIT   50
 
#define COMMAND_LEN   300
 

Typedefs

typedef enum SsdpSearchType SType
 

Enumerations

enum  SsdpSearchType {
  SSDP_SERROR = -1, SSDP_ALL, SSDP_ROOTDEVICE, SSDP_DEVICEUDN,
  SSDP_DEVICETYPE, SSDP_SERVICE
}
 

X_USER_AGENT

can be overwritten by configure CFLAGS argument.

The {\tt X_USER_AGENT} constant specifies the value of the X-User-Agent: HTTP header. The value "redsonic" is needed for the DSM-320. See https://sourceforge.net/forum/message.php?msg_id=3166856 for more information

#define X_USER_AGENT   "redsonic"
 
#define NO_ERROR_FOUND   0
 
#define E_REQUEST_INVALID   -3
 
#define E_RES_EXPIRED   -4
 
#define E_MEM_ALLOC   -5
 
#define E_HTTP_SYNTEX   -6
 
#define E_SOCKET   -7
 
#define RQST_TIMEOUT   20
 
typedef struct SsdpEventStruct SsdpEvent
 
typedef void(* SsdpFunPtr) (SsdpEvent *)
 
typedef struct TData ThreadData
 
typedef struct ssdpsearchreply SsdpSearchReply
 
typedef struct ssdpsearcharg SsdpSearchArg
 
typedef struct ssdpsearchexparg SsdpSearchExpArg
 
typedef int(* ParserFun) (char *, SsdpEvent *)
 
SOCKET gSsdpReqSocket4