public class TorrentKRPC extends KRPC
KRPC.ReplyWaiter_isRunning, _qPort, _rPort, _session, DHT_FILE_SUFFIX, FAKE_NID, SECURE_NID| Constructor and Description |
|---|
TorrentKRPC(I2PAppContext ctx,
KRPC shared,
I2PSession session,
Collection<InfoHash> ihs)Create a DHT instance on a torrent's transient destination. |
| Modifier and Type | Method and Description |
|---|---|
void | start()Registers the datagram listeners on this instance's own session and ports, without
loading the DHT file or starting the cleaner, explorer, tracker, and routing table,
which remain the job of the main instance. |
void | stop()Unregisters the datagram listeners, leaving the shared routing table, tracker, and
blacklist running for the main instance. |
addServedTorrent, announce, announce, announce, clear, disconnected, errorOccurred, findClosest, getPeersAndAnnounce, getPort, getRPort, heardAbout, messageAvailable, messageAvailable, ping, removeSelf, removeServedTorrent, renderStatusHTML, reportAbuse, setServeAll, size, unannouncepublic TorrentKRPC(I2PAppContext ctx, KRPC shared, I2PSession session, Collection<InfoHash> ihs)
ctx - application contextshared - the main DHT instance, whose routing table, tracker, and blacklist are
shared; must be started alreadysession - the transient session of the torrents' destinationihs - the infohashes of the torrents served on this destination