epoc32/include/in_hdr.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
parent 2 2fe1408b6811
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
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@4
     4
// under the terms of "Eclipse Public License v1.0"
williamr@2
     5
// which accompanies this distribution, and is available
williamr@4
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.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