Rewrite the networking for dual IPv4 and IPv6.

This commit is contained in:
Jonathan Naylor
2020-11-04 11:50:57 +00:00
parent ef58905da9
commit bfbdfea30b
12 changed files with 283 additions and 67 deletions
+8
View File
@@ -41,6 +41,7 @@ m_file(file),
m_callsign(),
m_rptAddress(),
m_rptPort(0U),
m_myAddress(),
m_myPort(0U),
m_debug(false),
m_daemon(false),
@@ -142,6 +143,8 @@ 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)
@@ -229,6 +232,11 @@ unsigned int CConf::getRptPort() const
return m_rptPort;
}
std::string CConf::getMyAddress() const
{
return m_myAddress;
}
unsigned int CConf::getMyPort() const
{
return m_myPort;