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.

24 lines
905 B

7 years ago
​
​
​
7 years ago
​
7 years ago
​
​
​
​
7 years ago
7 years ago
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/basicEventHandler.h"
  6. #include "../../components/base/basicLogCollection.h"
  7. #include "serverPort.h"
  8. #include "netServiceEngine.h"
  9. class networkClientHandler: public basicEventHandler{
  10. protected:
  11. basicLogCollection * m_pLog;
  12. networkServiceEngine * m_pEngine;
  13. serverPort * m_pPort;
  14. public:
  15. explicit networkClientHandler( int SocketFD, networkServiceEngine *ptr = NULL );
  16. virtual ~networkClientHandler();
  17. virtual bool attachEngine( networkServiceEngine *ptr );
  18. virtual bool dispatchEvent( EVENT_CONTAINER *Evt ){ return true; };
  19. virtual bool getStatus( void ){ return false; };
  20. };
  21. #endif