# otPlatDnssdTxtResult Struct Reference

# otPlatDnssdTxtResult


`#include <openthread/platform/dnssd.h>`

Represents a TXT resolver result.

## Summary

| ### Public attributes ||
|---|---|
| `https://openthread.io/reference/struct/ot-plat-dnssd-txt-result#structot_plat_dnssd_txt_result_1a415c85fe7f2a38223a6fea561dc5bf9a` | `uint32_t` The infrastructure network interface index. |
| `https://openthread.io/reference/struct/ot-plat-dnssd-txt-result#structot_plat_dnssd_txt_result_1a340035ea0cc78957590bdddf0528c264` | `const char *` The service instance name label. |
| `https://openthread.io/reference/struct/ot-plat-dnssd-txt-result#structot_plat_dnssd_txt_result_1abaa3346e4993bca39fd0fa61a3dcad2f` | `const char *` The service type. |
| `https://openthread.io/reference/struct/ot-plat-dnssd-txt-result#structot_plat_dnssd_txt_result_1a1083b87df93514f9653b3627d36ab2c4` | `uint32_t` The TXT data TTL in seconds. Zero TTL indicates record is removed. |
| `https://openthread.io/reference/struct/ot-plat-dnssd-txt-result#structot_plat_dnssd_txt_result_1a987020683e3c4fc8515a84ea6f924ac6` | `const uint8_t *` Encoded TXT data bytes. Can be NULL when `mTtl` is zero. |
| `https://openthread.io/reference/struct/ot-plat-dnssd-txt-result#structot_plat_dnssd_txt_result_1a44f2478d438b47510ad7304926488ebf` | `uint16_t` Length of TXT data. |

## Public attributes

### mInfraIfIndex

```
uint32_t otPlatDnssdTxtResult::mInfraIfIndex
```
The infrastructure network interface index.

### mServiceInstance

```
const char * otPlatDnssdTxtResult::mServiceInstance
```
The service instance name label.

### mServiceType

```
const char * otPlatDnssdTxtResult::mServiceType
```
The service type.

### mTtl

```
uint32_t otPlatDnssdTxtResult::mTtl
```
The TXT data TTL in seconds. Zero TTL indicates record is removed.

### mTxtData

```
const uint8_t * otPlatDnssdTxtResult::mTxtData
```
Encoded TXT data bytes. Can be NULL when `mTtl` is zero.

### mTxtDataLength

```
uint16_t otPlatDnssdTxtResult::mTxtDataLength
```
Length of TXT data.

## Resources

OpenThread API Reference topics originate from the source code, available
on [GitHub](https://github.com/openthread/openthread/tree/main/include/openthread).
For more information, or to contribute to our documentation, refer to
[Resources](https://openthread.io/resources).