2001-10-06 14:13:28 +00:00
|
|
|
#include "CTCPSocketFactory.h"
|
|
|
|
#include "CTCPSocket.h"
|
|
|
|
#include "CTCPListenSocket.h"
|
|
|
|
|
|
|
|
//
|
|
|
|
// CTCPSocketFactory
|
|
|
|
//
|
|
|
|
|
|
|
|
CTCPSocketFactory::CTCPSocketFactory()
|
|
|
|
{
|
|
|
|
// do nothing
|
|
|
|
}
|
|
|
|
|
|
|
|
CTCPSocketFactory::~CTCPSocketFactory()
|
|
|
|
{
|
|
|
|
// do nothing
|
|
|
|
}
|
|
|
|
|
2002-06-17 12:02:26 +00:00
|
|
|
IDataSocket*
|
2002-06-10 22:06:45 +00:00
|
|
|
CTCPSocketFactory::create() const
|
2001-10-06 14:13:28 +00:00
|
|
|
{
|
|
|
|
return new CTCPSocket;
|
|
|
|
}
|
|
|
|
|
2002-06-10 22:06:45 +00:00
|
|
|
IListenSocket*
|
|
|
|
CTCPSocketFactory::createListen() const
|
2001-10-06 14:13:28 +00:00
|
|
|
{
|
|
|
|
return new CTCPListenSocket;
|
|
|
|
}
|