X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=win%2Finspircd_namedpipe.h;h=98647d1b8e56296ad7dddbb06da9e6e783ed57e4;hb=819147178db00008a215670992d0f532dd57f9e5;hp=4cd69ea0e09e5574883f7062eb6c19c5f4984fc5;hpb=afe99da316b6f63900df2bd8711ab515f4977f6a;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/win/inspircd_namedpipe.h b/win/inspircd_namedpipe.h index 4cd69ea0e..98647d1b8 100644 --- a/win/inspircd_namedpipe.h +++ b/win/inspircd_namedpipe.h @@ -1,29 +1,28 @@ -#ifndef INSPIRCD_NAMEDPIPE -#define INSPIRCD_NAMEDPIPE - -#include "threadengine.h" -#include - -class InspIRCd; +#ifndef INSPIRCD_NAMEDPIPE +#define INSPIRCD_NAMEDPIPE + +#include "threadengine.h" +#include + +class InspIRCd; 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(InspIRCd* Instance); + virtual ~IPCThread(); virtual void Run(); + const char GetStatus(); + int GetResult(); + void ClearStatus(); + void SetResult(int newresult); }; class IPC