Dela via


Windows.Networking.ServiceDiscovery.Dnssd Namespace

Supports the registration and discovery of services that advertise themselves using DNS Service Discovery (DNS-SD).

Note

Win32 DNS Service Discovery (DNS-SD) APIs are declared in the windns.h header. For example, the Win32 APIs for announcing and discovering services are DnsServiceRegister and DnsServiceBrowse.

Classes

DnssdRegistrationResult

Encapsulates detailed information about the result of an attempt to register a service instance using DNS-SD.

Note

Win32 DNS Service Discovery (DNS-SD) APIs are declared in the windns.h header. For example, the Win32 APIs for announcing and discovering services are DnsServiceRegister and DnsServiceBrowse.

DnssdServiceInstance

Encapsulates an instance of a service that uses DNS Service Discovery (DNS-SD).

Note

Win32 DNS Service Discovery (DNS-SD) APIs are declared in the windns.h header. For example, the Win32 APIs for announcing and discovering services are DnsServiceRegister and DnsServiceBrowse.

DnssdServiceInstanceCollection

A collection of DNS Service Discovery (DNS-SD) service instances.

Note

DnssdServiceInstanceCollection is not supported and may be altered or unavailable in the future. Instead, use the Windows.Devices.Enumeration API.

Note

Win32 DNS Service Discovery (DNS-SD) APIs are declared in the windns.h header. For example, the Win32 APIs for announcing and discovering services are DnsServiceRegister and DnsServiceBrowse.

DnssdServiceWatcher

Maintains a collection of available DNS Service Discovery (DNS-SD) service instances.

Note

DnssdServiceWatcher is not supported and may be altered or unavailable in the future. Instead, use the Windows.Devices.Enumeration API.

Note

Win32 DNS Service Discovery (DNS-SD) APIs are declared in the windns.h header. For example, the Win32 APIs for announcing and discovering services are DnsServiceRegister and DnsServiceBrowse.

Enums

DnssdRegistrationStatus

Values representing the status of a DNS-SD registration attempt.

Note

Win32 DNS Service Discovery (DNS-SD) APIs are declared in the windns.h header. For example, the Win32 APIs for announcing and discovering services are DnsServiceRegister and DnsServiceBrowse.

DnssdServiceWatcherStatus

Values representing the status of a DnssdServiceWatcher.

Note

DnssdServiceWatcher is not supported and may be altered or unavailable in the future. Instead, use the Windows.Devices.Enumeration API.

Note

Win32 DNS Service Discovery (DNS-SD) APIs are declared in the windns.h header. For example, the Win32 APIs for announcing and discovering services are DnsServiceRegister and DnsServiceBrowse.

Remarks

Server code uses the members of this namespace to advertise services available to clients on a local network, via DNS Service Discovery (DNS-SD). Client code uses the members of this namespace to identify services being offered via DNS-SD. The actual communication between client and server takes place over sockets, using ports and protocols advertised and discovered through DNS-SD.

DNS-SD is described in RFC 6763. For context and general information about DNS, see RFC 1034.