SYNOPSIS

#include <queuebase.h>

Public Member Functions

AppDataUnit (const IncomingRTPPkt &packet, const SyncSource &src)

~AppDataUnit ()

AppDataUnit (const AppDataUnit &src)

AppDataUnit & operator= (const AppDataUnit &source)

Assignment operator. PayloadType getType () const

const uint8 *const getData () const

Get data as it is received in RTP packets (i.e. size_t getSize () const

const SyncSource & getSource () const

bool isMarked () const

Is this data unit marked?. uint16 getSeqNum () const

Get data unit sequence number. uint8 getContributorsCount () const

Get the number of contributing sources in the CSRC list. const uint32 * getContributorsID () const

Get the array of 32-bit CSRC identifiers.

Detailed Description

Interface (envelope) to data received over RTP packets.

A class of objects representing data transmitted over RTP packets. Tipically, this object will apply to received data. Data blocks received via RTP connections as well as its related objects (source, etc), are accessed through the methods of this class.

Author:

Federico Montesino Pouzols [email protected]

Examples: audiorx.cpp, ccrtptest.cpp, rtpduphello.cpp, rtphello.cpp, and rtplisten.cpp.

Constructor & Destructor Documentation

AppDataUnit::AppDataUnit (const \fBIncomingRTPPkt\fP &packet, const \fBSyncSource\fP &src)

AppDataUnit::~AppDataUnit ()\fC [inline]\fP

AppDataUnit::AppDataUnit (const \fBAppDataUnit\fP &src)

Parameters:

src the AppDataUnit object being copied

Member Function Documentation

uint8 AppDataUnit::getContributorsCount () const\fC [inline]\fP

Get the number of contributing sources in the CSRC list.

const uint32* AppDataUnit::getContributorsID () const\fC [inline]\fP

Get the array of 32-bit CSRC identifiers.

Returns:

NULL if (getContributorsCount() == 0)

const uint8* const AppDataUnit::getData () const\fC [inline]\fP

Get data as it is received in RTP packets (i.e. for multi-octet encodings, octets are in network order.

Returns:

Raw pointer to data block.

Examples: audiorx.cpp, ccrtptest.cpp, rtpduphello.cpp, and rtphello.cpp.

uint16 AppDataUnit::getSeqNum () const\fC [inline]\fP

Get data unit sequence number.

size_t AppDataUnit::getSize () const\fC [inline]\fP

Returns:

length of data in octets

Examples: audiorx.cpp, and rtplisten.cpp.

const \fBSyncSource\fP& AppDataUnit::getSource () const\fC [inline]\fP

Returns:

Source that sent this data

Examples: rtplisten.cpp.

\fBPayloadType\fP AppDataUnit::getType () const\fC [inline]\fP

Returns:

type of this data

Examples: rtplisten.cpp.

bool AppDataUnit::isMarked () const\fC [inline]\fP

Is this data unit marked?.

Returns:

true if marked.

\fBAppDataUnit\fP& AppDataUnit::operator= (const \fBAppDataUnit\fP &source)

Assignment operator.

Parameters:

source the AppDataUnit object being assigned

Returns:

the result of the assignment

Author

Generated automatically by Doxygen for ccRTP from the source code.