mirror of
https://github.com/oe7drt/YSFClients.git
synced 2026-04-06 14:53:52 +00:00
Alter format of hosts file ready for network reloading.
This commit is contained in:
parent
0c6c86b1b5
commit
f8b0accafb
15 changed files with 106 additions and 410 deletions
|
|
@ -62,8 +62,8 @@ m_aprsPort(0U),
|
|||
m_aprsPassword(),
|
||||
m_networkEnabled(false),
|
||||
m_networkDataPort(0U),
|
||||
m_networkStatusPort(0U),
|
||||
m_networkHosts(),
|
||||
m_networkReloadTime(0U),
|
||||
m_networkStartup(),
|
||||
m_networkDebug(false)
|
||||
{
|
||||
|
|
@ -171,10 +171,10 @@ bool CConf::read()
|
|||
m_networkEnabled = ::atoi(value) == 1;
|
||||
else if (::strcmp(key, "DataPort") == 0)
|
||||
m_networkDataPort = (unsigned int)::atoi(value);
|
||||
else if (::strcmp(key, "StatusPort") == 0)
|
||||
m_networkStatusPort = (unsigned int)::atoi(value);
|
||||
else if (::strcmp(key, "Hosts") == 0)
|
||||
m_networkHosts = value;
|
||||
else if (::strcmp(key, "ReloadTime") == 0)
|
||||
m_networkReloadTime = (unsigned int)::atoi(value);
|
||||
else if (::strcmp(key, "Startup") == 0)
|
||||
m_networkStartup = value;
|
||||
else if (::strcmp(key, "Debug") == 0)
|
||||
|
|
@ -312,16 +312,16 @@ unsigned int CConf::getNetworkDataPort() const
|
|||
return m_networkDataPort;
|
||||
}
|
||||
|
||||
unsigned int CConf::getNetworkStatusPort() const
|
||||
{
|
||||
return m_networkStatusPort;
|
||||
}
|
||||
|
||||
std::string CConf::getNetworkHosts() const
|
||||
{
|
||||
return m_networkHosts;
|
||||
}
|
||||
|
||||
unsigned int CConf::getNetworkReloadTime() const
|
||||
{
|
||||
return m_networkReloadTime;
|
||||
}
|
||||
|
||||
std::string CConf::getNetworkStartup() const
|
||||
{
|
||||
return m_networkStartup;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue