X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=win%2Finspircd_namedpipe.h;h=eef2c9df05d60bb325ac795c3848844f2cffdeb3;hb=33f4713fbdb53a22abec11bf78d192447f66b5e7;hp=4cd69ea0e09e5574883f7062eb6c19c5f4984fc5;hpb=afe99da316b6f63900df2bd8711ab515f4977f6a;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/win/inspircd_namedpipe.h b/win/inspircd_namedpipe.h index 4cd69ea0e..eef2c9df0 100644 --- a/win/inspircd_namedpipe.h +++ b/win/inspircd_namedpipe.h @@ -1,40 +1,35 @@ -#ifndef INSPIRCD_NAMEDPIPE -#define INSPIRCD_NAMEDPIPE - -#include "threadengine.h" -#include - -class InspIRCd; +#ifndef INSPIRCD_NAMEDPIPE +#define INSPIRCD_NAMEDPIPE + +#include "threadengine.h" +#include class IPCThread : public Thread { - BOOL Connected; - CHAR Request[MAXBUF]; - DWORD BytesRead; - BOOL Success; + BOOL Connected; + DWORD BytesRead; + BOOL Success; HANDLE Pipe; - InspIRCd* ServerInstance; + char status[MAXBUF]; + int result; public: - IPCThread(InspIRCd* Instance) : Thread(), ServerInstance(Instance) - { - } - - virtual ~IPCThread() - { - } - + IPCThread(); + virtual ~IPCThread(); virtual void Run(); + const char GetStatus(); + int GetResult(); + void ClearStatus(); + void SetResult(int newresult); }; class IPC { private: - InspIRCd* ServerInstance; IPCThread* thread; public: - IPC(InspIRCd* Srv); + IPC(); void Check(); ~IPC(); }; -#endif \ No newline at end of file +#endif