RTP Audio System
2.0.0
|
RTP Packet. More...
#include <rtppacket.h>
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) |
Constructor.
cardinal RTPPacket::calculateHeaderSize | ( | ) | const [inline] |
Calculate header size.
card32 RTPPacket::getCSRC | ( | cardinal | index | ) | const [inline] |
Get CSRC at given index.
index | Index. |
card8 RTPPacket::getCSRCCount | ( | ) | const [inline] |
Get CSRC count.
card8 RTPPacket::getExtension | ( | ) | const [inline] |
Get extension.
bool RTPPacket::getMarker | ( | ) | const [inline] |
Get marker.
cardinal RTPPacket::getMaxPayloadSize | ( | ) | const [inline] |
Get maximum payload size.
card8 RTPPacket::getPadding | ( | ) | const [inline] |
Get padding.
char* RTPPacket::getPayloadData | ( | ) | const [inline] |
Get pointer to payload data.
card8 RTPPacket::getPayloadType | ( | ) | const [inline] |
Get payload type.
card16 RTPPacket::getSequenceNumber | ( | ) | const [inline] |
Get sequence number.
card32 RTPPacket::getSSRC | ( | ) | const [inline] |
Get SSRC.
card32 RTPPacket::getTimeStamp | ( | ) | const [inline] |
Get time stamp.
card8 RTPPacket::getVersion | ( | ) | const [inline] |
Get version.
void RTPPacket::setCSRC | ( | const cardinal | index, |
const card32 | csrc | ||
) | [inline] |
Set CSRC at given index.
index | Index. |
csrc | CSRC. |
void RTPPacket::setCSRCCount | ( | const card8 | count | ) | [inline] |
Set CSRC count.
count | RTP CSRC count. |
void RTPPacket::setExtension | ( | const card8 | extension | ) | [inline] |
Set extension.
extension | RTP Extension. |
void RTPPacket::setMarker | ( | const bool | marker | ) | [inline] |
Set marker.
marker | RTP Marker. |
void RTPPacket::setPadding | ( | const card8 | padding | ) | [inline] |
Set padding.
padding | RTP Padding. |
void RTPPacket::setPayloadType | ( | const card8 | payloadType | ) | [inline] |
Set payload type.
payloadType | RTP Payload type. |
void RTPPacket::setSequenceNumber | ( | const card16 | sequenceNumber | ) | [inline] |
Set sequence number.
sequenceNumber | RTP Sequence number. |
void RTPPacket::setSSRC | ( | const card32 | ssrc | ) | [inline] |
Set SSRC.
ssrc | RTP SSRC. |
void RTPPacket::setTimeStamp | ( | const card32 | timeStamp | ) | [inline] |
Set time stamp.
timeStamp | RTP timeStamp. |
void RTPPacket::setVersion | ( | const card8 | version | ) | [inline] |
Set version.
version | RTP Version. |
std::ostream& operator<< | ( | std::ostream & | os, |
const RTPPacket & | packet | ||
) | [friend] |
Output operator.
card8 RTPPacket::CC [private] |
card32 RTPPacket::CSRC[16] [private] |
char RTPPacket::Data[RTPConstants::RTPMaxPayloadLimit] [private] |
card8 RTPPacket::M [private] |
card8 RTPPacket::P [private] |
card8 RTPPacket::PT [private] |
card16 RTPPacket::SequenceNumber [private] |
card32 RTPPacket::SSRC [private] |
card32 RTPPacket::TimeStamp [private] |
card8 RTPPacket::V [private] |
card8 RTPPacket::X [private] |