jlibrtp
Class RtcpPktAPP

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

public class RtcpPktAPP
extends RtcpPkt

Application specific RTCP packets

Author:
Arne Kepp

Field Summary
protected  byte[] pktData
          Data of packet
protected  byte[] pktName
          Name of packet, 4 bytes ASCII
 
Fields inherited from class jlibrtp.RtcpPkt
itemCount, length, packetType, padding, problem, rawPkt, received, ssrc, time, version
 
Constructor Summary
protected RtcpPktAPP(byte[] aRawPkt, int start)
          Constructor that parses a received Application RTCP packet
protected RtcpPktAPP(long ssrc, int subtype, byte[] pktName, byte[] pktData)
          Constructor for a new Application RTCP packet
 
Method Summary
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

pktName

protected byte[] pktName
Name of packet, 4 bytes ASCII


pktData

protected byte[] pktData
Data of packet

Constructor Detail

RtcpPktAPP

protected RtcpPktAPP(long ssrc,
                     int subtype,
                     byte[] pktName,
                     byte[] pktData)
Constructor for a new Application RTCP packet

Parameters:
ssrc - the SSRC of the sender, presumably taken from RTPSession
subtype - the subtype of packet, application specific
pktName - byte[4] representing ASCII name of packet
pktData - the byte[4x] data that represents the message itself

RtcpPktAPP

protected RtcpPktAPP(byte[] aRawPkt,
                     int start)
Constructor that parses a received Application RTCP packet

Parameters:
aRawPkt - the raw packet containing the date
start - where in the raw packet this packet starts
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