diff --git a/src/net/connection/NetClient.cpp b/src/net/connection/NetClient.cpp index c2e0092..bdd613b 100644 --- a/src/net/connection/NetClient.cpp +++ b/src/net/connection/NetClient.cpp @@ -264,8 +264,9 @@ void NetClient::WCConnected(WowConnection* conn, WowConnection* inbound, uint32_ this->m_pingLock.Enter(); - // TODO - + this->m_connectedTimestamp = timeStamp; + this->m_bytesReceived = 0; + this->m_bytesSent = 0; this->m_latencyStart = 0; this->m_latencyEnd = 0; this->m_pingSent = OsGetAsyncTimeMsPrecise(); diff --git a/src/net/connection/NetClient.hpp b/src/net/connection/NetClient.hpp index 56bbc54..34a9a20 100644 --- a/src/net/connection/NetClient.hpp +++ b/src/net/connection/NetClient.hpp @@ -94,6 +94,9 @@ class NetClient : public WowConnectionResponse { uint32_t m_latency[16]; uint32_t m_latencyStart; uint32_t m_latencyEnd; + uint32_t m_bytesSent = 0; + uint32_t m_bytesReceived = 0; + uint32_t m_connectedTimestamp = 0; SCritSect m_pingLock; };