diff options
Diffstat (limited to 'win/inspircd_namedpipe.h')
-rw-r--r-- | win/inspircd_namedpipe.h | 40 |
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 |