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);
int BuildHeader_upnphttp(struct upnphttp *h, int respcode, const char *respmsg, int bodylen)
struct upnphttp * New_upnphttp(int)
void BuildResp2_upnphttp(struct upnphttp *h, int respcode, const char *respmsg, const char *body, int bodylen)
void Process_upnphttp(struct upnphttp *)
LIST_ENTRY(upnphttp) entries
void SendRespAndClose_upnphttp(struct upnphttp *)
struct in_addr clientaddr
void BuildResp_upnphttp(struct upnphttp *, const char *, int)
void Delete_upnphttp(struct upnphttp *)
int SendResp_upnphttp(struct upnphttp *)
void CloseSocket_upnphttp(struct upnphttp *)
enum httpCommands req_command