feat: enhance domain connect request logging with byte count, protocol version, and session information

This commit is contained in:
MayaTheShy
2025-11-08 17:18:50 -05:00
parent e3e6e9eba8
commit b2a9cf62da

View File

@@ -478,7 +478,9 @@ void OverteClient::sendDomainConnectRequest() {
ssize_t s = ::sendto(m_udpFd, packet.data(), packet.size(), 0,
reinterpret_cast<sockaddr*>(&m_udpAddr), m_udpAddrLen);
if (s > 0) {
std::cout << "[OverteClient] Domain connect request sent" << std::endl;
std::cout << "[OverteClient] Domain connect request sent (" << s << " bytes)" << std::endl;
std::cout << "[OverteClient] Protocol: " << protocolVersion << std::endl;
std::cout << "[OverteClient] Session: " << hardwareAddress << std::endl;
} else {
std::cerr << "[OverteClient] Failed to send domain connect request: " << strerror(errno) << std::endl;
}