315ClientManager.h 638 B

123456789101112131415161718192021222324252627282930
  1. #ifndef C315_CLIENT_MANAGER_H
  2. #define C315_CLIENT_MANAGER_H
  3. #include "315TCPClient.h"
  4. #include "CSM315Protocol.h"
  5. #pragma once
  6. extern bool g_b315;
  7. class C315ClientManager
  8. {
  9. public:
  10. C315ClientManager();
  11. ~C315ClientManager();
  12. public:
  13. bool Run(CString strIniPath);
  14. void Stop();
  15. void SendToServer(LPBYTE pPack, int nPackLen, E_315_PROTOCOL_TYPE protocol, uint8_t no);
  16. C315TCPClient* GetTcpClient() { return &m_tcpSocket; }
  17. private:
  18. CCSM315Protocol *m_lptlManageFrame;
  19. C315TCPClient m_tcpSocket; //¿Í»§¶ËÁ¬½Ó
  20. TCHAR m_szServerIP[50] = { 0 };
  21. UINT m_dwServerPort;
  22. };
  23. #endif // !C315_CLIENT_H