org.xnap.plugin.opennap.net
Class OpenNapDownloadRunner

java.lang.Object
  extended by org.xnap.plugin.opennap.net.OpenNapDownloadRunner
All Implemented Interfaces:
java.lang.Runnable

public class OpenNapDownloadRunner
extends java.lang.Object
implements java.lang.Runnable

Takes care of the socket communication to the other peer. Spawned by OpenNapDownload once an incoming socket was received (for firewalled downloads) or a DownloadAckMessage was received.


Field Summary
static int CONNECT_TIMEOUT
          Socket timeout during connect.
static int SEGMENT_MAX_WAIT
          Maximum time to wait for segment.
static int TRANSFER_TIMEOUT
          Abort transfer if stalled for this long.
 
Constructor Summary
OpenNapDownloadRunner(OpenNapDownload parent, DownloadSocket d)
           
 
Method Summary
 void run()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONNECT_TIMEOUT

public static final int CONNECT_TIMEOUT
Socket timeout during connect.

See Also:
Constant Field Values

TRANSFER_TIMEOUT

public static final int TRANSFER_TIMEOUT
Abort transfer if stalled for this long.

See Also:
Constant Field Values

SEGMENT_MAX_WAIT

public static final int SEGMENT_MAX_WAIT
Maximum time to wait for segment.

See Also:
Constant Field Values
Constructor Detail

OpenNapDownloadRunner

public OpenNapDownloadRunner(OpenNapDownload parent,
                             DownloadSocket d)
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable

stop

public void stop()


Copyright © 2001-2005 XNap Team. All Rights Reserved.