Class/Object

zio.nio

InetSocketAddress

Related Docs: object InetSocketAddress | package nio

Permalink

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. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def address: Option[InetAddress]

    Permalink

    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

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. final def equals(obj: Any): Boolean

    Permalink
    Definition Classes
    SocketAddress → AnyRef → Any
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. final def hashCode(): Int

    Permalink
    Definition Classes
    SocketAddress → AnyRef → Any
  12. def hostName(implicit trace: ZTraceElement): UIO[String]

    Permalink

    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: ZTraceElement): UIO[String]

    Permalink

    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

    Permalink
    Definition Classes
    Any
  15. def isUnresolved: Boolean

    Permalink

    Checks whether the address has been resolved or not.

  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. def port: Int

    Permalink

    The socket's port number.

  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  21. final def toString(): String

    Permalink
    Definition Classes
    SocketAddress → AnyRef → Any
  22. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from SocketAddress

Inherited from AnyRef

Inherited from Any

Ungrouped