RetroArch
Functions
upnpcommands.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "upnpcommands.h"
#include "miniupnpc.h"
#include "portlistingparse.h"
Include dependency graph for upnpcommands.c:

Functions

static UNSIGNED_INTEGER my_custom_atoui (const char *s)
 
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_GetLinkLayerMaxBitRates (const char *controlURL, const char *servicetype, unsigned int *bitrateDown, unsigned int *bitrateUp)
 
MINIUPNP_LIBSPEC int UPNP_GetExternalIPAddress (const char *controlURL, const char *servicetype, char *extIpAdd)
 
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_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_GetPortMappingNumberOfEntries (const char *controlURL, const char *servicetype, unsigned int *numEntries)
 
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_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)
 

Function Documentation

◆ my_custom_atoui()

static UNSIGNED_INTEGER my_custom_atoui ( const char *  s)
static
Here is the caller graph for this function:

◆ 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 *  numEntries 
)
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: