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

This commit is contained in:
fallenoak 2023-02-26 13:09:39 -06:00
parent 2a799ea0d2
commit 34bcb5c134
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D
2 changed files with 6 additions and 2 deletions
src/net/connection

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();

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;
};