public class PktBuffer
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
PktBuffer(RTPSession rtpSession,
Participant p,
RtpPkt aPkt)
Creates a new PktBuffer, a linked list of PktBufNode
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
addPkt(RtpPkt aPkt)
Adds a packet, this happens in constant time if they arrive in order.
|
protected void |
debugPrint()
Prints out the packet buffer, oldest node first (on top).
|
protected int |
getLength()
Returns the length of the packetbuffer.
|
protected boolean |
pktOnTime(long timeStamp,
int seqNum)
Checks whether a packet is not too late, i.e.
|
protected DataFrame |
popOldestFrame()
Checks the oldest frame, if there is one, sees whether it is complete.
|
protected PktBuffer(RTPSession rtpSession, Participant p, RtpPkt aPkt)
rtpSession - the parent RTPSessionp - the participant to which this packetbuffer belongs.aPkt - The first RTP packet, to be added to the bufferprotected int addPkt(RtpPkt aPkt)
aPkt - the packet to be added to the buffer.protected DataFrame popOldestFrame()
protected int getLength()
protected boolean pktOnTime(long timeStamp,
int seqNum)
timeStamp - the RTP timestamp of the packet under considerationseqNum - the sequence number of the packet under considerationprotected void debugPrint()