Files
m2dev-client-src/src/UserInterface/ServerStateChecker.h
2025-08-28 20:50:20 +02:00

31 lines
556 B
C++

#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;
};