mirror of
https://github.com/debauchee/barrier.git
synced 2024-12-19 08:51:41 +03:00
57fb87ad10
now derive from ISocket.
30 lines
398 B
C++
30 lines
398 B
C++
#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;
|
|
}
|