Monero
Loading...
Searching...
No Matches
upnphttp.h File Reference
#include <netinet/in.h>
#include <sys/queue.h>
#include "config.h"
Include dependency graph for upnphttp.h:
This graph shows which files directly or indirectly include this file:

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 upnphttpNew_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 *)

Macro Definition Documentation

◆ FLAG_ALLOW_POST

#define FLAG_ALLOW_POST   0x100

◆ FLAG_ALLOW_SUB_UNSUB

#define FLAG_ALLOW_SUB_UNSUB   0x200

◆ FLAG_CONTINUE

#define FLAG_CONTINUE   0x40

◆ FLAG_HTML

#define FLAG_HTML   0x80

◆ FLAG_SID

#define FLAG_SID   0x02

◆ FLAG_TIMEOUT

#define FLAG_TIMEOUT   0x01

◆ MINIUPNPD_SERVER_STRING

#define MINIUPNPD_SERVER_STRING   OS_VERSION " " UPNP_VERSION_STRING " MiniUPnPd/" MINIUPNPD_VERSION

◆ UPNP_VERSION_STRING

#define UPNP_VERSION_STRING   "UPnP/" UPNP_VERSION_MAJOR_STR "." UPNP_VERSION_MINOR_STR

Enumeration Type Documentation

◆ httpCommands

Enumerator
EUnknown 
EGet 
EPost 
ESubscribe 
EUnSubscribe 

◆ httpStates

enum httpStates
Enumerator
EWaitingForHttpRequest 
EWaitingForHttpContent 
ESendingContinue 
ESendingAndClosing 
EToDelete 

Function Documentation

◆ BuildHeader_upnphttp()

int BuildHeader_upnphttp ( struct upnphttp * h,
int respcode,
const char * respmsg,
int bodylen )

◆ BuildResp2_upnphttp()

void BuildResp2_upnphttp ( struct upnphttp * h,
int respcode,
const char * respmsg,
const char * body,
int bodylen )

◆ BuildResp_upnphttp()

void BuildResp_upnphttp ( struct upnphttp * h,
const char * body,
int bodylen )

◆ CloseSocket_upnphttp()

void CloseSocket_upnphttp ( struct upnphttp * h)

◆ Delete_upnphttp()

void Delete_upnphttp ( struct upnphttp * h)

◆ New_upnphttp()

struct upnphttp * New_upnphttp ( int s)

◆ Process_upnphttp()

void Process_upnphttp ( struct upnphttp * h)

◆ SendResp_upnphttp()

int SendResp_upnphttp ( struct upnphttp * h)

◆ SendRespAndClose_upnphttp()

void SendRespAndClose_upnphttp ( struct upnphttp * h)