| 1234567891011121314151617181920212223242526 |
- #pragma once
- //#ifdef STONEU_DEFINE
- class _declspec(dllexport) CStoneU_TcpC
- //#else
- //class _declspec(dllimport) CStoneU_TcpC
- //#endif
- {
- public:
- CStoneU_TcpC(void);
- ~CStoneU_TcpC(void);
- public:
- // SocketClient Interface handler
- virtual void DllC_ThreadBegin(CString sLocalIP);
- virtual void DllC_ThreadExit(CString sLocalIP);
- virtual void DllC_DataReceived(CString sLocalIP,const BYTE* pbData, DWORD dwCount, CString sServerIP);
- virtual void DllC_ConnectionDropped(CString sLocalIP,CString sServerIP);
- virtual void DllC_ConnectionError(CString sLocalIP,DWORD dwError);
- public:
- bool DllC_LoginServer( CString strServerIP,CString strServerPort );
- bool DllC_LogoutServer();
- bool DllC_SendDateToServer( BYTE *pSendbuf,int nDataLen );
- bool DllC_GetAddressInfo( CString &sIP,CString &sGateway );
- bool DllC_Ping( CString sIP );
- };
|