1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
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
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #if !defined(__VJ_INL_)
20 Sets a flag indicating that the stored object contains a valid TCP/IP header.
24 inline void TVJCompHdr::MarkValid()
26 iConnectionId |= KVJValidFlag;
30 Determines if the stored TCP/IP header contains valid data.
34 @return ETrue if the object contains valid headers
36 inline TBool TVJCompHdr::IsValid() const
38 return !!(iConnectionId & KVJValidFlag);
42 Sets the pointer to the next object in the linked list.
44 @param aNextPtr Another TVJCompHdr object
46 inline void TVJCompHdr::SetNextPtr(TVJCompHdr* aNextPtr)
52 Returns the next object in the linked list.
54 @return The next TVJCompHdr object
56 TVJCompHdr* TVJCompHdr::NextPtr() const
62 Sets the VJ connection number.
63 Also clears the valid flag as a side effect.
65 @param aConnection VJ connection number (0..255)
67 inline void TVJCompHdr::SetConnectionNumber(TUint aConnection)
69 iConnectionId = aConnection;
73 Returns the VJ connection number.
75 @return VJ connection number
77 inline TUint TVJCompHdr::ConnectionNumber() const
79 return iConnectionId & 0xff; // Strip KVJValidFlag