1 #ifndef ABSTRACTTHREADEDSERVER_H
2 #define ABSTRACTTHREADEDSERVER_H
4 #include "abstractserverconnector.h"
5 #include "threadpool.h"
41 std::unique_ptr<std::thread> listenerThread;
virtual int CheckForConnection()=0
CheckForConnection should poll for a new connection.
virtual bool InitializeListener()=0
InitializeListener should initialize sockets, file descriptors etc.
virtual bool StopListening()
This method should signal the Connector to stop waiting for requests, in any way that is appropriate ...
virtual bool StartListening()
This method should signal the Connector to start waiting for requests, in any way that is appropriate...
virtual void HandleConnection(int connection)=0
HandleConnection must handle connection information for a given handle that has been returned by Chec...