/*
* 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 the local service registration using DNS-SD/SSDP.
///
/// 4
public interface INsdService : IDisposable
{
///
/// Registers the DNS-SD/SSDP local service for publishing.
///
///
/// A service that is 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 DNS-SD/SSDP is not supported.
/// Thrown when the permission is denied.
void RegisterService();
///
/// Deregisters the DNS-SD/SSDP local service.
///
///
/// A local service that is 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 DNS-SD/SSDP is not supported.
void DeregisterService();
}
}