22 lines
788 B
C++
22 lines
788 B
C++
|
/***
|
||
|
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
||
|
|
||
|
File: BaseNetworkInterface.hpp
|
||
|
Date: 2022-2-1
|
||
|
Author: Reece
|
||
|
***/
|
||
|
#pragma once
|
||
|
|
||
|
namespace Aurora::IO::Net
|
||
|
{
|
||
|
struct BaseNetworkInterface : INetworkInterface
|
||
|
{
|
||
|
AuList<IPEndpoint> ResolveSocketSync(const SocketHostName &hostname, AuUInt16 port) override;
|
||
|
AuList<IPEndpoint> ResolveServiceSync(const ServiceEndpoint &service) override;
|
||
|
|
||
|
bool SendDatagramAsync(const ConnectionEndpoint &endpoint, const Memory::MemoryViewRead &memory) override;
|
||
|
bool SendDatagramAsync(const AuSPtr<IServer> &datagramServer, const ConnectionEndpoint &endpoint, const Memory::MemoryViewRead &memory) override;
|
||
|
|
||
|
AuSPtr<ISocketFactory> GetSocketFactory() override;
|
||
|
};
|
||
|
}
|