fully replaced gui/daemon named pipes ipc with tcp ipc.

This commit is contained in:
Nick Bolton
2012-07-03 14:15:05 +00:00
parent 79d73bd163
commit 7d5fbde71d
25 changed files with 315 additions and 399 deletions

View File

@@ -25,6 +25,7 @@
#include "XArchWindows.h"
#include "CApp.h"
#include "CArgsBase.h"
#include "CIpcLogOutputter.h"
#include <Tlhelp32.h>
#include <UserEnv.h>
@@ -42,7 +43,8 @@ CMSWindowsRelauncher::CMSWindowsRelauncher(bool autoDetectCommand) :
m_running(true),
m_commandChanged(false),
m_stdOutWrite(NULL),
m_stdOutRead(NULL)
m_stdOutRead(NULL),
m_ipcLogOutputter(nullptr)
{
}
@@ -403,7 +405,7 @@ CMSWindowsRelauncher::outputLoop(void*)
else {
// send process output over IPC to GUI.
buffer[bytesRead] = '\0';
ARCH->ipcLog().writeLog(kINFO, buffer);
m_ipcLogOutputter->write(kINFO, buffer);
}
}

View File

@@ -23,6 +23,7 @@
#include <list>
class CThread;
class CIpcLogOutputter;
class CMSWindowsRelauncher {
public:
@@ -42,6 +43,9 @@ private:
void sendIpcMessage(int type, const char* data);
void shutdownProcess(const PROCESS_INFORMATION& pi, int timeout);
public:
CIpcLogOutputter* m_ipcLogOutputter;
private:
CThread* m_thread;
bool m_autoDetectCommand;

View File

@@ -137,6 +137,7 @@ set(inc
../common
../mt
../synergy
../ipc
)
if (UNIX)
@@ -191,5 +192,5 @@ if (WIN32)
endif()
if (UNIX)
target_link_libraries(platform synergy ${libs})
target_link_libraries(platform ipc synergy ${libs})
endif()