com.aelitis.azureus.core.networkmanager.impl.udp
Class UDPPacket

java.lang.Object
  extended by com.aelitis.azureus.core.networkmanager.impl.udp.UDPPacket

public class UDPPacket
extends Object


Field Summary
static byte COMMAND_ACK
           
static byte COMMAND_CLOSE
           
static byte COMMAND_CRYPTO
           
static byte COMMAND_DATA
           
static byte COMMAND_STAT_REPLY
           
static byte COMMAND_STAT_REQUEST
           
static byte FLAG_LAZY_ACK
           
static byte FLAG_NONE
           
static byte PROTOCOL_VERSION
           
 
Constructor Summary
protected UDPPacket(UDPConnection _connection, int[] _sequences, byte _command, byte[] _buffer, long _unack_in_sequence_count)
           
 
Method Summary
protected  int getAlternativeSequence()
           
protected  byte[] getBuffer()
           
protected  byte getCommand()
           
protected  UDPConnection getConnection()
           
protected  short getResendCount()
           
protected  long getSendTickCount()
           
protected  int getSentCount()
           
protected  int getSequence()
           
protected  String getString()
           
protected  long getUnAckInSequenceCount()
           
protected  boolean hasBeenReceived()
           
protected  boolean isAutoRetransmit()
           
protected  void resent()
           
protected  short sent(long tick_count)
           
protected  void setAutoRetransmit(boolean b)
           
protected  void setHasBeenReceived()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROTOCOL_VERSION

public static final byte PROTOCOL_VERSION
See Also:
Constant Field Values

COMMAND_CRYPTO

public static final byte COMMAND_CRYPTO
See Also:
Constant Field Values

COMMAND_DATA

public static final byte COMMAND_DATA
See Also:
Constant Field Values

COMMAND_ACK

public static final byte COMMAND_ACK
See Also:
Constant Field Values

COMMAND_CLOSE

public static final byte COMMAND_CLOSE
See Also:
Constant Field Values

COMMAND_STAT_REQUEST

public static final byte COMMAND_STAT_REQUEST
See Also:
Constant Field Values

COMMAND_STAT_REPLY

public static final byte COMMAND_STAT_REPLY
See Also:
Constant Field Values

FLAG_NONE

public static final byte FLAG_NONE
See Also:
Constant Field Values

FLAG_LAZY_ACK

public static final byte FLAG_LAZY_ACK
See Also:
Constant Field Values
Constructor Detail

UDPPacket

protected UDPPacket(UDPConnection _connection,
                    int[] _sequences,
                    byte _command,
                    byte[] _buffer,
                    long _unack_in_sequence_count)
Method Detail

getConnection

protected UDPConnection getConnection()

getSequence

protected int getSequence()

getAlternativeSequence

protected int getAlternativeSequence()

getCommand

protected byte getCommand()

getBuffer

protected byte[] getBuffer()

getUnAckInSequenceCount

protected long getUnAckInSequenceCount()

isAutoRetransmit

protected boolean isAutoRetransmit()

setAutoRetransmit

protected void setAutoRetransmit(boolean b)

sent

protected short sent(long tick_count)

getResendCount

protected short getResendCount()

resent

protected void resent()

getSendTickCount

protected long getSendTickCount()

setHasBeenReceived

protected void setHasBeenReceived()

hasBeenReceived

protected boolean hasBeenReceived()

getSentCount

protected int getSentCount()

getString

protected String getString()