mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2026-11-08 23:49:56 +03:00
feat(net): handle remaining logic in NetClient:WCConnected
This commit is contained in:
2 files changed
+6
-2
No files matched your search
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user