jlibrtp
Class RtcpPktRR

java.lang.Object
  extended by jlibrtp.RtcpPkt
      extended by jlibrtp.RtcpPktRR

public class RtcpPktRR
extends RtcpPkt

RTCP packets for Receiver Reports

Author:
Arne Kepp

Field Summary
protected  long[] delaySR
          Delay on last SRC
protected  long[] extHighSeqRecv
          Extended highest sequence received
protected  long[] interArvJitter
          Interarrival jitter
protected  int[] lossFraction
          Fraction (over 256) of packets lost
protected  int[] lostPktCount
          Number of lost packets
protected  Participant[] reportees
          Array of participants to send Receiver Reports to
protected  long[] reporteeSsrc
          SSRC of participants the reports are for
protected  long[] timeStampLSR
          Middle 32 bits of NTP when last SR was received
 
Fields inherited from class jlibrtp.RtcpPkt
itemCount, length, packetType, padding, problem, rawPkt, received, ssrc, time, version
 
Constructor Summary
protected RtcpPktRR(byte[] aRawPkt, int start, int rrCount)
          If rcount < 0 we assume we have to parse the entire packet, otherwise we'll just parse the receiver report blocks (ie.
protected RtcpPktRR(Participant[] reportees, long ssrc)
          Constructor for a packet with receiver reports
 
Method Summary
 void debugPrint()
          Debug purposes only
protected  void encode()
          Encode the packet into a byte[], saved in .rawPkt CompRtcpPkt will call this automatically
protected  byte[] encodeRR()
          Encodes the individual Receiver Report blocks, so they can be used either in RR packets or appended to SR
 
Methods inherited from class jlibrtp.RtcpPkt
check, parseHeaders, writeHeaders
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

reportees

protected Participant[] reportees
Array of participants to send Receiver Reports to


reporteeSsrc

protected long[] reporteeSsrc
SSRC of participants the reports are for


lossFraction

protected int[] lossFraction
Fraction (over 256) of packets lost


lostPktCount

protected int[] lostPktCount
Number of lost packets


extHighSeqRecv

protected long[] extHighSeqRecv
Extended highest sequence received


interArvJitter

protected long[] interArvJitter
Interarrival jitter


timeStampLSR

protected long[] timeStampLSR
Middle 32 bits of NTP when last SR was received


delaySR

protected long[] delaySR
Delay on last SRC

Constructor Detail

RtcpPktRR

protected RtcpPktRR(Participant[] reportees,
                    long ssrc)
Constructor for a packet with receiver reports

Parameters:
reportees - the participants on which to generate reports
ssrc - the SSRC of the sender, from the RTPSession

RtcpPktRR

protected RtcpPktRR(byte[] aRawPkt,
                    int start,
                    int rrCount)
If rcount < 0 we assume we have to parse the entire packet, otherwise we'll just parse the receiver report blocks (ie. the data came from a Sender Report packet)

Parameters:
aRawPkt - the byte[] with the report(s)
start - where in the raw packet to start reading
rrCount - the number of receiver reports, -1 if this does not come from an SR
Method Detail

encode

protected void encode()
Encode the packet into a byte[], saved in .rawPkt CompRtcpPkt will call this automatically

Overrides:
encode in class RtcpPkt

encodeRR

protected byte[] encodeRR()
Encodes the individual Receiver Report blocks, so they can be used either in RR packets or appended to SR

Returns:
the encoded packets

debugPrint

public void debugPrint()
Debug purposes only