Stay organized with collections Save and categorize content based on your preferences.

otPlatTrelPeerInfo

#include <trel.h>

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

Summary

Public attributes

mRemoved
bool
This boolean flag indicates whether the entry is being removed or added.
mSockAddr
The TREL peer socket address (IPv6 address and port number).
mTxtData
const uint8_t *
The TXT record data (encoded as specified by DNS-SD) from the SRV record of the discovered TREL peer service instance.
mTxtLength
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.

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. For more information, or to contribute to our documentation, refer to Resources.