X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=include%2Fnntp%2Fnntpconnection.h;h=15c208017e33ce64137068ebe51a6778233a4304;hb=4e96d123460d6363cf7274e36bd9357768eb86ad;hp=e31fd1bce282e5d9aa17ca09a1ee1a5a8131be5c;hpb=0574a75431d98ed64c5cc6291600bb3759b399a6;p=fms.git diff --git a/include/nntp/nntpconnection.h b/include/nntp/nntpconnection.h index e31fd1b..15c2080 100644 --- a/include/nntp/nntpconnection.h +++ b/include/nntp/nntpconnection.h @@ -1,6 +1,7 @@ #ifndef _nntpconnection_ #define _nntpconnection_ +#include "../threadwrapper/cancelablerunnable.h" #include "../socketdefines.h" #include "../ilogger.h" #include "../message.h" @@ -8,8 +9,6 @@ #include #include -//#include -#include "../pthreadwrapper/runnable.h" #ifdef _WIN32 @@ -22,7 +21,7 @@ #include #endif -class NNTPConnection:public PThread::Runnable,public ILogger +class NNTPConnection:public CancelableRunnable,public ILogger { public: NNTPConnection(SOCKET sock); @@ -31,7 +30,7 @@ public: void Disconnect(); const bool Disconnected() { return m_socket==INVALID_SOCKET; } - void Run(); + void run(); private: @@ -87,6 +86,9 @@ private: const bool HandlePostCommand(const NNTPCommand &command); const bool HandleOverCommand(const NNTPCommand &command); const bool HandleAuthInfoCommand(const NNTPCommand &command); + const bool HandleGetTrustCommand(const NNTPCommand &command); + const bool HandleSetTrustCommand(const NNTPCommand &command); + const bool HandleGetTrustListCommand(const NNTPCommand &command); SOCKET m_socket; ClientStatus m_status;