TTcpOptions Class Reference

class TTcpOptions

TCP Options Header.

Constructor & Destructor Documentation

TTcpOptions()

TTcpOptions ( ) [inline]

Member Functions Documentation

AlignedLength(TInt)

TInt AlignedLength ( TInt aLength ) 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)

void CheckOptAlignment ( TUint8 * aPtr,
TUint & aI,
TUint aNumBytes
) [private]

Align options with NOP if option alignment is enabled.

Parameters

TUint8 * aPtr option data area.
TUint & aI index to the location being processed.
TUint aNumBytes Number of bytes that need to be used for padding.

ClearError()

void ClearError ( ) [inline]

ClearMSS()

void ClearMSS ( ) [inline]

ClearSackOk()

void ClearSackOk ( ) [inline]

ClearTimeStamps()

void ClearTimeStamps ( ) [inline]

ClearUnknown()

void ClearUnknown ( ) [inline]

Error()

TBool Error ( ) const [inline]

Init()

IMPORT_C void Init ( )

Length()

IMPORT_C TInt Length ( ) const

MSS()

TInt MSS ( ) const [inline]

OutputOptions(TUint8 *, TUint)

IMPORT_C TUint OutputOptions ( TUint8 * aPtr,
TUint aMaxLen
) [private]

Parameters

TUint8 * aPtr
TUint aMaxLen

ProcessOptions(const TUint8 *, TUint)

IMPORT_C TBool ProcessOptions ( const TUint8 * aPtr,
TUint aLen
) [private]

Parameters

const TUint8 * aPtr
TUint aLen

SackBlocks()

SequenceBlockQueue & SackBlocks ( ) [inline]

SackOk()

TBool SackOk ( ) const [inline]

SetAlignOpt(TBool)

void SetAlignOpt ( TBool aAlignOpt ) [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)

void SetMSS ( TInt aMSS ) [inline]

Parameters

TInt aMSS

SetSackOk()

void SetSackOk ( ) [inline]

SetTimeStamps(TUint32, TUint32)

void SetTimeStamps ( TUint32 aTsVal,
TUint32 aTsEcr
) [inline]

Parameters

TUint32 aTsVal
TUint32 aTsEcr

SetWindowScale(TUint8)

void SetWindowScale ( TUint8 aWscale ) [inline]

Parameters

TUint8 aWscale

SuppressSack(TBool)

void SuppressSack ( TBool aBool = 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]