All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----net.fsp.FSPsession
FSPsession class takes care about FSP session management. It handles packet resends on timeouts and key management.
public static final int MIN_DELAY
public static final int DEFAULT_DELAY
public static final int MAX_DELAY
public static final int DEFAULT_TIMEOUT
public FSPsession(String host,
int port) throws SocketException, UnknownHostException
public FSPsession(InetAddress host,
int port) throws SocketException
public FSPpacket interact(byte cmd,
long filepos,
byte data1[],
int offset1,
int length1,
byte data2[],
int offset2,
int length2) throws InterruptedIOException
public void close()
Session object can't be used after session is closed. This also sends CC_BYE command to server.
public int getDelay()
public void setDelay(int ndelay)
This functions sets delay parameter of FSP protocol stack. This is timeout value for first packet. If packet is lost delay is multiplied by 1.5. Delay is in milliseconds and must be between MIN_DELAY and MAX_DELAY
public int getMaxDelay()
public void setMaxDelay(int newdelay)
public int getTimeout()
public void setTimeout(int ntimeout)
If no packet from server is received in this time, session times out.
public void finalize()
If session is not closed, close it before doing GC on this object. Timeout is set to 7 sec when doing it.
All Packages Class Hierarchy This Package Previous Next Index