Packages

final class InetSocketAddress extends SocketAddress

Representation of an IP Socket Address (IP address + port number).

It can also be a pair (hostname + port number), in which case an attempt will be made to resolve the hostname. If resolution fails then the address is said to be unresolved but can still be used on some circumstances like connecting through a proxy. However, note that network channels generally do not accept unresolved socket addresses.

This class provides an immutable object used by sockets for binding, connecting, or as returned values.

The wildcard is a special local IP address. It usually means "any" and can only be used for bind operations.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. InetSocketAddress
  2. SocketAddress
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def address: Option[InetAddress]

    The socket's address.

    The socket's address.

    returns

    The address of the socket, or None if this socket address is not resolved.

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. final def equals(obj: Any): Boolean
    Definition Classes
    SocketAddress → AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  10. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. final def hashCode(): Int
    Definition Classes
    SocketAddress → AnyRef → Any
  12. def hostName(implicit trace: Trace): UIO[String]

    Gets the hostname.

    Gets the hostname.

    Note: This method may trigger a name service reverse lookup if the address was created with a literal IP address.

  13. def hostString(implicit trace: Trace): UIO[String]

    Returns the hostname, or the String form of the address if it doesn't have a hostname (it was created using a literal).

    Returns the hostname, or the String form of the address if it doesn't have a hostname (it was created using a literal).

    This has the benefit of not attempting a reverse lookup. This is an effect because the result could change if a reverse lookup is performed, for example by calling hostName.

  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. def isUnresolved: Boolean

    Checks whether the address has been resolved or not.

  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. def port: Int

    The socket's port number.

  20. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  21. final def toString(): String
    Definition Classes
    SocketAddress → AnyRef → Any
  22. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  23. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  24. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from SocketAddress

Inherited from AnyRef

Inherited from Any

Ungrouped