1
0
Fork 0

Make IMRS receive only with data dunmping for now.

ycs232-kbc
Jonathan Naylor 4 years ago
parent a3a93807a5
commit 1b8b2918c0

@ -240,7 +240,7 @@ int CDGIdGateway::run()
dgIdNetwork[dgid]->m_rfHangTime = rfHangTime;
dgIdNetwork[dgid]->m_netHangTime = netHangTime;
}
/* } else if (type == "IMRS") {
} else if (type == "IMRS") {
if (imrs != NULL) {
std::vector<IMRSDestination*> destinations = (*it)->m_destinations;
std::vector<IMRSDest*> dests;
@ -260,7 +260,6 @@ int CDGIdGateway::run()
dgIdNetwork[dgid]->m_rfHangTime = rfHangTime;
dgIdNetwork[dgid]->m_netHangTime = netHangTime;
}
*/
} else if (type == "Parrot") {
in_addr address = CUDPSocket::lookup((*it)->m_address);
unsigned int port = (*it)->m_port;

@ -65,6 +65,8 @@ void CIMRSNetwork::write(unsigned int dgId, const unsigned char* data)
{
assert(data != NULL);
return; // XXX Disable IMRS transmit
IMRSDGId* ptr = find(dgId);
if (ptr == NULL)
return;
@ -149,6 +151,10 @@ void CIMRSNetwork::clock(unsigned int ms)
if (length <= 0)
return;
LogDebug("IMRS Network Data Reecived from port %u", port);
CUtils::dump(1U, "IMRS Network Data Received", buffer, length);
return;
if (port != IMRS_PORT)
return;

Loading…
Cancel
Save