[*] Refactor: INetAdapter::GetDNS() now returns a const reference
This commit is contained in:
parent
2a2e40fc8c
commit
a300076c6d
@ -38,6 +38,6 @@ namespace Aurora::IO::Net
|
|||||||
virtual AuUInt64 GetTransmitBytesPerSec() = 0;
|
virtual AuUInt64 GetTransmitBytesPerSec() = 0;
|
||||||
virtual AuUInt64 GetReceiveBytesPerSec() = 0;
|
virtual AuUInt64 GetReceiveBytesPerSec() = 0;
|
||||||
|
|
||||||
virtual AuList<IPAddress> GetDNS() = 0;
|
virtual const AuList<IPAddress> &GetDNS() = 0;
|
||||||
};
|
};
|
||||||
};
|
};
|
@ -66,7 +66,7 @@ namespace Aurora::IO::Net
|
|||||||
return this->gateway;
|
return this->gateway;
|
||||||
}
|
}
|
||||||
|
|
||||||
AuList<IPAddress> NetAdapter::GetDNS()
|
const AuList<IPAddress> &NetAdapter::GetDNS()
|
||||||
{
|
{
|
||||||
return this->dns;
|
return this->dns;
|
||||||
}
|
}
|
||||||
|
@ -27,7 +27,7 @@ namespace Aurora::IO::Net
|
|||||||
const IPAddress &GetSubnetMask() override;
|
const IPAddress &GetSubnetMask() override;
|
||||||
const IPAddress &GetGateway() override;
|
const IPAddress &GetGateway() override;
|
||||||
|
|
||||||
AuList<IPAddress> GetDNS() override;
|
const AuList<IPAddress> &GetDNS() override;
|
||||||
|
|
||||||
AuArray<AuUInt8, 8> GetMacAddress() override;
|
AuArray<AuUInt8, 8> GetMacAddress() override;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user