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.
 
 
 
 
 
 

25 lines
894 B

#ifndef __NETWORK_SERVICE_ENGINE_HEADERS__
#define __NETWORK_SERVICE_ENGINE_HEADERS__
#include "../../components/base/basicEngine.h"
class networkClientHandler;
class networkServiceEngine: public basicEngine {
public:
networkServiceEngine();
virtual ~networkServiceEngine();
//void *ptr -> optionall additional info ususally (struct sockaddr *)
virtual networkClientHandler * attachNewClient( int SocketID, void *ptr = NULL ){ return NULL; };
virtual bool detachClient( networkClientHandler *ptr ){ return false; };
virtual bool start(){ return false; };
virtual bool stop( bool force = true ){ return false; };
};
// Constructor implementation
inline networkServiceEngine::networkServiceEngine():basicEngine(){};
// Destructor implementation
inline networkServiceEngine::~networkServiceEngine(){};
#endif