otPlatDnssdService

#include <dnssd.h>

Represents a DNS-SD service.

Summary

See otPlatDnssdRegisterService(), otPlatDnssdUnregisterService() for more details about fields in each case.

Public attributes

mHostName
const char *
The host name (does not include domain name).
mInfraIfIndex
uint32_t
The infrastructure network interface index.
mPort
uint16_t
The service port number.
mPriority
uint16_t
The service priority.
mServiceInstance
const char *
The service instance name label (not the full name).
mServiceType
const char *
The service type (e.g., "_mt._udp", does not include domain name).
mSubTypeLabels
const char *const *
Array of sub-type labels (can be NULL if no label).
mSubTypeLabelsLength
uint16_t
Length of array of sub-type labels.
mTtl
uint32_t
The service TTL in seconds.
mTxtData
const uint8_t *
Encoded TXT data bytes.
mTxtDataLength
uint16_t
Length of TXT data.
mWeight
uint16_t
The service weight.

Public attributes

mHostName

const char * otPlatDnssdService::mHostName

The host name (does not include domain name).

mInfraIfIndex

uint32_t otPlatDnssdService::mInfraIfIndex

The infrastructure network interface index.

mPort

uint16_t otPlatDnssdService::mPort

The service port number.

mPriority

uint16_t otPlatDnssdService::mPriority

The service priority.

mServiceInstance

const char * otPlatDnssdService::mServiceInstance

The service instance name label (not the full name).

mServiceType

const char * otPlatDnssdService::mServiceType

The service type (e.g., "_mt._udp", does not include domain name).

mSubTypeLabels

const char *const * otPlatDnssdService::mSubTypeLabels

Array of sub-type labels (can be NULL if no label).

mSubTypeLabelsLength

uint16_t otPlatDnssdService::mSubTypeLabelsLength

Length of array of sub-type labels.

mTtl

uint32_t otPlatDnssdService::mTtl

The service TTL in seconds.

mTxtData

const uint8_t * otPlatDnssdService::mTxtData

Encoded TXT data bytes.

mTxtDataLength

uint16_t otPlatDnssdService::mTxtDataLength

Length of TXT data.

mWeight

uint16_t otPlatDnssdService::mWeight

The service weight.

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.