udt.packets
Class ConnectionHandshake

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

public class ConnectionHandshake
extends ControlPacket


Nested Class Summary
 
Nested classes/interfaces inherited from class udt.packets.ControlPacket
ControlPacket.ControlPacketType
 
Field Summary
static long CONNECTION_TYPE_REGULAR
           
static long CONNECTION_TYPE_RENDEZVOUS
           
static long SOCKET_TYPE_DGRAM
           
static long SOCKET_TYPE_STREAM
           
 
Fields inherited from class udt.packets.ControlPacket
ackSequenceNumber, controlInformation, controlPacketType, destinationID, messageNumber, timeStamp
 
Constructor Summary
ConnectionHandshake()
           
ConnectionHandshake(byte[] controlInformation)
           
 
Method Summary
 byte[] encodeControlInformation()
          this method builds the control information from the control parameters
 boolean equals(Object obj)
           
 long getConnectionType()
           
 long getInitialSeqNo()
           
 long getMaxFlowWndSize()
           
 long getPacketSize()
           
 long getSocketID()
           
 long getSocketType()
           
 long getUdtVersion()
           
 boolean isConnectionHandshake()
           
 void setConnectionType(long connectionType)
           
 void setInitialSeqNo(long initialSeqNo)
           
 void setMaxFlowWndSize(long maxFlowWndSize)
           
 void setPacketSize(long packetSize)
           
 void setSocketID(long socketID)
           
 void setSocketType(long socketType)
           
 void setUdtVersion(long udtVersion)
           
 
Methods inherited from class udt.packets.ControlPacket
compareTo, forSender, getAckSequenceNumber, getControlPacketType, getDestinationID, getEncoded, getHeader, getMessageNumber, getPacketSequenceNumber, getSession, getTimeStamp, isControlPacket, setAckSequenceNumber, setDestinationID, setMessageNumber, setSession, setTimeStamp
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SOCKET_TYPE_STREAM

public static final long SOCKET_TYPE_STREAM
See Also:
Constant Field Values

SOCKET_TYPE_DGRAM

public static final long SOCKET_TYPE_DGRAM
See Also:
Constant Field Values

CONNECTION_TYPE_REGULAR

public static final long CONNECTION_TYPE_REGULAR
See Also:
Constant Field Values

CONNECTION_TYPE_RENDEZVOUS

public static final long CONNECTION_TYPE_RENDEZVOUS
See Also:
Constant Field Values
Constructor Detail

ConnectionHandshake

public ConnectionHandshake()

ConnectionHandshake

public ConnectionHandshake(byte[] controlInformation)
Method Detail

isConnectionHandshake

public boolean isConnectionHandshake()
Specified by:
isConnectionHandshake in interface UDTPacket
Overrides:
isConnectionHandshake in class ControlPacket

getUdtVersion

public long getUdtVersion()

setUdtVersion

public void setUdtVersion(long udtVersion)

getSocketType

public long getSocketType()

setSocketType

public void setSocketType(long socketType)

getInitialSeqNo

public long getInitialSeqNo()

setInitialSeqNo

public void setInitialSeqNo(long initialSeqNo)

getPacketSize

public long getPacketSize()

setPacketSize

public void setPacketSize(long packetSize)

getMaxFlowWndSize

public long getMaxFlowWndSize()

setMaxFlowWndSize

public void setMaxFlowWndSize(long maxFlowWndSize)

getConnectionType

public long getConnectionType()

setConnectionType

public void setConnectionType(long connectionType)

getSocketID

public long getSocketID()

setSocketID

public void setSocketID(long socketID)

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:

equals

public boolean equals(Object obj)
Overrides:
equals in class ControlPacket


Copyright © 2013 LittleShoot. All Rights Reserved.