barrier/synergy/CTCPSocketFactory.cpp

30 lines
394 B
C++

#include "CTCPSocketFactory.h"
#include "CTCPSocket.h"
#include "CTCPListenSocket.h"
//
// CTCPSocketFactory
//
CTCPSocketFactory::CTCPSocketFactory()
{
// do nothing
}
CTCPSocketFactory::~CTCPSocketFactory()
{
// do nothing
}
ISocket*
CTCPSocketFactory::create() const
{
return new CTCPSocket;
}
IListenSocket*
CTCPSocketFactory::createListen() const
{
return new CTCPListenSocket;
}