Represents a DNS-SD service.

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

Public Attributes#

const char *

The host name (does not include domain name).

const char *

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

const char *

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

const char *const *

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

uint16_t

Length of array of sub-type labels.

const uint8_t *

Encoded TXT data bytes.

uint16_t

Length of TXT data.

uint16_t

The service port number.

uint16_t

The service priority.

uint16_t

The service weight.

uint32_t

The service TTL in seconds.

uint32_t

The infrastructure network interface index.

Public Attribute Documentation#

mHostName#

const char* otPlatDnssdService::mHostName

The host name (does not include domain name).


Definition at line 94 of file include/openthread/platform/dnssd.h

mServiceInstance#

const char* otPlatDnssdService::mServiceInstance

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


Definition at line 95 of file include/openthread/platform/dnssd.h

mServiceType#

const char* otPlatDnssdService::mServiceType

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


Definition at line 96 of file include/openthread/platform/dnssd.h

mSubTypeLabels#

const char* const* otPlatDnssdService::mSubTypeLabels

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


Definition at line 97 of file include/openthread/platform/dnssd.h

mSubTypeLabelsLength#

uint16_t otPlatDnssdService::mSubTypeLabelsLength

Length of array of sub-type labels.


Definition at line 98 of file include/openthread/platform/dnssd.h

mTxtData#

const uint8_t* otPlatDnssdService::mTxtData

Encoded TXT data bytes.


Definition at line 99 of file include/openthread/platform/dnssd.h

mTxtDataLength#

uint16_t otPlatDnssdService::mTxtDataLength

Length of TXT data.


Definition at line 100 of file include/openthread/platform/dnssd.h

mPort#

uint16_t otPlatDnssdService::mPort

The service port number.


Definition at line 101 of file include/openthread/platform/dnssd.h

mPriority#

uint16_t otPlatDnssdService::mPriority

The service priority.


Definition at line 102 of file include/openthread/platform/dnssd.h

mWeight#

uint16_t otPlatDnssdService::mWeight

The service weight.


Definition at line 103 of file include/openthread/platform/dnssd.h

mTtl#

uint32_t otPlatDnssdService::mTtl

The service TTL in seconds.


Definition at line 104 of file include/openthread/platform/dnssd.h

mInfraIfIndex#

uint32_t otPlatDnssdService::mInfraIfIndex

The infrastructure network interface index.


Definition at line 105 of file include/openthread/platform/dnssd.h