|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectudt.UDTReceiver
public class UDTReceiver
receiver part of a UDT entity
UDTSender| Field Summary | |
|---|---|
static boolean |
connectionExpiryDisabled
if set to true connections will not expire, but will only be closed by a Shutdown message |
static int |
dropRate
|
| Constructor Summary | |
|---|---|
UDTReceiver(UDTSession session,
UDPEndPoint endpoint)
create a receiver with a valid UDTSession |
|
| Method Summary | |
|---|---|
protected void |
onAck2PacketReceived(Acknowledgment2 ack2)
spec p. |
protected void |
onDataPacketReceived(DataPacket dp)
|
protected void |
onShutdown()
|
protected void |
processACKEvent(boolean isTriggeredByTimer)
process ACK event (see spec. |
protected void |
processEXPEvent()
process EXP event (see spec. |
protected void |
processNAKEvent()
process NAK event (see spec. |
protected void |
processUDTPacket(UDTPacket p)
|
protected void |
receive(UDTPacket p)
|
void |
receiverAlgorithm()
receiver algorithm see specification P11. |
protected void |
resetEXPCount()
|
protected void |
resetEXPTimer()
|
protected long |
sendAcknowledgment(long ackNumber)
|
protected void |
sendKeepAlive()
|
protected long |
sendLightAcknowledgment(long ackNumber)
|
protected void |
sendNAK(List<Long> sequenceNumbers)
|
protected void |
sendNAK(long currentSequenceNumber)
write a NAK triggered by a received sequence number that is larger than the largestReceivedSeqNumber + 1 |
protected void |
sendShutdown()
|
void |
setAckInterval(long ackInterval)
|
void |
stop()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static boolean connectionExpiryDisabled
public static int dropRate
| Constructor Detail |
|---|
public UDTReceiver(UDTSession session,
UDPEndPoint endpoint)
UDTSession
session - | Method Detail |
|---|
protected void receive(UDTPacket p)
throws IOException
IOException
public void receiverAlgorithm()
throws InterruptedException,
IOException
InterruptedException
IOException
protected void processACKEvent(boolean isTriggeredByTimer)
throws IOException
IOException
protected void processNAKEvent()
throws IOException
IOException
protected void processEXPEvent()
throws IOException
IOException
protected void processUDTPacket(UDTPacket p)
throws IOException
IOException
protected void onDataPacketReceived(DataPacket dp)
throws IOException
IOException
protected void sendNAK(long currentSequenceNumber)
throws IOException
currentSequenceNumber - - the currently received sequence number
IOException
protected void sendNAK(List<Long> sequenceNumbers)
throws IOException
IOException
protected long sendLightAcknowledgment(long ackNumber)
throws IOException
IOException
protected long sendAcknowledgment(long ackNumber)
throws IOException
IOExceptionprotected void onAck2PacketReceived(Acknowledgment2 ack2)
protected void sendKeepAlive()
throws IOException
IOException
protected void sendShutdown()
throws IOException
IOExceptionprotected void resetEXPTimer()
protected void resetEXPCount()
public void setAckInterval(long ackInterval)
protected void onShutdown()
throws IOException
IOException
public void stop()
throws IOException
IOExceptionpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||