StoneU_TcpC.h 856 B

1234567891011121314151617181920212223242526
  1. #pragma once
  2. //#ifdef STONEU_DEFINE
  3. class _declspec(dllexport) CStoneU_TcpC
  4. //#else
  5. //class _declspec(dllimport) CStoneU_TcpC
  6. //#endif
  7. {
  8. public:
  9. CStoneU_TcpC(void);
  10. ~CStoneU_TcpC(void);
  11. public:
  12. // SocketClient Interface handler
  13. virtual void DllC_ThreadBegin(CString sLocalIP);
  14. virtual void DllC_ThreadExit(CString sLocalIP);
  15. virtual void DllC_DataReceived(CString sLocalIP,const BYTE* pbData, DWORD dwCount, CString sServerIP);
  16. virtual void DllC_ConnectionDropped(CString sLocalIP,CString sServerIP);
  17. virtual void DllC_ConnectionError(CString sLocalIP,DWORD dwError);
  18. public:
  19. bool DllC_LoginServer( CString strServerIP,CString strServerPort );
  20. bool DllC_LogoutServer();
  21. bool DllC_SendDateToServer( BYTE *pSendbuf,int nDataLen );
  22. bool DllC_GetAddressInfo( CString &sIP,CString &sGateway );
  23. bool DllC_Ping( CString sIP );
  24. };