RTP Audio System  2.0.0
RTPPacket Struct 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

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

Detailed Description

RTP Packet.

This struct 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 RTPPacket::getCSRC ( cardinal  index) const [inline]

Get CSRC at given index.

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

Get CSRC count.

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

Get extension.

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

Get marker.

Returns:
RTP Marker.

Get maximum payload size.

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

Get padding.

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

Get pointer to payload data.

Returns:
pointer to payload data.
card8 RTPPacket::getPayloadType ( ) const [inline]

Get payload type.

Returns:
RTP Payload type.

Get sequence number.

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

Get SSRC.

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

Get time stamp.

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

Get version.

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

Set CSRC at given index.

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

Set CSRC count.

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

Set extension.

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

Set marker.

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

Set padding.

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

Set payload type.

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

Set sequence number.

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

Set SSRC.

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

Set time stamp.

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

Set version.

Parameters:
versionRTP Version.

Friends And Related Function Documentation

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

Output operator.


Member Data Documentation

card8 RTPPacket::CC [private]
card32 RTPPacket::CSRC[16] [private]
card8 RTPPacket::M [private]
card8 RTPPacket::P [private]
card8 RTPPacket::PT [private]
card8 RTPPacket::V [private]
card8 RTPPacket::X [private]

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