Monero
Loading...
Searching...
No Matches
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:
This graph shows which files directly or indirectly include this file:

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)

◆ UPNPC_ERR_INVALID_ARGS

#define UPNPC_ERR_INVALID_ARGS   (-1)

◆ UPNPC_ERR_SOCKET_FAILED

#define UPNPC_ERR_SOCKET_FAILED   (-2)

◆ UPNPC_ERR_UNKNOWN_STATE

#define UPNPC_ERR_UNKNOWN_STATE   (-4)

◆ UPNPC_HTTP_READABLE

#define UPNPC_HTTP_READABLE   0x0002

◆ UPNPC_HTTP_WRITEABLE

#define UPNPC_HTTP_WRITEABLE   0x0200

◆ UPNPC_OK

#define UPNPC_OK   0

◆ UPNPC_SSDP_READABLE

#define UPNPC_SSDP_READABLE   0x0001

◆ UPNPC_SSDP_WRITEABLE

#define UPNPC_SSDP_WRITEABLE   0x0100

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)