feat(net): add message buffer fields to WowConnection

This commit is contained in:
fallenoak 2023-02-21 11:22:38 -06:00
parent 023a3ea893
commit 75982f4091
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D
2 changed files with 9 additions and 0 deletions

View File

@ -462,6 +462,12 @@ void WowConnection::Init(WowConnectionResponse* response, void (*func)(void)) {
// TODO
this->m_readBuffer = nullptr;
this->m_readBytes = 0;
this->m_readBufferSize = 0;
// TODO
this->SetState(WOWC_INITIALIZED);
this->m_type = WOWC_TYPE_MESSAGES;
}

View File

@ -44,6 +44,9 @@ class WowConnection {
int32_t m_sock;
WOW_CONN_STATE m_connState;
WowConnectionResponse* m_response;
uint8_t* m_readBuffer;
int32_t m_readBytes;
int32_t m_readBufferSize;
uint32_t m_connectAddress;
uint16_t m_connectPort;
NETCONNADDR m_peer;