Skip to content

QuantumGate::IPAddress

Karel Donk edited this page Dec 23, 2021 · 10 revisions

QuantumGate::IPAddress is a class that represents an IP address.

Member functions

Name Description
Constructor Constructs an IPAddress object.
operator= Assigns a value from another IPAddress.
GetBinary Returns the IP address in binary form.
GetFamily Returns the address family.
GetString Returns the IP address in string format.
GetHash Returns a hash of the IP address.
operator==, operator!= Compares the IPAddress to another.
operator<< Outputs the IPAddress to the stream.
TryParse Attempts to parse an IP address from a string.
TryParseMask Attempts to parse an IP address mask from a string.
CreateMask Creates an IP address mask given the CIDR leading bits.
AnyIPv4 Returns the IPv4 any address.
AnyIPv6 Returns the IPv6 any address.
LoopbackIPv4 Returns the IPv4 loopback address.
LoopbackIPv6 Returns the IPv6 loopback address.
IsMask Checks whether the IP address is a mask.
IsClassA Checks whether the IP address is a class A address.
IsClassB Checks whether the IP address is a class B address.
IsClassC Checks whether the IP address is a class C address.
IsClassD Checks whether the IP address is a class D address.
IsClassE Checks whether the IP address is a class E address.
IsLocal Checks whether the IP address is in a local address space.
IsMulticast Checks whether the IP address is in a multicast address space.
IsPublic Checks whether the IP address is in the public address space.
IsReserved Checks whether the IP address is in a reserved address space.
Clone this wiki locally