mirror of
https://github.com/ShaYmez/P25Clients.git
synced 2026-06-09 09:24:52 -04:00
Rewrite the networking for dual IPv4 and IPv6.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user