mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 11:12:29 +00:00
feat(net): handle remaining logic in NetClient:WCConnected
This commit is contained in:
parent
2a799ea0d2
commit
34bcb5c134
2 changed files with 6 additions and 2 deletions
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue