# otPlatTrelPeerInfo Struct Reference

# otPlatTrelPeerInfo


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

Represents a TREL peer info discovered using DNS-SD browse on the service name "_trel._udp".

## Summary

| ### Public attributes ||
|---|---|
| `https://openthread.io/reference/struct/ot-plat-trel-peer-info#structot_plat_trel_peer_info_1a5248aae728b571064780666f22598fd1` | `bool` This boolean flag indicates whether the entry is being removed or added. |
| `https://openthread.io/reference/struct/ot-plat-trel-peer-info#structot_plat_trel_peer_info_1ab7a9501d6f151a1cef4e8a22cd0fcf1e` | `https://openthread.io/reference/struct/ot-sock-addr` The TREL peer socket address (IPv6 address and port number). |
| `https://openthread.io/reference/struct/ot-plat-trel-peer-info#structot_plat_trel_peer_info_1a0d1419b64b44caa2d473973ba7a1cc5e` | `const uint8_t *` The TXT record data (encoded as specified by DNS-SD) from the SRV record of the discovered TREL peer service instance. |
| `https://openthread.io/reference/struct/ot-plat-trel-peer-info#structot_plat_trel_peer_info_1aa0da9b581fa78a9114f0c0a2f54fd131` | `uint16_t` Number of bytes in `mTxtData` buffer. |

## Public attributes

### mRemoved

```
bool otPlatTrelPeerInfo::mRemoved
```
This boolean flag indicates whether the entry is being removed or added.


- TRUE indicates that peer is removed.
- FALSE indicates that it is a new entry or an update to an existing entry.

<br />

### mSockAddr

```
otSockAddr otPlatTrelPeerInfo::mSockAddr
```
The TREL peer socket address (IPv6 address and port number).

The port number is determined from the SRV record of the discovered TREL peer service instance. The IPv6 address is determined from the DNS-SD query for AAAA records on the hostname indicated in the SRV record of the discovered service instance. If multiple host IPv6 addressees are discovered, one with highest scope is used.

### mTxtData

```
const uint8_t * otPlatTrelPeerInfo::mTxtData
```
The TXT record data (encoded as specified by DNS-SD) from the SRV record of the discovered TREL peer service instance.

### mTxtLength

```
uint16_t otPlatTrelPeerInfo::mTxtLength
```
Number of bytes in `mTxtData` buffer.

## 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).