From d88f93ea45ce857f3e98ec8fc1e4bed1ff276557 Mon Sep 17 00:00:00 2001 From: MayaTheShy Date: Sat, 8 Nov 2025 16:10:04 -0500 Subject: [PATCH] feat: add logging for received UDP packets in OverteClient --- src/OverteClient.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/OverteClient.cpp b/src/OverteClient.cpp index 6f2c1b2..cf57021 100644 --- a/src/OverteClient.cpp +++ b/src/OverteClient.cpp @@ -143,6 +143,8 @@ void OverteClient::poll() { ssize_t r = ::recvfrom(m_udpFd, buf, sizeof(buf), 0, reinterpret_cast(&from), &fromlen); if (r > 0) { // Parse as potential domain/avatar packets + std::cout << "[OverteClient] Domain UDP packet received (" << r << " bytes, type=0x" + << std::hex << (int)(unsigned char)buf[0] << std::dec << ")" << std::endl; parseEntityPacket(buf, static_cast(r)); } } @@ -171,6 +173,8 @@ void OverteClient::parseNetworkPackets() { sockaddr_storage from{}; socklen_t fromlen = sizeof(from); ssize_t r = ::recvfrom(m_entityFd, buf, sizeof(buf), 0, reinterpret_cast(&from), &fromlen); if (r > 0) { + std::cout << "[OverteClient] EntityServer packet received (" << r << " bytes, type=0x" + << std::hex << (int)(unsigned char)buf[0] << std::dec << ")" << std::endl; parseEntityPacket(buf, static_cast(r)); } }