X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=include%2Fnntp%2Fnntplistener.h;h=4e4d1ca4a8d8ea41169aec656894050c2503cc23;hb=3dc3ac3cfe10b7196a7977e9c041c29fa141c35e;hp=53b5d869f971b1eca919c4e43d4dabe454eedf70;hpb=964f55fd550fc711c0320ce6a24ad713040695d0;p=fms.git diff --git a/include/nntp/nntplistener.h b/include/nntp/nntplistener.h index 53b5d86..4e4d1ca 100644 --- a/include/nntp/nntplistener.h +++ b/include/nntp/nntplistener.h @@ -3,30 +3,34 @@ #include #include -#include -#include -#include -#include +//#include +//#include +//#include +//#include +#include "../pthreadwrapper/runnable.h" +#include "../pthreadwrapper/threadedexecutor.h" #include "../socketdefines.h" /** \brief Listens for NNTP connections */ -class NNTPListener:public ZThread::Runnable +class NNTPListener:public PThread::Runnable { public: NNTPListener(); ~NNTPListener(); - void run(); + void Run(); void StartListen(); private: unsigned short m_listenport; std::vector m_listensockets; - ZThread::ThreadedExecutor m_connections; + //ZThread::ThreadedExecutor m_connections; + //std::vector m_connectionthreads; + PThread::ThreadedExecutor m_connections; };