RawServer.h
资源名称:GGBT.rar [点击查看]
上传用户:lds876
上传日期:2013-05-25
资源大小:567k
文件大小:1k
源码类别:
P2P编程
开发平台:
Visual C++
- // RawServer.h: interface for the CRawServer class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_RAWSERVER_H__11B5AFE4_D5C7_42C3_BA19_B1AE29F85643__INCLUDED_)
- #define AFX_RAWSERVER_H__11B5AFE4_D5C7_42C3_BA19_B1AE29F85643__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "Rerequester.h"
- class CChoker;
- class CDownloaderFeedback;
- class CStorageWrapper;
- class CRawServer
- {
- public:
- CRawServer(HANDLE hevDone, HANDLE hevUnPause, CEncrypter* pEncrypter, CChoker* pChoker,
- CConnector* pConnector, CDownloaderFeedback* pDownloaderFeedback, CStorageWrapper* pStorageWrapper);
- virtual ~CRawServer();
- long Bind(long lminport, long lmaxport);
- void listen_forever(CRerequester* pRequest);
- private:
- CChoker* m_pChoker;
- CRerequester* m_pRequester;
- CEncrypter* m_pEncrypter;
- CConnector* m_pConnector;
- CDownloaderFeedback* m_pDownloaderFeedback;
- CStorageWrapper* m_pStorageWrapper;
- SOCKET m_hserver;
- HANDLE m_hevUnPause;
- HANDLE m_hevDone;
- HANDLE m_hevAccept;
- HANDLE m_hevHttpDone;
- };
- #endif // !defined(AFX_RAWSERVER_H__11B5AFE4_D5C7_42C3_BA19_B1AE29F85643__INCLUDED_)