void RTCPSRPacket::Dump() { RTCPPacket::Dump(); if (!IsKnownFormat()) std::cout << " Unknown format" << std::endl; else { int num = GetReceptionReportCount(); int i; RTPNTPTime t = GetNTPTimestamp(); std::cout << " SSRC of sender: " << GetSenderSSRC() << std::endl; std::cout << " Sender info:" << std::endl; std::cout << " NTP timestamp: " << t.GetMSW() << ":" << t.GetLSW() << std::endl; std::cout << " RTP timestamp: " << GetRTPTimestamp() << std::endl; std::cout << " Packet count: " << GetSenderPacketCount() << std::endl; std::cout << " Octet count: " << GetSenderOctetCount() << std::endl; for (i = 0 ; i < num ; i++) { std::cout << " Report block " << i << std::endl; std::cout << " SSRC: " << GetSSRC(i) << std::endl; std::cout << " Fraction lost: " << (uint32_t)GetFractionLost(i) << std::endl; std::cout << " Packets lost: " << GetLostPacketCount(i) << std::endl; std::cout << " Seq. nr.: " << GetExtendedHighestSequenceNumber(i) << std::endl; std::cout << " Jitter: " << GetJitter(i) << std::endl; std::cout << " LSR: " << GetLSR(i) << std::endl; std::cout << " DLSR: " << GetDLSR(i) << std::endl; } } }
void RTCPRRPacket::Dump() { RTCPPacket::Dump(); if (!IsKnownFormat()) std::cout << " Unknown format" << std::endl; else { int num = GetReceptionReportCount(); int i; std::cout << " SSRC of sender: " << GetSenderSSRC() << std::endl; for (i = 0 ; i < num ; i++) { std::cout << " Report block " << i << std::endl; std::cout << " SSRC: " << GetSSRC(i) << std::endl; std::cout << " Fraction lost: " << (u_int32_t)GetFractionLost(i) << std::endl; std::cout << " Packets lost: " << GetLostPacketCount(i) << std::endl; std::cout << " Seq. nr.: " << GetExtendedHighestSequenceNumber(i) << std::endl; std::cout << " Jitter: " << GetJitter(i) << std::endl; std::cout << " LSR: " << GetLSR(i) << std::endl; std::cout << " DLSR: " << GetDLSR(i) << std::endl; } } }