mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-10-26 22:06:06 +03:00
feat(net): add message buffer fields to WowConnection
This commit is contained in:
parent
023a3ea893
commit
75982f4091
@ -462,6 +462,12 @@ void WowConnection::Init(WowConnectionResponse* response, void (*func)(void)) {
|
|||||||
|
|
||||||
// TODO
|
// TODO
|
||||||
|
|
||||||
|
this->m_readBuffer = nullptr;
|
||||||
|
this->m_readBytes = 0;
|
||||||
|
this->m_readBufferSize = 0;
|
||||||
|
|
||||||
|
// TODO
|
||||||
|
|
||||||
this->SetState(WOWC_INITIALIZED);
|
this->SetState(WOWC_INITIALIZED);
|
||||||
this->m_type = WOWC_TYPE_MESSAGES;
|
this->m_type = WOWC_TYPE_MESSAGES;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -44,6 +44,9 @@ class WowConnection {
|
|||||||
int32_t m_sock;
|
int32_t m_sock;
|
||||||
WOW_CONN_STATE m_connState;
|
WOW_CONN_STATE m_connState;
|
||||||
WowConnectionResponse* m_response;
|
WowConnectionResponse* m_response;
|
||||||
|
uint8_t* m_readBuffer;
|
||||||
|
int32_t m_readBytes;
|
||||||
|
int32_t m_readBufferSize;
|
||||||
uint32_t m_connectAddress;
|
uint32_t m_connectAddress;
|
||||||
uint16_t m_connectPort;
|
uint16_t m_connectPort;
|
||||||
NETCONNADDR m_peer;
|
NETCONNADDR m_peer;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user