SendThreadSocket.h
资源名称:1731.rar [点击查看]
上传用户:swkcbjrc
上传日期:2016-04-02
资源大小:45277k
文件大小:1k
源码类别:
游戏
开发平台:
Visual C++
- // SendThreadSocket.h: interface for the CSendThreadSocket class.
- //功能描述:该类是发送线程类
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_SENDTHREADSOCKET_H__62E1A861_539A_4905_82D6_8C75FEC4E0D6__INCLUDED_)
- #define AFX_SENDTHREADSOCKET_H__62E1A861_539A_4905_82D6_8C75FEC4E0D6__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "DPSocketModel.h"
- #define SEND_TIMEOUT 300
- //##ModelId=3B394E04032C
- class CSendThreadSocket : public CSocketModel
- {
- public:
- //##ModelId=3B394E04034A
- CSendThreadSocket();
- //##ModelId=3B394E04034B
- virtual ~CSendThreadSocket();
- public:
- //##ModelId=3B394E040355
- int SendAllData(SOCKET hSocket, char const * pszBuffer, int nBufferSize,
- DWORD dwTimeout=SEND_TIMEOUT)
- {return CSocketModel::SendData_Event(hSocket,pszBuffer,
- nBufferSize,dwTimeout);};
- };
- #endif // !defined(AFX_SENDTHREADSOCKET_H__62E1A861_539A_4905_82D6_8C75FEC4E0D6__INCLUDED_)