udt.packets
Class Acknowledgment2

java.lang.Object
  extended by udt.packets.ControlPacket
      extended by udt.packets.Acknowledgment2
All Implemented Interfaces:
Comparable<UDTPacket>, UDTPacket

public class Acknowledgment2
extends ControlPacket

Ack2 is sent by the UDTSender as immediate reply to an Acknowledgement


Nested Class Summary
 
Nested classes/interfaces inherited from class udt.packets.ControlPacket
ControlPacket.ControlPacketType
 
Field Summary
 
Fields inherited from class udt.packets.ControlPacket
ackSequenceNumber, controlInformation, controlPacketType, destinationID, messageNumber, timeStamp
 
Constructor Summary
Acknowledgment2()
           
Acknowledgment2(byte[] controlInformation)
           
 
Method Summary
 byte[] encodeControlInformation()
          this method builds the control information from the control parameters
 boolean forSender()
          return true if this packet should be routed to the UDTSender
 
Methods inherited from class udt.packets.ControlPacket
compareTo, equals, getAckSequenceNumber, getControlPacketType, getDestinationID, getEncoded, getHeader, getMessageNumber, getPacketSequenceNumber, getSession, getTimeStamp, isConnectionHandshake, isControlPacket, setAckSequenceNumber, setDestinationID, setMessageNumber, setSession, setTimeStamp
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Acknowledgment2

public Acknowledgment2()

Acknowledgment2

public Acknowledgment2(byte[] controlInformation)
Method Detail

forSender

public boolean forSender()
Description copied from interface: UDTPacket
return true if this packet should be routed to the UDTSender

Specified by:
forSender in interface UDTPacket
Overrides:
forSender in class ControlPacket
Returns:

encodeControlInformation

public byte[] encodeControlInformation()
Description copied from class: ControlPacket
this method builds the control information from the control parameters

Specified by:
encodeControlInformation in class ControlPacket
Returns:


Copyright © 2013 LittleShoot. All Rights Reserved.