Basic parsing of failed login

This commit is contained in:
phl0 2018-10-22 23:05:46 +02:00
parent 784e8ce88e
commit 1746ec7998
No known key found for this signature in database
GPG key ID: 48EA1E640798CA9A
3 changed files with 28 additions and 7 deletions

View file

@ -234,7 +234,7 @@ int CDAPNETGateway::run()
return 1;
}
m_dapnetNetwork = new CDAPNETNetwork(dapnetAddress, dapnetPort, callsign, dapnetAuthKey, VERSION, debug);
m_dapnetNetwork = new CDAPNETNetwork(dapnetAddress, dapnetPort, callsign, dapnetAuthKey, VERSION, false, debug);
ret = m_dapnetNetwork->open();
if (!ret) {
m_pocsagNetwork->close();
@ -247,6 +247,8 @@ int CDAPNETGateway::run()
return 1;
}
LogMessage("Starting DAPNETGateway-%s", VERSION);
ret = m_dapnetNetwork->login();
if (!ret) {
m_pocsagNetwork->close();
@ -260,12 +262,8 @@ int CDAPNETGateway::run()
return 1;
}
::LogMessage("Logged into the DAPNET network");
std::vector<unsigned int> whiteList = m_conf.getWhiteList();
LogMessage("Starting DAPNETGateway-%s", VERSION);
for (;;) {
unsigned char buffer[200U];