|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
jlibrtp.RTCPSenderThread
public class RTCPSenderThread
This thread sends scheduled RTCP packets It also performs maintenance of various queues and the participant database.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
private boolean |
byesSent
Whether we have sent byes for the last conflict |
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 | |
---|---|
protected |
RTCPSenderThread(RTCPSession rtcpSession,
RTPSession rtpSession)
Constructor for new thread |
Method Summary | |
---|---|
protected int |
mcSendCompRtcpPkt(CompRtcpPkt pkt)
Multicast version of sending a Compound RTCP packet |
protected CompRtcpPkt |
preparePacket(Participant part,
boolean regular)
Prepare a packet. |
protected void |
reconsiderTiming(long ssrc)
Check whether we can send an immediate feedback packet to this person |
void |
run()
Start the RTCP sender thread. |
protected void |
sendByes()
Send BYE messages to all the relevant participants |
protected int |
sendCompRtcpPkt(CompRtcpPkt pkt,
java.net.InetSocketAddress receiver)
Unicast version of sending a Compound RTCP packet |
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
private boolean byesSent
Constructor Detail |
---|
protected RTCPSenderThread(RTCPSession rtcpSession, RTPSession rtpSession)
rtcpSession
- parent RTCP sessionrtpSession
- parent RTP sessionMethod Detail |
---|
protected void sendByes()
protected int mcSendCompRtcpPkt(CompRtcpPkt pkt)
pkt
- the packet to best
protected int sendCompRtcpPkt(CompRtcpPkt pkt, java.net.InetSocketAddress receiver)
pkt
- the packet to bestreceiver
- the socket address of the recipient
protected void reconsiderTiming(long ssrc)
ssrc
- SSRC of participantprotected CompRtcpPkt preparePacket(Participant part, boolean regular)
part
- the participant to report toregular
- whether this is a regularly, or early scheduled RTCP packet
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 |