mirror of
https://github.com/debauchee/barrier.git
synced 2026-07-08 21:06:51 +08:00
updated pluging loader for Windows #4313
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
|
||||
#include "client/Client.h"
|
||||
|
||||
#include "../plugin/ns/SecureSocket.h"
|
||||
#include "client/ServerProxy.h"
|
||||
#include "synergy/Screen.h"
|
||||
#include "synergy/Clipboard.h"
|
||||
@@ -45,6 +46,12 @@
|
||||
#include <sstream>
|
||||
#include <fstream>
|
||||
|
||||
#if defined _WIN32
|
||||
static const char s_networkSecurity[] = { "ns" };
|
||||
#else
|
||||
static const char s_networkSecurity[] = { "libns" };
|
||||
#endif
|
||||
|
||||
//
|
||||
// Client
|
||||
//
|
||||
@@ -75,7 +82,8 @@ Client::Client(
|
||||
m_crypto(crypto),
|
||||
m_sendFileThread(NULL),
|
||||
m_writeToDropDirThread(NULL),
|
||||
m_enableDragDrop(enableDragDrop)
|
||||
m_enableDragDrop(enableDragDrop),
|
||||
m_secureSocket(NULL)
|
||||
{
|
||||
assert(m_socketFactory != NULL);
|
||||
assert(m_screen != NULL);
|
||||
@@ -100,6 +108,11 @@ Client::Client(
|
||||
new TMethodEventJob<Client>(this,
|
||||
&Client::handleFileRecieveCompleted));
|
||||
}
|
||||
|
||||
if (ARCH->plugin().exists(s_networkSecurity)) {
|
||||
m_secureSocket = static_cast<SecureSocket*>(
|
||||
ARCH->plugin().invoke("ns", "getSecureSocket", NULL));
|
||||
}
|
||||
}
|
||||
|
||||
Client::~Client()
|
||||
|
||||
@@ -37,6 +37,7 @@ class IStreamFilterFactory;
|
||||
class IEventQueue;
|
||||
class CryptoStream;
|
||||
class Thread;
|
||||
class SecureSocket;
|
||||
|
||||
//! Synergy client
|
||||
/*!
|
||||
@@ -233,4 +234,5 @@ private:
|
||||
Thread* m_sendFileThread;
|
||||
Thread* m_writeToDropDirThread;
|
||||
bool m_enableDragDrop;
|
||||
SecureSocket* m_secureSocket;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user