Represents the result of an mDNS query.

This structure contains details about the discovered mDNS service, including instance name, service type, protocol, hostname, port, TXT records, IP addresses, and TTL.

Public Attributes#

uint16_t

Type of mDNS query (e.g., PTR, SRV, A, AAAA, ANY)

const char *

Name of the service instance (e.g., "My Web Server")

const char *

Service type string (e.g., "_http")

const char *

Protocol string (e.g., "_tcp")

const char *

Hostname of the device offering the service.

uint16_t

Port number where the service is running.

const char **

Array of TXT record strings in "key=value" format.

uint32_t

Number of TXT records.

struct sl_mdns_response_s::@0

TXT records associated with the service.

sl_ip_address_t *

Array of IP addresses (IPv4 or IPv6)

uint32_t

Number of IP addresses.

struct sl_mdns_response_s::@1

IP addresses associated with the service.

uint32_t

Time-to-live for the DNS record (in seconds)

Public Attribute Documentation#

query_type#

uint16_t sl_mdns_response_s::query_type

Type of mDNS query (e.g., PTR, SRV, A, AAAA, ANY)


instance_name#

const char* sl_mdns_response_s::instance_name

Name of the service instance (e.g., "My Web Server")


service_type#

const char* sl_mdns_response_s::service_type

Service type string (e.g., "_http")


proto#

const char* sl_mdns_response_s::proto

Protocol string (e.g., "_tcp")


hostname#

const char* sl_mdns_response_s::hostname

Hostname of the device offering the service.


port#

uint16_t sl_mdns_response_s::port

Port number where the service is running.


txt#

const char** sl_mdns_response_s::txt

Array of TXT record strings in "key=value" format.


txt_count#

uint32_t sl_mdns_response_s::txt_count

Number of TXT records.


txt#

struct sl_mdns_response_s::@0 sl_mdns_response_s::txt

TXT records associated with the service.


addr#

sl_ip_address_t* sl_mdns_response_s::addr

Array of IP addresses (IPv4 or IPv6)


addr_count#

uint32_t sl_mdns_response_s::addr_count

Number of IP addresses.


addr#

struct sl_mdns_response_s::@1 sl_mdns_response_s::addr

IP addresses associated with the service.


ttl#

uint32_t sl_mdns_response_s::ttl

Time-to-live for the DNS record (in seconds)