|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjlibrtp.CompRtcpPkt
public class CompRtcpPkt
Compound RTCP packet class. It basically holds a list of packets. This list can either be constructed by providing a byte[] of a compound packet, or by adding individual packets. Upon encode(), the packet will call encode on all the added packets. problem == 0 indicates the parsing succeeded.
Field Summary | |
---|---|
protected int |
problem
Problem indicator, negative values denote packet type that cause problem |
protected java.util.LinkedList<RtcpPkt> |
rtcpPkts
Stores the different subclasses of RtcpPkt that make up the compound packet |
Constructor Summary | |
---|---|
protected |
CompRtcpPkt()
Instantiates an empty Compound RTCP packet to which you can add RTCP packets |
protected |
CompRtcpPkt(byte[] rawPkt,
int packetSize,
java.net.InetSocketAddress adr,
RTPSession rtpSession)
Picks a received Compound RTCP packet apart. |
Method Summary | |
---|---|
protected void |
addPacket(RtcpPkt aPkt)
Add a RTCP packet to the compound packet. |
protected byte[] |
encode()
Encode combines the RTCP packets in this.rtcpPkts into a byte[] by calling the encode() function on each of them individually. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int problem
protected java.util.LinkedList<RtcpPkt> rtcpPkts
Constructor Detail |
---|
protected CompRtcpPkt()
protected CompRtcpPkt(byte[] rawPkt, int packetSize, java.net.InetSocketAddress adr, RTPSession rtpSession)
rawPkt
- the byte array received from the socketpacketSize
- the actual number of used bytesadr
- the socket address from which the packet was receivedrtpSession
- the RTPSession with the participant databaseMethod Detail |
---|
protected void addPacket(RtcpPkt aPkt)
aPkt
- the packet to be addedprotected byte[] encode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |