2 * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 namespace Tizen.Network.Nsd
22 /// This interface is used for managing the local service registration using DNS-SD/SSDP.
24 /// <since_tizen> 4 </since_tizen>
25 public interface INsdService : IDisposable
28 /// Registers the DNS-SD/SSDP local service for publishing.
31 /// A service that is created locally must be passed.
33 /// <since_tizen> 4 </since_tizen>
34 /// <privilege>http://tizen.org/privilege/internet</privilege>
35 /// <feature>http://tizen.org/feature/network.service_discovery.dnssd</feature>
36 /// <feature>http://tizen.org/feature/network.service_discovery.ssdp</feature>
37 /// <exception cref="InvalidOperationException">Thrown when any other error occurred.</exception>
38 /// <exception cref="NotSupportedException">Thrown when DNS-SD/SSDP is not supported.</exception>
39 /// <exception cref="UnauthorizedAccessException">Thrown when the permission is denied.</exception>
40 void RegisterService();
43 /// Deregisters the DNS-SD/SSDP local service.
46 /// A local service that is registered using RegisterService() must be passed.
48 /// <since_tizen> 4 </since_tizen>
49 /// <feature>http://tizen.org/feature/network.service_discovery.dnssd</feature>
50 /// <feature>http://tizen.org/feature/network.service_discovery.ssdp</feature>
51 /// <exception cref="InvalidOperationException">Thrown when any other error occurred.</exception>
52 /// <exception cref="NotSupportedException">Thrown when DNS-SD/SSDP is not supported.</exception>
53 void DeregisterService();