ServerAddress

internal data class ServerAddress(val host: String, val port: Int) : Comparable<ServerAddress>

One server a connection may be opened to: the host as it was written, and the port that goes with it.

The host stays as written rather than resolved. It is what a certificate is matched against under verify-full, and a name can resolve to several addresses, each of which is tried in turn.

Constructors

Link copied to clipboard
constructor(host: String, port: Int)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
class Entry(val text: String, val host: String, val port: Int?)

One server as a list writes it: the host, and the port where one is stated.

Properties

Link copied to clipboard
Link copied to clipboard
val port: Int

Functions

Link copied to clipboard
open operator override fun compareTo(other: ServerAddress): Int
Link copied to clipboard
open override fun toString(): String

host:port, with an IPv6 address in brackets so that the colon before the port is told from its own.