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.

49 lines
1011 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. if ( SocketID || ptr ) return NULL;
  14. return NULL;
  15. }
  16. virtual bool detachClient(networkClientHandler * ptr)
  17. {
  18. if ( !ptr ) return false;
  19. return false;
  20. }
  21. virtual bool start()
  22. {
  23. return false;
  24. }
  25. virtual bool stop(bool force = true)
  26. {
  27. if (force) return true;
  28. return false;
  29. }
  30. };
  31. // Constructor implementation
  32. inline networkServiceEngine::networkServiceEngine() :
  33. basicEngine()
  34. {
  35. }
  36. // Destructor implementation
  37. inline networkServiceEngine::~networkServiceEngine() {}
  38. #endif