RTP Trace System  1.0
Coral::RTPPacket Class Reference

RTP Packet. More...

#include <rtppacket.h>

List of all members.

Public Member Functions

 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)

Private Attributes

card8 V:2
card8 P:1
card8 X:1
card8 CC:4
card8 M:1
card8 PT:7
card16 SequenceNumber
card32 TimeStamp
card32 SSRC
card32 CSRC [16]
char Data [RTPConstants::RTPMaxPayloadLimit]

Friends

ostream & operator<< (ostream &os, const RTPPacket &packet)

Detailed Description

RTP Packet.

This class manages an RTP packet

Author:
Thomas Dreibholz
Version:
1.0
See also:
RTPSender
RTPReceiver

Constructor & Destructor Documentation

Constructor.


Member Function Documentation

Calculate header size.

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

Get CSRC at given index.

Parameters:
indexIndex.
Returns:
RTP CSRC.

Get CSRC count.

Returns:
RTP CSRC count.

Get extension.

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

Get marker.

Returns:
RTP Marker.

Get maximum payload size.

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

Get padding.

Returns:
RTP Padding.
char* Coral::RTPPacket::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 Coral::RTPPacket::getSSRC ( ) const [inline]

Get SSRC.

Returns:
RTP SSRC.

Get time stamp.

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

Get version.

Returns:
RTP Version.
void Coral::RTPPacket::setCSRC ( const cardinal  index,
const card32  csrc 
) [inline]

Set CSRC at given index.

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

Set CSRC count.

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

Set extension.

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

Set marker.

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

Set padding.

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

Set payload type.

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

Set sequence number.

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

Set SSRC.

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

Set time stamp.

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

Set version.

Parameters:
versionRTP Version.

Friends And Related Function Documentation

ostream& operator<< ( ostream &  os,
const RTPPacket packet 
) [friend]

Output operator.


Member Data Documentation


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines