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
|
|
|
|
}
|
|
|
|
|
2001-10-14 16:58:01 +00:00
|
|
|
ISocket* CTCPSocketFactory::create() const
|
2001-10-06 14:13:28 +00:00
|
|
|
{
|
|
|
|
return new CTCPSocket;
|
|
|
|
}
|
|
|
|
|
2001-10-14 16:58:01 +00:00
|
|
|
IListenSocket* CTCPSocketFactory::createListen() const
|
2001-10-06 14:13:28 +00:00
|
|
|
{
|
|
|
|
return new CTCPListenSocket;
|
|
|
|
}
|