#include <config.h>

Public Member Functions | |
| bool | parseSetup (const char *Name, const char *Value) |
| bool | processArgs (int argc, char *argv[]) |
Static Public Member Functions | |
| static cUPnPConfig * | get () |
Public Attributes | |
| char * | mInterface |
| the network interface, which the server is bound to | |
| char * | mAddress |
| the IP address which is used by the server | |
| int | mPort |
| the port which the server is listening on | |
| int | mEnable |
| indicates, if the server is enabled or not | |
| int | mAutoSetup |
| indicates, if the settings are automatically detected | |
This holds the configurations for the server. It holds information about the network settings as well as some status flags.
| cUPnPConfig * cUPnPConfig::get | ( | ) | [static] |
Get the configuration
This returns the instance of the current configuration settings.
| bool cUPnPConfig::parseSetup | ( | const char * | Name, | |
| const char * | Value | |||
| ) |
Parse setup variable
This parses the setup variable with the according value. The value is a string representation and must be converted into the according data type.
true, if parsing was successfulfalse, otherwise | Name | the name of the variable | |
| Value | the according value of the variable |
| bool cUPnPConfig::processArgs | ( | int | argc, | |
| char * | argv[] | |||
| ) |
Processes the commandline arguments
This processes the commandline arguments which the user specified at the start of the plugin.
true, if processing was successfulfalse, otherwise | argc | the number of arguments in the list | |
| argv | the arguments as a char array |
1.5.8