RTP Audio System  2.0.0
rtppacket.h File Reference
#include "tdsystem.h"
#include "tdsocket.h"
#include "rtppacket.icc"

Go to the source code of this file.

Classes

struct  RTPPacket
 RTP Packet. More...

Namespaces

namespace  RTPConstants

Functions

struct RTPPacket __attribute__ ((packed))
 RTPPacket ()
card8 getVersion () const
card8 getPadding () const
card8 getExtension () const
card8 getCSRCCount () const
bool getMarker () const
card8 getPayloadType () const
card16 getSequenceNumber () const
card32 getTimeStamp () const
card32 getSSRC () const
card32 getCSRC (cardinal index) const
cardinal calculateHeaderSize () const
char * getPayloadData () const
cardinal getMaxPayloadSize () const
void setVersion (const card8 version)
void setPadding (const card8 padding)
void setExtension (const card8 extension)
void setCSRCCount (const card8 count)
void setMarker (const bool marker)
void setPayloadType (const card8 payloadType)
void setSequenceNumber (const card16 sequenceNumber)
void setTimeStamp (const card32 timeStamp)
void setSSRC (const card32 ssrc)
void setCSRC (const cardinal index, const card32 csrc)
std::ostream & operator<< (std::ostream &os, const RTPPacket &packet)

Variables

const cardinal RTPConstants::RTPMaxPayloadLimit = 8192
const cardinal RTPConstants::RTPDefaultMaxPayload = 1376
const cardinal RTPConstants::RTPDefaultHeaderSize = 12
const card8 RTPConstants::RTPVersion = 2
const double RTPConstants::RTPMicroSecondsPerTimeStamp = 1000.0 / 16.0
const cardinal RTPConstants::RTPMaxQualityLayers = 16
card8 V
card8 P
card8 X
card8 CC
card8 M
card8 PT
card16 SequenceNumber
card32 TimeStamp
card32 SSRC
card32 CSRC [16]
char Data [RTPConstants::RTPMaxPayloadLimit]

Function Documentation

struct RTPPacket __attribute__ ( (packed)  )

Calculate header size.

Returns:
Header size.
card32 __attribute__::getCSRC ( cardinal  index) const [inline]

Get CSRC at given index.

Parameters:
indexIndex.
Returns:
RTP CSRC.
card8 __attribute__::getCSRCCount ( ) const [inline]

Get CSRC count.

Returns:
RTP CSRC count.
card8 __attribute__::getExtension ( ) const [inline]

Get extension.

Returns:
RTP Extension.
bool __attribute__::getMarker ( ) const [inline]

Get marker.

Returns:
RTP Marker.

Get maximum payload size.

Returns:
Maximum payload size.
card8 __attribute__::getPadding ( ) const [inline]

Get padding.

Returns:
RTP Padding.
char* __attribute__::getPayloadData ( ) const [inline]

Get pointer to payload data.

Returns:
pointer to payload data.

Get payload type.

Returns:
RTP Payload type.

Get sequence number.

Returns:
RTP Sequence number.
card32 __attribute__::getSSRC ( ) const [inline]

Get SSRC.

Returns:
RTP SSRC.
card32 __attribute__::getTimeStamp ( ) const [inline]

Get time stamp.

Returns:
RTP Time stamp.
card8 __attribute__::getVersion ( ) const [inline]

Get version.

Returns:
RTP Version.
friend std::ostream& __attribute__::operator<< ( std::ostream &  os,
const RTPPacket packet 
)

Output operator.

Constructor.

void __attribute__::setCSRC ( const cardinal  index,
const card32  csrc 
) [inline]

Set CSRC at given index.

Parameters:
indexIndex.
csrcCSRC.
void __attribute__::setCSRCCount ( const card8  count) [inline]

Set CSRC count.

Parameters:
countRTP CSRC count.
void __attribute__::setExtension ( const card8  extension) [inline]

Set extension.

Parameters:
extensionRTP Extension.
void __attribute__::setMarker ( const bool  marker) [inline]

Set marker.

Parameters:
markerRTP Marker.
void __attribute__::setPadding ( const card8  padding) [inline]

Set padding.

Parameters:
paddingRTP Padding.
void __attribute__::setPayloadType ( const card8  payloadType) [inline]

Set payload type.

Parameters:
payloadTypeRTP Payload type.
void __attribute__::setSequenceNumber ( const card16  sequenceNumber) [inline]

Set sequence number.

Parameters:
sequenceNumberRTP Sequence number.
void __attribute__::setSSRC ( const card32  ssrc) [inline]

Set SSRC.

Parameters:
ssrcRTP SSRC.
void __attribute__::setTimeStamp ( const card32  timeStamp) [inline]

Set time stamp.

Parameters:
timeStampRTP timeStamp.
void __attribute__::setVersion ( const card8  version) [inline]

Set version.

Parameters:
versionRTP Version.

Variable Documentation

card32 CSRC[16]
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines