forked from Tr0n/client
Solution refactoring and restructuring, removed Boost dependency, removed unused tools
This commit is contained in:
31
src/UserInterface/ServerStateChecker.h
Normal file
31
src/UserInterface/ServerStateChecker.h
Normal file
@ -0,0 +1,31 @@
|
||||
#pragma once
|
||||
|
||||
#include "../eterLib/NetStream.h"
|
||||
|
||||
class CServerStateChecker : public CSingleton<CServerStateChecker>
|
||||
{
|
||||
public:
|
||||
CServerStateChecker();
|
||||
virtual ~CServerStateChecker();
|
||||
|
||||
void Create(PyObject* poWnd);
|
||||
void AddChannel(UINT uServerIndex, const char* c_szAddr, UINT uPort);
|
||||
void Request();
|
||||
void Update();
|
||||
|
||||
void Initialize();
|
||||
|
||||
private:
|
||||
typedef struct SChannel
|
||||
{
|
||||
UINT uServerIndex;
|
||||
const char* c_szAddr;
|
||||
UINT uPort;
|
||||
} TChannel;
|
||||
|
||||
PyObject* m_poWnd;
|
||||
|
||||
std::list<TChannel> m_lstChannel;
|
||||
|
||||
CNetworkStream m_kStream;
|
||||
};
|
Reference in New Issue
Block a user