udt
Class UDTSession

java.lang.Object
  extended by udt.UDTSession
Direct Known Subclasses:
ClientSession, ServerSession

public abstract class UDTSession
extends Object


Field Summary
protected  boolean active
           
protected  CongestionControl cc
           
static String CC_CLASS
          key for a system property defining the CC class to be used
protected  int datagramSize
          Buffer size (i.e.
static int DEFAULT_DATAGRAM_SIZE
           
protected  Destination destination
          remote UDT entity (address and socket ID)
protected  int flowWindowSize
          flow window size, i.e.
static int handshaking
           
protected  Long initialSequenceNumber
           
static int invalid
           
static int keepalive
           
protected  UDTPacket lastPacket
           
protected  int localPort
          local port
protected  int mode
           
protected  long mySocketID
           
static int ready
           
protected  int receiveBufferSize
           
static int shutdown
           
protected  UDTSocket socket
           
static int start
           
protected  UDTStatistics statistics
           
 
Constructor Summary
UDTSession(String description, Destination destination)
           
 
Method Summary
 CongestionControl getCongestionControl()
           
 DatagramPacket getDatagram()
           
 int getDatagramSize()
           
 Destination getDestination()
           
 int getFlowWindowSize()
           
 long getInitialSequenceNumber()
           
 int getReceiveBufferSize()
           
 UDTSocket getSocket()
           
 long getSocketID()
           
 int getState()
           
 UDTStatistics getStatistics()
           
 boolean isActive()
           
 boolean isReady()
           
 boolean isShutdown()
           
abstract  void received(UDTPacket packet, Destination peer)
           
 void setActive(boolean active)
           
 void setDatagramSize(int datagramSize)
           
 void setFlowWindowSize(int flowWindowSize)
           
 void setInitialSequenceNumber(long initialSequenceNumber)
           
 void setMode(int mode)
           
 void setReceiveBufferSize(int bufferSize)
           
 void setSocket(UDTSocket socket)
           
 void setState(int state)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mode

protected int mode

active

protected volatile boolean active

lastPacket

protected volatile UDTPacket lastPacket

start

public static final int start
See Also:
Constant Field Values

handshaking

public static final int handshaking
See Also:
Constant Field Values

ready

public static final int ready
See Also:
Constant Field Values

keepalive

public static final int keepalive
See Also:
Constant Field Values

shutdown

public static final int shutdown
See Also:
Constant Field Values

invalid

public static final int invalid
See Also:
Constant Field Values

socket

protected volatile UDTSocket socket

statistics

protected final UDTStatistics statistics

receiveBufferSize

protected int receiveBufferSize

cc

protected final CongestionControl cc

flowWindowSize

protected int flowWindowSize
flow window size, i.e. how many data packets are in-flight at a single time


destination

protected final Destination destination
remote UDT entity (address and socket ID)


localPort

protected int localPort
local port


DEFAULT_DATAGRAM_SIZE

public static final int DEFAULT_DATAGRAM_SIZE
See Also:
Constant Field Values

CC_CLASS

public static final String CC_CLASS
key for a system property defining the CC class to be used

See Also:
CongestionControl, Constant Field Values

datagramSize

protected int datagramSize
Buffer size (i.e. datagram size) This is negotiated during connection setup


initialSequenceNumber

protected Long initialSequenceNumber

mySocketID

protected final long mySocketID
Constructor Detail

UDTSession

public UDTSession(String description,
                  Destination destination)
Method Detail

received

public abstract void received(UDTPacket packet,
                              Destination peer)

getSocket

public UDTSocket getSocket()

getCongestionControl

public CongestionControl getCongestionControl()

getState

public int getState()

setMode

public void setMode(int mode)

setSocket

public void setSocket(UDTSocket socket)

setState

public void setState(int state)

isReady

public boolean isReady()

isActive

public boolean isActive()

setActive

public void setActive(boolean active)

isShutdown

public boolean isShutdown()

getDestination

public Destination getDestination()

getDatagramSize

public int getDatagramSize()

setDatagramSize

public void setDatagramSize(int datagramSize)

getReceiveBufferSize

public int getReceiveBufferSize()

setReceiveBufferSize

public void setReceiveBufferSize(int bufferSize)

getFlowWindowSize

public int getFlowWindowSize()

setFlowWindowSize

public void setFlowWindowSize(int flowWindowSize)

getStatistics

public UDTStatistics getStatistics()

getSocketID

public long getSocketID()

getInitialSequenceNumber

public long getInitialSequenceNumber()

setInitialSequenceNumber

public void setInitialSequenceNumber(long initialSequenceNumber)

getDatagram

public DatagramPacket getDatagram()


Copyright © 2013 LittleShoot. All Rights Reserved.