feat: add logging for periodic ping in OverteClient poll method

This commit is contained in:
MayaTheShy
2025-11-09 23:43:31 -05:00
parent 66c9ae11bc
commit db37c654c5

View File

@@ -396,6 +396,7 @@ void OverteClient::poll() {
auto now = std::chrono::steady_clock::now();
if (std::chrono::duration_cast<std::chrono::seconds>(now - lastPing).count() >= 1) {
std::cout << "[OverteClient] Sending periodic ping to domain (localID=" << m_localID << ")" << std::endl;
sendPing(m_udpFd, m_udpAddr, m_udpAddrLen);
lastPing = now;
}