You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
795 B

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __NET_CLIENT_HANDLER_HEADER__
  2. #define __NET_CLIENT_HANDLER_HEADER__
  3. #include "../protocol/protocol.h"
  4. #include "../../components/base/basicEngine.h"
  5. #include "../../components/base/basicEventHeap.h"
  6. #include "../../components/base/basicLogCollection.h"
  7. #include "serverPort.h"
  8. class networkClientHandler: public basicEventHandler{
  9. protected:
  10. basicLogCollection * m_pLog;
  11. basicEngine * m_pEngine;
  12. serverPort * m_pPort;
  13. public:
  14. explicit networkClientHandler( int SocketFD );
  15. virtual ~networkClientHandler();
  16. bool attachEngine( basicEngine *ptr );
  17. virtual void dispatchEvent( basicEvent *Evt ){};
  18. virtual bool getStatus( void ){ return false; };
  19. };
  20. #endif