mirror of
https://github.com/oe7drt/YSFClients.git
synced 2026-04-06 23:04:10 +00:00
Adding pseudo YSF2DMR reflector
This commit is contained in:
parent
a56716d0c5
commit
fe410b937a
8 changed files with 57 additions and 1 deletions
|
|
@ -67,6 +67,8 @@ m_networkHosts(),
|
|||
m_networkReloadTime(0U),
|
||||
m_networkParrotAddress("127.0.0.1"),
|
||||
m_networkParrotPort(0U),
|
||||
m_networkYSF2DMRAddress("127.0.0.1"),
|
||||
m_networkYSF2DMRPort(0U),
|
||||
m_networkStartup(),
|
||||
m_networkInactivityTimeout(0U),
|
||||
m_networkRevert(false),
|
||||
|
|
@ -186,6 +188,10 @@ bool CConf::read()
|
|||
m_networkParrotAddress = value;
|
||||
else if (::strcmp(key, "ParrotPort") == 0)
|
||||
m_networkParrotPort = (unsigned int)::atoi(value);
|
||||
else if (::strcmp(key, "YSF2DMRAddress") == 0)
|
||||
m_networkYSF2DMRAddress = value;
|
||||
else if (::strcmp(key, "YSF2DMRPort") == 0)
|
||||
m_networkYSF2DMRPort = (unsigned int)::atoi(value);
|
||||
else if (::strcmp(key, "Startup") == 0)
|
||||
m_networkStartup = value;
|
||||
else if (::strcmp(key, "InactivityTimeout") == 0)
|
||||
|
|
@ -352,6 +358,16 @@ unsigned int CConf::getNetworkParrotPort() const
|
|||
return m_networkParrotPort;
|
||||
}
|
||||
|
||||
std::string CConf::getNetworkYSF2DMRAddress() const
|
||||
{
|
||||
return m_networkYSF2DMRAddress;
|
||||
}
|
||||
|
||||
unsigned int CConf::getNetworkYSF2DMRPort() const
|
||||
{
|
||||
return m_networkYSF2DMRPort;
|
||||
}
|
||||
|
||||
std::string CConf::getNetworkStartup() const
|
||||
{
|
||||
return m_networkStartup;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue