RetroArch
Macros | Functions
upnpcommands.h File Reference
#include "upnpreplyparse.h"
#include "portlistingparse.h"
#include "miniupnpc_declspec.h"
#include "miniupnpctypes.h"
Include dependency graph for upnpcommands.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define UPNPCOMMAND_SUCCESS   (0)
 
#define UPNPCOMMAND_UNKNOWN_ERROR   (-1)
 
#define UPNPCOMMAND_INVALID_ARGS   (-2)
 
#define UPNPCOMMAND_HTTP_ERROR   (-3)
 
#define UPNPCOMMAND_INVALID_RESPONSE   (-4)
 
#define UPNPCOMMAND_MEM_ALLOC_ERROR   (-5)
 

Functions

MINIUPNP_LIBSPEC UNSIGNED_INTEGER UPNP_GetTotalBytesSent (const char *controlURL, const char *servicetype)
 
MINIUPNP_LIBSPEC UNSIGNED_INTEGER UPNP_GetTotalBytesReceived (const char *controlURL, const char *servicetype)
 
MINIUPNP_LIBSPEC UNSIGNED_INTEGER UPNP_GetTotalPacketsSent (const char *controlURL, const char *servicetype)
 
MINIUPNP_LIBSPEC UNSIGNED_INTEGER UPNP_GetTotalPacketsReceived (const char *controlURL, const char *servicetype)
 
MINIUPNP_LIBSPEC int UPNP_GetStatusInfo (const char *controlURL, const char *servicetype, char *status, unsigned int *uptime, char *lastconnerror)
 
MINIUPNP_LIBSPEC int UPNP_GetConnectionTypeInfo (const char *controlURL, const char *servicetype, char *connectionType)
 
MINIUPNP_LIBSPEC int UPNP_GetExternalIPAddress (const char *controlURL, const char *servicetype, char *extIpAdd)
 
MINIUPNP_LIBSPEC int UPNP_GetLinkLayerMaxBitRates (const char *controlURL, const char *servicetype, unsigned int *bitrateDown, unsigned int *bitrateUp)
 
MINIUPNP_LIBSPEC int UPNP_AddPortMapping (const char *controlURL, const char *servicetype, const char *extPort, const char *inPort, const char *inClient, const char *desc, const char *proto, const char *remoteHost, const char *leaseDuration)
 
MINIUPNP_LIBSPEC int UPNP_AddAnyPortMapping (const char *controlURL, const char *servicetype, const char *extPort, const char *inPort, const char *inClient, const char *desc, const char *proto, const char *remoteHost, const char *leaseDuration, char *reservedPort)
 
MINIUPNP_LIBSPEC int UPNP_DeletePortMapping (const char *controlURL, const char *servicetype, const char *extPort, const char *proto, const char *remoteHost)
 
MINIUPNP_LIBSPEC int UPNP_DeletePortMappingRange (const char *controlURL, const char *servicetype, const char *extPortStart, const char *extPortEnd, const char *proto, const char *manage)
 
MINIUPNP_LIBSPEC int UPNP_GetPortMappingNumberOfEntries (const char *controlURL, const char *servicetype, unsigned int *num)
 
MINIUPNP_LIBSPEC int UPNP_GetSpecificPortMappingEntry (const char *controlURL, const char *servicetype, const char *extPort, const char *proto, const char *remoteHost, char *intClient, char *intPort, char *desc, char *enabled, char *leaseDuration)
 
MINIUPNP_LIBSPEC int UPNP_GetGenericPortMappingEntry (const char *controlURL, const char *servicetype, const char *index, char *extPort, char *intClient, char *intPort, char *protocol, char *desc, char *enabled, char *rHost, char *duration)
 
MINIUPNP_LIBSPEC int UPNP_GetListOfPortMappings (const char *controlURL, const char *servicetype, const char *startPort, const char *endPort, const char *protocol, const char *numberOfPorts, struct PortMappingParserData *data)
 
MINIUPNP_LIBSPEC int UPNP_GetFirewallStatus (const char *controlURL, const char *servicetype, int *firewallEnabled, int *inboundPinholeAllowed)
 
MINIUPNP_LIBSPEC int UPNP_GetOutboundPinholeTimeout (const char *controlURL, const char *servicetype, const char *remoteHost, const char *remotePort, const char *intClient, const char *intPort, const char *proto, int *opTimeout)
 
MINIUPNP_LIBSPEC int UPNP_AddPinhole (const char *controlURL, const char *servicetype, const char *remoteHost, const char *remotePort, const char *intClient, const char *intPort, const char *proto, const char *leaseTime, char *uniqueID)
 
MINIUPNP_LIBSPEC int UPNP_UpdatePinhole (const char *controlURL, const char *servicetype, const char *uniqueID, const char *leaseTime)
 
MINIUPNP_LIBSPEC int UPNP_DeletePinhole (const char *controlURL, const char *servicetype, const char *uniqueID)
 
MINIUPNP_LIBSPEC int UPNP_CheckPinholeWorking (const char *controlURL, const char *servicetype, const char *uniqueID, int *isWorking)
 
MINIUPNP_LIBSPEC int UPNP_GetPinholePackets (const char *controlURL, const char *servicetype, const char *uniqueID, int *packets)
 

Macro Definition Documentation

◆ UPNPCOMMAND_HTTP_ERROR

#define UPNPCOMMAND_HTTP_ERROR   (-3)

◆ UPNPCOMMAND_INVALID_ARGS

#define UPNPCOMMAND_INVALID_ARGS   (-2)

◆ UPNPCOMMAND_INVALID_RESPONSE

#define UPNPCOMMAND_INVALID_RESPONSE   (-4)

◆ UPNPCOMMAND_MEM_ALLOC_ERROR

#define UPNPCOMMAND_MEM_ALLOC_ERROR   (-5)

◆ UPNPCOMMAND_SUCCESS

#define UPNPCOMMAND_SUCCESS   (0)

◆ UPNPCOMMAND_UNKNOWN_ERROR

#define UPNPCOMMAND_UNKNOWN_ERROR   (-1)

Function Documentation

◆ UPNP_AddAnyPortMapping()

MINIUPNP_LIBSPEC int UPNP_AddAnyPortMapping ( const char *  controlURL,
const char *  servicetype,
const char *  extPort,
const char *  inPort,
const char *  inClient,
const char *  desc,
const char *  proto,
const char *  remoteHost,
const char *  leaseDuration,
char *  reservedPort 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ UPNP_AddPinhole()

MINIUPNP_LIBSPEC int UPNP_AddPinhole ( const char *  controlURL,
const char *  servicetype,
const char *  remoteHost,
const char *  remotePort,
const char *  intClient,
const char *  intPort,
const char *  proto,
const char *  leaseTime,
char *  uniqueID 
)
Here is the call graph for this function:

◆ UPNP_AddPortMapping()

MINIUPNP_LIBSPEC int UPNP_AddPortMapping ( const char *  controlURL,
const char *  servicetype,
const char *  extPort,
const char *  inPort,
const char *  inClient,
const char *  desc,
const char *  proto,
const char *  remoteHost,
const char *  leaseDuration 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ UPNP_CheckPinholeWorking()

MINIUPNP_LIBSPEC int UPNP_CheckPinholeWorking ( const char *  controlURL,
const char *  servicetype,
const char *  uniqueID,
int *  isWorking 
)
Here is the call graph for this function:

◆ UPNP_DeletePinhole()

MINIUPNP_LIBSPEC int UPNP_DeletePinhole ( const char *  controlURL,
const char *  servicetype,
const char *  uniqueID 
)
Here is the call graph for this function:

◆ UPNP_DeletePortMapping()

MINIUPNP_LIBSPEC int UPNP_DeletePortMapping ( const char *  controlURL,
const char *  servicetype,
const char *  extPort,
const char *  proto,
const char *  remoteHost 
)
Here is the call graph for this function:

◆ UPNP_DeletePortMappingRange()

MINIUPNP_LIBSPEC int UPNP_DeletePortMappingRange ( const char *  controlURL,
const char *  servicetype,
const char *  extPortStart,
const char *  extPortEnd,
const char *  proto,
const char *  manage 
)
Here is the call graph for this function:

◆ UPNP_GetConnectionTypeInfo()

MINIUPNP_LIBSPEC int UPNP_GetConnectionTypeInfo ( const char *  controlURL,
const char *  servicetype,
char *  connectionType 
)
Here is the call graph for this function:

◆ UPNP_GetExternalIPAddress()

MINIUPNP_LIBSPEC int UPNP_GetExternalIPAddress ( const char *  controlURL,
const char *  servicetype,
char *  extIpAdd 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ UPNP_GetFirewallStatus()

MINIUPNP_LIBSPEC int UPNP_GetFirewallStatus ( const char *  controlURL,
const char *  servicetype,
int *  firewallEnabled,
int *  inboundPinholeAllowed 
)
Here is the call graph for this function:

◆ UPNP_GetGenericPortMappingEntry()

MINIUPNP_LIBSPEC int UPNP_GetGenericPortMappingEntry ( const char *  controlURL,
const char *  servicetype,
const char *  index,
char *  extPort,
char *  intClient,
char *  intPort,
char *  protocol,
char *  desc,
char *  enabled,
char *  rHost,
char *  duration 
)
Here is the call graph for this function:

◆ UPNP_GetLinkLayerMaxBitRates()

MINIUPNP_LIBSPEC int UPNP_GetLinkLayerMaxBitRates ( const char *  controlURL,
const char *  servicetype,
unsigned int *  bitrateDown,
unsigned int *  bitrateUp 
)
Here is the call graph for this function:

◆ UPNP_GetListOfPortMappings()

MINIUPNP_LIBSPEC int UPNP_GetListOfPortMappings ( const char *  controlURL,
const char *  servicetype,
const char *  startPort,
const char *  endPort,
const char *  protocol,
const char *  numberOfPorts,
struct PortMappingParserData data 
)
Here is the call graph for this function:

◆ UPNP_GetOutboundPinholeTimeout()

MINIUPNP_LIBSPEC int UPNP_GetOutboundPinholeTimeout ( const char *  controlURL,
const char *  servicetype,
const char *  remoteHost,
const char *  remotePort,
const char *  intClient,
const char *  intPort,
const char *  proto,
int *  opTimeout 
)
Here is the call graph for this function:

◆ UPNP_GetPinholePackets()

MINIUPNP_LIBSPEC int UPNP_GetPinholePackets ( const char *  controlURL,
const char *  servicetype,
const char *  uniqueID,
int *  packets 
)
Here is the call graph for this function:

◆ UPNP_GetPortMappingNumberOfEntries()

MINIUPNP_LIBSPEC int UPNP_GetPortMappingNumberOfEntries ( const char *  controlURL,
const char *  servicetype,
unsigned int *  num 
)
Here is the call graph for this function:

◆ UPNP_GetSpecificPortMappingEntry()

MINIUPNP_LIBSPEC int UPNP_GetSpecificPortMappingEntry ( const char *  controlURL,
const char *  servicetype,
const char *  extPort,
const char *  proto,
const char *  remoteHost,
char *  intClient,
char *  intPort,
char *  desc,
char *  enabled,
char *  leaseDuration 
)
Here is the call graph for this function:

◆ UPNP_GetStatusInfo()

MINIUPNP_LIBSPEC int UPNP_GetStatusInfo ( const char *  controlURL,
const char *  servicetype,
char *  status,
unsigned int *  uptime,
char *  lastconnerror 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ UPNP_GetTotalBytesReceived()

MINIUPNP_LIBSPEC UNSIGNED_INTEGER UPNP_GetTotalBytesReceived ( const char *  controlURL,
const char *  servicetype 
)
Here is the call graph for this function:

◆ UPNP_GetTotalBytesSent()

MINIUPNP_LIBSPEC UNSIGNED_INTEGER UPNP_GetTotalBytesSent ( const char *  controlURL,
const char *  servicetype 
)
Here is the call graph for this function:

◆ UPNP_GetTotalPacketsReceived()

MINIUPNP_LIBSPEC UNSIGNED_INTEGER UPNP_GetTotalPacketsReceived ( const char *  controlURL,
const char *  servicetype 
)
Here is the call graph for this function:

◆ UPNP_GetTotalPacketsSent()

MINIUPNP_LIBSPEC UNSIGNED_INTEGER UPNP_GetTotalPacketsSent ( const char *  controlURL,
const char *  servicetype 
)
Here is the call graph for this function:

◆ UPNP_UpdatePinhole()

MINIUPNP_LIBSPEC int UPNP_UpdatePinhole ( const char *  controlURL,
const char *  servicetype,
const char *  uniqueID,
const char *  leaseTime 
)
Here is the call graph for this function: