grizzled.net

IPAddress

object IPAddress extends AnyRef

Companion object to IPAddress class.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. IPAddress
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. val Localhost : IPAddress

    Singleton IPAddress for the local loop address.

    Singleton IPAddress for the local loop address.

    Attributes
    final
  7. def allForName (hostname: String): List[IPAddress]

    Get a list of all IPAddress objects for a given host name, based on whatever name service is configured for the running system.

    Get a list of all IPAddress objects for a given host name, based on whatever name service is configured for the running system.

    The host name can either be a machine name, such as "www.clapper.org", or a textual representation of its IP address. If a literal IP address is supplied, only the validity of the address format is checked.

    If the host is null, then this method return an IPAddress representing an address of the loopback interfaced. See RFC 3330 section 2 and RFC 2373 section 2.5.3.

    This method corresponds to the getAllByName() method in the java.net.InetAddress class.

    hostname

    the host name

    returns

    the list of matching IPAddress objects

  8. def apply (host: String): IPAddress

    Create an IPAddress, given a host name.

    Create an IPAddress, given a host name.

    host

    the host name

    returns

    the corresponding IPAddress object.

  9. def apply (address: List[Byte]): IPAddress

    Create an IPAddress, given a list of bytes representing the address

    Create an IPAddress, given a list of bytes representing the address

    - If the array has fewer than four values, it is assumed to be an IPv4 address, and it will be padded with 0s to 4 bytes. - If the array has between four and 16 values, it is assumed to be an IPv6 address, and it will be padded with 0s to 16 bytes. - Anything else will cause an IllegalArgumentException to be thrown. Example of use:

    val ip = IPAddress(List(192, 168, 1, 100))
    
    address

    the list of address values

    returns

    the IPAddress

  10. def apply (addr: Int*): IPAddress

    Create an IPAddress, given 1 to 16 integer arguments.

    Create an IPAddress, given 1 to 16 integer arguments. The integers will be truncated to 8-bit bytes.

    - If the array has fewer than four values, it is assumed to be an IPv4 address, and it will be padded with 0s to 4 bytes. - If the array has between four and 16 values, it is assumed to be an IPv6 address, and it will be padded with 0s to 16 bytes. - Anything else will cause an IllegalArgumentException to be thrown.

    Example of use:

    val ip = IPAddress(Array(192, 168, 1, 100))
    
    addr

    the bytes (as integers) of the address

    returns

    the IPAddress

  11. def apply (addr: Array[Int]): IPAddress

    Create an IPAddress, given an array of integers representing the address.

    Create an IPAddress, given an array of integers representing the address. The array must contain between 1 and 16 integer values. The integers will be truncated to 8-bit bytes.

    - If the array has fewer than four values, it is assumed to be an IPv4 address, and it will be padded with 0s to 4 bytes. - If the array has between four and 16 values, it is assumed to be an IPv6 address, and it will be padded with 0s to 16 bytes. - Anything else will cause an IllegalArgumentException to be thrown.

    Example of use:

    val ip = IPAddress(Array(192, 168, 1, 100))
    
    addr

    the address

    returns

    the corresponding IPAddress object.

  12. def apply (addr: Array[Byte]): IPAddress

    Create an IPAddress, given an array of bytes representing the address.

    Create an IPAddress, given an array of bytes representing the address. The array must contain between 1 and 16 byte values.

    - If the array has fewer than four values, it is assumed to be an IPv4 address, and it will be padded with 0s to 4 bytes. - If the array has between four and 16 values, it is assumed to be an IPv6 address, and it will be padded with 0s to 16 bytes. - Anything else will cause an IllegalArgumentException to be thrown.

    addr

    the address

    returns

    the IPAddress

  13. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  14. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  15. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  16. def equals (arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  17. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  18. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  19. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  20. implicit def inetToIPAddress (addr: InetAddress): IPAddress

    Implicitly converts a java.net.InetAddress to an IPAddress.

    Implicitly converts a java.net.InetAddress to an IPAddress.

    addr

    the java.net.InetAddress

    returns

    the corresponding IPAddress

    Attributes
    implicit
  21. implicit def ipToInetAddress (ipAddr: IPAddress): InetAddress

    Implicitly converts an IPAddress to a java.net.InetAddress.

    Implicitly converts an IPAddress to a java.net.InetAddress.

    ipAddr

    the IPAddress

    returns

    the corresponding java.net.InetAddress

    Attributes
    implicit
  22. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  23. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  24. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  25. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  26. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  27. def toString (): String

    Definition Classes
    AnyRef → Any
  28. def wait (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  29. def wait (arg0: Long, arg1: Int): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  30. def wait (arg0: Long): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any