CPppCcp Class Reference

class CPppCcp : public CBase

PPP Compression Control Protocol class (RFC 1962)

Inherits from

Public Member Functions
CPppCcp(CPppLcp *)
~CPppCcp()
voidConstructL()
voidFillInInfo(TNifIfInfo &)
voidFrameError()
voidInfo(TNifIfInfo &)
voidKillProtocol()
CPppCcp *NewL(CPppLcp *)
voidReConfigLink()
voidRecv(RMBufChain &)
voidRemoteCompressorHasReset()
voidRemoveRegistration()
TInt Send(RMBufChain &, TAny *)
voidSendFlowOn()
voidSendResetRequestL()
TInt State()
voidUnloadCompressor()
Protected Member Functions
voidFsmApplyConfigRequest(RPppOptionList &)
voidFsmCheckConfigRequest(RPppOptionList &, RPppOptionList &, RPppOptionList &, RPppOptionList &)
voidFsmFillinConfigRequestL(RPppOptionList &)
voidFsmLayerDown(TInt)
voidFsmLayerFinished(TInt)
TInt FsmLayerStarted()
voidFsmLayerUp()
voidFsmRecvConfigAck(RPppOptionList &)
voidFsmRecvConfigNak(RPppOptionList &, RPppOptionList &)
voidFsmRecvConfigReject(RPppOptionList &, RPppOptionList &)
TBool FsmRecvUnknownCode(TUint8, TUint8, TInt, RMBufChain &)
voidFsmTerminationPhaseComplete()
Private Member Functions
voidAddToRequestListL(RPppOptionList &, TSglQueIter< CPppCompConfig > &)
voidDoSend()
CPppCompressor *LoadCompressorL(CPppCompConfig &, TInt)
CPppDeCompressor *LoadDeCompressorL(CPppCompConfig &, TInt)
TInt SendCallBack(TAny *)
voidSendResetAckL(TUint8)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Private Attributes
CPppCompressor *iCompressor
CObjectCon *iCompressorCon
TSglQue< CPppCompConfig >iCompressorConfig
CPppDeCompressor *iDeCompressor
CObjectCon *iDeCompressorCon
TBool iDead
CPppIniData *iIniFilePtr
TBool iLowerFlowOn
TPppExtraRecvr< CPppCcp >iRecvr
RPppOptionList iRequestWorkList
TUint8 iResetId
CAsyncCallBack *iSendCallBack
RMBufPktQ iSendQ
TBool iSoftwareCompressionOn
TBool iUpperFlowOn

Constructor & Destructor Documentation

CPppCcp(CPppLcp *)

CPppCcp(CPppLcp *aLcp)

Parameters

CPppLcp * aLcp

~CPppCcp()

~CPppCcp()

Member Functions Documentation

AddToRequestListL(RPppOptionList &, TSglQueIter< CPppCompConfig > &)

voidAddToRequestListL(RPppOptionList &aRequestList,
TSglQueIter< CPppCompConfig > &aIterator
)[private]

Parameters

RPppOptionList & aRequestList
TSglQueIter< CPppCompConfig > & aIterator

ConstructL()

voidConstructL()

DoSend()

voidDoSend()[private]

FillInInfo(TNifIfInfo &)

voidFillInInfo(TNifIfInfo &aInfo)[static]

Parameters

TNifIfInfo & aInfo

FrameError()

voidFrameError()

FsmApplyConfigRequest(RPppOptionList &)

voidFsmApplyConfigRequest(RPppOptionList &aRequestList)[protected, virtual]

Parameters

RPppOptionList & aRequestList

FsmCheckConfigRequest(RPppOptionList &, RPppOptionList &, RPppOptionList &, RPppOptionList &)

voidFsmCheckConfigRequest(RPppOptionList &aRequestList,
RPppOptionList &aAckList,
RPppOptionList &aNakList,
RPppOptionList &aRejList
)[protected, virtual]

Parameters

RPppOptionList & aRequestList
RPppOptionList & aAckList
RPppOptionList & aNakList
RPppOptionList & aRejList

FsmFillinConfigRequestL(RPppOptionList &)

voidFsmFillinConfigRequestL(RPppOptionList &aRequestList)[protected, virtual]

Parameters

RPppOptionList & aRequestList

FsmLayerDown(TInt)

voidFsmLayerDown(TIntaReason =  KErrNone )[protected, virtual]

Parameters

TInt aReason =  KErrNone

FsmLayerFinished(TInt)

voidFsmLayerFinished(TIntaReason =  KErrNone )[protected, virtual]

Parameters

TInt aReason =  KErrNone

FsmLayerStarted()

TInt FsmLayerStarted()[protected, virtual]

FsmLayerUp()

voidFsmLayerUp()[protected, virtual]

FsmRecvConfigAck(RPppOptionList &)

voidFsmRecvConfigAck(RPppOptionList &aReplyList)[protected, virtual]

Parameters

RPppOptionList & aReplyList

FsmRecvConfigNak(RPppOptionList &, RPppOptionList &)

voidFsmRecvConfigNak(RPppOptionList &aReplyList,
RPppOptionList &aReqList
)[protected, virtual]

Parameters

RPppOptionList & aReplyList
RPppOptionList & aReqList

FsmRecvConfigReject(RPppOptionList &, RPppOptionList &)

voidFsmRecvConfigReject(RPppOptionList &aReplyList,
RPppOptionList &aReqList
)[protected, virtual]

Parameters

RPppOptionList & aReplyList
RPppOptionList & aReqList

FsmRecvUnknownCode(TUint8, TUint8, TInt, RMBufChain &)

TBool FsmRecvUnknownCode(TUint8aCode,
TUint8aId,
TIntaLength,
RMBufChain &aPacket
)[protected, virtual]

Parameters

TUint8 aCode
TUint8 aId
TInt aLength
RMBufChain & aPacket

FsmTerminationPhaseComplete()

voidFsmTerminationPhaseComplete()[protected, virtual]

Info(TNifIfInfo &)

voidInfo(TNifIfInfo &aInfo)const [virtual]

Parameters

TNifIfInfo & aInfo

KillProtocol()

voidKillProtocol()

LoadCompressorL(CPppCompConfig &, TInt)

CPppCompressor *LoadCompressorL(CPppCompConfig &aPPPCompConfig,
TIntaMaxFrameLength
)[private]

Parameters

CPppCompConfig & aPPPCompConfig
TInt aMaxFrameLength

LoadDeCompressorL(CPppCompConfig &, TInt)

CPppDeCompressor *LoadDeCompressorL(CPppCompConfig &aPPPCompConfig,
TIntaMaxFrameLength
)[private]

Parameters

CPppCompConfig & aPPPCompConfig
TInt aMaxFrameLength

NewL(CPppLcp *)

CPppCcp *NewL(CPppLcp *aLcp)[static]

Parameters

CPppLcp * aLcp

ReConfigLink()

voidReConfigLink()[virtual]

Recv(RMBufChain &)

voidRecv(RMBufChain &aPacket)

Parameters

RMBufChain & aPacket

RemoteCompressorHasReset()

voidRemoteCompressorHasReset()[virtual]

RemoveRegistration()

voidRemoveRegistration()

Send(RMBufChain &, TAny *)

TInt Send(RMBufChain &aPdu,
TAny *aSource
)[virtual]

Parameters

RMBufChain & aPdu
TAny * aSource

SendCallBack(TAny *)

TInt SendCallBack(TAny *aCProtocol)[private, static]

Parameters

TAny * aCProtocol

SendFlowOn()

voidSendFlowOn()

SendResetAckL(TUint8)

voidSendResetAckL(TUint8aId)[private]

Parameters

TUint8 aId

SendResetRequestL()

voidSendResetRequestL()[virtual]

State()

TInt State()[virtual]

UnloadCompressor()

voidUnloadCompressor()

Member Data Documentation

CPppCompressor * iCompressor

CPppCompressor *iCompressor[private]

Object implementing the negotiated compression algorithm

CObjectCon * iCompressorCon

CObjectCon *iCompressorCon[private]

TSglQue< CPppCompConfig > iCompressorConfig

TSglQue< CPppCompConfig >iCompressorConfig[private]

Static compressor configuration information

CPppDeCompressor * iDeCompressor

CPppDeCompressor *iDeCompressor[private]

Object implementing the negotiated decompression algorithm

CObjectCon * iDeCompressorCon

CObjectCon *iDeCompressorCon[private]

TBool iDead

TBool iDead[private]

Set to ETrue once KillProtocol has been called

CPppIniData * iIniFilePtr

CPppIniData *iIniFilePtr[private]

PPP .ini file parsing object

TBool iLowerFlowOn

TBool iLowerFlowOn[private]

TPppExtraRecvr< CPppCcp > iRecvr

TPppExtraRecvr< CPppCcp >iRecvr[private]

Object to take outgoing packets

RPppOptionList iRequestWorkList

RPppOptionList iRequestWorkList[private]

Working list of compressor configurations left to try

TUint8 iResetId

TUint8 iResetId[private]

Identification code of the last Reset Request packet sent

CAsyncCallBack * iSendCallBack

CAsyncCallBack *iSendCallBack[private]

Active object used to schedule sending packets

RMBufPktQ iSendQ

RMBufPktQ iSendQ[private]

Queue of packets to send

TBool iSoftwareCompressionOn

TBool iSoftwareCompressionOn[private]

Whether compression has been enabled in the configuration database

TBool iUpperFlowOn

TBool iUpperFlowOn[private]