ccRTP 2.1.2
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes
AppDataUnit Class Reference

Interface (envelope) to data received over RTP packets. More...

#include <queuebase.h>

Collaboration diagram for AppDataUnit:
Collaboration graph

Public Member Functions

 AppDataUnit (const IncomingRTPPkt &packet, const SyncSource &src)
 ~AppDataUnit ()
 AppDataUnit (const AppDataUnit &src)
AppDataUnitoperator= (const AppDataUnit &source)
 Assignment operator. More...
PayloadType getType () const
const uint8 *const getData () const
 Get data as it is received in RTP packets (i.e. More...
size_t getSize () const
const SyncSourcegetSource () const
bool isMarked () const
 Is this data unit marked?. More...
uint16 getSeqNum () const
 Get data unit sequence number. More...
uint8 getContributorsCount () const
 Get the number of contributing sources in the CSRC list. More...
const uint32 * getContributorsID () const
 Get the array of 32-bit CSRC identifiers. More...

Private Attributes

Pointer< const IncomingRTPPktdatablock
const SyncSourcesource

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.

Federico Montesino Pouzols

Definition at line 68 of file queuebase.h.

Constructor & Destructor Documentation

NAMESPACE_COMMONCPP AppDataUnit::AppDataUnit ( const IncomingRTPPkt packet,
const SyncSource src 

Definition at line 48 of file data.cpp.

AppDataUnit::~AppDataUnit ( )

Definition at line 73 of file queuebase.h.

AppDataUnit::AppDataUnit ( const AppDataUnit src)
srcthe AppDataUnit object being copied

Definition at line 54 of file data.cpp.

Member Function Documentation

uint8 AppDataUnit::getContributorsCount ( ) const

Get the number of contributing sources in the CSRC list.

Definition at line 142 of file queuebase.h.

const uint32* AppDataUnit::getContributorsID ( ) const

Get the array of 32-bit CSRC identifiers.

NULL if (getContributorsCount() == 0)

Definition at line 151 of file queuebase.h.

const uint8* const AppDataUnit::getData ( ) const

Get data as it is received in RTP packets (i.e.

for multi-octet encodings, octets are in network order.

Raw pointer to data block.

Definition at line 105 of file queuebase.h.

uint16 AppDataUnit::getSeqNum ( ) const

Get data unit sequence number.

Definition at line 135 of file queuebase.h.

size_t AppDataUnit::getSize ( ) const
length of data in octets

Definition at line 112 of file queuebase.h.

const SyncSource& AppDataUnit::getSource ( ) const
Source that sent this data

Definition at line 119 of file queuebase.h.

PayloadType AppDataUnit::getType ( ) const
type of this data

Definition at line 94 of file queuebase.h.

bool AppDataUnit::isMarked ( ) const

Is this data unit marked?.

true if marked.

Definition at line 128 of file queuebase.h.

AppDataUnit & AppDataUnit::operator= ( const AppDataUnit source)

Assignment operator.

sourcethe AppDataUnit object being assigned
the result of the assignment

Definition at line 60 of file data.cpp.

Field Documentation

Pointer<const IncomingRTPPkt> AppDataUnit::datablock

Definition at line 155 of file queuebase.h.

const SyncSource* AppDataUnit::source

Definition at line 156 of file queuebase.h.

The documentation for this class was generated from the following files: