version 1.1.1.1, 2012/02/21 23:16:02
|
version 1.1.1.2, 2012/05/29 12:55:57
|
Line 14
|
Line 14
|
#include "config.h" |
#include "config.h" |
|
|
/* server: HTTP header returned in all HTTP responses : */ |
/* server: HTTP header returned in all HTTP responses : */ |
#define MINIUPNPD_SERVER_STRING OS_VERSION " UPnP/1.0 MiniUPnPd/1.5" | #define MINIUPNPD_SERVER_STRING OS_VERSION " UPnP/1.0 MiniUPnPd/" MINIUPNPD_VERSION |
|
|
/* |
/* |
states : |
states : |
Line 34 enum httpCommands {
|
Line 34 enum httpCommands {
|
struct upnphttp { |
struct upnphttp { |
int socket; |
int socket; |
struct in_addr clientaddr; /* client address */ |
struct in_addr clientaddr; /* client address */ |
|
#ifdef ENABLE_IPV6 |
|
int ipv6; |
|
struct in6_addr clientaddr_v6; |
|
#endif |
int state; |
int state; |
char HttpVer[16]; |
char HttpVer[16]; |
/* request */ |
/* request */ |
Line 51 struct upnphttp {
|
Line 55 struct upnphttp {
|
const char * req_SID; /* For UNSUBSCRIBE */ |
const char * req_SID; /* For UNSUBSCRIBE */ |
int req_SIDLen; |
int req_SIDLen; |
#endif |
#endif |
int respflags; | int respflags; /* see FLAG_* constants below */ |
/* response */ |
/* response */ |
char * res_buf; |
char * res_buf; |
int res_buflen; |
int res_buflen; |
Line 61 struct upnphttp {
|
Line 65 struct upnphttp {
|
LIST_ENTRY(upnphttp) entries; |
LIST_ENTRY(upnphttp) entries; |
}; |
}; |
|
|
|
/* Include the "Timeout:" header in response */ |
#define FLAG_TIMEOUT 0x01 |
#define FLAG_TIMEOUT 0x01 |
|
/* Include the "SID:" header in response */ |
#define FLAG_SID 0x02 |
#define FLAG_SID 0x02 |
|
|
|
/* If set, the Content-Type is set to text/xml, otherwise it is text/xml */ |
#define FLAG_HTML 0x80 |
#define FLAG_HTML 0x80 |
|
|
/* New_upnphttp() */ |
/* New_upnphttp() */ |