node-dht-peer-crawler
A fast and stable DHT crawler.
Installation
$ npm install dht-peer-crawler
Usage
const crawler = crawler crawlerstart const signalTraps = 'SIGTERM' 'SIGINT' 'SIGUSR2' signalTraps
Test
$ npm test
API
crawler = new Crawler(listenPort)
Create a new crawler instance.
crawler.announcePeers(infoHashStr, port)
announce the peer.
crawler.on('announce_peer', [infoHashStr, addressStr, impliedPort, torrent])
Emitted when received an announce_peer
message.
crawler.on('new_info_hash', [infoHashStr])
Emitted when find a new info_hash
.