Release 4.0.0-preview1-00285
[platform/core/csapi/tizenfx.git] / src / Tizen.Network.Nsd / doc / api / Tizen.Network.Nsd.md
1 ---
2 uid: Tizen.Network.Nsd
3 summary: The Tizen.Network.Nsd namespace provides classes to manage the network service discovery protocols.
4 remarks: *content
5 ---
6 ## Overview
7 The Nsd API handles two network service discovery protocols: DNS-SD (DNS Service Discovery) and SSDP (Simple Service Discovery Protocol). They allows application to announce local services and search for remote services on a network.
8
9
10 ## Example
11 The following example demonstrates how to register a DNS-SD local service.
12 ```cs
13 DnssdService service = new DnssdService("_http._tcp");
14 service.Name = "TestService";
15 service.Port = "1234";
16 service.RegisterService();
17 ```
18
19
20 ## Related Features
21 To use DNS-SD, declare the following feature requirements in the config file: 
22 http://tizen.org/feature/network.service_discovery.dnssd
23
24 To use SSDP, declare the following feature requirements in the config file: 
25 http://tizen.org/feature/network.service_discovery.ssdp