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.
17 using Tizen.Internals.Errors;
19 namespace Tizen.Network.Nsd
22 /// Enumeration for the DNS-SD service states.
24 /// <since_tizen> 4 </since_tizen>
25 public enum DnssdServiceState
28 /// Available DNS-SD service found.
30 /// <since_tizen> 4 </since_tizen>
33 /// DNS-SD service not available.
35 /// <since_tizen> 4 </since_tizen>
38 /// Lookup failure for the service name.
40 /// <since_tizen> 4 </since_tizen>
41 ServiceNameLookupFailed,
43 /// Lookup failure for the host name and port number.
45 /// <since_tizen> 4 </since_tizen>
48 /// Lookup failure for the IP address.
50 /// <since_tizen> 4 </since_tizen>
55 /// Enumeration for the SSDP service states.
57 /// <since_tizen> 4 </since_tizen>
58 public enum SsdpServiceState
61 /// Available SSDP service found.
63 /// <since_tizen> 4 </since_tizen>
66 /// SSDP service not available.
68 /// <since_tizen> 4 </since_tizen>
72 internal enum DnssdError
74 None = ErrorCode.None,
75 OutOfMemory = ErrorCode.OutOfMemory,
76 PermissionDenied = ErrorCode.PermissionDenied,
77 InvalidOperation = ErrorCode.InvalidOperation,
78 InvalidParameter = ErrorCode.InvalidParameter,
79 NotSupported = ErrorCode.NotSupported,
80 NotInitialized = -0x01CA0000 | 0x01,
81 AlreadyRegistered = -0x01CA0000 | 0x02,
82 NameConflict = -0x01CA0000 | 0x03,
83 ServiceNotRunning = -0x01CA0000 | 0x04,
84 ServiceNotFound = -0x01CA0000 | 0x05,
85 OperationFailed = -0x01CA0000 | 0x06
88 internal enum SsdpError
90 None = ErrorCode.None,
91 OutOfMemory = ErrorCode.OutOfMemory,
92 PermissionDenied = ErrorCode.PermissionDenied,
93 InvalidParameter = ErrorCode.InvalidParameter,
94 NotSupported = ErrorCode.NotSupported,
95 NotInitialized = -0x01C90000 | 0x01,
96 OperationFailed = -0x01C90000 | 0x04,
97 ServiceNotFound = -0x01C90000 | 0x05,
98 ServiceAlreadyRegistered = -0x01C90000 | 0x06