orianna

0.0.5 • Public • Published

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)

Thanks

/orianna/

    Package Sidebar

    Install

    npm i orianna

    Weekly Downloads

    1

    Version

    0.0.5

    License

    MIT

    Unpacked Size

    7.15 kB

    Total Files

    4

    Last publish

    Collaborators

    • overcat