CRtpPacket Class Reference

class CRtpPacket : public CBase

The class for RTP packet building and processing.

RtpService.dll

Inherits from

Public Member Functions
~CRtpPacket ()
TUint8 * Data ()
const TPtrC8 Des ()
HBufC8 * GetHBuf ()
CRtpPacket * NewL ( TUint , const TUint32 *)
TInt RtpPacketBuild ( TRtpPacketStreamParam *, TRtpPacketIOParam *)
TRtpPayloadType RtpPacketGetPayloadType ()
TRtpSSRC RtpPacketGetSSRC ()
TRtpRtcpEnum RtpPacketProcessL ( TRtpPacketStreamParam *, TRtpPacketIOParam *)
void RtpPacketReset ()
void RtpPacketResetPtr ()
void SetSize ( TInt )
void SetType ( TRtpPacketType )
TInt Size ()
TRtpPacketType Type ()
Private Member Functions
CRtpPacket (const TUint32 *)
void ConstructL ( TUint )
TUint16 Read16 (const TUint8 *const )
TUint32 Read24 (const TUint8 *const )
TUint32 Read32 (const TUint8 *const )
TInt RtpPacketBuildApp ( TRtpPacketStreamParam *, TRtpPacketIOParam *)
TInt RtpPacketBuildBye ( TRtpPacketStreamParam *, TRtpPacketIOParam *)
TInt RtpPacketBuildRr ( TRtpPacketStreamParam *, TRtpPacketIOParam *)
TInt RtpPacketBuildRtcp ( TRtpPacketStreamParam *, TRtpPacketIOParam *)
TInt RtpPacketBuildRtp ( TRtpPacketStreamParam *, TRtpPacketIOParam *)
TInt RtpPacketBuildSdes ( TRtpPacketStreamParam *, TRtpPacketIOParam *)
TInt RtpPacketBuildSr ( TRtpPacketStreamParam *, TRtpPacketIOParam *)
TRtpRtcpEnum RtpPacketProcessAppL ( TRtpPacketStreamParam *, TRtpPacketIOParam *)
TRtpRtcpEnum RtpPacketProcessByeL ( TRtpPacketStreamParam *, TRtpPacketIOParam *)
TRtpRtcpEnum RtpPacketProcessRr ( TRtpPacketStreamParam *, TRtpPacketIOParam *)
TRtpRtcpEnum RtpPacketProcessRtcp ( TRtpPacketStreamParam *, TRtpPacketIOParam *)
TRtpRtcpEnum RtpPacketProcessRtpL ( TRtpPacketStreamParam *, TRtpPacketIOParam *)
TRtpRtcpEnum RtpPacketProcessSdesL ( TRtpPacketStreamParam *, TRtpPacketIOParam *)
TRtpRtcpEnum RtpPacketProcessSr ( TRtpPacketStreamParam *, TRtpPacketIOParam *)
void Write16 ( TUint8 *const , TUint16 )
void Write24 ( TUint8 *const , TUint32 )
void Write32 ( TUint8 *const , TUint32 )
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()
Public Attributes
TBool iCsrcAlloc
TBool iExdataAlloc
TRtpPacketIOParam * iExtractParam
Private Attributes
HBufC8 * iBuf
TUint8 * iData
TUint8 * iDataPtr
const TUint32 * iProfileRTPTimeRates
TInt iSize
TRtpPacketType iType

Constructor & Destructor Documentation

CRtpPacket(const TUint32 *)

CRtpPacket ( const TUint32 * aRtpTimeRates ) [private]

Parameters

const TUint32 * aRtpTimeRates

~CRtpPacket()

~CRtpPacket ( )

Member Functions Documentation

ConstructL(TUint)

void ConstructL ( TUint aPacketSize ) [private]

Parameters

TUint aPacketSize

Data()

TUint8 * Data ( ) [inline]

Des()

const TPtrC8 Des ( ) const [inline]

GetHBuf()

HBufC8 * GetHBuf ( ) [inline]

NewL(TUint, const TUint32 *)

CRtpPacket * NewL ( TUint aPacketSize,
const TUint32 * aRtpTimeRates
) [static]

Parameters

TUint aPacketSize
const TUint32 * aRtpTimeRates

Read16(const TUint8 *const)

TUint16 Read16 ( const TUint8 *const aPointer ) [private]

Parameters

const TUint8 *const aPointer

Read24(const TUint8 *const)

TUint32 Read24 ( const TUint8 *const aPointer ) [private]

Parameters

const TUint8 *const aPointer

Read32(const TUint8 *const)

TUint32 Read32 ( const TUint8 *const aPointer ) [private]

Parameters

const TUint8 *const aPointer

RtpPacketBuild(TRtpPacketStreamParam *, TRtpPacketIOParam *)

TInt RtpPacketBuild ( TRtpPacketStreamParam * aStreamParam,
TRtpPacketIOParam * aInitParam
)

Parameters

TRtpPacketStreamParam * aStreamParam
TRtpPacketIOParam * aInitParam

RtpPacketBuildApp(TRtpPacketStreamParam *, TRtpPacketIOParam *)

TInt RtpPacketBuildApp ( TRtpPacketStreamParam * aStreamParam,
TRtpPacketIOParam * aInitParam
) [private]

Parameters

TRtpPacketStreamParam * aStreamParam
TRtpPacketIOParam * aInitParam

RtpPacketBuildBye(TRtpPacketStreamParam *, TRtpPacketIOParam *)

TInt RtpPacketBuildBye ( TRtpPacketStreamParam * aStreamParam,
TRtpPacketIOParam * aInitParam
) [private]

Parameters

TRtpPacketStreamParam * aStreamParam
TRtpPacketIOParam * aInitParam

RtpPacketBuildRr(TRtpPacketStreamParam *, TRtpPacketIOParam *)

TInt RtpPacketBuildRr ( TRtpPacketStreamParam * aStreamParam,
TRtpPacketIOParam * aInitParam
) [private]

Parameters

TRtpPacketStreamParam * aStreamParam
TRtpPacketIOParam * aInitParam

RtpPacketBuildRtcp(TRtpPacketStreamParam *, TRtpPacketIOParam *)

TInt RtpPacketBuildRtcp ( TRtpPacketStreamParam * aStreamParam,
TRtpPacketIOParam * aInitParam
) [private]

Parameters

TRtpPacketStreamParam * aStreamParam
TRtpPacketIOParam * aInitParam

RtpPacketBuildRtp(TRtpPacketStreamParam *, TRtpPacketIOParam *)

TInt RtpPacketBuildRtp ( TRtpPacketStreamParam * aStreamParam,
TRtpPacketIOParam * aInitParam
) [private]

Parameters

TRtpPacketStreamParam * aStreamParam
TRtpPacketIOParam * aInitParam

RtpPacketBuildSdes(TRtpPacketStreamParam *, TRtpPacketIOParam *)

TInt RtpPacketBuildSdes ( TRtpPacketStreamParam * aStreamParam,
TRtpPacketIOParam * aInitParam
) [private]

Parameters

TRtpPacketStreamParam * aStreamParam
TRtpPacketIOParam * aInitParam

RtpPacketBuildSr(TRtpPacketStreamParam *, TRtpPacketIOParam *)

TInt RtpPacketBuildSr ( TRtpPacketStreamParam * aStreamParam,
TRtpPacketIOParam * aInitParam
) [private]

Parameters

TRtpPacketStreamParam * aStreamParam
TRtpPacketIOParam * aInitParam

RtpPacketGetPayloadType()

TRtpPayloadType RtpPacketGetPayloadType ( )

RtpPacketGetSSRC()

TRtpSSRC RtpPacketGetSSRC ( )

RtpPacketProcessAppL(TRtpPacketStreamParam *, TRtpPacketIOParam *)

TRtpRtcpEnum RtpPacketProcessAppL ( TRtpPacketStreamParam * aStreamParam,
TRtpPacketIOParam * aExtractParam
) [private]

Parameters

TRtpPacketStreamParam * aStreamParam
TRtpPacketIOParam * aExtractParam

RtpPacketProcessByeL(TRtpPacketStreamParam *, TRtpPacketIOParam *)

TRtpRtcpEnum RtpPacketProcessByeL ( TRtpPacketStreamParam * aStreamParam,
TRtpPacketIOParam * aExtractParam
) [private]

Parameters

TRtpPacketStreamParam * aStreamParam
TRtpPacketIOParam * aExtractParam

RtpPacketProcessL(TRtpPacketStreamParam *, TRtpPacketIOParam *)

TRtpRtcpEnum RtpPacketProcessL ( TRtpPacketStreamParam * aStreamParam,
TRtpPacketIOParam * aExtractParam
)

Parameters

TRtpPacketStreamParam * aStreamParam
TRtpPacketIOParam * aExtractParam

RtpPacketProcessRr(TRtpPacketStreamParam *, TRtpPacketIOParam *)

TRtpRtcpEnum RtpPacketProcessRr ( TRtpPacketStreamParam * aStreamParam,
TRtpPacketIOParam * aExtractParam
) [private]

Parameters

TRtpPacketStreamParam * aStreamParam
TRtpPacketIOParam * aExtractParam

RtpPacketProcessRtcp(TRtpPacketStreamParam *, TRtpPacketIOParam *)

TRtpRtcpEnum RtpPacketProcessRtcp ( TRtpPacketStreamParam * aStreamParam,
TRtpPacketIOParam * aExtractParam
) [private]

Parameters

TRtpPacketStreamParam * aStreamParam
TRtpPacketIOParam * aExtractParam

RtpPacketProcessRtpL(TRtpPacketStreamParam *, TRtpPacketIOParam *)

TRtpRtcpEnum RtpPacketProcessRtpL ( TRtpPacketStreamParam * aStreamParam,
TRtpPacketIOParam * aExtractParam
) [private]

Parameters

TRtpPacketStreamParam * aStreamParam
TRtpPacketIOParam * aExtractParam

RtpPacketProcessSdesL(TRtpPacketStreamParam *, TRtpPacketIOParam *)

TRtpRtcpEnum RtpPacketProcessSdesL ( TRtpPacketStreamParam * aStreamParam,
TRtpPacketIOParam * aExtractParam
) [private]

Parameters

TRtpPacketStreamParam * aStreamParam
TRtpPacketIOParam * aExtractParam

RtpPacketProcessSr(TRtpPacketStreamParam *, TRtpPacketIOParam *)

TRtpRtcpEnum RtpPacketProcessSr ( TRtpPacketStreamParam * aStreamParam,
TRtpPacketIOParam * aExtractParam
) [private]

Parameters

TRtpPacketStreamParam * aStreamParam
TRtpPacketIOParam * aExtractParam

RtpPacketReset()

void RtpPacketReset ( )

RtpPacketResetPtr()

void RtpPacketResetPtr ( )

SetSize(TInt)

void SetSize ( TInt aSize ) [inline]

Parameters

TInt aSize

SetType(TRtpPacketType)

void SetType ( TRtpPacketType aType ) [inline]

Parameters

TRtpPacketType aType

Size()

TInt Size ( ) const [inline]

Type()

TRtpPacketType Type ( ) const [inline]

Write16(TUint8 *const, TUint16)

void Write16 ( TUint8 *const aPointer,
TUint16 aValue
) [private]

Parameters

TUint8 *const aPointer
TUint16 aValue

Write24(TUint8 *const, TUint32)

void Write24 ( TUint8 *const aPointer,
TUint32 aValue
) [private]

Parameters

TUint8 *const aPointer
TUint32 aValue

Write32(TUint8 *const, TUint32)

void Write32 ( TUint8 *const aPointer,
TUint32 aValue
) [private]

Parameters

TUint8 *const aPointer
TUint32 aValue

Member Data Documentation

HBufC8 * iBuf

HBufC8 * iBuf [private]

TBool iCsrcAlloc

TBool iCsrcAlloc

TUint8 * iData

TUint8 * iData [private]

TUint8 * iDataPtr

TUint8 * iDataPtr [private]

TBool iExdataAlloc

TBool iExdataAlloc

TRtpPacketIOParam * iExtractParam

TRtpPacketIOParam * iExtractParam

const TUint32 * iProfileRTPTimeRates

const TUint32 * iProfileRTPTimeRates [private]

TInt iSize

TInt iSize [private]

TRtpPacketType iType

TRtpPacketType iType [private]