equal
deleted
inserted
replaced
1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2004-2009 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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members |
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.symbianfoundation.org/legal/licencesv10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 // |
7 // |
8 // Initial Contributors: |
8 // Initial Contributors: |
9 // Nokia Corporation - initial contribution. |
9 // Nokia Corporation - initial contribution. |
10 // |
10 // |
11 // Contributors: |
11 // Contributors: |
123 inline SequenceBlockQueue& SackBlocks() { return iBlocks; } |
123 inline SequenceBlockQueue& SackBlocks() { return iBlocks; } |
124 |
124 |
125 inline TInt Unknown() const { return iUnknown; } |
125 inline TInt Unknown() const { return iUnknown; } |
126 inline void ClearUnknown() { iUnknown = 0; } |
126 inline void ClearUnknown() { iUnknown = 0; } |
127 |
127 |
128 /// Query window scale option from TCP header options. |
128 // Query window scale option from TCP header options. |
129 /// Wscale == 1 means scale factor 1, i.e. shift count of 0 is used in TCP option. |
129 // Wscale == 1 means scale factor 1, i.e. shift count of 0 is used in TCP option. |
130 /// Wscale == 0 means that wscale option is not used in TCP header. |
130 // Wscale == 0 means that wscale option is not used in TCP header. |
131 inline TUint WindowScale() const { return iWscale; } |
131 inline TUint WindowScale() const { return iWscale; } |
132 |
132 |
133 inline void SetWindowScale(TUint8 aWscale) { iWscale = aWscale; } |
133 inline void SetWindowScale(TUint8 aWscale) { iWscale = aWscale; } |
134 |
134 |
135 /** |
135 /** |
169 SequenceBlockQueue iBlocks; |
169 SequenceBlockQueue iBlocks; |
170 TBool iError; |
170 TBool iError; |
171 TBool iTimeStamps; |
171 TBool iTimeStamps; |
172 TBool iSackOk; |
172 TBool iSackOk; |
173 TBool iSuppressSack; |
173 TBool iSuppressSack; |
174 TUint iWscale; ///< Window scale option [RFC 1323]. |
174 TUint iWscale; //< Window scale option [RFC 1323]. |
175 TUint32 iFlags; ///< ETrue if options are to be aligned. |
175 TUint32 iFlags; //< ETrue if options are to be aligned. |
176 }; |
176 }; |
177 |
177 |
178 |
178 |
179 |
179 |
180 class TInet6HeaderTCP |
180 class TInet6HeaderTCP |
265 inline TInt URG() const |
265 inline TInt URG() const |
266 { |
266 { |
267 return i[13] & KTcpCtlURG; |
267 return i[13] & KTcpCtlURG; |
268 } |
268 } |
269 |
269 |
270 /// ECN Echo flag [RFC 3168]. |
270 // ECN Echo flag [RFC 3168]. |
271 inline TInt ECE() const |
271 inline TInt ECE() const |
272 { |
272 { |
273 return i[13] & KTcpCtlECE; |
273 return i[13] & KTcpCtlECE; |
274 } |
274 } |
275 |
275 |
276 /// ECN: Congestion Window Reduced [RFC 3168]. |
276 // ECN: Congestion Window Reduced [RFC 3168]. |
277 inline TInt CWR() const |
277 inline TInt CWR() const |
278 { |
278 { |
279 return i[13] & KTcpCtlCWR; |
279 return i[13] & KTcpCtlCWR; |
280 } |
280 } |
281 |
281 |
375 inline void SetURG() |
375 inline void SetURG() |
376 { |
376 { |
377 i[13] |= KTcpCtlURG; |
377 i[13] |= KTcpCtlURG; |
378 } |
378 } |
379 |
379 |
380 /// Set ECN Echo flag [RFC 3168]. |
380 // Set ECN Echo flag [RFC 3168]. |
381 inline void SetECE() |
381 inline void SetECE() |
382 { |
382 { |
383 i[13] |= KTcpCtlECE; |
383 i[13] |= KTcpCtlECE; |
384 } |
384 } |
385 |
385 |
386 /// Set ECN Congestion Window Reduced [RFC 3168]. |
386 // Set ECN Congestion Window Reduced [RFC 3168]. |
387 inline void SetCWR() |
387 inline void SetCWR() |
388 { |
388 { |
389 i[13] |= KTcpCtlCWR; |
389 i[13] |= KTcpCtlCWR; |
390 } |
390 } |
391 |
391 |