packet API changes in AssignmentClientMonitor

This commit is contained in:
Stephen Birarda 2015-07-06 16:38:33 -07:00
parent 922dd5a739
commit 5a57e9861c

View file

@ -195,8 +195,8 @@ void AssignmentClientMonitor::checkSpares() {
SharedNodePointer childNode = nodeList->nodeWithUUID(aSpareId); SharedNodePointer childNode = nodeList->nodeWithUUID(aSpareId);
childNode->activateLocalSocket(); childNode->activateLocalSocket();
QByteArray diePacket = nodeList->byteArrayWithPopulatedHeader(PacketTypeStopNode); NodeListPacket diePacket = NodeListPacket::create(PacketType::StopNode);
nodeList->writeUnverifiedDatagram(diePacket, childNode); nodeList->sendPacket(diePacket, childNode);
} }
} }
} }
@ -229,8 +229,9 @@ void AssignmentClientMonitor::readPendingDatagrams() {
} else { } else {
// tell unknown assignment-client child to exit. // tell unknown assignment-client child to exit.
qDebug() << "asking unknown child to exit."; qDebug() << "asking unknown child to exit.";
QByteArray diePacket = nodeList->byteArrayWithPopulatedHeader(PacketTypeStopNode);
nodeList->writeUnverifiedDatagram(diePacket, senderSockAddr); NodeListPacket diePacket = NodeListPacket::create(PacketType::StopNode);
nodeList->sendPacket(diePacket, childNode);
} }
} }
} }