TRtpEvent Class Reference

class TRtpEvent

An RTP event.

An event is generated when anything happens that a client might want to know about. The class encapulates two pieces of information: 1. An event type as defined by a TRtpEventType value. 2. Additional information whose meaning is dependent on the event type.

Additional information may be implicitly associated with the event, but still needs to be fetched from another object, for example, when processing an ERtpPacketReceived event, the packet (represented by a RRtpReceivePacket handle) must be obtained from the receive stream (represented by a RRtpReceiveStream handle).

Events are always associated with either an RTP session, a send stream or a receive stream, and this class has functions for getting the corresponding handle.

RRtpSession

RRtpSendSource

RRtpReceiveSource

Constructor & Destructor Documentation

TRtpEvent(TRtpEventType, TInt, TAny *)

IMPORT_CTRtpEvent(TRtpEventTypeaType,
TIntaStatus,
TAny *aData
)

Parameters

TRtpEventType aType
TInt aStatus
TAny * aData

Member Functions Documentation

IsReceiveSourceEvent()

IMPORT_C TBoolIsReceiveSourceEvent()const

IsSendSourceEvent()

IMPORT_C TBoolIsSendSourceEvent()const

IsSessionEvent()

IMPORT_C TBoolIsSessionEvent()const

ReceiveSource()

IMPORT_C RRtpReceiveSourceReceiveSource()const

SendSource()

IMPORT_C RRtpSendSourceSendSource()const

Session()

IMPORT_C RRtpSessionSession()const

Status()

TInt Status()const [inline]

Gets the event status.

The meaning of this depends on the event type.

TRtpEventType

Type()

TRtpEventType Type()const [inline]

Gets the type of this event.

The event type.

Member Data Documentation

TAny * iData

TAny *iData[private]

TInt iStatus

TInt iStatus[private]

TRtpEventType iType

TRtpEventType iType[private]