Vidalia  0.3.1
Macros | Functions
upnpcommands.h File Reference
#include "upnpreplyparse.h"
#include "declspec.h"

Go to the source code of this file.

Macros

#define UPNPCOMMAND_SUCCESS   (0)
 
#define UPNPCOMMAND_UNKNOWN_ERROR   (-1)
 
#define UPNPCOMMAND_INVALID_ARGS   (-2)
 
#define UNSIGNED_INTEGER   unsigned int
 
#define STRTOUI   strtoul
 

Functions

LIBSPEC UNSIGNED_INTEGER UPNP_GetTotalBytesSent (const char *controlURL, const char *servicetype)
 
LIBSPEC UNSIGNED_INTEGER UPNP_GetTotalBytesReceived (const char *controlURL, const char *servicetype)
 
LIBSPEC UNSIGNED_INTEGER UPNP_GetTotalPacketsSent (const char *controlURL, const char *servicetype)
 
LIBSPEC UNSIGNED_INTEGER UPNP_GetTotalPacketsReceived (const char *controlURL, const char *servicetype)
 
LIBSPEC int UPNP_GetStatusInfo (const char *controlURL, const char *servicetype, char *status, unsigned int *uptime, char *lastconnerror)
 
LIBSPEC int UPNP_GetConnectionTypeInfo (const char *controlURL, const char *servicetype, char *connectionType)
 
LIBSPEC int UPNP_GetExternalIPAddress (const char *controlURL, const char *servicetype, char *extIpAdd)
 
LIBSPEC int UPNP_GetLinkLayerMaxBitRates (const char *controlURL, const char *servicetype, unsigned int *bitrateDown, unsigned int *bitrateUp)
 
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)
 
LIBSPEC int UPNP_DeletePortMapping (const char *controlURL, const char *servicetype, const char *extPort, const char *proto, const char *remoteHost)
 
LIBSPEC int UPNP_GetPortMappingNumberOfEntries (const char *controlURL, const char *servicetype, unsigned int *num)
 
LIBSPEC int UPNP_GetSpecificPortMappingEntry (const char *controlURL, const char *servicetype, const char *extPort, const char *proto, char *intClient, char *intPort)
 
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)
 

Macro Definition Documentation

◆ STRTOUI

#define STRTOUI   strtoul

Definition at line 27 of file upnpcommands.h.

◆ UNSIGNED_INTEGER

#define UNSIGNED_INTEGER   unsigned int

Definition at line 26 of file upnpcommands.h.

◆ UPNPCOMMAND_INVALID_ARGS

#define UPNPCOMMAND_INVALID_ARGS   (-2)

Definition at line 16 of file upnpcommands.h.

◆ UPNPCOMMAND_SUCCESS

#define UPNPCOMMAND_SUCCESS   (0)

Definition at line 14 of file upnpcommands.h.

◆ UPNPCOMMAND_UNKNOWN_ERROR

#define UPNPCOMMAND_UNKNOWN_ERROR   (-1)

Definition at line 15 of file upnpcommands.h.

Function Documentation

◆ UPNP_AddPortMapping()

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 
)

◆ UPNP_DeletePortMapping()

LIBSPEC int UPNP_DeletePortMapping ( const char *  controlURL,
const char *  servicetype,
const char *  extPort,
const char *  proto,
const char *  remoteHost 
)

◆ UPNP_GetConnectionTypeInfo()

LIBSPEC int UPNP_GetConnectionTypeInfo ( const char *  controlURL,
const char *  servicetype,
char *  connectionType 
)

◆ UPNP_GetExternalIPAddress()

LIBSPEC int UPNP_GetExternalIPAddress ( const char *  controlURL,
const char *  servicetype,
char *  extIpAdd 
)

◆ UPNP_GetGenericPortMappingEntry()

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 
)

◆ UPNP_GetLinkLayerMaxBitRates()

LIBSPEC int UPNP_GetLinkLayerMaxBitRates ( const char *  controlURL,
const char *  servicetype,
unsigned int *  bitrateDown,
unsigned int *  bitrateUp 
)

◆ UPNP_GetPortMappingNumberOfEntries()

LIBSPEC int UPNP_GetPortMappingNumberOfEntries ( const char *  controlURL,
const char *  servicetype,
unsigned int *  num 
)

◆ UPNP_GetSpecificPortMappingEntry()

LIBSPEC int UPNP_GetSpecificPortMappingEntry ( const char *  controlURL,
const char *  servicetype,
const char *  extPort,
const char *  proto,
char *  intClient,
char *  intPort 
)

◆ UPNP_GetStatusInfo()

LIBSPEC int UPNP_GetStatusInfo ( const char *  controlURL,
const char *  servicetype,
char *  status,
unsigned int *  uptime,
char *  lastconnerror 
)

◆ UPNP_GetTotalBytesReceived()

LIBSPEC UNSIGNED_INTEGER UPNP_GetTotalBytesReceived ( const char *  controlURL,
const char *  servicetype 
)

◆ UPNP_GetTotalBytesSent()

LIBSPEC UNSIGNED_INTEGER UPNP_GetTotalBytesSent ( const char *  controlURL,
const char *  servicetype 
)

◆ UPNP_GetTotalPacketsReceived()

LIBSPEC UNSIGNED_INTEGER UPNP_GetTotalPacketsReceived ( const char *  controlURL,
const char *  servicetype 
)

◆ UPNP_GetTotalPacketsSent()

LIBSPEC UNSIGNED_INTEGER UPNP_GetTotalPacketsSent ( const char *  controlURL,
const char *  servicetype 
)