|
1 /* |
|
2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Holds default values for NAT/FW Traversal adapter. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include <e32base.h> |
|
20 |
|
21 // Common defaults. |
|
22 const TInt KDefaultUDPRefreshInterval = 28; // seconds |
|
23 const TInt KDefaultTCPRefreshInterval = 1200; // seconds (20 minutes) |
|
24 |
|
25 // IAP specific defaults. |
|
26 const TInt KDefaultSTUNRetransmitTimer = 250; // milliseconds |
|
27 |
|
28 // Domain specific defaults. |
|
29 const TInt KDefaultSTUNPort = 3478; |
|
30 const TInt KDefaultCRLFRefreshInterval = 0; |
|
31 const TInt KDefaultDisableStunSharedSecret = 0; |
|
32 _LIT8( KDefaultNatProtocol, "nokia.stun" ); |
|
33 const TInt KDefaultStartPort = 49152; // TODO: selvitettävä! |
|
34 const TInt KDefaultEndPort = 49200; // TODO: selvitettävä! |
|
35 // ICE specific defaults. |
|
36 _LIT8( KDefaultNatUtilities, "nokia.stun,nokia.turn" ); |
|
37 const TInt KDefaultHostPref = 126; |
|
38 const TInt KDefaultServerReflexivePref = 100; |
|
39 const TInt KDefaultRelayPref = 0; |
|
40 const TInt KDefaultPeerReflexivePref = 110; |
|
41 const TInt KDefaultIPv4Pref = 60; |
|
42 const TInt KDefaultIPv6Pref = 40; |
|
43 const TInt KDefaultVPNPref = 20; |
|
44 const TInt KDefaultUDPPref = 15; |
|
45 const TInt KDefaultTCPPref = 6; |
|
46 const TInt KDefaultTCPActivePref = 5; |
|
47 const TInt KDefaultTCPPassivePref = 2; |
|
48 const TInt KDefaultTCPSimultaneousPref = 7; |
|
49 // TURN specific defaults. |
|
50 _LIT8( KDefaultStunSrvAddr, "" ); |
|
51 _LIT8( KDefaultTurnSrvAddr, "" ); |
|
52 const TInt KDefaultTURNPort = 3478; |
|
53 |
|
54 // Other. |
|
55 const TInt KMaxCharsInTUint32 = 10; |
|
56 const TInt KNotSet = -1; |
|
57 const TInt KNotSaved = -1; |
|
58 const TInt KFourKeysInIAPSpecific = 4; |
|
59 const TInt KSixKeysInDomainSpecific = 6; |
|
60 |