20 lines
626 B
C++
20 lines
626 B
C++
|
/***
|
||
|
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
||
|
|
||
|
File: SocketFactory.hpp
|
||
|
Date: 2022-2-1
|
||
|
Author: Reece
|
||
|
***/
|
||
|
#pragma once
|
||
|
|
||
|
namespace Aurora::IO::Net
|
||
|
{
|
||
|
struct BasePlatformSocketFactory : public ISocketFactory
|
||
|
{
|
||
|
bool NewServer(const ServerInfo &listen, AuSPtr<IServer> &out) override;
|
||
|
bool NewTlsServer(const TLSServerInfo &keys, AuSPtr<IServer> &out) override;
|
||
|
|
||
|
bool NewClient(const ClientConfig &info, AuSPtr<ILocalClientSocket> &out) override;
|
||
|
bool NewTlsClient(const TLSClientConfig &info, AuSPtr<ILocalClientSocket> &out) override;
|
||
|
};
|
||
|
}
|