feat(net): handle remaining logic in NetClient:WCConnected

This commit is contained in:
fallenoak committed 2023-02-26 13:09:39 -06:00
1 parent 2a799ea0d2
commit 34bcb5c134
2 files changed
+6 -2

No files matched your search

+3 -2
View File
@@ -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();
+3
View File
@@ -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;
};