flix

0.79.0

Ipv4Addr

Type of IPv4 addresses, and its functions.

enum Ipv4Addr with EqSource
case Ipv4Addr(Int8, Int8, Int8, Int8)

Type of IPv4 addresses.

Instances

Eq, Formattable, FromString, ToString

Definitions

def fromString(s: String): Option[Ipv4Addr]§ Source

Attempts to parse the given String s as an Ipv4Addr.

Returns Some(addr) if the string was successfully parsed. Otherwise returns None.

def localhost(): Ipv4Addr§ Source

Returns the Ipv4 localhost address.

def toIpv6(x: Ipv4Addr): Ipv6Addr§ Source

Convert x from Ipv4 to Ipv6.

def toString(x: Ipv4Addr): String§ Source

Returns a String representation of the given Ipv4Addr x.