|
Electroneum
|
#include <netinet/in.h>#include <sys/queue.h>#include "config.h"
Go to the source code of this file.
Classes | |
| struct | upnphttp |
Macros | |
| #define | UPNP_VERSION_STRING "UPnP/" UPNP_VERSION_MAJOR_STR "." UPNP_VERSION_MINOR_STR |
| #define | MINIUPNPD_SERVER_STRING OS_VERSION " " UPNP_VERSION_STRING " MiniUPnPd/" MINIUPNPD_VERSION |
| #define | FLAG_TIMEOUT 0x01 |
| #define | FLAG_SID 0x02 |
| #define | FLAG_CONTINUE 0x40 |
| #define | FLAG_HTML 0x80 |
| #define | FLAG_ALLOW_POST 0x100 |
| #define | FLAG_ALLOW_SUB_UNSUB 0x200 |
Enumerations | |
| enum | httpStates { EWaitingForHttpRequest = 0 , EWaitingForHttpContent , ESendingContinue , ESendingAndClosing , EToDelete = 100 } |
| enum | httpCommands { EUnknown = 0 , EGet , EPost , ESubscribe , EUnSubscribe } |
Functions | |
| struct upnphttp * | New_upnphttp (int) |
| void | CloseSocket_upnphttp (struct upnphttp *) |
| void | Delete_upnphttp (struct upnphttp *) |
| void | Process_upnphttp (struct upnphttp *) |
| int | BuildHeader_upnphttp (struct upnphttp *h, int respcode, const char *respmsg, int bodylen) |
| void | BuildResp_upnphttp (struct upnphttp *, const char *, int) |
| void | BuildResp2_upnphttp (struct upnphttp *h, int respcode, const char *respmsg, const char *body, int bodylen) |
| int | SendResp_upnphttp (struct upnphttp *) |
| void | SendRespAndClose_upnphttp (struct upnphttp *) |
| #define FLAG_ALLOW_POST 0x100 |
Definition at line 106 of file upnphttp.h.
| #define FLAG_ALLOW_SUB_UNSUB 0x200 |
Definition at line 107 of file upnphttp.h.
| #define FLAG_CONTINUE 0x40 |
Definition at line 100 of file upnphttp.h.
| #define FLAG_HTML 0x80 |
Definition at line 103 of file upnphttp.h.
| #define FLAG_SID 0x02 |
Definition at line 97 of file upnphttp.h.
| #define FLAG_TIMEOUT 0x01 |
Definition at line 95 of file upnphttp.h.
| #define MINIUPNPD_SERVER_STRING OS_VERSION " " UPNP_VERSION_STRING " MiniUPnPd/" MINIUPNPD_VERSION |
Definition at line 24 of file upnphttp.h.
| #define UPNP_VERSION_STRING "UPnP/" UPNP_VERSION_MAJOR_STR "." UPNP_VERSION_MINOR_STR |
Definition at line 21 of file upnphttp.h.
| enum httpCommands |
| Enumerator | |
|---|---|
| EUnknown | |
| EGet | |
| EPost | |
| ESubscribe | |
| EUnSubscribe | |
Definition at line 41 of file upnphttp.h.
| enum httpStates |
| Enumerator | |
|---|---|
| EWaitingForHttpRequest | |
| EWaitingForHttpContent | |
| ESendingContinue | |
| ESendingAndClosing | |
| EToDelete | |
Definition at line 33 of file upnphttp.h.
| int BuildHeader_upnphttp | ( | struct upnphttp * | h, |
| int | respcode, | ||
| const char * | respmsg, | ||
| int | bodylen ) |
| void BuildResp2_upnphttp | ( | struct upnphttp * | h, |
| int | respcode, | ||
| const char * | respmsg, | ||
| const char * | body, | ||
| int | bodylen ) |
| void BuildResp_upnphttp | ( | struct upnphttp * | , |
| const char * | , | ||
| int | ) |
| void CloseSocket_upnphttp | ( | struct upnphttp * | ) |
| void Delete_upnphttp | ( | struct upnphttp * | ) |
| struct upnphttp * New_upnphttp | ( | int | ) |
| void Process_upnphttp | ( | struct upnphttp * | ) |
| int SendResp_upnphttp | ( | struct upnphttp * | ) |
| void SendRespAndClose_upnphttp | ( | struct upnphttp * | ) |