Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <rtp.h>

Class RRtpSendPacket

class RRtpSendPacket : public RRtpPacket;

Description

A handle to an RTP packet to be sent (an RTP send packet).

Derivation

Members

Defined in RRtpSendPacket:

Inherited from RRtpPacket:


Member functions


Send()

IMPORT_C void Send();

Description

Sends the RTP packet.

The packet must be correctly initialised, apart from the sequence number and the SSRC (the 32-bit numeric synchronisation source identifier).

The packet must continue to exist until it has been sent, i.e. until an ERtpSendSucceeded or an ERtpSendFailed event has been received on the RRtpSendSource.

Panic codes

RTP

1 if the packet has not been opened. Note that this panic is raised in debug mode only; in release mode, calling this function when the packet has not been opened is likely to raise panics such as KERN-EXEC 3.


WritePayload()

IMPORT_C TDes8& WritePayload();

Description

Gets a modifiable descriptor into which the client can write the packet's payload.

Return value

TDes8 &

A reference to the modifiable descriptor.

Panic codes

RTP

1 if the packet has not been opened. Note that this panic is raised in debug mode only; in release mode, calling this function when the packet has not been opened is likely to raise panics such as KERN-EXEC 3.


SetTimestamp(TUint)

IMPORT_C void SetTimestamp(TUint aTimestamp);

Description

Sets the RTP packet's timestamp

Parameters

TUint aTimestamp

The RTP packet timestamp

Panic codes

RTP

1 if the packet has not been opened. Note that this panic is raised in debug mode only; in release mode, calling this function when the packet has not been opened is likely to raise panics such as KERN-EXEC 3.

See also:


SetMarker(TBool)

IMPORT_C void SetMarker(TBool aMark);

Description

Sets or unsets the RTP packet's marker bit.

Parameters

TBool aMark

ETrue, if the market bit is to be set, EFalse, if the marker bit is to be unset.

Panic codes

RTP

1 if the packet has not been opened. Note that this panic is raised in debug mode only; in release mode, calling this function when the packet has not been opened is likely to raise panics such as KERN-EXEC 3.

See also:


SetPayloadType(TUint)

IMPORT_C void SetPayloadType(TUint aPayloadType);

Description

Sets the RTP packet's payload type.

Parameters

TUint aPayloadType

The 7-bit payload type.

Panic codes

RTP

1 if the packet has not been opened. Note that this panic is raised in debug mode only; in release mode, calling this function when the packet has not been opened is likely to raise panics such as KERN-EXEC 3.

RTP

2 if the specified payload type value is greater than or equal to 256.


SetFlags(TUint)

IMPORT_C void SetFlags(TUint aFlags);

Description

Sets the first 32 bits of the packet header.

This function may be useful for profiles that do unusual things such as combining the payload type and marker bits, but should be used with extreme caution as no validity checking is done on the values passed in.

Note that the number passed in is in opposite endianess to that required by the packet. The function does not correct the endianess.

Parameters

TUint aFlags

The 32 bits. aFlags expected in this format.... V is most significant bit in aFlags 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |V=2|P|X| CC |M| PT | sequence number | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Panic codes

RTP

1 if the packet has not been opened. Note that this panic is raised in debug mode only; in release mode, calling this function when the packet has not been opened is likely to raise panics such as KERN-EXEC 3.

See also: