IPlayer.h
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:1k
源码类别:

模拟服务器

开发平台:

C/C++

  1. /********************************************************************
  2. created: 2003/04/08
  3. file base: IPlayer
  4. file ext: h
  5. author: liupeng
  6. purpose:
  7. *********************************************************************/
  8. #ifndef __INCLUDE_IPLAYER_H__
  9. #define __INCLUDE_IPLAYER_H__
  10. class IPlayer
  11. {
  12. public:
  13. /*
  14.  * Interface
  15.  */
  16. virtual bool DispatchTask( UINT nTaskID ) = 0;
  17. virtual bool IsWorking() = 0;
  18. virtual int  Run() = 0;
  19. virtual bool AppendData( UINT nOwner, const void *pData, size_t dataLength ) = 0;
  20. virtual bool Create( const char * const pName, const char * const pPassword ) = 0;
  21. virtual bool Destroy( const char * const /*pPassword*/ ) = 0;
  22. virtual ~IPlayer(){};
  23. };
  24. #endif // __INCLUDE_IPLAYER_H__