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.

29 lines
914 B

7 years ago
​
​
​
​
​
​
7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __LRF_DEFENDER_HANDLER_H_INCL__
  2. #define __LRF_DEFENDER_HANDLER_H_INCL__
  3. #include "../../data/protocol/protocolLGS.h"
  4. #include "../../data/net/netClientHandler.h"
  5. #include "../../components/base/basicLogCollection.h"
  6. #include "../../data/protocol/protocolDefender.h"
  7. #include "../../data/net/clientPort.h"
  8. /**
  9. * TODO: Add class description
  10. *
  11. * @author Gagua
  12. */
  13. class LRF_DefenderHandler : public basicThread, public basicEventHandler, public protocolDefender {
  14. private:
  15. basicLogCollection * m_pLog;
  16. EventsFIFO m_oOutputFIFO;
  17. clientPort * m_pSocketPort;
  18. unsigned long long m_llTicks;
  19. protected:
  20. virtual void m_fThreadProc( void );
  21. public:
  22. explicit LRF_DefenderHandler( config_setting_t *SNode );
  23. virtual ~LRF_DefenderHandler();
  24. virtual void dispatchEvent( basicEvent *Evt );
  25. };
  26. #endif // __LRF_CLIENTHANDLER_H_INCL__