2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.apache.org/licenses/LICENSE-2.0
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
18 * @file FNet_NetTypes.h
19 * @brief This is the header file for defining types for the Tizen::Net namespace.
22 #ifndef _FNET_INTERNAL_NET_TYPES_H_
23 #define _FNET_INTERNAL_NET_TYPES_H_
25 #include <FBaseString.h>
27 namespace Tizen { namespace Net
30 typedef unsigned long IPV4Addr;
32 static const int _MAX_IPV4_ADDRESS_STRING_LENGTH = 16; // The IPv4 address string length
33 static const int _MAX_AUTH_ID_LENGTH = 44; // The user ID length
34 static const int _MAX_AUTH_PASSWORD_LENGTH = 44; // The password length
35 static const int _MAX_ACCOUNT_NAME_LENGTH = 40; // The network information(Access Point set) length
36 static const int MAX_MAC_ADDRESS_LENGTH = 6; // Definition for WLAN 48-bit MAC address
38 static const int _DEFAULT_PS_ACCOUNT_ID = 1;
39 static const int _DEFAULT_MMS_ACCOUNT_ID = 2;
40 static const int _DEFAULT_WIFI_ACCOUNT_ID = 11;
41 static const int _DEFAULT_WIFI_DIRECT_ACCOUNT_ID = 12;
42 static const int _DEFAULT_USB_ACCOUNT_ID = 21;
43 static const int _PS_ACCOUNT_ID_START = 101;
45 static const int _HASH_CODE_INITIAL_VALUE = 17;
46 static const int _HASH_CODE_COEFFICIENT_VALUE = 37;
50 #endif // _FNET_INTERNAL_NET_TYPES_H_