/*
* 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 Tizen.Internals.Errors;
namespace Tizen.Network.Nsd
{
///
/// Enumeration for the DNS-SD service states.
///
/// 4
public enum DnssdServiceState
{
///
/// Available DNS-SD service found.
///
/// 4
Available,
///
/// DNS-SD service not available.
///
/// 4
Unavailable,
///
/// Lookup failure for the service name.
///
/// 4
ServiceNameLookupFailed,
///
/// Lookup failure for the host name and port number.
///
/// 4
HostNameLookupFailed,
///
/// Lookup failure for the IP address.
///
/// 4
AddressLookupFailed
}
///
/// Enumeration for the SSDP service states.
///
/// 4
public enum SsdpServiceState
{
///
/// Available SSDP service found.
///
/// 4
Available,
///
/// SSDP service not available.
///
/// 4
Unavailable
}
internal enum DnssdError
{
None = ErrorCode.None,
OutOfMemory = ErrorCode.OutOfMemory,
PermissionDenied = ErrorCode.PermissionDenied,
InvalidOperation = ErrorCode.InvalidOperation,
InvalidParameter = ErrorCode.InvalidParameter,
NotSupported = ErrorCode.NotSupported,
NotInitialized = -0x01CA0000 | 0x01,
AlreadyRegistered = -0x01CA0000 | 0x02,
NameConflict = -0x01CA0000 | 0x03,
ServiceNotRunning = -0x01CA0000 | 0x04,
ServiceNotFound = -0x01CA0000 | 0x05,
OperationFailed = -0x01CA0000 | 0x06
}
internal enum SsdpError
{
None = ErrorCode.None,
OutOfMemory = ErrorCode.OutOfMemory,
PermissionDenied = ErrorCode.PermissionDenied,
InvalidParameter = ErrorCode.InvalidParameter,
NotSupported = ErrorCode.NotSupported,
NotInitialized = -0x01C90000 | 0x01,
OperationFailed = -0x01C90000 | 0x04,
ServiceNotFound = -0x01C90000 | 0x05,
ServiceAlreadyRegistered = -0x01C90000 | 0x06
}
}