mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-08 12:53:53 +08:00
Reorganized source tree. Moved client.cpp into cmd/synergy as
synergy.cpp and server.cpp into cmd/synergyd as synergyd.cpp. Moved and renamed related files. Moved remaining source files into lib/.... Modified and added makefiles as appropriate. Result is that library files are under lib with each library in its own directory and program files are under cmd with each command in its own directory.
This commit is contained in:
47
lib/server/CClientProxy.cpp
Normal file
47
lib/server/CClientProxy.cpp
Normal file
@@ -0,0 +1,47 @@
|
||||
#include "CClientProxy.h"
|
||||
#include "IInputStream.h"
|
||||
#include "IOutputStream.h"
|
||||
|
||||
//
|
||||
// CClientProxy
|
||||
//
|
||||
|
||||
CClientProxy::CClientProxy(IServer* server, const CString& name,
|
||||
IInputStream* input, IOutputStream* output) :
|
||||
m_server(server),
|
||||
m_name(name),
|
||||
m_input(input),
|
||||
m_output(output)
|
||||
{
|
||||
// do nothing
|
||||
}
|
||||
|
||||
CClientProxy::~CClientProxy()
|
||||
{
|
||||
delete m_output;
|
||||
delete m_input;
|
||||
}
|
||||
|
||||
IServer*
|
||||
CClientProxy::getServer() const
|
||||
{
|
||||
return m_server;
|
||||
}
|
||||
|
||||
IInputStream*
|
||||
CClientProxy::getInputStream() const
|
||||
{
|
||||
return m_input;
|
||||
}
|
||||
|
||||
IOutputStream*
|
||||
CClientProxy::getOutputStream() const
|
||||
{
|
||||
return m_output;
|
||||
}
|
||||
|
||||
CString
|
||||
CClientProxy::getName() const
|
||||
{
|
||||
return m_name;
|
||||
}
|
||||
Reference in New Issue
Block a user