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.

37 lines
864 B

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