38 #ifndef CCXX_RTP_RTCPPKT_H_
39 #define CCXX_RTP_RTCPPKT_H_
93 inline void setPathMTU(uint16 mtu)
96 inline uint16 getPathMTU()
190 uint32 getSSRC()
const
191 {
return (ntohl(ssrc)); }
219 unsigned char data[1];
253 #if __BYTE_ORDER == __BIG_ENDIAN
255 unsigned char version:2;
256 unsigned char padding:1;
257 unsigned char block_count:5;
260 unsigned char block_count:5;
261 unsigned char padding:1;
262 unsigned char version:2;
300 uint32 getLength()
const
301 {
return ((ntohs(fh.length) + 1) << 2); }
307 uint32 getSSRC()
const
308 {
return (ntohl(info.RR.ssrc)); }
331 enum { defaultPathMTU = 1500 };
349 checkCompoundRTCPHeader(
size_t len);
364 static const uint16 RTCP_VALID_MASK;
365 static const uint16 RTCP_VALID_VALUE;
378 { memcpy(&receiverInfo,&ri,
394 getFractionLost()
const
395 {
return receiverInfo.fractionLost; }
398 getCumulativePacketLost()
const
399 {
return ( ((uint32)ntohs(receiverInfo.lostLSW)) +
400 (((uint32)receiverInfo.lostMSB) << 16) ); }
403 getExtendedSeqNum()
const
404 {
return ntohl(receiverInfo.highestSeqNum); }
414 {
return ntohl(receiverInfo.jitter); }
422 getLastSRNTPTimestampInt()
const
423 {
return (uint16)((ntohl(receiverInfo.lsr) & 0xFFFF0000) >> 16); }
431 getLastSRNTPTimestampFrac()
const
432 {
return (uint16)(ntohl(receiverInfo.lsr) & 0xFFFF); }
441 getDelayLastSR()
const
442 {
return ntohl(receiverInfo.dlsr); }
458 { memcpy(&senderInfo,&si,
474 getNTPTimestampInt()
const
475 {
return ntohl(senderInfo.NTPMSW); }
482 getNTPTimestampFrac()
const
483 {
return ntohl(senderInfo.NTPLSW); }
486 getRTPTimestamp()
const
487 {
return ntohl(senderInfo.RTPTimestamp); }
493 getPacketCount()
const
494 {
return ntohl(senderInfo.packetCount); }
497 getOctetCount()
const
498 {
return ntohl(senderInfo.octetCount); }
529 #endif // ndef CCXX_RTP_RTCPPKT_H_