openthread-br  0.3.0-72c0388
Public Member Functions | Public Attributes | List of all members
DnsNameInfo Struct Reference

#include <src/common/dns_utils.hpp>

Public Member Functions

bool IsServiceInstance (void) const
 
bool IsService (void) const
 
bool IsHost (void) const
 

Public Attributes

std::string mInstanceName
 Instance name, or empty if the DNS name is not a service instance.
 
std::string mServiceName
 Service name, or empty if the DNS name is not a service or service instance.
 
std::string mHostName
 Host name, or empty if the DNS name is not a host name.
 
std::string mDomain
 Domain name.
 

Detailed Description

This structure represents DNS Name information.

See also
SplitFullDnsName

Member Function Documentation

◆ IsHost()

bool DnsNameInfo::IsHost ( void  ) const
inline

This method returns if the DNS name is a host.

Returns
Whether the DNS name is a host.

◆ IsService()

bool DnsNameInfo::IsService ( void  ) const
inline

This method returns if the DNS name is a service.

Returns
Whether the DNS name is a service.

◆ IsServiceInstance()

bool DnsNameInfo::IsServiceInstance ( void  ) const
inline

This method returns if the DNS name is a service instance.

Returns
Whether the DNS name is a service instance.

The documentation for this struct was generated from the following file: