Ephemeral
A Port with a more constrained range of Ephemeral.MIN to Ephemeral.MIN (inclusive), in accordance with that specified in RFC 6056 section 3.2
e.g.
443.toPortEphemeralOrNull()
"443".toPortEphemeralOrNull()
"http://example.com:8080".toPortEphemeral()
"http://[::1]:8181".toPortEphemeral()
Content copied to clipboard
See isAvailableSync See findNextAvailableSync
See also
Functions
Link copied to clipboard
expect suspend fun Port.Ephemeral.findNextAvailableAsync(limit: Int, host: LocalHost): Port.Ephemeral
Finds an available TCP port on LocalHost starting with the current Port.Ephemeral value and iterating up limit times.
actual suspend fun Port.Ephemeral.findNextAvailableAsync(limit: Int, host: LocalHost): Port.Ephemeral
Finds an available TCP port on LocalHost starting with the current Port.Ephemeral value and iterating up limit times.
actual suspend fun Port.Ephemeral.findNextAvailableAsync(limit: Int, host: LocalHost): Port.Ephemeral
Finds an available TCP port on LocalHost starting with the current Port.Ephemeral value and iterating up limit times.
Link copied to clipboard
Finds an available TCP port on LocalHost starting with the current Port.Ephemeral value and iterating up limit times.
Link copied to clipboard
Checks if the TCP port is available on LocalHost or not.