CSRTPStreamOut Class Reference
class CSRTPStreamOut : 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
CSRTPStreamOut(CSRTPSession &, TUint)
CSRTPStreamOut(CSRTPSession &, TUint, CSRTPCryptoContext *, MSRTPReKeyingObserver &)
CSRTPStreamOut(CSRTPSession &, TUint, MSRTPReKeyingObserver &)
Member Functions Documentation
ChangeRTCPState(MSRTPStreamOutContext::TContextOutState)
ChangeRTPState(MSRTPStreamOutContext::TContextOutState)
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 &, TUint, MSRTPReKeyingObserver &)
Two-phased constructor. Use this function if the stream will have its own cryptographic context. Note that if crypto context is not set later, all data packet will not be processed.
-
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.
|
MSRTPReKeyingObserver
& aObs
|
The callback object
|
ProtectRtcpL(const TDesC8 &)
Protect an RTCP packet. The settings for the protection are fetched from the appropriate cryptographic context. If the protection fails, the function leaves with a system error code and the provided RTCP packet is unaltered.
-
leave
-
KErrNone if success, system-wide error code otherwise
Parameters
const
TDesC8
& aPacket
|
The RTCP packet to protect.
|
ProtectRtpL(const TDesC8 &)
Protect an RTP packet. The settings for the protection are fetched from the appropriate cryptographic context. If the protection fails, the function leaves with a system error code and the provided RTP packet is unaltered.
-
leave
-
KErrNone if success, system-wide error code otherwise
Parameters
const
TDesC8
& aPacket
|
The RTP packet to protect. The length of descriptor should be the same with the actual data, otherwise encoding will not be correct.
|
SetCryptoOutL(CSRTPCryptoContext *)
Set CryptoContext for OutStream 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. 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
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
MSRTPStreamOutContext::TContextOutState
iCurrentRTCPState
MSRTPStreamOutContext::TContextOutState
iCurrentRTPState
CArrayVarFlat< TSRTPStreamOutStateBase > 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.