added default server address

This commit is contained in:
Volker Fischer 2009-02-14 18:36:20 +00:00
parent 0087d50761
commit 881ce91832
2 changed files with 22 additions and 18 deletions

View file

@ -49,6 +49,9 @@
// file name for logging file // file name for logging file
#define DEFAULT_LOG_FILE_NAME "llconsrvlog.txt" #define DEFAULT_LOG_FILE_NAME "llconsrvlog.txt"
// default server address
#define DEFAULT_SERVER_ADDRESS "llcon.dyndns.org"
// defined port number for client and server // defined port number for client and server
#define LLCON_PORT_NUMBER 22122 #define LLCON_PORT_NUMBER 22122

View file

@ -54,7 +54,8 @@ void CSettings::ReadIniFile ( const QString& sFileName )
// actual settings data --------------------------------------------------- // actual settings data ---------------------------------------------------
// IP address // IP address
pClient->strIPAddress = GetIniSetting ( IniXMLDocument, "client", "ipaddress" ); pClient->strIPAddress = GetIniSetting ( IniXMLDocument, "client",
"ipaddress", DEFAULT_SERVER_ADDRESS );
// name // name
pClient->strName = GetIniSetting ( IniXMLDocument, "client", "name" ); pClient->strName = GetIniSetting ( IniXMLDocument, "client", "name" );