Adds immediate migration results in progress
This commit is contained in:
2102 files changed
+17482
-15071
No files matched your search
@@ -37,7 +37,7 @@ PrtCnvInjectionSocket::~PrtCnvInjectionSocket()
|
||||
|
||||
void PrtCnvInjectionSocket::disconnectClient()
|
||||
{
|
||||
INFO_LOG() << "A client has disconnected from the injection-server";
|
||||
INFO_LOG(m_logger) << "A client has disconnected from the injection-server";
|
||||
emit disconnected(this);
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ void PrtCnvInjectionSocket::disconnectClient()
|
||||
|
||||
void PrtCnvInjectionSocket::processInputData()
|
||||
{
|
||||
INFO_LOG() << "Injection-server has data received";
|
||||
INFO_LOG(m_logger) << "Injection-server has data received";
|
||||
N_CoPrtCnv::CoPrtCnvInjectionHeader injectionHeader;
|
||||
qint64 bytesRead = m_Socket->peek((char*)&injectionHeader, sizeof(injectionHeader));
|
||||
if (sizeof(injectionHeader) == bytesRead)
|
||||
@@ -58,7 +58,7 @@ void PrtCnvInjectionSocket::processInputData()
|
||||
qint64 available = m_Socket->bytesAvailable();
|
||||
if (available < (injectionHeader.m_Size+sizeof(injectionHeader)))
|
||||
{
|
||||
INFO_LOG() << "not enough bytes available - waiting for more data: "
|
||||
INFO_LOG(m_logger) << "not enough bytes available - waiting for more data: "
|
||||
<< "headersize=" << sizeof(injectionHeader) << " id1="
|
||||
<< injectionHeader.m_Id1 << " id2=" << injectionHeader.m_Id2
|
||||
<< " kind=" << (int)injectionHeader.m_Kind << " size="
|
||||
@@ -85,26 +85,26 @@ void PrtCnvInjectionSocket::processInputData()
|
||||
if (N_CoPrtCnv::CoPrtCnvInjectionHeader::eCentral == injectionHeader.m_Kind &&
|
||||
tele->telegramId() != TrainingAreaBase::TetraIcd::TelegramId::DATENVERKEHR_TDS_SRT)
|
||||
{
|
||||
INFO_LOG() << "Got an injection-central-telegram with telId=" << tele->telegramId();
|
||||
INFO_LOG(m_logger) << "Got an injection-central-telegram with telId=" << tele->telegramId();
|
||||
m_Server->addToCentralList(tele);
|
||||
}
|
||||
else
|
||||
{
|
||||
INFO_LOG() << "Got an injection-radio-telegram with telId=" << tele->telegramId();
|
||||
INFO_LOG(m_logger) << "Got an injection-radio-telegram with telId=" << tele->telegramId();
|
||||
m_Server->addToRadioList(tele);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
ERROR_LOG() << "Unknown kind (" << injectionHeader.m_Kind << ") of injection-telegram";
|
||||
ERROR_LOG(m_logger) << "Unknown kind (" << injectionHeader.m_Kind << ") of injection-telegram";
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
ERROR_LOG() << "Corrupt injection-telegram received => reconnect";
|
||||
ERROR_LOG(m_logger) << "Corrupt injection-telegram received => reconnect";
|
||||
m_Socket->disconnectFromHost();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user