public class RtcpPkt
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
itemCount
Number of items, e.g.
|
protected int |
length
The length of the RTCP packet, in 32 bit blocks minus 1.
|
protected int |
packetType
The type of RTCP packet, 8 bits
|
protected int |
padding
Padding , 1 bit
|
protected int |
problem
Whether a problem has been encountered during parsing
|
protected byte[] |
rawPkt
Contains the actual data (eventually)
|
protected boolean |
received
Only used for feedback message: Whether this packet was received
|
protected long |
ssrc
The ssrc that sent this, usually dictated by RTP Session
|
protected long |
time
Only used for feedback messages: Time message was generated
|
protected int |
version
The version, always 2, 2 bits
|
Constructor and Description |
---|
RtcpPkt() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
check(java.net.InetAddress adr,
ParticipantDatabase partDb)
Check whether this packet came from the source we expected.
|
protected void |
encode()
This is just a dummy to make Eclipse complain less.
|
protected boolean |
parseHeaders(int start)
Parses the common header of an RTCP packet
|
protected void |
writeHeaders()
Writes the common header of RTCP packets.
|
protected int problem
protected int version
protected int padding
protected int itemCount
protected int packetType
protected int length
protected long ssrc
protected byte[] rawPkt
protected long time
protected boolean received
protected boolean parseHeaders(int start)
start
- where in this.rawPkt the headers startprotected void writeHeaders()
protected void encode()
protected boolean check(java.net.InetAddress adr, ParticipantDatabase partDb)
adr
- address that packet came frompartDb
- the participant database for the session