InetAddress

abstract class InetAddress

minimum implementation to support usage in lucene

Inheritors

Constructors

Link copied to clipboard
constructor()

Constructor for the Socket.accept() method. This creates an empty InetAddress, which is filled in by the accept() method. This InetAddress, however, is not put in the address cache, since it is not created by name.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(obj: Any?): Boolean

Compares this object against the specified object. The result is true if and only if the argument is not null and it represents the same IP address as this object.

Link copied to clipboard
abstract fun getAddress(): ByteArray

Returns the raw IP address of this InetAddress object. The result is in network byte order: the highest order byte of the address is in getAddress()[0].

Link copied to clipboard
abstract fun getHostAddress(): String

Returns the IP address string in textual presentation.

Link copied to clipboard
open override fun hashCode(): Int

Returns a hashcode for this IP address.

Link copied to clipboard
Link copied to clipboard
open override fun toString(): String

Converts this IP address to a String. The string returned is of the form: hostname / literal IP address.