mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-07 12:25:07 +08:00
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.
30 lines
466 B
C++
30 lines
466 B
C++
#ifndef CSOCKETFACTORY_H
|
|
#define CSOCKETFACTORY_H
|
|
|
|
#define CSOCKETFACTORY CSocketFactory::getInstance()
|
|
|
|
class ISocket;
|
|
|
|
class CSocketFactory {
|
|
public:
|
|
CSocketFactory();
|
|
virtual ~CSocketFactory();
|
|
|
|
// manipulators
|
|
|
|
static void setInstance(CSocketFactory*);
|
|
|
|
// accessors
|
|
|
|
// create a socket
|
|
virtual ISocket* create() const = 0;
|
|
|
|
// get the global instance
|
|
static CSocketFactory* getInstance();
|
|
|
|
private:
|
|
static CSocketFactory* s_instance;
|
|
};
|
|
|
|
#endif
|