TTcpOptions Class Reference

class TTcpOptions

TCP Options Header.

Constructor & Destructor Documentation

TTcpOptions()

TTcpOptions()[inline]

Member Functions Documentation

AlignedLength(TInt)

TInt AlignedLength(TIntaLength)const [private, inline]

Calculate the actual space requirement for option with given length.

Takes optional 32-bit alignment into account.

Parameters

TInt aLength

CheckOptAlignment(TUint8 *, TUint &, TUint)

voidCheckOptAlignment(TUint8 *aPtr,
TUint &aI,
TUintaNumBytes
)[private]

Align options with NOP if option alignment is enabled.

Parameters

TUint8 * aPtroption data area.
TUint & aIindex to the location being processed.
TUint aNumBytesNumber of bytes that need to be used for padding.

ClearError()

voidClearError()[inline]

ClearMSS()

voidClearMSS()[inline]

ClearSackOk()

voidClearSackOk()[inline]

ClearTimeStamps()

voidClearTimeStamps()[inline]

ClearUnknown()

voidClearUnknown()[inline]

Error()

TBool Error()const [inline]

Init()

IMPORT_C voidInit()

Length()

IMPORT_C TIntLength()const

MSS()

TInt MSS()const [inline]

OutputOptions(TUint8 *, TUint)

IMPORT_C TUintOutputOptions(TUint8 *aPtr,
TUintaMaxLen
)[private]

Parameters

TUint8 * aPtr
TUint aMaxLen

ProcessOptions(const TUint8 *, TUint)

IMPORT_C TBoolProcessOptions(const TUint8 *aPtr,
TUintaLen
)[private]

Parameters

const TUint8 * aPtr
TUint aLen

SackBlocks()

SequenceBlockQueue &SackBlocks()[inline]

SackOk()

TBool SackOk()const [inline]

SetAlignOpt(TBool)

voidSetAlignOpt(TBoolaAlignOpt)[inline]

If set, each option will be aligned to 32-bit longword boundaries with Nop padding. By default the Nop padding is not applied.

Parameters

TBool aAlignOpt

SetMSS(TInt)

voidSetMSS(TIntaMSS)[inline]

Parameters

TInt aMSS

SetSackOk()

voidSetSackOk()[inline]

SetTimeStamps(TUint32, TUint32)

voidSetTimeStamps(TUint32aTsVal,
TUint32aTsEcr
)[inline]

Parameters

TUint32 aTsVal
TUint32 aTsEcr

SetWindowScale(TUint8)

voidSetWindowScale(TUint8aWscale)[inline]

Parameters

TUint8 aWscale

SuppressSack(TBool)

voidSuppressSack(TBoolaBool = ETrue)[inline]

Parameters

TBool aBool = ETrue

TimeStamps()

TBool TimeStamps()const [inline]

TimeStamps(TUint32 &, TUint32 &)

TBool TimeStamps(TUint32 &aTsVal,
TUint32 &aTsEcr
)const [inline]

Parameters

TUint32 & aTsVal
TUint32 & aTsEcr

Unknown()

TInt Unknown()const [inline]

WindowScale()

TUint WindowScale()const [inline]

Member Data Documentation

SequenceBlockQueue iBlocks

SequenceBlockQueue iBlocks[private]

TBool iError

TBool iError[private]

TUint32 iFlags

TUint32 iFlags[private]

TInt iMSS

TInt iMSS[private]

TBool iSackOk

TBool iSackOk[private]

TBool iSuppressSack

TBool iSuppressSack[private]

TBool iTimeStamps

TBool iTimeStamps[private]

TUint32 iTsEcr

TUint32 iTsEcr[private]

TUint32 iTsVal

TUint32 iTsVal[private]

TInt iUnknown

TInt iUnknown[private]

TUint iWscale

TUint iWscale[private]