feat: implement handling of Ping packets in domain packet parsing

This commit is contained in:
MayaTheShy
2025-11-09 23:39:50 -05:00
parent 29cbb0e398
commit acd2257961

View File

@@ -504,6 +504,12 @@ void OverteClient::parseDomainPacket(const char* data, size_t len) {
std::cout << "[OverteClient] Domain server requires DTLS (not yet implemented)" << std::endl;
break;
case PacketType::Ping:
// Incoming ping from server - must reply to stay alive
std::cout << "[OverteClient] Ping received from server, sending PingReply" << std::endl;
handlePing(payload, payloadLen);
break;
case PacketType::PingReply:
// Keep-alive ping reply
std::cout << "[OverteClient] Ping reply received" << std::endl;