williamr@2: // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). williamr@2: // All rights reserved. williamr@2: // This component and the accompanying materials are made available williamr@2: // 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 williamr@2: // which accompanies this distribution, and is available williamr@2: // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". williamr@2: // williamr@2: // Initial Contributors: williamr@2: // Nokia Corporation - initial contribution. williamr@2: // williamr@2: // Contributors: williamr@2: // williamr@2: // Description: williamr@2: // in_hdr.h - IPv6 header structure williamr@2: // Defines the basic classes for accessing the header williamr@2: // structures within IPv6 packets. williamr@2: // williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: @publishedAll williamr@2: @deprecated williamr@2: */ williamr@2: williamr@2: #ifndef __IN_HDR_H__ williamr@2: #define __IN_HDR_H__ williamr@2: williamr@2: #include williamr@2: williamr@2: // williamr@2: // TInet6HeaderBase williamr@2: // A base class for headers. williamr@2: // williamr@2: // Currently no declarations, just here ready for potential need williamr@2: // williamr@2: //class TInet6HeaderBase williamr@2: // { williamr@2: //private: williamr@2: // williamr@2: // The following methods are "private" on purpose. They only williamr@2: // document what derived class should implement, and cause an williamr@2: // error message at compile time when a method is used, but williamr@2: // not declared in the derived class. There is NO IMPLEMENTATION williamr@2: // for these in this base class!! williamr@2: // williamr@2: // Every derived class must implement the following methods williamr@2: // (These are compile time constants) williamr@2: // williamr@2: // static TInt MinHeaderLength(); williamr@2: // static TInt MaxHeaderLength(); williamr@2: williamr@2: // Actual header length (based on on dynamic information williamr@2: // retrieved from the successfully mapped header). williamr@2: // williamr@2: // TInt HeaderLength(); williamr@2: // williamr@2: // There is no need for a method accessing the offset to the williamr@2: // beginning of payload data. This offset is *ALWAYS* same as williamr@2: // HeaderLength(). It includes the padding, if any is required. williamr@2: // }; williamr@2: williamr@2: #endif