mirror of
https://github.com/g4klx/DAPNETGateway.git
synced 2026-08-26 12:32:45 -04:00
Basic parsing of failed login
This commit is contained in:
parent
784e8ce88e
commit
1746ec7998
3 changed files with 28 additions and 7 deletions
|
|
@ -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];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue