Simplify the networking code a little.

This commit is contained in:
Jonathan Naylor
2020-11-04 12:14:31 +00:00
parent bfbdfea30b
commit 14da695e8e
6 changed files with 5 additions and 27 deletions
-8
View File
@@ -41,7 +41,6 @@ m_file(file),
m_callsign(),
m_rptAddress(),
m_rptPort(0U),
m_myAddress(),
m_myPort(0U),
m_debug(false),
m_daemon(false),
@@ -143,8 +142,6 @@ bool CConf::read()
m_rptAddress = value;
else if (::strcmp(key, "RptPort") == 0)
m_rptPort = (unsigned int)::atoi(value);
else if (::strcmp(key, "LocalAddress") == 0)
m_myAddress = value;
else if (::strcmp(key, "LocalPort") == 0)
m_myPort = (unsigned int)::atoi(value);
else if (::strcmp(key, "Debug") == 0)
@@ -232,11 +229,6 @@ unsigned int CConf::getRptPort() const
return m_rptPort;
}
std::string CConf::getMyAddress() const
{
return m_myAddress;
}
unsigned int CConf::getMyPort() const
{
return m_myPort;