Electroneum
miniupnpc-async.h File Reference
#include <netinet/in.h>
#include <sys/select.h>
#include "declspec.h"
#include "upnpreplyparse.h"
Include dependency graph for miniupnpc-async.h:

Go to the source code of this file.

Classes

struct  upnpc_device
 
struct  upnpc_t
 

Macros

#define UPNPC_OK   0
 
#define UPNPC_ERR_INVALID_ARGS   (-1)
 
#define UPNPC_ERR_SOCKET_FAILED   (-2)
 
#define UPNPC_ERR_BIND_FAILED   (-3)
 
#define UPNPC_ERR_UNKNOWN_STATE   (-4)
 
#define UPNPC_SSDP_READABLE   0x0001
 
#define UPNPC_SSDP_WRITEABLE   0x0100
 
#define UPNPC_HTTP_READABLE   0x0002
 
#define UPNPC_HTTP_WRITEABLE   0x0200
 

Typedefs

typedef struct upnpc_device upnpc_device_t
 

Functions

int upnpc_init (upnpc_t *p, const char *multicastif)
 
int upnpc_finalize (upnpc_t *p)
 
int upnpc_get_external_ip_address (upnpc_device_t *p)
 
int upnpc_get_link_layer_max_rate (upnpc_device_t *p)
 
int upnpc_add_port_mapping (upnpc_device_t *p, const char *remote_host, unsigned short ext_port, unsigned short int_port, const char *int_client, const char *proto, const char *description, unsigned int lease_duration)
 
int upnpc_process (upnpc_t *p)
 

Macro Definition Documentation

◆ UPNPC_ERR_BIND_FAILED

#define UPNPC_ERR_BIND_FAILED   (-3)

Definition at line 35 of file miniupnpc-async.h.

◆ UPNPC_ERR_INVALID_ARGS

#define UPNPC_ERR_INVALID_ARGS   (-1)

Definition at line 33 of file miniupnpc-async.h.

◆ UPNPC_ERR_SOCKET_FAILED

#define UPNPC_ERR_SOCKET_FAILED   (-2)

Definition at line 34 of file miniupnpc-async.h.

◆ UPNPC_ERR_UNKNOWN_STATE

#define UPNPC_ERR_UNKNOWN_STATE   (-4)

Definition at line 36 of file miniupnpc-async.h.

◆ UPNPC_HTTP_READABLE

#define UPNPC_HTTP_READABLE   0x0002

Definition at line 40 of file miniupnpc-async.h.

◆ UPNPC_HTTP_WRITEABLE

#define UPNPC_HTTP_WRITEABLE   0x0200

Definition at line 41 of file miniupnpc-async.h.

◆ UPNPC_OK

#define UPNPC_OK   0

Definition at line 32 of file miniupnpc-async.h.

◆ UPNPC_SSDP_READABLE

#define UPNPC_SSDP_READABLE   0x0001

Definition at line 38 of file miniupnpc-async.h.

◆ UPNPC_SSDP_WRITEABLE

#define UPNPC_SSDP_WRITEABLE   0x0100

Definition at line 39 of file miniupnpc-async.h.

Typedef Documentation

◆ upnpc_device_t

typedef struct upnpc_device upnpc_device_t

Function Documentation

◆ upnpc_add_port_mapping()

int upnpc_add_port_mapping ( upnpc_device_t p,
const char *  remote_host,
unsigned short  ext_port,
unsigned short  int_port,
const char *  int_client,
const char *  proto,
const char *  description,
unsigned int  lease_duration 
)

◆ upnpc_finalize()

int upnpc_finalize ( upnpc_t p)

◆ upnpc_get_external_ip_address()

int upnpc_get_external_ip_address ( upnpc_device_t p)

◆ upnpc_get_link_layer_max_rate()

int upnpc_get_link_layer_max_rate ( upnpc_device_t p)

◆ upnpc_init()

int upnpc_init ( upnpc_t p,
const char *  multicastif 
)

◆ upnpc_process()

int upnpc_process ( upnpc_t p)