orianna
v0.0.5
Published
Another DHT crawler written in Node.js
Downloads
6
Readme
Orianna
Another DHT crawler written in Node.js
Install
npm install orianna
Usage
const orianna = new (require('orianna'))
orianna.onHandleGetPeers((hash, addr) => {
console.log(`Receive get peers message from DHT ${addr.address}:${addr.port} Infohash: ${hash}`)
})
orianna.onHandleAnnouncePeer((hash, addr, peerAddr) => {
console.log(`Receive announce peer message from DHT ${addr.address}:${addr.port} Infohash: ${hash} Peer address: ${peerAddr.address}:${peerAddr.port}`)
})
orianna.run(6881)