openthread_sys

Function otPlatDnsUpstreamQueryDone

Source
pub unsafe extern "C" fn otPlatDnsUpstreamQueryDone(
    aInstance: *mut otInstance,
    aTxn: *mut otPlatDnsUpstreamQuery,
    aResponse: *mut otMessage,
)
Expand description

The platform calls this function to finish DNS query.

The transaction will be released, so the platform must not call on the same transaction twice. This function passes the ownership of aResponse to OpenThread stack.

Platform can pass a nullptr to close a transaction without a response.

@param[in] aInstance The OpenThread instance structure. @param[in] aTxn A pointer to the opaque DNS query transaction object. @param[in] aResponse A message buffer of the DNS response payload or nullptr to close a transaction without a response.