mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-10 13:45:49 +08:00
Checkpoint. Code does not run. Still converting over to new
event loop model. Streams, stream filters, and sockets are converted. Client proxies are almost converted. CServer is in progress. Removed all HTTP code. Haven't converted the necessary win32 arch stuff.
This commit is contained in:
@@ -13,27 +13,24 @@
|
||||
*/
|
||||
|
||||
#include "CClientProxy.h"
|
||||
#include "IInputStream.h"
|
||||
#include "IOutputStream.h"
|
||||
#include "IStream.h"
|
||||
|
||||
//
|
||||
// CClientProxy
|
||||
//
|
||||
|
||||
CClientProxy::CClientProxy(IServer* server, const CString& name,
|
||||
IInputStream* input, IOutputStream* output) :
|
||||
CClientProxy::CClientProxy(IServer* server,
|
||||
const CString& name, IStream* stream) :
|
||||
m_server(server),
|
||||
m_name(name),
|
||||
m_input(input),
|
||||
m_output(output)
|
||||
m_stream(stream)
|
||||
{
|
||||
// do nothing
|
||||
}
|
||||
|
||||
CClientProxy::~CClientProxy()
|
||||
{
|
||||
delete m_output;
|
||||
delete m_input;
|
||||
delete m_stream;
|
||||
}
|
||||
|
||||
IServer*
|
||||
@@ -42,16 +39,10 @@ CClientProxy::getServer() const
|
||||
return m_server;
|
||||
}
|
||||
|
||||
IInputStream*
|
||||
CClientProxy::getInputStream() const
|
||||
IStream*
|
||||
CClientProxy::getStream() const
|
||||
{
|
||||
return m_input;
|
||||
}
|
||||
|
||||
IOutputStream*
|
||||
CClientProxy::getOutputStream() const
|
||||
{
|
||||
return m_output;
|
||||
return m_stream;
|
||||
}
|
||||
|
||||
CString
|
||||
|
||||
Reference in New Issue
Block a user