TRtpEvent Class Reference

#include <mw/rtp.h>

Link against: rtpremoved.lib

class TRtpEvent

Detailed Description

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.

See also: RRtpSession RRtpSendSource RRtpReceiveSource

Constructor & Destructor Documentation

TRtpEvent ( TRtpEventType, TInt, TAny * )

IMPORT_CTRtpEvent(TRtpEventTypeaType,
TIntaStatus,
TAny *aData
)

Constructor.

ParameterDescription
aTypeThe event type.
aStatusThe event status.
aDataAdditional data that is dependent on the event type.

Member Function Documentation

IsReceiveSourceEvent ( )

IMPORT_C TBoolIsReceiveSourceEvent()const

Tests whether this event is associated with a receive stream.

Returns: True, if this event is associated with a receive stream, false otherwise.

IsSendSourceEvent ( )

IMPORT_C TBoolIsSendSourceEvent()const

Tests whether this event is associated with a send stream.

Returns: True, if this event is associated with a send stream, false otherwise.

IsSessionEvent ( )

IMPORT_C TBoolIsSessionEvent()const

Tests whether this event is associated with an RTP session.

Returns: True, if this event is associated with an RTP session, false otherwise.

ReceiveSource ( )

IMPORT_C RRtpReceiveSourceReceiveSource()const

Gets a handle to the receive stream associated with this event.

This function should only be called for events that are associated with a receive stream, otherwise it raises a panic.

panic
RTP 8 if the event is not associated with a receive stream. Note that this panic is raised in debug mode only; in release mode, calling this function on in inappropriate event is likely to raise panics such as KERN-EXEC 3.

See also: TRtpEvent::IsReceiveSourceEvent()

SendSource ( )

IMPORT_C RRtpSendSourceSendSource()const

Gets a handle to the send stream associated with this event.

This function should only be called for events that are associated with a send stream, otherwise it raises a panic.

panic
RTP 8 if the event is not associated with a send stream. Note that this panic is raised in debug mode only; in release mode, calling this function on in inappropriate event is likely to raise panics such as KERN-EXEC 3.

See also: TRtpEvent::IsSendSourceEvent()

Session ( )

IMPORT_C RRtpSessionSession()const

Gets a handle to the session associated with this event.

This function should only be called for events that are associated with an RTP session, otherwise it raises a panic.

panic
RTP 8 if the event is not associated with an RTP session. Note that this panic is raised in debug mode only; in release mode, calling this function on in inappropriate event is likely to raise panics such as KERN-EXEC 3.

See also: TRtpEvent::IsSessionEvent()

Status ( )

TInt Status()const [inline]

Gets the event status.

The meaning of this depends on the event type.

See also: TRtpEventType

Type ( )

TRtpEventType Type()const [inline]

Gets the type of this event.

Returns: The event type.