resolve

abstract suspend fun resolve(uri: CoapUri): Endpoint(source)

The endpoint for uri's host and port.

Throws

with CoapException.Reason.UNRESOLVED_HOST when the lookup fails at runtime.

when this resolver cannot resolve such a host at all.