mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 03:02:30 +00:00
chore: initial commit
This commit is contained in:
commit
70b00c5c38
965 changed files with 264882 additions and 0 deletions
27
src/net/connection/ClientConnection.hpp
Normal file
27
src/net/connection/ClientConnection.hpp
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
#ifndef NET_CONNECTION_CLIENT_CONNECTION_HPP
|
||||
#define NET_CONNECTION_CLIENT_CONNECTION_HPP
|
||||
|
||||
#include "net/connection/RealmConnection.hpp"
|
||||
#include "net/Types.hpp"
|
||||
|
||||
class RealmResponse;
|
||||
|
||||
class ClientConnection : public RealmConnection {
|
||||
public:
|
||||
// Member variables
|
||||
int32_t m_statusComplete = 1;
|
||||
int32_t m_statusResult = 1;
|
||||
WOWCS_OPS m_statusCop = COP_NONE;
|
||||
int32_t m_errorCode = 0;
|
||||
void (*m_cleanup)() = nullptr;
|
||||
|
||||
// Member functions
|
||||
ClientConnection(RealmResponse* realmResponse)
|
||||
: RealmConnection(realmResponse)
|
||||
{};
|
||||
void Cancel(int32_t errorCode);
|
||||
void Cleanup();
|
||||
void Connect();
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue