Revert "[TFM] Update TizenFX TFM to net6.0 (#5360)" (#5436)
[platform/core/csapi/tizenfx.git] / src / Tizen.Network.Nsd / Tizen.Network.Nsd / NsdEnumerations.cs
1 /*
2  * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16
17 using Tizen.Internals.Errors;
18
19 namespace Tizen.Network.Nsd
20 {
21     /// <summary>
22     /// Enumeration for the DNS-SD service states.
23     /// </summary>
24     /// <since_tizen> 4 </since_tizen>
25     public enum DnssdServiceState
26     {
27         /// <summary>
28         /// Available DNS-SD service found.
29         /// </summary>
30         /// <since_tizen> 4 </since_tizen>
31         Available,
32         /// <summary>
33         /// DNS-SD service not available.
34         /// </summary>
35         /// <since_tizen> 4 </since_tizen>
36         Unavailable,
37         /// <summary>
38         /// Lookup failure for the service name.
39         /// </summary>
40         /// <since_tizen> 4 </since_tizen>
41         ServiceNameLookupFailed,
42         /// <summary>
43         /// Lookup failure for the host name and port number.
44         /// </summary>
45         /// <since_tizen> 4 </since_tizen>
46         HostNameLookupFailed,
47         /// <summary>
48         /// Lookup failure for the IP address.
49         /// </summary>
50         /// <since_tizen> 4 </since_tizen>
51         AddressLookupFailed
52     }
53
54     /// <summary>
55     /// Enumeration for the SSDP service states.
56     /// </summary>
57     /// <since_tizen> 4 </since_tizen>
58     public enum SsdpServiceState
59     {
60         /// <summary>
61         /// Available SSDP service found.
62         /// </summary>
63         /// <since_tizen> 4 </since_tizen>
64         Available,
65         /// <summary>
66         /// SSDP service not available.
67         /// </summary>
68         /// <since_tizen> 4 </since_tizen>
69         Unavailable
70     }
71
72     internal enum DnssdError
73     {
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
86     }
87
88     internal enum SsdpError
89     {
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
99     }
100 }