flix

0.61.0

Ipv4Addr

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

Represents a V4 Ip Address.

Instances

instance Eq[Ipv4Addr]Source
instance FromString[Ipv4Addr]Source
instance ToString[Ipv4Addr]Source

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.