#pragma once #include "../eterLib/NetStream.h" class CServerStateChecker : public CSingleton { 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 m_lstChannel; CNetworkStream m_kStream; };