IpAddress

object IpAddress extends IpAddressCompanionPlatform
Companion
class
trait IpAddressCompanionPlatform
class Object
trait Matchable
class Any

Value members

Concrete methods

def fromBytes(bytes: Array[Byte]): Option[IpAddress]

Constructs an IP address from either a 4-element byte array or a 16-element byte array. Any other size array results in a None.

Constructs an IP address from either a 4-element byte array or a 16-element byte array. Any other size array results in a None.

def fromString(value: String): Option[IpAddress]

Parses an IP address from a string, either in dotted decimal notation or in RFC4291 notation.

Parses an IP address from a string, either in dotted decimal notation or in RFC4291 notation.

Inherited methods

def fromInetAddress(address: InetAddress): IpAddress

Converts the supplied InetAddress to an IpAddress.

Converts the supplied InetAddress to an IpAddress.

Inherited from
IpAddressCompanionPlatform
def loopback[F[_]](implicit F: Dns[F]): F[IpAddress]

Gets an IP address repesenting the loopback interface.

Gets an IP address repesenting the loopback interface.

Inherited from
IpAddressCompanionPlatform

Implicits

Implicits

implicit
def order[A <: IpAddress]: Order[A]
implicit
def ordering[A <: IpAddress]: Ordering[A]