38 #ifndef CCXX_RTP_RTCPPKT_H_
39 #define CCXX_RTP_RTCPPKT_H_
191 {
return (ntohl(ssrc)); }
217 unsigned char data[1];
253 #if __BYTE_ORDER == __BIG_ENDIAN
254 unsigned char version:2;
256 unsigned char padding:1;
257 unsigned char block_count:5;
259 unsigned char block_count:5;
261 unsigned char padding:1;
262 unsigned char version:2;
301 {
return ((ntohs(fh.length) + 1) << 2); }
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,
395 {
return receiverInfo.fractionLost; }
399 {
return ( ((uint32)ntohs(receiverInfo.lostLSW)) +
400 (((uint32)receiverInfo.lostMSB) << 16) ); }
404 {
return ntohl(receiverInfo.highestSeqNum); }
414 {
return ntohl(receiverInfo.jitter); }
423 {
return (uint16)((ntohl(receiverInfo.lsr) & 0xFFFF0000) >> 16); }
432 {
return (uint16)(ntohl(receiverInfo.lsr) & 0xFFFF); }
442 {
return ntohl(receiverInfo.dlsr); }
458 { memcpy(&senderInfo,&si,
475 {
return ntohl(senderInfo.NTPMSW); }
483 {
return ntohl(senderInfo.NTPLSW); }
487 {
return ntohl(senderInfo.RTPTimestamp); }
494 {
return ntohl(senderInfo.packetCount); }
498 {
return ntohl(senderInfo.octetCount); }
529 #endif // ndef CCXX_RTP_RTCPPKT_H_