java.lang.Runnable
public class TrackerClient
extends java.lang.Object
implements java.lang.Runnable
修飾子とタイプ | フィールド | 説明 |
---|---|---|
static int |
PORT |
コンストラクタ | 説明 |
---|---|
TrackerClient(I2PSnarkUtil util,
MetaInfo meta,
java.lang.String additionalTrackerURL,
PeerCoordinator coordinator,
Snark snark) |
Call start() to start it.
|
修飾子とタイプ | メソッド | 説明 |
---|---|---|
void |
halt(boolean fast) |
Interrupts this Thread to stop it.
|
boolean |
halted() |
|
static boolean |
isValidAnnounce(java.lang.String ann) |
|
void |
run() |
Setup the first time only,
then one pass (usually) through the trackers, PEX, and DHT.
|
void |
start() |
|
boolean |
started() |
|
static java.lang.String |
urlencode(byte[] bs) |
Very lazy byte[] to URL encoder.
|
public static final int PORT
public TrackerClient(I2PSnarkUtil util, MetaInfo meta, java.lang.String additionalTrackerURL, PeerCoordinator coordinator, Snark snark)
meta
- null if in magnet modeadditionalTrackerURL
- may be null, from the ?tr= param in magnet mode, otherwise ignoredpublic void start()
public boolean halted()
public boolean started()
public void halt(boolean fast)
fast
- if true, limit the life of the unannounce threadspublic void run()
run
インタフェース内 java.lang.Runnable
public static java.lang.String urlencode(byte[] bs)
public static boolean isValidAnnounce(java.lang.String ann)
ann
- an announce URL, may be null, returns false if null