Ipconv::IPv4
Inherits Comparable < Struct < Value < Object
Represents an IPv4 address backed by a 32-bit unsigned integer (UInt32).
Constructors
Creates an IPv4 address from a 4-element UInt8 static array representing the 4 octets.
Instance methods
Adds an integer offset to this IPv4 address. Raises OverflowError on bounds overflow or underflow.
Subtracts an integer offset from this IPv4 address. Raises OverflowError on bounds underflow or overflow.
Computes the address distance between this address and other.
Raises OverflowError if self < other.
Returns the previous sequential IPv4 address. Raises OverflowError if already at 0.0.0.0.
Returns the Special purpose designation for this IPv4 address, or Special::None if public unicast.
Returns the next sequential IPv4 address. Raises OverflowError if already at 255.255.255.255.
Returns the binary dotted string representation (e.g. "11000000.10101000.00000001.00000001").