29 lines
697 B
C++
29 lines
697 B
C++
/***
|
|
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
|
|
|
File: INetAdapter.hpp
|
|
Date: 2022-12-11
|
|
Author: Reece
|
|
***/
|
|
#pragma once
|
|
|
|
namespace Aurora::IO::Net
|
|
{
|
|
struct INetAdapter
|
|
{
|
|
virtual const AuString &ToName() = 0;
|
|
virtual const AuString &ToDevice() = 0;
|
|
|
|
virtual AuUInt16 GetIndex() = 0;
|
|
|
|
virtual EIPProtocol ToFamily() = 0;
|
|
|
|
virtual IPAddress ToAddress() = 0;
|
|
virtual IPAddress ToBroadcastAddress() = 0;
|
|
virtual IPAddress ToAnycastAddress() = 0;
|
|
virtual IPAddress ToSubnetMask() = 0;
|
|
virtual IPAddress ToGateway() = 0;
|
|
|
|
virtual AuList<IPAddress> GetDNS() = 0;
|
|
};
|
|
}; |