0.0.5 • Published 6 years ago
orianna v0.0.5
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)