Reece Wilson
04aca5fcf2
[+] Aurora::IO::FS::DirDeleterEx [+] Aurora::IO::Compress [+] Aurora::IO::Decompress [*] Aurora::Memory::ByteBuffer zero-alloc fixes [*] Aurora::Memory::ByteBuffer linear read of begin/end should return (`const AuUInt8 *`)'s [*] Changed NT file CREATE flags [*] Fix linux regression [*] Update logger sink DirLogArchive ... [+] DirectoryLogger::uMaxLogsOrZeroBeforeDelete ... [+] DirectoryLogger::uMaxCumulativeFileSizeInMiBOrZeroBeforeDelete ... [+] DirectoryLogger::uMaxCumulativeFileSizeInMiBOrZeroBeforeCompress ... [+] DirectoryLogger::uMaxFileTimeInDeltaMSOrZeroBeforeCompress ... [+] DirectoryLogger::uMaxFileTimeInDeltaMSOrZeroBeforeDelete [*] FIX: BufferedLineReader was taking the wrong end head (prep) LZMACompressor [*] Updated build-script for LZMA (when i can be bothered to impl it) (prep) FSOverlappedUtilities (prep) FSDefaultOverlappedWorkerThread | default worker pool / apc dispatcher / auasync dispatcher concept for higher level overlapped ops (stub) [+] Aurora::IO::FS::OverlappedForceDelegatedIO (stub) [+] Aurora::IO::FS::OverlappedCompress (stub) [+] Aurora::IO::FS::OverlappedDecompress (stub) [+] Aurora::IO::FS::OverlappedWrite (stub) [+] Aurora::IO::FS::OverlappedRead (stub) [+] Aurora::IO::FS::OverlappedStat (stub) [+] Aurora::IO::FS::OverlappedCopy (stub) [+] Aurora::IO::FS::OverlappedRelink (stub) [+] Aurora::IO::FS::OverlappedTrustFile (stub) [+] Aurora::IO::FS::OverlappedBlockFile (stub) [+] Aurora::IO::FS::OverlappedUnblockFile (stub) [+] Aurora::IO::FS::OverlappedDelete
62 lines
1.3 KiB
C++
62 lines
1.3 KiB
C++
/***
|
|
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
|
|
|
File: AuNetHostname.cpp
|
|
Date: 2022-8-16
|
|
Author: Reece
|
|
***/
|
|
#include "Networking.hpp"
|
|
#include "AuNetHostname.hpp"
|
|
|
|
namespace Aurora::IO::Net
|
|
{
|
|
NetHostname::NetHostname()
|
|
{
|
|
|
|
}
|
|
|
|
NetHostname::NetHostname(const NetHostname &cpy) :
|
|
type(cpy.type),
|
|
hostname(cpy.hostname),
|
|
address(cpy.address)
|
|
{
|
|
|
|
}
|
|
|
|
NetHostname::NetHostname(const AuString &hostname) :
|
|
type(EHostnameType::eHostByDns),
|
|
hostname(hostname),
|
|
address()
|
|
{
|
|
}
|
|
|
|
NetHostname::NetHostname(const IPAddress &ipAddress) :
|
|
type(EHostnameType::eHostByIp),
|
|
hostname(),
|
|
address(ipAddress)
|
|
{
|
|
|
|
}
|
|
|
|
bool NetHostname::operator ==(const NetHostname &other) const
|
|
{
|
|
return this->type == other.type &&
|
|
this->hostname == other.hostname &&
|
|
this->address == other.address;
|
|
}
|
|
|
|
NetHostname &NetHostname::operator =(const NetHostname &other)
|
|
{
|
|
this->type = other.type;
|
|
this->hostname = other.hostname;
|
|
this->address = other.address;
|
|
return *this;
|
|
}
|
|
|
|
const AuUInt NetHostname::HashCode() const
|
|
{
|
|
return AuHashCode(this->type) ^
|
|
AuHashCode(this->hostname) ^
|
|
AuHashCode(this->address);
|
|
}
|
|
} |