mirror of
https://github.com/debauchee/barrier.git
synced 2024-12-21 10:01:42 +03:00
69496abbab
into the application.
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;
|
|
}
|