pub unsafe extern "C" fn otDnsAddressResponseGetHostName(
aResponse: *const otDnsAddressResponse,
aNameBuffer: *mut c_char,
aNameBufferSize: u16,
) -> otError
Expand description
Gets the full host name associated with an address resolution DNS response.
MUST only be used from otDnsAddressCallback
.
@param[in] aResponse A pointer to the response. @param[out] aNameBuffer A buffer to char array to output the full host name (MUST NOT be NULL). @param[in] aNameBufferSize The size of @p aNameBuffer.
@retval OT_ERROR_NONE The full host name was read successfully. @retval OT_ERROR_NO_BUFS The name does not fit in @p aNameBuffer.