From acd2257961223f9fcf6d6edeefd047bf042c59f3 Mon Sep 17 00:00:00 2001 From: MayaTheShy Date: Sun, 9 Nov 2025 23:39:50 -0500 Subject: [PATCH] feat: implement handling of Ping packets in domain packet parsing --- src/OverteClient.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/OverteClient.cpp b/src/OverteClient.cpp index 81fc8a8..4721704 100644 --- a/src/OverteClient.cpp +++ b/src/OverteClient.cpp @@ -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;