CSRTPPacket Class Reference
class CSRTPPacket : public CBase
|
Contains general packet routines
Constructor & Destructor Documentation
CSRTPPacket(const TDesC8 &, CSRTPCryptoHandler &)
Member Functions Documentation
AuthenticationTag()
TPtrC8
|
AuthenticationTag
|
(
|
)
|
[virtual]
|
virtual function for getting the authentication tag, implemented in CSRTPPacketSRTP/CSRTPPacketSRTCP
ConstructL()
void
|
ConstructL
|
(
|
)
|
[protected]
|
CopyHeaderAndPayloadL(TUint, TUint8 *)
Create a new packet by allocating given size and by copying header and given payload. This can be any packet: RTP/SRTP/RTCP/SRTCP
-
leave
-
KErrNone if success, system-wide error code otherwise
Parameters
TUint
aPacketSize
|
new packet size.
|
TUint8
* aPayloadPtr
|
pointer to the payload to be copied.
|
CountSenderPacketIndex()
void
|
CountSenderPacketIndex
|
(
|
)
|
[virtual]
|
virtual function for counting the sender-side packet index implemented in
CSRTPPacketRTP
CreateDecryptedPacketL(TUint8 *)
HBufC8
*
|
CreateDecryptedPacketL
|
(
|
TUint8
*
|
aDecryptedPayloadPtr
|
)
|
[virtual]
|
virtual function for creating decrypted packet, implemented in CSRTPPacketSRTP/CSRTPPacketSRTCP,
CreateEncryptedPacketL(TUint8 *)
HBufC8
*
|
CreateEncryptedPacketL
|
(
|
TUint8
*
|
aEncryptedPayloadPtr
|
)
|
[virtual]
|
virtual function for creating encrypted packet, implemented in CSRTPPacketRTP/CSRTPPacketRTCP,
GetSenderROC()
Get Sender Roll-Over Counter from RTP/SRTP packets defined by RCC mode
GetSequenceNumber()
TUint16
|
GetSequenceNumber
|
(
|
)
|
[protected]
|
Get_Concatenated_MDataL(TBool)
Get the authentication portion for recv stream data For RTP this gets header and payload as authentication portion For RTCP it gets payload + SRTCP index
-
leave
-
KErrNone if success, system-wide error code otherwise
Parameters
TBool
rtcp
|
if it is rtcp packet
|
HeaderAndPayload()
Get header and encrypted portion, excluding possible MKI and authentication tag.
MasterKeyIdentifier()
TPtrC8
|
MasterKeyIdentifier
|
(
|
)
|
[virtual]
|
virtual function for getting the MKI value, implemented in CSRTPPacketSRTP/CSRTPPacketSRTCP
PacketIndex()
virtual function for getting the packet index value, implemented in
CSRTPPacketRTP
Payload()
Get payload entry. Here the "payload" denotes the encrypted portion (incl. RTCP/SRTCP).
PayloadLength()
Get payload length (== length of the encrypted portion).
SequenceNumber()
TUint16
|
SequenceNumber
|
(
|
)
|
[virtual]
|
virtual function for getting the sequence number, implemented in
CSRTPPacketRTP
SetPacketIndex(TUint64)
void
|
SetPacketIndex
|
(
|
TUint64
|
aPacketIndex
|
)
|
[virtual]
|
virtual function for setting the packet index value, implemented in
CSRTPPacketRTP
UpdatePayload()
void
|
UpdatePayload
|
(
|
)
|
[protected]
|
UpdatePayloadLengthL()
void
|
UpdatePayloadLengthL
|
(
|
)
|
[protected]
|
Member Data Documentation
const TUint8 * iDataP
const
TUint8
*
|
iDataP
|
[protected]
|
CSRTPCryptoHandler & iHandler
TUint
iHeaderLength
TUint
|
iHeaderLength
|
[protected]
|
TUint
iPayloadLength
TUint
|
iPayloadLength
|
[protected]
|
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.