CSRTPPacket Class Reference

class CSRTPPacket : public CBase

Contains general packet routines

Inherits from

Constructor & Destructor Documentation

CSRTPPacket(const TDesC8 &, CSRTPCryptoHandler &)

CSRTPPacket ( const TDesC8 & aPacket,
CSRTPCryptoHandler & aHandler
) [protected]

Parameters

const TDesC8 & aPacket
CSRTPCryptoHandler & aHandler

~CSRTPPacket()

~CSRTPPacket ( )

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

HBufC8 * CopyHeaderAndPayloadL ( TUint aPacketSize,
TUint8 * aPayloadPtr
)
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,

Parameters

TUint8 * aDecryptedPayloadPtr

CreateEncryptedPacketL(TUint8 *)

HBufC8 * CreateEncryptedPacketL ( TUint8 * aEncryptedPayloadPtr ) [virtual]

virtual function for creating encrypted packet, implemented in CSRTPPacketRTP/CSRTPPacketRTCP,

Parameters

TUint8 * aEncryptedPayloadPtr

GetSenderROC()

TUint32 GetSenderROC ( ) [virtual]

Get Sender Roll-Over Counter from RTP/SRTP packets defined by RCC mode

GetSequenceNumber()

TUint16 GetSequenceNumber ( ) [protected]

Get_Concatenated_MDataL(TBool)

HBufC8 * Get_Concatenated_MDataL ( TBool rtcp )
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()

TPtrC8 HeaderAndPayload ( )

Get header and encrypted portion, excluding possible MKI and authentication tag.

HeaderLength()

TUint HeaderLength ( )

Get header length.

MasterKeyIdentifier()

TPtrC8 MasterKeyIdentifier ( ) [virtual]

virtual function for getting the MKI value, implemented in CSRTPPacketSRTP/CSRTPPacketSRTCP

PacketIndex()

TUint64 PacketIndex ( ) [virtual]

virtual function for getting the packet index value, implemented in CSRTPPacketRTP

Payload()

TPtrC8 Payload ( )

Get payload entry. Here the "payload" denotes the encrypted portion (incl. RTCP/SRTCP).

PayloadLength()

TUint 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

Parameters

TUint64 aPacketIndex

UpdatePayload()

void UpdatePayload ( ) [protected]

UpdatePayloadLengthL()

void UpdatePayloadLengthL ( ) [protected]

Member Data Documentation

const TUint8 * iDataP

const TUint8 * iDataP [protected]

CSRTPCryptoHandler & iHandler

CSRTPCryptoHandler & iHandler [protected]

TUint iHeaderLength

TUint iHeaderLength [protected]

TPtrC8 iPacket

TPtrC8 iPacket [protected]

TPtrC8 iPayload

TPtrC8 iPayload [protected]

TUint iPayloadLength

TUint iPayloadLength [protected]