summaryrefslogtreecommitdiff
path: root/win
diff options
context:
space:
mode:
Diffstat (limited to 'win')
-rw-r--r--win/inspircd_win32wrapper.cpp9
-rw-r--r--win/inspircd_win32wrapper.h8
2 files changed, 7 insertions, 10 deletions
diff --git a/win/inspircd_win32wrapper.cpp b/win/inspircd_win32wrapper.cpp
index 37d071459..0e7f0172e 100644
--- a/win/inspircd_win32wrapper.cpp
+++ b/win/inspircd_win32wrapper.cpp
@@ -366,7 +366,7 @@ int getopt_long_only(int ___argc, char *const *___argv, const char *__shortopts,
#define IPC_MESSAGE_DIE 2
#define IPC_MESSAGE_RESTART 3
-void InitIPC()
+void IPC::IPC(InspIRCd* Srv) : Instance(Srv)
{
static DWORD buflen = 1024;
static const char * pipename = "\\\\.\\mailslot\\Inspircd";
@@ -375,7 +375,7 @@ void InitIPC()
printf("IPC Pipe could not be created. Are you sure you didn't start InspIRCd twice?\n");
}
-void CheckIPC(InspIRCd * Instance)
+void IPC::Check()
{
if (hIPCPipe == INVALID_HANDLE_VALUE)
return;
@@ -407,7 +407,7 @@ void CheckIPC(InspIRCd * Instance)
}
}
-void CloseIPC()
+void IPC::~IPC()
{
CloseHandle(hIPCPipe);
}
@@ -643,6 +643,3 @@ bool ValidateWindowsDnsServer(ServerConfig* conf, const char* tag, const char* v
}
return true;
}
-
-#else
-
diff --git a/win/inspircd_win32wrapper.h b/win/inspircd_win32wrapper.h
index dcb0b1d39..3f412db55 100644
--- a/win/inspircd_win32wrapper.h
+++ b/win/inspircd_win32wrapper.h
@@ -174,8 +174,8 @@ void ::operator delete(void * ptr);
/* IPC Handlers */
class InspIRCd;
-class ConfigReader;
class ValueItem;
+class ServerConfig;
class IPC
{
@@ -183,9 +183,9 @@ class IPC
InspIRCd* Instance;
HANDLE hIPCPipe;
public:
- void IPC();
- void CheckIPC(InspIRCd* Srv);
- void ~IPC();
+ IPC(InspIRCd* Srv);
+ void Check();
+ ~IPC();
};
/* Look up the nameserver in use from the registry on windows */