udt.packets
Class ConnectionHandshake
java.lang.Object
udt.packets.ControlPacket
udt.packets.ConnectionHandshake
- All Implemented Interfaces:
- Comparable<UDTPacket>, UDTPacket
public class ConnectionHandshake
- extends ControlPacket
| Methods inherited from class udt.packets.ControlPacket |
compareTo, forSender, getAckSequenceNumber, getControlPacketType, getDestinationID, getEncoded, getHeader, getMessageNumber, getPacketSequenceNumber, getSession, getTimeStamp, isControlPacket, setAckSequenceNumber, setDestinationID, setMessageNumber, setSession, setTimeStamp |
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
ConnectionHandshake
public ConnectionHandshake()
ConnectionHandshake
public ConnectionHandshake(byte[] controlInformation)
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.