AuroraRuntime/Source/IO/Net/AuNetSrvInterfaces.hpp
Reece 85a575eb95 [+] Network interfaces API
[+] Logger IFormatter API
[*] Clean up
2022-12-14 20:08:52 +00:00

30 lines
689 B
C++

/***
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
File: AuNetSrvInterfaces.hpp
Date: 2022-11-14
Author: Reece
***/
#pragma once
namespace Aurora::IO::Net
{
struct NetSrvInterfaces : INetSrvInterfaces
{
const AuString &GetHostname() override;
void ResetAdapterCache() override;
AuList<AuSPtr<INetAdapter>> GetAdapters() override;
bool IsSupportedOnOS();
private:
void UpdateCache();
AuThreadPrimitives::SpinLock lock;
AuString hostname;
bool bShouldUpdateCache { true };
AuList<AuSPtr<INetAdapter>> adapters;
};
}