/* * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved * * Licensed under the Apache License, Version 2.0 (the License); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ using System; namespace Tizen.Network.Nsd { /// /// This interface is used for managing local service registration using DNSSD/SSDP. /// /// 4 public interface INsdService : IDisposable { /// /// Registers the DNSSD/SSDP local service for publishing. /// /// /// A service created locally must be passed. /// /// 4 /// http://tizen.org/privilege/internet /// http://tizen.org/feature/network.service_discovery.dnssd /// http://tizen.org/feature/network.service_discovery.ssdp /// Thrown when any other error occurred. /// Thrown when DNSSD/SSDP is not supported. /// Thrown when permission is denied. void RegisterService(); /// /// Deregisters the DNSSD/SSDP local service. /// /// /// A local service registered using RegisterService() must be passed. /// /// 4 /// http://tizen.org/feature/network.service_discovery.dnssd /// http://tizen.org/feature/network.service_discovery.ssdp /// Thrown when any other error occurred. /// Thrown when DNSSD/SSDP is not supported. void DeregisterService(); } }