CCHelper.h
上传用户:maryhy001
上传日期:2007-05-02
资源大小:2317k
文件大小:2k
- // CCHelper.h: interface for the CCCHelper class.
- #ifndef _CCHELPER_H
- #define _CCHELPER_H
- #include "udp.h"
- #include "chatPublic.h"
- #include "NetChatingThread.h"
- #include "FileRecvorThread.h"
- #include "FileSenderThread.h"
- //================================================
- //
- //Class Name : CCCHelper
- //
- //Description: Agent and Agent helper class.
- //
- //Create Time: 2004-07-15
- //
- //================================================
- class CCCHelper
- {
- public:
- CCCHelper();
- virtual ~CCCHelper();
- bool Start(void); //start the cc helper functions.
- void Stop(void); //stop function of the cc helper functions.
- bool Start_FileSendSvr(void); //start function of file sending server.
- void Stop_FileSendSvr(void); //stop function of file sending server.
- bool Start_P2PChatSvr(void); //start function of peer to peer chating.
- void Stop_P2PChatSvr(void); //stop function of peer to peer chating.
-
- LPCSTR GetRecvedFileSaveDir(); //get received file save directory.
- CFileReceiverThread *GetFileRecverThread(); //get member pointer.
- CFileSenderThread *GetFileSenderThread(); //get member pointer.
- protected:
- bool Start_FileTransSvr(void); //start function of file transfering.
- void Stop_FileTransSvr(void); //stop function of file transfering.
- protected:
- CUDPServerThread *m_pchatSvrThread;
- CFileReceiverThread *m_pfileRecvorSvr; //main thread of peer to peer file transfering.
- CFileSenderThread *m_pfileSenderSvr; //sender thread object.
- private:
- CHATINGPACKAGE m_cpgResponse; //chating response package buffer.
- };
- #endif //_CCHELPER_H