mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-04-25 22:26:59 +03:00
feat(net): handle remaining logic in NetClient:WCConnected
This commit is contained in:
parent
2a799ea0d2
commit
34bcb5c134
src/net/connection
@ -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…
Reference in New Issue
Block a user