IPAddress [constructor] | Constructors |
operator= | Assignment operators |
asV4 | Converts an IPAddress to an IPAddressV4 instance. |
asV6 | Converts an IPAddress to an IPAddressV6 instance |
bitCount | The number of bits in the address representation |
byteCount | The number of bytes in the address representation |
bytes | Returns a pointer to the to IP address bytes, in network byte order. |
empty | Returns true if address is uninitialised |
family | Return then sa_family_t of the IP Address |
getNthLSBit | Get the nth bit of the IP address (0-indexed). |
getNthLSByte | Get the nth byte of the IP address (0-indexed). |
getNthMSBit | Get the nth most significant bit of the IP address (0-indexed). |
getNthMSByte | Get the nth most significant byte of the IP address (0-indexed). |
hash | Returns a hash of the IP address. |
inSubnet | inSubnet overloads |
inSubnetWithMask | Check if an IPAddress belongs to the subnet with the given mask. |
isIPv4Mapped | Returns true if address is a v4 mapped address |
isLinkLocal | Return true if the IP address qualifies as link local |
isLinkLocalBroadcast | Return true if the IP address qualifies as broadcast. |
isLoopback | Return true if the IP address qualifies as localhost. |
isMulticast | Return true if the IP address is a multicast address. |
isNonroutable | Return true if the IP address is a special purpose address, as defined per RFC 6890 (i.e. 0.0.0.0). |
isPrivate | Return true if the IP address is private, as per RFC 1918 and RFC 4193. |
isV4 | Returns true if this represents an IPv4 address |
isV6 | Returns true if this represents an IPv6 address |
isZero | Returns true if the address is all zeros |
mask | Creates an IPAddress instance with all but most significant numBits set to 0. |
str | Provides a string representation of address. |
toFullyQualified | Return the fully qualified string representation of the address. |
toFullyQualifiedAppend | Same as toFullyQualified() but append to an output string. |
toJson | Get a json representation of the IP address. |
toSockaddrStorage | Given a sockaddr_storage struct, populate it with an appropriate value. |
version | Returns the IP address version. 0 if empty, 4 or 6 if nonempty. |
operator bool | Returns true if address is initalised |