]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - win/inspircd_namedpipe.h
Strip SUPPORT_IP6LINKS #define
[user/henk/code/inspircd.git] / win / inspircd_namedpipe.h
index 4cd69ea0e09e5574883f7062eb6c19c5f4984fc5..98647d1b8e56296ad7dddbb06da9e6e783ed57e4 100644 (file)
@@ -1,29 +1,28 @@
-#ifndef INSPIRCD_NAMEDPIPE\r
-#define INSPIRCD_NAMEDPIPE\r
-\r
-#include "threadengine.h"\r
-#include <windows.h>\r
-\r
-class InspIRCd;\r
+#ifndef INSPIRCD_NAMEDPIPE
+#define INSPIRCD_NAMEDPIPE
+
+#include "threadengine.h"
+#include <windows.h>
+
+class InspIRCd;
 
 class IPCThread : public Thread
 {
-       BOOL Connected;\r
-       CHAR Request[MAXBUF];\r
-       DWORD BytesRead;\r
-       BOOL Success;\r
+       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