1.1 --- a/epoc32/include/networking/vj.inl Wed Mar 31 12:27:01 2010 +0100
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,83 +0,0 @@
1.4 -// Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 -// All rights reserved.
1.6 -// This component and the accompanying materials are made available
1.7 -// 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
1.8 -// which accompanies this distribution, and is available
1.9 -// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.10 -//
1.11 -// Initial Contributors:
1.12 -// Nokia Corporation - initial contribution.
1.13 -//
1.14 -// Contributors:
1.15 -//
1.16 -// Description:
1.17 -//
1.18 -
1.19 -#if !defined(__VJ_INL_)
1.20 -#define __VJ_INL_
1.21 -
1.22 -/**
1.23 -Sets a flag indicating that the stored object contains a valid TCP/IP header.
1.24 -
1.25 -@see IsValid()
1.26 -*/
1.27 -inline void TVJCompHdr::MarkValid()
1.28 - {
1.29 - iConnectionId |= KVJValidFlag;
1.30 - }
1.31 -
1.32 -/**
1.33 -Determines if the stored TCP/IP header contains valid data.
1.34 -
1.35 -@see MarkValid()
1.36 -
1.37 -@return ETrue if the object contains valid headers
1.38 -*/
1.39 -inline TBool TVJCompHdr::IsValid() const
1.40 - {
1.41 - return !!(iConnectionId & KVJValidFlag);
1.42 - }
1.43 -
1.44 -/**
1.45 -Sets the pointer to the next object in the linked list.
1.46 -
1.47 -@param aNextPtr Another TVJCompHdr object
1.48 -*/
1.49 -inline void TVJCompHdr::SetNextPtr(TVJCompHdr* aNextPtr)
1.50 - {
1.51 - iNextPtr = aNextPtr;
1.52 - }
1.53 -
1.54 -/**
1.55 -Returns the next object in the linked list.
1.56 -
1.57 -@return The next TVJCompHdr object
1.58 -*/
1.59 -TVJCompHdr* TVJCompHdr::NextPtr() const
1.60 - {
1.61 - return iNextPtr;
1.62 - }
1.63 -
1.64 -/**
1.65 -Sets the VJ connection number.
1.66 -Also clears the valid flag as a side effect.
1.67 -
1.68 -@param aConnection VJ connection number (0..255)
1.69 -*/
1.70 -inline void TVJCompHdr::SetConnectionNumber(TUint aConnection)
1.71 - {
1.72 - iConnectionId = aConnection;
1.73 - }
1.74 -
1.75 -/**
1.76 -Returns the VJ connection number.
1.77 -
1.78 -@return VJ connection number
1.79 -*/
1.80 -inline TUint TVJCompHdr::ConnectionNumber() const
1.81 - {
1.82 - return iConnectionId & 0xff; // Strip KVJValidFlag
1.83 - }
1.84 -
1.85 -
1.86 -#endif // __VJ_INL_