Fix network ports datatype (unsigned int -> unsigned short). UDPSocket: fix old bug using m_port instead of m_port[x].

This commit is contained in:
Daniel Caujolle-Bert 2021-04-25 07:43:56 +02:00
parent 183615d52e
commit 310cf0c8ff
No known key found for this signature in database
GPG key ID: 51AED7171EC00614
9 changed files with 34 additions and 33 deletions

View file

@ -213,9 +213,9 @@ int CDAPNETGateway::run()
bool debug = m_conf.getDAPNETDebug();
std::string rptAddress = m_conf.getRptAddress();
unsigned int rptPort = m_conf.getRptPort();
unsigned short rptPort = m_conf.getRptPort();
std::string myAddress = m_conf.getMyAddress();
unsigned int myPort = m_conf.getMyPort();
unsigned short myPort = m_conf.getMyPort();
m_pocsagNetwork = new CPOCSAGNetwork(myAddress, myPort, rptAddress, rptPort, debug);
ret = m_pocsagNetwork->open();
@ -228,7 +228,7 @@ int CDAPNETGateway::run()
std::string callsign = m_conf.getCallsign();
std::string dapnetAddress = m_conf.getDAPNETAddress();
unsigned int dapnetPort = m_conf.getDAPNETPort();
unsigned short dapnetPort = m_conf.getDAPNETPort();
std::string dapnetAuthKey = m_conf.getDAPNETAuthKey();
if (dapnetAuthKey.length() == 0 || dapnetAuthKey == "TOPSECRET") {