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 also
io. matthewnelson. kmp. tor. runtime. core. util. is Available Sync
io. matthewnelson. kmp. tor. runtime. core. util. find Available Sync
Functions
Link copied to clipboard
expect suspend fun Port.Ephemeral.findNextAvailableAsync(limit: Int, host: LocalHost): Port.Ephemeral
actual suspend fun Port.Ephemeral.findNextAvailableAsync(limit: Int, host: LocalHost): Port.Ephemeral
actual suspend fun Port.Ephemeral.findNextAvailableAsync(limit: Int, host: LocalHost): Port.Ephemeral
Link copied to clipboard
Link copied to clipboard
Checks if the TCP port is available on LocalHost or not.