now using class factories to move some decisions from the libraries

into the application.
This commit is contained in:
crs
2002-07-30 18:31:00 +00:00
parent fee4095624
commit 69496abbab
20 changed files with 370 additions and 84 deletions

View File

@@ -0,0 +1,29 @@
#include "CTCPSocketFactory.h"
#include "CTCPSocket.h"
#include "CTCPListenSocket.h"
//
// CTCPSocketFactory
//
CTCPSocketFactory::CTCPSocketFactory()
{
// do nothing
}
CTCPSocketFactory::~CTCPSocketFactory()
{
// do nothing
}
IDataSocket*
CTCPSocketFactory::create() const
{
return new CTCPSocket;
}
IListenSocket*
CTCPSocketFactory::createListen() const
{
return new CTCPListenSocket;
}