author | William Roberts <williamr@symbian.org> |
Tue, 16 Mar 2010 16:12:26 +0000 | |
branch | Symbian2 |
changeset 2 | 2fe1408b6811 |
child 4 | 837f303aceeb |
permissions | -rw-r--r-- |
williamr@2 | 1 |
// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). |
williamr@2 | 2 |
// All rights reserved. |
williamr@2 | 3 |
// This component and the accompanying materials are made available |
williamr@2 | 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 |
williamr@2 | 5 |
// which accompanies this distribution, and is available |
williamr@2 | 6 |
// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". |
williamr@2 | 7 |
// |
williamr@2 | 8 |
// Initial Contributors: |
williamr@2 | 9 |
// Nokia Corporation - initial contribution. |
williamr@2 | 10 |
// |
williamr@2 | 11 |
// Contributors: |
williamr@2 | 12 |
// |
williamr@2 | 13 |
// Description: |
williamr@2 | 14 |
// in_hdr.h - IPv6 header structure |
williamr@2 | 15 |
// Defines the basic classes for accessing the header |
williamr@2 | 16 |
// structures within IPv6 packets. |
williamr@2 | 17 |
// |
williamr@2 | 18 |
|
williamr@2 | 19 |
|
williamr@2 | 20 |
|
williamr@2 | 21 |
/** |
williamr@2 | 22 |
@publishedAll |
williamr@2 | 23 |
@deprecated |
williamr@2 | 24 |
*/ |
williamr@2 | 25 |
|
williamr@2 | 26 |
#ifndef __IN_HDR_H__ |
williamr@2 | 27 |
#define __IN_HDR_H__ |
williamr@2 | 28 |
|
williamr@2 | 29 |
#include <e32std.h> |
williamr@2 | 30 |
|
williamr@2 | 31 |
// |
williamr@2 | 32 |
// TInet6HeaderBase |
williamr@2 | 33 |
// A base class for headers. |
williamr@2 | 34 |
// |
williamr@2 | 35 |
// Currently no declarations, just here ready for potential need |
williamr@2 | 36 |
// |
williamr@2 | 37 |
//class TInet6HeaderBase |
williamr@2 | 38 |
// { |
williamr@2 | 39 |
//private: |
williamr@2 | 40 |
// |
williamr@2 | 41 |
// The following methods are "private" on purpose. They only |
williamr@2 | 42 |
// document what derived class should implement, and cause an |
williamr@2 | 43 |
// error message at compile time when a method is used, but |
williamr@2 | 44 |
// not declared in the derived class. There is NO IMPLEMENTATION |
williamr@2 | 45 |
// for these in this base class!! |
williamr@2 | 46 |
// |
williamr@2 | 47 |
// Every derived class must implement the following methods |
williamr@2 | 48 |
// (These are compile time constants) |
williamr@2 | 49 |
// |
williamr@2 | 50 |
// static TInt MinHeaderLength(); |
williamr@2 | 51 |
// static TInt MaxHeaderLength(); |
williamr@2 | 52 |
|
williamr@2 | 53 |
// Actual header length (based on on dynamic information |
williamr@2 | 54 |
// retrieved from the successfully mapped header). |
williamr@2 | 55 |
// |
williamr@2 | 56 |
// TInt HeaderLength(); |
williamr@2 | 57 |
// |
williamr@2 | 58 |
// There is no need for a method accessing the offset to the |
williamr@2 | 59 |
// beginning of payload data. This offset is *ALWAYS* same as |
williamr@2 | 60 |
// HeaderLength(). It includes the padding, if any is required. |
williamr@2 | 61 |
// }; |
williamr@2 | 62 |
|
williamr@2 | 63 |
#endif |