mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-04 14:07:36 +00:00
Allow for setting of outgoing port number on DMR networking.
This commit is contained in:
parent
582775aeed
commit
9d03c83609
6 changed files with 20 additions and 4 deletions
8
Conf.cpp
8
Conf.cpp
|
|
@ -87,6 +87,7 @@ m_dstarNetworkDebug(false),
|
|||
m_dmrNetworkEnabled(true),
|
||||
m_dmrNetworkAddress(),
|
||||
m_dmrNetworkPort(0U),
|
||||
m_dmrNetworkLocal(0U),
|
||||
m_dmrNetworkPassword(),
|
||||
m_dmrNetworkDebug(false),
|
||||
m_dmrNetworkSlot1(true),
|
||||
|
|
@ -254,6 +255,8 @@ bool CConf::read()
|
|||
m_dmrNetworkAddress = value;
|
||||
else if (::strcmp(key, "Port") == 0)
|
||||
m_dmrNetworkPort = (unsigned int)::atoi(value);
|
||||
else if (::strcmp(key, "Local") == 0)
|
||||
m_dmrNetworkLocal = (unsigned int)::atoi(value);
|
||||
else if (::strcmp(key, "Password") == 0)
|
||||
m_dmrNetworkPassword = value;
|
||||
else if (::strcmp(key, "Debug") == 0)
|
||||
|
|
@ -509,6 +512,11 @@ unsigned int CConf::getDMRNetworkPort() const
|
|||
return m_dmrNetworkPort;
|
||||
}
|
||||
|
||||
unsigned int CConf::getDMRNetworkLocal() const
|
||||
{
|
||||
return m_dmrNetworkLocal;
|
||||
}
|
||||
|
||||
std::string CConf::getDMRNetworkPassword() const
|
||||
{
|
||||
return m_dmrNetworkPassword;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue