mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-10 08:21:40 +08:00
fully replaced gui/daemon named pipes ipc with tcp ipc.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user