org.xnap.plugin.opennap.net
Class OpenNapDownloadRunner
java.lang.Object
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.
Method Summary |
void |
run()
|
void |
stop()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
OpenNapDownloadRunner
public OpenNapDownloadRunner(OpenNapDownload parent,
DownloadSocket d)
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
stop
public void stop()
Copyright © 2001-2005 XNap Team. All Rights Reserved.