1 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
67 const TUint KDataPacketMaxSize = 4096; |
69 const TUint KDataPacketMaxSize = 4096; |
68 |
70 |
69 // BTT TSY contants |
71 // BTT TSY contants |
70 const TInt KTsyPhone = 0; |
72 const TInt KTsyPhone = 0; |
71 |
73 |
72 // Flow control constants |
|
73 const TInt KStopSending = 0; |
|
74 const TInt KContinueSending = 1; |
|
75 |
|
76 _LIT(KRawIPNifName, "RawIP"); |
74 _LIT(KRawIPNifName, "RawIP"); |
77 |
75 |
78 // constants for diagnostic logging |
76 // constants for diagnostic logging |
79 _LIT8(KNifSubDir, "RawIp"); |
77 _LIT8(KNifSubDir, "RawIp"); |
80 _LIT8(KRefFile, "RawIP"); |
78 _LIT8(KRefFile, "RawIP"); |
81 |
79 |
82 // Max size of IP packet |
80 // Max size of IP packet |
83 const TInt KMaxIPPacket = 1500; |
81 const TUint KMaxIPPacket = 1500; |
84 const TInt KIPTagHeaderLength = 2; |
82 const TUint KIPTagHeaderLength = 2; |
85 const TInt KMaxIPPacketAndHeader = KMaxIPPacket + KIPTagHeaderLength; |
83 const TUint KMaxIPPacketAndHeader = KMaxIPPacket + KIPTagHeaderLength; |
86 |
84 |
87 const TInt KIPTagHeaderByte1 = 0x00; |
85 const TInt KIPTagHeaderByte1 = 0x00; |
88 const TInt KIPTagHeaderByte2 = 0x21; |
86 const TInt KIPTagHeaderByte2 = 0x21; |
89 |
87 |
90 #endif //CONSTANTS_H |
88 #endif //CONSTANTS_H |