| 123456789101112131415161718192021222324252627282930 |
- #ifndef C315_CLIENT_MANAGER_H
- #define C315_CLIENT_MANAGER_H
- #include "315TCPClient.h"
- #include "CSM315Protocol.h"
- #pragma once
- extern bool g_b315;
- class C315ClientManager
- {
- public:
- C315ClientManager();
- ~C315ClientManager();
- public:
- bool Run(CString strIniPath);
- void Stop();
- void SendToServer(LPBYTE pPack, int nPackLen, E_315_PROTOCOL_TYPE protocol, uint8_t no);
- C315TCPClient* GetTcpClient() { return &m_tcpSocket; }
- private:
- CCSM315Protocol *m_lptlManageFrame;
- C315TCPClient m_tcpSocket; //¿Í»§¶ËÁ¬½Ó
- TCHAR m_szServerIP[50] = { 0 };
- UINT m_dwServerPort;
- };
- #endif // !C315_CLIENT_H
|