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.
|
|
#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) { if ( SocketID || ptr ) return NULL; return NULL; }
virtual bool detachClient(networkClientHandler * ptr) { if ( !ptr ) return false; return false; }
virtual bool start() { return false; }
virtual bool stop(bool force = true) { if (force) return true; return false; }};
// Constructor implementation
inline networkServiceEngine::networkServiceEngine() : basicEngine(){}
// Destructor implementation
inline networkServiceEngine::~networkServiceEngine() {}
#endif
|