9 #ifndef UPNPHTTP_H_INCLUDED
10 #define UPNPHTTP_H_INCLUDED
12 #include <netinet/in.h>
13 #include <sys/queue.h>
18 #include <openssl/ssl.h>
21 #define UPNP_VERSION_STRING "UPnP/" UPNP_VERSION_MAJOR_STR "." UPNP_VERSION_MINOR_STR
24 #define MINIUPNPD_SERVER_STRING OS_VERSION " " UPNP_VERSION_STRING " MiniUPnPd/" MINIUPNPD_VERSION
95 #define FLAG_TIMEOUT 0x01
100 #define FLAG_CONTINUE 0x40
103 #define FLAG_HTML 0x80
106 #define FLAG_ALLOW_POST 0x100
107 #define FLAG_ALLOW_SUB_UNSUB 0x200
120 InitSSL_upnphttp(
struct upnphttp *);
141 const char * respmsg,
154 const char * respmsg,
155 const char * body,
int bodylen);
struct in_addr clientaddr
enum httpCommands req_command
LIST_ENTRY(upnphttp) entries
void Process_upnphttp(struct upnphttp *)
int SendResp_upnphttp(struct upnphttp *)
void BuildResp2_upnphttp(struct upnphttp *h, int respcode, const char *respmsg, const char *body, int bodylen)
int BuildHeader_upnphttp(struct upnphttp *h, int respcode, const char *respmsg, int bodylen)
void BuildResp_upnphttp(struct upnphttp *, const char *, int)
void SendRespAndClose_upnphttp(struct upnphttp *)
void Delete_upnphttp(struct upnphttp *)
struct upnphttp * New_upnphttp(int)
void CloseSocket_upnphttp(struct upnphttp *)