CPppCcp Class Reference

class CPppCcp : public CBase

PPP Compression Control Protocol class (RFC 1962)

Inherits from

Public Member Functions
CPppCcp ( CPppLcp *)
~CPppCcp ()
void ConstructL ()
void FillInInfo ( TNifIfInfo &)
void FrameError ()
void Info ( TNifIfInfo &)
void KillProtocol ()
CPppCcp * NewL ( CPppLcp *)
void ReConfigLink ()
void Recv ( RMBufChain &)
void RemoteCompressorHasReset ()
void RemoveRegistration ()
TInt Send ( RMBufChain &, TAny *)
void SendFlowOn ()
void SendResetRequestL ()
TInt State ()
void UnloadCompressor ()
Protected Member Functions
void FsmApplyConfigRequest ( RPppOptionList &)
void FsmCheckConfigRequest ( RPppOptionList &, RPppOptionList &, RPppOptionList &, RPppOptionList &)
void FsmFillinConfigRequestL ( RPppOptionList &)
void FsmLayerDown ( TInt )
void FsmLayerFinished ( TInt )
TInt FsmLayerStarted ()
void FsmLayerUp ()
void FsmRecvConfigAck ( RPppOptionList &)
void FsmRecvConfigNak ( RPppOptionList &, RPppOptionList &)
void FsmRecvConfigReject ( RPppOptionList &, RPppOptionList &)
TBool FsmRecvUnknownCode ( TUint8 , TUint8 , TInt , RMBufChain &)
void FsmTerminationPhaseComplete ()
Private Member Functions
void AddToRequestListL ( RPppOptionList &, TSglQueIter < CPppCompConfig > &)
void DoSend ()
CPppCompressor * LoadCompressorL ( CPppCompConfig &, TInt )
CPppDeCompressor * LoadDeCompressorL ( CPppCompConfig &, TInt )
TInt SendCallBack ( TAny *)
void SendResetAckL ( 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 > &)

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

Parameters

RPppOptionList & aRequestList
TSglQueIter < CPppCompConfig > & aIterator

ConstructL()

void ConstructL ( )

DoSend()

void DoSend ( ) [private]

FillInInfo(TNifIfInfo &)

void FillInInfo ( TNifIfInfo & aInfo ) [static]

Parameters

TNifIfInfo & aInfo

FrameError()

void FrameError ( )

FsmApplyConfigRequest(RPppOptionList &)

void FsmApplyConfigRequest ( RPppOptionList & aRequestList ) [protected, virtual]

Parameters

RPppOptionList & aRequestList

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

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

Parameters

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

FsmFillinConfigRequestL(RPppOptionList &)

void FsmFillinConfigRequestL ( RPppOptionList & aRequestList ) [protected, virtual]

Parameters

RPppOptionList & aRequestList

FsmLayerDown(TInt)

void FsmLayerDown ( TInt aReason =  KErrNone ) [protected, virtual]

Parameters

TInt aReason =  KErrNone

FsmLayerFinished(TInt)

void FsmLayerFinished ( TInt aReason =  KErrNone ) [protected, virtual]

Parameters

TInt aReason =  KErrNone

FsmLayerStarted()

TInt FsmLayerStarted ( ) [protected, virtual]

FsmLayerUp()

void FsmLayerUp ( ) [protected, virtual]

FsmRecvConfigAck(RPppOptionList &)

void FsmRecvConfigAck ( RPppOptionList & aReplyList ) [protected, virtual]

Parameters

RPppOptionList & aReplyList

FsmRecvConfigNak(RPppOptionList &, RPppOptionList &)

void FsmRecvConfigNak ( RPppOptionList & aReplyList,
RPppOptionList & aReqList
) [protected, virtual]

Parameters

RPppOptionList & aReplyList
RPppOptionList & aReqList

FsmRecvConfigReject(RPppOptionList &, RPppOptionList &)

void FsmRecvConfigReject ( RPppOptionList & aReplyList,
RPppOptionList & aReqList
) [protected, virtual]

Parameters

RPppOptionList & aReplyList
RPppOptionList & aReqList

FsmRecvUnknownCode(TUint8, TUint8, TInt, RMBufChain &)

TBool FsmRecvUnknownCode ( TUint8 aCode,
TUint8 aId,
TInt aLength,
RMBufChain & aPacket
) [protected, virtual]

Parameters

TUint8 aCode
TUint8 aId
TInt aLength
RMBufChain & aPacket

FsmTerminationPhaseComplete()

void FsmTerminationPhaseComplete ( ) [protected, virtual]

Info(TNifIfInfo &)

void Info ( TNifIfInfo & aInfo ) const [virtual]

Parameters

TNifIfInfo & aInfo

KillProtocol()

void KillProtocol ( )

LoadCompressorL(CPppCompConfig &, TInt)

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

Parameters

CPppCompConfig & aPPPCompConfig
TInt aMaxFrameLength

LoadDeCompressorL(CPppCompConfig &, TInt)

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

Parameters

CPppCompConfig & aPPPCompConfig
TInt aMaxFrameLength

NewL(CPppLcp *)

CPppCcp * NewL ( CPppLcp * aLcp ) [static]

Parameters

CPppLcp * aLcp

ReConfigLink()

void ReConfigLink ( ) [virtual]

Recv(RMBufChain &)

void Recv ( RMBufChain & aPacket )

Parameters

RMBufChain & aPacket

RemoteCompressorHasReset()

void RemoteCompressorHasReset ( ) [virtual]

RemoveRegistration()

void RemoveRegistration ( )

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()

void SendFlowOn ( )

SendResetAckL(TUint8)

void SendResetAckL ( TUint8 aId ) [private]

Parameters

TUint8 aId

SendResetRequestL()

void SendResetRequestL ( ) [virtual]

State()

TInt State ( ) [virtual]

UnloadCompressor()

void UnloadCompressor ( )

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]