CSRTPStreamIn Class Reference
class CSRTPStreamIn : public CSRTPStream |
Represents an SRTP stream.
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() |
| CSRTPStream::CSRTPStream(CSRTPSession &,CSRTPCryptoContext *,MSRTPReKeyingObserver &,TBool) |
| CSRTPStream::CSRTPStream(CSRTPSession &,MSRTPReKeyingObserver &,TBool) |
| CSRTPStream::CSRTPStream(CSRTPSession &,TBool) |
| CSRTPStream::CSRTPStream(CSRTPSession &,TUint,CSRTPCryptoContext *,MSRTPReKeyingObserver &,TBool) |
| CSRTPStream::CSRTPStream(CSRTPSession &,TUint,MSRTPReKeyingObserver &,TBool) |
| CSRTPStream::CSRTPStream(CSRTPSession &,const TUint,TBool) |
| CSRTPStream::CreateCryptoHandlerSRTCPL() |
| CSRTPStream::CreateCryptoHandlerSRTPL() |
| CSRTPStream::GetCryptoContext() |
| CSRTPStream::IsContextSet() |
| CSRTPStream::KeyExpired() |
| CSRTPStream::ROC()const |
| CSRTPStream::ReKeyNeeded() |
| CSRTPStream::SSRC()const |
| CSRTPStream::SetROC(TUint32) |
| CSRTPStream::SetSSRC(const TUint) |
| CSRTPStream::StreamType() |
| CSRTPStream::UpdateCryptoHandlerL() |
| CSRTPStream::~CSRTPStream() |
Constructor & Destructor Documentation
CSRTPStreamIn(CSRTPSession &, TUint)
CSRTPStreamIn(CSRTPSession &, TUint, CSRTPCryptoContext *, MSRTPReKeyingObserver &)
CSRTPStreamIn(CSRTPSession &, TUint, MSRTPReKeyingObserver &)
CSRTPStreamIn(CSRTPSession &)
CSRTPStreamIn(CSRTPSession &, CSRTPCryptoContext *, MSRTPReKeyingObserver &)
CSRTPStreamIn(CSRTPSession &, MSRTPReKeyingObserver &)
~CSRTPStreamIn()
Destructor Note that crypto context will be deleted if stream has it's own cryptocontext
Member Functions Documentation
ChangeRTCPState(MSRTPStreamInContext::TContextInState)
ChangeRTPState(MSRTPStreamInContext::TContextInState)
ConstructL()
void | ConstructL | ( | ) | [private] |
InitializeStatesL()
void | InitializeStatesL | ( | ) | [private] |
NewL(CSRTPSession &, TUint)
Two-phased constructor. Use this function if the stream will use the SRTP session's default cryptographic context.
- leave
- KErrNone if success, system-wide error code otherwise
Parameters
CSRTPSession & aSession | The session containing the cryptographic context for this object. |
TUint aSSRC | The synchronization source ID of the RTP stream that corresponds to this object. |
NewL(CSRTPSession &, TUint, CSRTPCryptoContext *, MSRTPReKeyingObserver &)
Two-phased constructor. Use this function if the stream will have its own cryptographic context.
- leave
- KErrNone if success, system-wide error code otherwise
Parameters
CSRTPSession & aSession | The session containing the cryptographic context for this object. |
TUint aSSRC | The synchronization source ID of the RTP stream that corresponds to this object. |
CSRTPCryptoContext * aCon | The cryptographic context, ownership is transfered. |
MSRTPReKeyingObserver & aObs | The callback object |
NewL(CSRTPSession &)
Two-phased constructor. Use this function if the stream will use the SRTP session's default cryptographic context and "late binding" is to be used, that is, no SSRC is provided.
- leave
- KErrNone if success, system-wide error code otherwise
Parameters
CSRTPSession & aSession | The session containing the cryptographic context for this object. |
NewL(CSRTPSession &, CSRTPCryptoContext *, MSRTPReKeyingObserver &)
Two-phased constructor. Use this function if the stream will have its own cryptographic context and "late binding" is to be used, that is, no SSRC is provided.
- leave
- KErrNone if success, system-wide error code otherwise
NewL(CSRTPSession &, TUint, MSRTPReKeyingObserver &)
Two-phased constructor. Use this function if the stream will have its own cryptographic context and this cryptographic context will be set later. Note that if the crypto context is not been set, the encoded packets will not be handled.
- leave
- KErrNone if success, system-wide error code otherwise
Parameters
CSRTPSession & aSession | The session which includes the streams. |
TUint aSSRC | The synchronization source ID of the RTP stream that corresponds to this object. |
MSRTPReKeyingObserver & aObs | The callback object |
NewL(CSRTPSession &, MSRTPReKeyingObserver &)
Two-phased constructor. Use this function if the stream will have its own cryptographic context and "late binding" is to be used, that is, no SSRC is provided.Stream own cryptocontext will be set later. Note that if the crypto context is not been set, the encoded packets will not be handled.
- leave
- KErrNone if success, system-wide error code otherwise
SetCryptoInL(CSRTPCryptoContext *)
Set/Update CryptoContext for InStream Setting cryptographic context must be done to enable encode/decode packets. During offer/Answer, offerer do not know which crypto context is chosen by answerer. CryptoContext then can be set after getting response from answerer. If crypto context has not been set, no packets in secure session will be handled. Updating stream specific crypto Context Note that to update crypto context, ROC will not be re-intialed to zero but the states and number of receiving packets will be reset. This can be use only when keys lifetime has not expired. Crypto context ownersh p is transfered.
- leave
- KErrNone if success, system-wide error code otherwise
UnprotectSrtcpL(const TDesC8 &)
Unprotect an SRTCP packet. The settings for the protection are fetched from the appropriate cryptographic context. If the operation fails, the function leaves with a system error code.
- leave
- KErrNone if success, system-wide error code otherwise
Parameters
const TDesC8 & aPacket | The SRTCP packet to process. |
UnprotectSrtpL(const TDesC8 &)
Unprotect an SRTP packet. The settings for the protection are fetched from the appropriate cryptographic context. If the operation fails, the function leaves with a system error code.
- leave
- KErrNone if success, system-wide error code otherwise
Parameters
const TDesC8 & aPacket | The SRTP packet to process. |
UpdateCryptoAndStatesL()
void | UpdateCryptoAndStatesL | ( | ) | [virtual] |
Delete the existed crypto context and re-initial the states
- leave
- KErrNone if success, system-wide error code otherwise
Member Data Documentation
MSRTPStreamInContext::TContextInState
iCurrentRTCPState
MSRTPStreamInContext::TContextInState
iCurrentRTPState
CArrayVarFlat< TSRTPStreamInStateBase > iStates
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.