CSRTPStream Class Reference

class CSRTPStream : public CBase

Represents an SRTP stream.

Inherits from

Constructor & Destructor Documentation

CSRTPStream(CSRTPSession &, const TUint, TBool)

CSRTPStream(CSRTPSession &aSession,
const TUintaSSRC,
TBoolaStreamType
)[protected]

Parameters

CSRTPSession & aSession
const TUint aSSRC
TBool aStreamType

CSRTPStream(CSRTPSession &, TUint, CSRTPCryptoContext *, MSRTPReKeyingObserver &, TBool)

CSRTPStream(CSRTPSession &aSession,
TUintaSSRC,
CSRTPCryptoContext *aCon,
MSRTPReKeyingObserver &aObs,
TBoolaStreamType
)[protected]

Parameters

CSRTPSession & aSession
TUint aSSRC
CSRTPCryptoContext * aCon
MSRTPReKeyingObserver & aObs
TBool aStreamType

CSRTPStream(CSRTPSession &, TBool)

CSRTPStream(CSRTPSession &aSession,
TBoolaStreamType
)[protected]

Parameters

CSRTPSession & aSession
TBool aStreamType

CSRTPStream(CSRTPSession &, CSRTPCryptoContext *, MSRTPReKeyingObserver &, TBool)

CSRTPStream(CSRTPSession &aSession,
CSRTPCryptoContext *aCon,
MSRTPReKeyingObserver &aObs,
TBoolaStreamType
)[protected]

Parameters

CSRTPSession & aSession
CSRTPCryptoContext * aCon
MSRTPReKeyingObserver & aObs
TBool aStreamType

CSRTPStream(CSRTPSession &, TUint, MSRTPReKeyingObserver &, TBool)

CSRTPStream(CSRTPSession &aSession,
TUintaSSRC,
MSRTPReKeyingObserver &aObs,
TBoolaStreamType
)[protected]

Parameters

CSRTPSession & aSession
TUint aSSRC
MSRTPReKeyingObserver & aObs
TBool aStreamType

CSRTPStream(CSRTPSession &, MSRTPReKeyingObserver &, TBool)

CSRTPStream(CSRTPSession &aSession,
MSRTPReKeyingObserver &aObs,
TBoolaStreamType
)[protected]

Parameters

CSRTPSession & aSession
MSRTPReKeyingObserver & aObs
TBool aStreamType

~CSRTPStream()

~CSRTPStream()

Destructor

Member Functions Documentation

CreateCryptoHandlerSRTCPL()

voidCreateCryptoHandlerSRTCPL()[protected]

Create RTCP crypto handler

CreateCryptoHandlerSRTPL()

voidCreateCryptoHandlerSRTPL()[protected]

Create RTP crypto handler

GetCryptoContext()

CSRTPCryptoContext &GetCryptoContext()

Get cryptographic context associated for this stream or the one associated for the session

IsContextSet()

TBool IsContextSet()

Check if crypto context has been set

KeyExpired()

voidKeyExpired()

Call for KeyExpired

ROC()

IMPORT_C TUint32ROC()const

Get roll-over counter value.

ReKeyNeeded()

voidReKeyNeeded()

Call for Rekey

SSRC()

IMPORT_C TUintSSRC()const

Get SSRC

SetROC(TUint32)

IMPORT_C voidSetROC(TUint32aROC)

Set roll-over counter value. RFC 3711 3.3.1 ROC() can not be reset to 0 after Re-Key

Parameters

TUint32 aROCThe new ROC value.

SetSSRC(const TUint)

voidSetSSRC(const TUintaSSRC)

Set SSRC value if the stream's SSRC is 0 as late binding

Parameters

const TUint aSSRCThe new SSRC value.

StreamType()

IMPORT_C TBoolStreamType()

Tell stream type is InStream or OutStream

UpdateCryptoAndStatesL()

voidUpdateCryptoAndStatesL()[pure virtual]
Delete the existed crypto context and re-initial the states
leave
KErrNone if success, system-wide error code otherwise

UpdateCryptoHandlerL()

voidUpdateCryptoHandlerL()[protected]

Delete the existed crypto handler and create a new one

Member Data Documentation

CSRTPCryptoContext * iContext

CSRTPCryptoContext *iContext[protected]

CSRTPCryptoHandlerSRTCP * iHandlerRTCP

CSRTPCryptoHandlerSRTCP *iHandlerRTCP[protected]

CSRTPCryptoHandlerSRTP * iHandlerRTP

CSRTPCryptoHandlerSRTP *iHandlerRTP[protected]

TBool iIsStreamInType

TBool iIsStreamInType[protected]

MSRTPReKeyingObserver * iObserver

MSRTPReKeyingObserver *iObserver[protected]

TUint32 iROC

TUint32 iROC[protected]

TBool iRekey

TBool iRekey[protected]

TUint iSSRC

TUint iSSRC[protected]

CSRTPSession & iSession

CSRTPSession &iSession[protected]

TSglQueLink iStreamLink

TSglQueLink iStreamLink

iStreamLink, Link to list.

const TInt iStreamOffset

const TIntiStreamOffset[static]

iStreamOffset, List offset.

TBool iStrmSpecificCrypto

TBool iStrmSpecificCrypto[protected]