The BitTorrent session¶
Overview¶
The BitTorrent session object contains methods for adding, removing and finding torrents, as well as other BitTorrent related functions for DHT, etc.
Methods¶
void addDhtRouter(String host, Number port)¶
Add a DHT router to the session.
FeedHandle addFeed(FeedSettings settings)¶
Add a RSS feed to the session. Control the added feed by modifying the
FeedSettings argument.
void addTorrent(AddTorrentParams params)¶
Add a torrent to the session.
TorrentHandle findTorrent(String infoHash)¶
Find a torrent with the given info hash. If no torrent is found, the
isValid property on the TorrentHandle will return false.
void removeTorrent(TorrentHandle handle, Boolean removeData)¶
Removes a torrent from the session. If the removeData argument is
true, the data files associated with the torrent are removed as well.