mirror of
https://github.com/debauchee/barrier.git
synced 2025-07-19 01:18:13 +02:00
updated pluging loader for Windows #4313
This commit is contained in:
parent
de8fe7e2a5
commit
1d7eb3f5cb
12 changed files with 180 additions and 48 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue