Package-level declarations

Types

Link copied to clipboard

An asynchronous coroutine-based engine that can be used on JVM, Android, and Kotlin/Native.

Link copied to clipboard

A configuration for the CIO client engine.

Link copied to clipboard
Link copied to clipboard

Contains Endpoint settings.

Link copied to clipboard

Functions

Link copied to clipboard
fun CioDnsResolver(server: String, port: Int = 53, timeout: Duration = 5.seconds): suspend (hostname: String) -> List<String>

Returns a CIOEngineConfig.dnsResolver that performs hostname lookups by speaking RFC 1035 directly over UDP using ktor-network. Fully non-blocking; supports a per-query timeout.

Link copied to clipboard

Provides access to Endpoint settings.

Link copied to clipboard
fun JvmDnsResolver(dispatcher: CoroutineDispatcher = Dispatchers.IO): suspend (hostname: String) -> List<String>

Returns a CIOEngineConfig.dnsResolver backed by java.net.InetAddress.getAllByName, dispatched on dispatcher and wrapped in runInterruptible so cancellation/withTimeout actually unblocks the resolver thread.