Companion

Functions

Link copied to clipboard
@JvmStatic
@JvmName(name = "get")
fun String.toIPSocketAddress(): IPSocketAddress

Parses a String for its IPv4 or IPv6 address and port.

Link copied to clipboard
@JvmStatic
@JvmName(name = "getOrNull")
fun String.toIPSocketAddressOrNull(): IPSocketAddress?

Parses a String for its IPv4 or IPv6 address and port.