resolveDomain

expect fun resolveDomain(domainName: String, port: Int? = null): List<ByteArray>
actual fun resolveDomain(domainName: String, port: Int?): List<ByteArray>

convert a domain name into an address

convert a domain name into an address

Return

The resolved name. The type of the resolution e.g. ipv4, ipv6, tor, is implied by its length.

Return

The resolved name. The type of the resolution e.g. ipv4, ipv6, tor, is implied by its length.

Throws

if the host cannot be resolved

actual fun resolveDomain(domainName: String, port: Int?): List<ByteArray>