mirror of
https://github.com/g4klx/DMRGateway.git
synced 2026-04-06 23:13:48 +00:00
Simplify the format of the XLX Hosts file a little.
This commit is contained in:
parent
82ce7a32f3
commit
2159abb418
9 changed files with 167 additions and 142 deletions
16
Conf.cpp
16
Conf.cpp
|
|
@ -90,6 +90,8 @@ m_xlxNetworkEnabled(false),
|
|||
m_xlxNetworkId(0U),
|
||||
m_xlxNetworkFile(),
|
||||
m_xlxNetworkReloadTime(0U),
|
||||
m_xlxNetworkPort(62030U),
|
||||
m_xlxNetworkPassword("passw0rd"),
|
||||
m_xlxNetworkLocal(0U),
|
||||
m_xlxNetworkSlot(1U),
|
||||
m_xlxNetworkTG(8U),
|
||||
|
|
@ -192,6 +194,10 @@ bool CConf::read()
|
|||
m_xlxNetworkFile = value;
|
||||
else if (::strcmp(key, "ReloadTime") == 0)
|
||||
m_xlxNetworkReloadTime = (unsigned int)::atoi(value);
|
||||
else if (::strcmp(key, "Port") == 0)
|
||||
m_xlxNetworkPort = (unsigned int)::atoi(value);
|
||||
else if (::strcmp(key, "Password") == 0)
|
||||
m_xlxNetworkPassword = value;
|
||||
else if (::strcmp(key, "Local") == 0)
|
||||
m_xlxNetworkLocal = (unsigned int)::atoi(value);
|
||||
else if (::strcmp(key, "Slot") == 0)
|
||||
|
|
@ -486,6 +492,16 @@ unsigned int CConf::getXLXNetworkReloadTime() const
|
|||
return m_xlxNetworkReloadTime;
|
||||
}
|
||||
|
||||
unsigned int CConf::getXLXNetworkPort() const
|
||||
{
|
||||
return m_xlxNetworkPort;
|
||||
}
|
||||
|
||||
std::string CConf::getXLXNetworkPassword() const
|
||||
{
|
||||
return m_xlxNetworkPassword;
|
||||
}
|
||||
|
||||
unsigned int CConf::getXLXNetworkLocal() const
|
||||
{
|
||||
return m_xlxNetworkLocal;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue