RetroArch
Classes | Macros | Functions
miniupnpc.h File Reference
#include "miniupnpc_declspec.h"
#include "igd_desc_parse.h"
#include "upnpdev.h"
Include dependency graph for miniupnpc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  UPNParg
 
struct  UPNPUrls
 

Macros

#define UPNPDISCOVER_SUCCESS   (0)
 
#define UPNPDISCOVER_UNKNOWN_ERROR   (-1)
 
#define UPNPDISCOVER_SOCKET_ERROR   (-101)
 
#define UPNPDISCOVER_MEMORY_ERROR   (-102)
 
#define MINIUPNPC_VERSION   "2.0"
 
#define MINIUPNPC_API_VERSION   16
 
#define UPNP_LOCAL_PORT_ANY   0
 
#define UPNP_LOCAL_PORT_SAME   1
 

Functions

char * simpleUPnPcommand (int, const char *, const char *, const char *, struct UPNParg *, int *)
 
MINIUPNP_LIBSPEC struct UPNPDevupnpDiscover (int delay, const char *multicastif, const char *minissdpdsock, int localport, int ipv6, unsigned char ttl, int *error)
 
MINIUPNP_LIBSPEC struct UPNPDevupnpDiscoverAll (int delay, const char *multicastif, const char *minissdpdsock, int localport, int ipv6, unsigned char ttl, int *error)
 
MINIUPNP_LIBSPEC struct UPNPDevupnpDiscoverDevice (const char *device, int delay, const char *multicastif, const char *minissdpdsock, int localport, int ipv6, unsigned char ttl, int *error)
 
MINIUPNP_LIBSPEC struct UPNPDevupnpDiscoverDevices (const char *const deviceTypes[], int delay, const char *multicastif, const char *minissdpdsock, int localport, int ipv6, unsigned char ttl, int *error, int searchalltypes)
 
MINIUPNP_LIBSPEC void parserootdesc (const char *, int, struct IGDdatas *)
 
MINIUPNP_LIBSPEC int UPNP_GetValidIGD (struct UPNPDev *devlist, struct UPNPUrls *urls, struct IGDdatas *data, char *lanaddr, int lanaddrlen)
 
MINIUPNP_LIBSPEC int UPNP_GetIGDFromUrl (const char *rootdescurl, struct UPNPUrls *urls, struct IGDdatas *data, char *lanaddr, int lanaddrlen)
 
MINIUPNP_LIBSPEC void GetUPNPUrls (struct UPNPUrls *, struct IGDdatas *, const char *, unsigned int)
 
MINIUPNP_LIBSPEC void FreeUPNPUrls (struct UPNPUrls *)
 
MINIUPNP_LIBSPEC int UPNPIGD_IsConnected (struct UPNPUrls *, struct IGDdatas *)
 

Macro Definition Documentation

◆ MINIUPNPC_API_VERSION

#define MINIUPNPC_API_VERSION   16

◆ MINIUPNPC_VERSION

#define MINIUPNPC_VERSION   "2.0"

◆ UPNP_LOCAL_PORT_ANY

#define UPNP_LOCAL_PORT_ANY   0

◆ UPNP_LOCAL_PORT_SAME

#define UPNP_LOCAL_PORT_SAME   1

◆ UPNPDISCOVER_MEMORY_ERROR

#define UPNPDISCOVER_MEMORY_ERROR   (-102)

◆ UPNPDISCOVER_SOCKET_ERROR

#define UPNPDISCOVER_SOCKET_ERROR   (-101)

◆ UPNPDISCOVER_SUCCESS

#define UPNPDISCOVER_SUCCESS   (0)

◆ UPNPDISCOVER_UNKNOWN_ERROR

#define UPNPDISCOVER_UNKNOWN_ERROR   (-1)

Function Documentation

◆ FreeUPNPUrls()

MINIUPNP_LIBSPEC void FreeUPNPUrls ( struct UPNPUrls )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetUPNPUrls()

MINIUPNP_LIBSPEC void GetUPNPUrls ( struct UPNPUrls ,
struct IGDdatas ,
const char *  ,
unsigned  int 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parserootdesc()

MINIUPNP_LIBSPEC void parserootdesc ( const char *  ,
int  ,
struct IGDdatas  
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ simpleUPnPcommand()

char* simpleUPnPcommand ( int  ,
const char *  ,
const char *  ,
const char *  ,
struct UPNParg ,
int *   
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ UPNP_GetIGDFromUrl()

MINIUPNP_LIBSPEC int UPNP_GetIGDFromUrl ( const char *  rootdescurl,
struct UPNPUrls urls,
struct IGDdatas data,
char *  lanaddr,
int  lanaddrlen 
)
Here is the call graph for this function:

◆ UPNP_GetValidIGD()

MINIUPNP_LIBSPEC int UPNP_GetValidIGD ( struct UPNPDev devlist,
struct UPNPUrls urls,
struct IGDdatas data,
char *  lanaddr,
int  lanaddrlen 
)
Here is the call graph for this function:

◆ upnpDiscover()

MINIUPNP_LIBSPEC struct UPNPDev* upnpDiscover ( int  delay,
const char *  multicastif,
const char *  minissdpdsock,
int  localport,
int  ipv6,
unsigned char  ttl,
int *  error 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ upnpDiscoverAll()

MINIUPNP_LIBSPEC struct UPNPDev* upnpDiscoverAll ( int  delay,
const char *  multicastif,
const char *  minissdpdsock,
int  localport,
int  ipv6,
unsigned char  ttl,
int *  error 
)
Here is the call graph for this function:

◆ upnpDiscoverDevice()

MINIUPNP_LIBSPEC struct UPNPDev* upnpDiscoverDevice ( const char *  device,
int  delay,
const char *  multicastif,
const char *  minissdpdsock,
int  localport,
int  ipv6,
unsigned char  ttl,
int *  error 
)
Here is the call graph for this function:

◆ upnpDiscoverDevices()

MINIUPNP_LIBSPEC struct UPNPDev* upnpDiscoverDevices ( const char *const  deviceTypes[],
int  delay,
const char *  multicastif,
const char *  minissdpdsock,
int  localport,
int  ipv6,
unsigned char  ttl,
int *  error,
int  searchalltypes 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ UPNPIGD_IsConnected()

MINIUPNP_LIBSPEC int UPNPIGD_IsConnected ( struct UPNPUrls ,
struct IGDdatas  
)
Here is the call graph for this function:
Here is the caller graph for this function: