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.

46 lines
862 B

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __NETWORK_SERVICE_ENGINE_HEADERS__
  2. #define __NETWORK_SERVICE_ENGINE_HEADERS__
  3. #include "../../components/base/basicEngine.h"
  4. class networkClientHandler;
  5. class networkServiceEngine : public basicEngine
  6. {
  7. public:
  8. networkServiceEngine();
  9. virtual ~networkServiceEngine();
  10. // void *ptr -> optionall additional info ususally (struct sockaddr *)
  11. virtual networkClientHandler * attachNewClient(int SocketID, void * ptr = NULL)
  12. {
  13. return NULL;
  14. }
  15. virtual bool detachClient(networkClientHandler * ptr)
  16. {
  17. return false;
  18. }
  19. virtual bool start()
  20. {
  21. return false;
  22. }
  23. virtual bool stop(bool force = true)
  24. {
  25. return false;
  26. }
  27. };
  28. // Constructor implementation
  29. inline networkServiceEngine::networkServiceEngine() :
  30. basicEngine()
  31. {
  32. }
  33. // Destructor implementation
  34. inline networkServiceEngine::~networkServiceEngine() {}
  35. #endif