mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-09 05:13:36 +08:00
initial revision of synergy. currently semi-supports X windows
on unix, but client screens don't simulate events other than mouse move. also not supporting clipboard at all yet and the main app is just a temporary framework to test with. must clean up protocol and communication.
This commit is contained in:
31
CSocketFactory.cpp
Normal file
31
CSocketFactory.cpp
Normal file
@@ -0,0 +1,31 @@
|
||||
#include "CSocketFactory.h"
|
||||
#include "BasicTypes.h"
|
||||
#include <assert.h>
|
||||
|
||||
//
|
||||
// CSocketFactory
|
||||
//
|
||||
|
||||
CSocketFactory* CSocketFactory::s_instance = NULL;
|
||||
|
||||
CSocketFactory::CSocketFactory()
|
||||
{
|
||||
// do nothing
|
||||
}
|
||||
|
||||
CSocketFactory::~CSocketFactory()
|
||||
{
|
||||
// do nothing
|
||||
}
|
||||
|
||||
void CSocketFactory::setInstance(CSocketFactory* factory)
|
||||
{
|
||||
delete s_instance;
|
||||
s_instance = factory;
|
||||
}
|
||||
|
||||
CSocketFactory* CSocketFactory::getInstance()
|
||||
{
|
||||
assert(s_instance != NULL);
|
||||
return s_instance;
|
||||
}
|
||||
Reference in New Issue
Block a user