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
explicit NetworkIdentifier(::sockaddr_in6
const& address);
44 MCAPI
explicit NetworkIdentifier(::sockaddr_in
const& address);
50 MCAPI
bool equalsTypeData(::NetworkIdentifier
const& other)
const;
52 MCAPI ::std::string getAddress()
const;
54 MCAPI ::std::string getCorrelationId()
const;
56 MCAPI uint64 getHash()
const;
59 MCAPI ::std::string getNetherNetIDAsString()
const;
61 MCFOLD ::NetherNet::NetworkID
const& getNetherNetId()
const;
64 MCAPI ::std::string getNetherNetOrRakNetIDAsString()
const;
66 MCFOLD ::RakNet::RakNetGUID
const& getRakNetGUID()
const;
68 MCFOLD ::sockaddr_in
const& getSocketAddress()
const;
70 MCFOLD ::sockaddr_in6
const& getSocketAddress6()
const;
72 MCFOLD ::NetworkIdentifier::Type getType()
const;
75 MCAPI
bool isType(::NetworkIdentifier::Type type)
const;
78 MCAPI
bool isUnassigned()
const;
80 MCAPI ::std::string toString()
const;
96 MCAPI static ::NetworkIdentifier& INVALID_ID();
104 MCAPI
void* $ctor(::sockaddr_in6
const& address);
106 MCAPI
void* $ctor(::sockaddr_in
const& address);