10class NetworkIdentifier {
13 enum class Type :
int {
27 ::NetworkIdentifier::Type mType;
31 LLNDAPI std::string getIPAndPort()
const;
33 [[nodiscard]]
bool operator==(::NetworkIdentifier
const& other)
const {
return equalsTypeData(other); }
36 NetworkIdentifier(::NetworkIdentifier
const& other) =
default;
37 NetworkIdentifier() =
default;
42 MCAPI
bool equalsTypeData(::NetworkIdentifier
const& other)
const;
44 MCAPI ::std::string getAddress()
const;
46 MCAPI uint64 getHash()
const;
48 MCAPI
bool isUnassigned()
const;
50 MCAPI ::std::string toString()
const;
62 MCAPI static ::NetworkIdentifier& INVALID_ID();