Ipv6Addr
case Ipv6Addr(Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8)
Represents a V6 Ip Address.
Definitions
def cleanIpv6String(s: String): List[String]
SourceParses an Ipv6 hostname String s
into a List[String].
Each element of the List is a group of the Ip Address.
def fromString(s: String): Option[Ipv6Addr]
SourceAttempts to parse the given String s
as an Ipv6Addr
.
Returns Some(addr)
if the string was successfully parsed. Otherwise returns None
.
def localhost(): Ipv6Addr
SourceReturns the Ipv6 localhost address.
def toString(x: Ipv6Addr): String
SourceReturns a String representation of the given Ipv6Addr x
.
def tryToIpv4(x: Ipv6Addr): Option[Ipv4Addr]
SourceAttempt to convert x
from Ipv6 to Ipv4.