|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
jlibrtp.RTCPReceiverThread
public class RTCPReceiverThread
This thread hangs on the RTCP socket and waits for new packets
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
private RTCPSession |
rtcpSession
Parent RTCP Session |
private RTPSession |
rtpSession
Parent RTP Session |
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
RTCPReceiverThread(RTCPSession rtcpSession,
RTPSession rtpSession)
Constructor for new thread |
Method Summary | |
---|---|
private java.lang.String |
debugErrorString(int errorCode)
Returns a legible message when an error occurs |
private Participant |
findParticipant(long ssrc,
java.net.DatagramPacket packet)
Find out whether a participant with this SSRC is known. |
private int |
parsePacket(java.net.DatagramPacket packet)
Parse a received UDP packet Perform the header checks and extract the RTCP packets in it |
void |
run()
Start the RTCP receiver thread. |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private RTPSession rtpSession
private RTCPSession rtcpSession
Constructor Detail |
---|
RTCPReceiverThread(RTCPSession rtcpSession, RTPSession rtpSession)
rtcpSession
- parent RTCP sessionrtpSession
- parent RTP sessionMethod Detail |
---|
private Participant findParticipant(long ssrc, java.net.DatagramPacket packet)
ssrc
- the SSRC of the participantpacket
- the packet that notified us
private int parsePacket(java.net.DatagramPacket packet)
packet
- the packet to be parsed
private java.lang.String debugErrorString(int errorCode)
errorCode
- the internal error code, commonly negative of packet type
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |