37 #ifndef CCXX_RTP_RTCPPKT_H_
38 #define CCXX_RTP_RTCPPKT_H_
92 inline void setPathMTU(uint16 mtu)
95 inline uint16 getPathMTU()
189 uint32 getSSRC()
const
190 {
return (ntohl(ssrc)); }
218 unsigned char data[1];
252 #if defined(__BYTE_ORDER) && __BYTE_ORDER == __BIG_ENDIAN
254 unsigned char version:2;
255 unsigned char padding:1;
256 unsigned char block_count:5;
259 unsigned char block_count:5;
260 unsigned char padding:1;
261 unsigned char version:2;
299 uint32 getLength()
const
300 {
return ((ntohs(fh.length) + 1) << 2); }
306 uint32 getSSRC()
const
307 {
return (ntohl(info.RR.ssrc)); }
330 enum { defaultPathMTU = 1500 };
348 checkCompoundRTCPHeader(
size_t len);
363 static const uint16 RTCP_VALID_MASK;
364 static const uint16 RTCP_VALID_VALUE;
377 { memcpy(&receiverInfo,&ri,
393 getFractionLost()
const
394 {
return receiverInfo.fractionLost; }
397 getCumulativePacketLost()
const
398 {
return ( ((uint32)ntohs(receiverInfo.lostLSW)) +
399 (((uint32)receiverInfo.lostMSB) << 16) ); }
402 getExtendedSeqNum()
const
403 {
return ntohl(receiverInfo.highestSeqNum); }
413 {
return ntohl(receiverInfo.jitter); }
421 getLastSRNTPTimestampInt()
const
422 {
return (uint16)((ntohl(receiverInfo.lsr) & 0xFFFF0000) >> 16); }
430 getLastSRNTPTimestampFrac()
const
431 {
return (uint16)(ntohl(receiverInfo.lsr) & 0xFFFF); }
440 getDelayLastSR()
const
441 {
return ntohl(receiverInfo.dlsr); }
457 { memcpy(&senderInfo,&si,
473 getNTPTimestampInt()
const
474 {
return ntohl(senderInfo.NTPMSW); }
481 getNTPTimestampFrac()
const
482 {
return ntohl(senderInfo.NTPLSW); }
485 getRTPTimestamp()
const
486 {
return ntohl(senderInfo.RTPTimestamp); }
492 getPacketCount()
const
493 {
return ntohl(senderInfo.packetCount); }
496 getOctetCount()
const
497 {
return ntohl(senderInfo.octetCount); }
528 #endif // ndef CCXX_RTP_RTCPPKT_H_