mirror of
https://github.com/oe7drt/YSFClients.git
synced 2026-04-18 04:33:58 +00:00
added YSFDirect
Added management of the YSFBMGateway gateway using the id 00006
This commit is contained in:
parent
2e303e55e6
commit
351e6c2d59
8 changed files with 71 additions and 2 deletions
|
|
@ -88,6 +88,8 @@ m_ysfNetworkYSF2NXDNAddress("127.0.0.1"),
|
|||
m_ysfNetworkYSF2NXDNPort(0U),
|
||||
m_ysfNetworkYSF2P25Address("127.0.0.1"),
|
||||
m_ysfNetworkYSF2P25Port(0U),
|
||||
m_ysfNetworkYSFDirectAddress("127.0.0.1"),
|
||||
m_ysfNetworkYSFDirectPort(0U),
|
||||
m_fcsNetworkEnabled(false),
|
||||
m_fcsNetworkFile(),
|
||||
m_fcsNetworkPort(0U),
|
||||
|
|
@ -274,6 +276,10 @@ bool CConf::read()
|
|||
m_ysfNetworkYSF2P25Address = value;
|
||||
else if (::strcmp(key, "YSF2P25Port") == 0)
|
||||
m_ysfNetworkYSF2P25Port = (unsigned short)::atoi(value);
|
||||
else if (::strcmp(key, "YSFDirectAddress") == 0)
|
||||
m_ysfNetworkYSFDirectAddress = value;
|
||||
else if (::strcmp(key, "YSFDirectPort") == 0)
|
||||
m_ysfNetworkYSFDirectPort = (unsigned short)::atoi(value);
|
||||
} else if (section == SECTION_FCS_NETWORK) {
|
||||
if (::strcmp(key, "Enable") == 0)
|
||||
m_fcsNetworkEnabled = ::atoi(value) == 1;
|
||||
|
|
@ -536,6 +542,16 @@ unsigned short CConf::getYSFNetworkYSF2P25Port() const
|
|||
return m_ysfNetworkYSF2P25Port;
|
||||
}
|
||||
|
||||
std::string CConf::getYSFNetworkYSFDirectAddress() const
|
||||
{
|
||||
return m_ysfNetworkYSFDirectAddress;
|
||||
}
|
||||
|
||||
unsigned short CConf::getYSFNetworkYSFDirectPort() const
|
||||
{
|
||||
return m_ysfNetworkYSFDirectPort;
|
||||
}
|
||||
|
||||
|
||||
bool CConf::getFCSNetworkEnabled() const
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue