RRtpSendSource Class Reference

class RRtpSendSource

A handle to a send stream.

Use this class to manage the creation and sending of packets. A session can have only one send stream.

Only one packet can be sent at any one time. Once a packet has been sent, the packet cannot be closed and no further packets can be sent until an event signalling the completion of the send operation has occurred. This will be one of the events defined by the enum values: ERtpSendSucceeded and ERtpSendFail.

A client must monitor these events so that it can schedule the sending of subsequent packets. It does this by implementing and registering callback functions that handle these events.

TRtpEventType

Constructor & Destructor Documentation

RRtpSendSource()

RRtpSendSource()[inline]

Default constructor

Member Functions Documentation

Alignment()

IMPORT_C TIntAlignment()const

ByeL(TDesC8 &)

IMPORT_C voidByeL(TDesC8 &aReason)

Sends a Bye RTCP packet.

Parameters

TDesC8 & aReasonThe reason for sending the Bye RTCP packet.

Cancel()

IMPORT_C voidCancel()

Close()

IMPORT_C voidClose()

GetLocalSSRC()

IMPORT_C TUint32GetLocalSSRC()

IsOpen()

TBool IsOpen()const [inline]

Tests whether the send stream represented by this handle is open.

ETrue, if the send stream is open, false otherwise.

IsSending()

IMPORT_C TBoolIsSending()

NewSendPacketL(TInt, TInt)

IMPORT_C RRtpSendPacketNewSendPacketL(TIntaPayloadSize = 0,
TIntaHeaderExtensionSize =  KRtpNoExtension
)

Parameters

TInt aPayloadSize = 0
TInt aHeaderExtensionSize =  KRtpNoExtension

NewSendPacketLC(TInt, TInt)

IMPORT_C RRtpSendPacketNewSendPacketLC(TIntaPayloadSize = 0,
TIntaHeaderExtensionSize =  KRtpNoExtension
)

Parameters

TInt aPayloadSize = 0
TInt aHeaderExtensionSize =  KRtpNoExtension

PrivRegisterEventCallbackL(TUint, TRtpCallbackFunction, TAny *, TInt)

IMPORT_C voidPrivRegisterEventCallbackL(TUintaType,
TRtpCallbackFunctionaCallback,
TAny *aPtr,
TIntaParameter
)

The event manager contains a number of callback registrations, each of which binds a function and pointer (normally an object) to a particular kind of event. Registrations can be bound to all events on a stream.

If a function is registered for a particular event, it will be called when that event occurs. One callback function can be associated with more than 1 callback registration. Callback functions take a pointer argument which was supplied as part of the registration

Parameters

TUint aTypeEvent type
TRtpCallbackFunction aCallbackCallback object
TAny * aPtrPointer to data that needs to be passed to the callback function
TInt aParameterParameter to be passed to internal callback subsystem

PrivRegisterEventCallbackL(TUint, TRtpCallbackFunction, TAny *)

IMPORT_C voidPrivRegisterEventCallbackL(TUintaType,
TRtpCallbackFunctionaCallback,
TAny *aPtr
)

The event manager contains a number of callback registrations, each of which binds a function and pointer (normally an object) to a particular kind of event. Registrations can be bound to all events on a stream.

If a function is registered for a particular event, it will be called when that event occurs. One callback function can be associated with more than 1 callback registration. Callback functions take a pointer argument which was supplied as part of the registration

Parameters

TUint aTypeEvent type
TRtpCallbackFunction aCallbackCallback object
TAny * aPtrPointer to data that needs to be passed to the callback function

RegisterEventCallbackL(TRtpEventType, void(*)(T *, const TRtpEvent &), T *, TRtpOneShotness, TInt)

voidRegisterEventCallbackL(TRtpEventTypeaType,
void(*)(T *, const TRtpEvent &)aCallback,
T *aPtr,
TRtpOneShotnessaOneShot,
TIntaParameter
)[inline]

Parameters

TRtpEventType aType
void(*)(T *, const TRtpEvent &) aCallback
T * aPtr
TRtpOneShotness aOneShot
TInt aParameter

RegisterEventCallbackL(TRtpEventType, void(*)(T *, const TRtpEvent &), T *, TRtpOneShotness)

voidRegisterEventCallbackL(TRtpEventTypeaType,
void(*)(T *, const TRtpEvent &)aCallback,
T *aPtr,
TRtpOneShotnessaOneShot = ERtpNotOneShot
)[inline]

Parameters

TRtpEventType aType
void(*)(T *, const TRtpEvent &) aCallback
T * aPtr
TRtpOneShotness aOneShot = ERtpNotOneShot

SetAlignment(TInt)

IMPORT_C voidSetAlignment(TIntaAlignment)

Parameters

TInt aAlignment

SetDefaultPayloadSize(TInt)

IMPORT_C voidSetDefaultPayloadSize(TIntaPayloadSize)

Parameters

TInt aPayloadSize

SetPayloadType(TUint)

IMPORT_C voidSetPayloadType(TUintaPayloadType)

Parameters

TUint aPayloadType

operator!=(RRtpSendSource)

TBool operator!=(RRtpSendSourceaThat)const [inline]

Tests whether this send stream handle represents a different send stream to the one represented by the specified handle.

ETrue, if the represented send streams are different, false otherwise.

Parameters

RRtpSendSource aThatThe handle of the send stream to be compared.

operator==(RRtpSendSource)

TBool operator==(RRtpSendSourceaThat)const [inline]

Tests whether this send stream handle represents the same send stream as the one represented by the specified handle.

ETrue, if the represented send streams are the same, false otherwise.

Parameters

RRtpSendSource aThatThe handle of the send stream to be compared.

Member Data Documentation

CRtpSendSource * iPtr

CRtpSendSource *iPtr[private]