SendThreadSocket.h
上传用户:swkcbjrc
上传日期:2016-04-02
资源大小:45277k
文件大小:1k
源码类别:

游戏

开发平台:

Visual C++

  1. // SendThreadSocket.h: interface for the CSendThreadSocket class.
  2. //功能描述:该类是发送线程类
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_SENDTHREADSOCKET_H__62E1A861_539A_4905_82D6_8C75FEC4E0D6__INCLUDED_)
  5. #define AFX_SENDTHREADSOCKET_H__62E1A861_539A_4905_82D6_8C75FEC4E0D6__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #include "DPSocketModel.h"
  10. #define SEND_TIMEOUT 300
  11. //##ModelId=3B394E04032C
  12. class CSendThreadSocket : public CSocketModel  
  13. {
  14. public:
  15. //##ModelId=3B394E04034A
  16. CSendThreadSocket();
  17. //##ModelId=3B394E04034B
  18. virtual ~CSendThreadSocket();
  19. public:
  20. //##ModelId=3B394E040355
  21. int SendAllData(SOCKET hSocket, char const * pszBuffer, int nBufferSize, 
  22. DWORD dwTimeout=SEND_TIMEOUT)
  23. {return CSocketModel::SendData_Event(hSocket,pszBuffer, 
  24. nBufferSize,dwTimeout);};
  25. };
  26. #endif // !defined(AFX_SENDTHREADSOCKET_H__62E1A861_539A_4905_82D6_8C75FEC4E0D6__INCLUDED_)