mirror of
https://github.com/debauchee/barrier.git
synced 2024-11-24 06:15:57 +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;
|
|
}
|