summaryrefslogtreecommitdiff
path: root/win/inspircd_namedpipe.h
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-06-15 16:21:09 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-06-15 16:21:09 +0000
commitafe99da316b6f63900df2bd8711ab515f4977f6a (patch)
tree9ebec758f4498eb6a29131ac48f98ba97c1e8ac5 /win/inspircd_namedpipe.h
parentd15b915ef5e5740194716ab3685dfe6c8b5f79f5 (diff)
Base stuff for named pipe IPC
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9910 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'win/inspircd_namedpipe.h')
-rw-r--r--win/inspircd_namedpipe.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/win/inspircd_namedpipe.h b/win/inspircd_namedpipe.h
new file mode 100644
index 000000000..4cd69ea0e
--- /dev/null
+++ b/win/inspircd_namedpipe.h
@@ -0,0 +1,40 @@
+#ifndef INSPIRCD_NAMEDPIPE
+#define INSPIRCD_NAMEDPIPE
+
+#include "threadengine.h"
+#include <windows.h>
+
+class InspIRCd;
+
+class IPCThread : public Thread
+{
+ BOOL Connected;
+ CHAR Request[MAXBUF];
+ DWORD BytesRead;
+ BOOL Success;
+ HANDLE Pipe;
+ InspIRCd* ServerInstance;
+ public:
+ IPCThread(InspIRCd* Instance) : Thread(), ServerInstance(Instance)
+ {
+ }
+
+ virtual ~IPCThread()
+ {
+ }
+
+ virtual void Run();
+};
+
+class IPC
+{
+ private:
+ InspIRCd* ServerInstance;
+ IPCThread* thread;
+ public:
+ IPC(InspIRCd* Srv);
+ void Check();
+ ~IPC();
+};
+
+#endif \ No newline at end of file