jlibrtp
Class RtcpPktSR

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

public class RtcpPktSR
extends RtcpPkt

RTCP packets for Sender Reports

Author:
Arne Kepp

Field Summary
protected  long ntpTs1
          NTP timestamp, MSB
protected  long ntpTs2
          NTP timestamp, LSB
protected  RtcpPktRR rReports
          RR packet with receiver reports that we can append
protected  long rtpTs
          RTP timestamp
protected  long sendersOctCount
          Senders octet count
protected  long sendersPktCount
          Senders packet count
 
Fields inherited from class jlibrtp.RtcpPkt
itemCount, length, packetType, padding, problem, rawPkt, received, ssrc, time, version
 
Constructor Summary
protected RtcpPktSR(byte[] aRawPkt, int start, int length)
          Constructor that parses a received packet
protected RtcpPktSR(long ssrc, long pktCount, long octCount, RtcpPktRR rReports)
          Constructor for a new Sender Report packet
 
Method Summary
 void debugPrint()
          Debug purposes only
protected  void encode()
          Encode the packet into a byte[], saved in .rawPkt CompRtcpPkt will call this automatically
 
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

ntpTs1

protected long ntpTs1
NTP timestamp, MSB


ntpTs2

protected long ntpTs2
NTP timestamp, LSB


rtpTs

protected long rtpTs
RTP timestamp


sendersPktCount

protected long sendersPktCount
Senders packet count


sendersOctCount

protected long sendersOctCount
Senders octet count


rReports

protected RtcpPktRR rReports
RR packet with receiver reports that we can append

Constructor Detail

RtcpPktSR

protected RtcpPktSR(long ssrc,
                    long pktCount,
                    long octCount,
                    RtcpPktRR rReports)
Constructor for a new Sender Report packet

Parameters:
ssrc - the senders SSRC, presumably from RTPSession
pktCount - packets sent in this session
octCount - octets sent in this session
rReports - receiver reports, as RR packets, to be included in this packet

RtcpPktSR

protected RtcpPktSR(byte[] aRawPkt,
                    int start,
                    int length)
Constructor that parses a received packet

Parameters:
aRawPkt - the raw packet
start - the position at which SR starts
length - used to determine number of included receiver reports
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

debugPrint

public void debugPrint()
Debug purposes only