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
894 B

​
​
​
​
​
​
​
​
​
​
2 years ago
​
​
​
​
​
​
​
​
​
​
​
  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. public:
  7. networkServiceEngine();
  8. virtual ~networkServiceEngine();
  9. //void *ptr -> optionall additional info ususally (struct sockaddr *)
  10. virtual networkClientHandler * attachNewClient( int SocketID, void *ptr = NULL ){ return NULL; };
  11. virtual bool detachClient( networkClientHandler *ptr ){ return false; };
  12. virtual bool start(){ return false; };
  13. virtual bool stop( bool force = true ){ return false; };
  14. };
  15. // Constructor implementation
  16. inline networkServiceEngine::networkServiceEngine():basicEngine(){};
  17. // Destructor implementation
  18. inline networkServiceEngine::~networkServiceEngine(){};
  19. #endif