//okhttp/okhttp3/AsyncDns/Callback
Callback¶
[jvm]\ interface Callback
Callback to receive results from the DNS Queries.
Functions¶
Name | Summary |
---|---|
onFailure | [jvm] abstract fun onFailure(hostname: String, e: IOException) Returns an error for the DNS query. |
onResponse | [jvm] abstract fun onResponse(hostname: String, addresses: List<InetAddress>) Return addresses for a dns query for a single class of IPv4 (A) or IPv6 (AAAA). May be an empty list indicating that the host is unreachable. |