|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectRDTProtocol
AlternatingBitProtocol
public class AlternatingBitProtocol
An AlternatingBitProtocol implements the RDTProtocol interface using an alternating bit algorithm.
Constructor Summary | |
---|---|
AlternatingBitProtocol()
|
Method Summary | |
---|---|
protected void |
doInit()
rdtp.doInit() is invoked to perform protocol-dependent initialization for this AlternatingBitProtocol. |
void |
handleNewSegment(int id)
handleNewSegment(id) is invoked to handle a new segment with identification number id. |
void |
handleReceivedAck(Packet pkt)
rdtp.handleReceivedAck(pkt) is invoked to handle a ACK_TYPE packet received from its TCPEntity's connection partner. |
void |
handleReceivedData(Packet pkt)
handleReceivedData(pkt) is invoked to handle a DATA_TYPE packet received from its TCPEntity's connection partner. |
void |
handleTimedOutPacket(Packet pkt)
rdtp.handleTimedOutPacket(pkt) is invoked to handle a packet acknowledgement timeout for pkt. |
Methods inherited from class RDTProtocol |
---|
createPacket, createTimer, handleReceivedClose, handleReceivedNack, initialize, initiateDisconnect, reassemble, send, setAcceptingNewSegments, setPendingAcknowledgements, terminate, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AlternatingBitProtocol()
Method Detail |
---|
protected void doInit()
doInit
in class RDTProtocol
public void handleNewSegment(int id)
handleNewSegment
in class RDTProtocol
public void handleReceivedData(Packet pkt)
handleReceivedData
in class RDTProtocol
public void handleReceivedAck(Packet pkt)
handleReceivedAck
in class RDTProtocol
public void handleTimedOutPacket(Packet pkt)
handleTimedOutPacket
in class RDTProtocol
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |