0.0.8 • Published 8 years ago

node-rtorrent-scgi v0.0.8

Weekly downloads
26
License
LGPL-3.0
Repository
github
Last release
8 years ago

node-rtorrent

Installation

Available via npm:

$ npm install node-rtorrent-scgi

Or via git:

$ git clone git://github.com/kinabcd/node-rtorrent.git node_modules/node-rtorrent-scgi

API

Connection

Connect rTorrent with TCP/IP:

conn = rtorrent({host:'localhost', port:5000});

Connect rTorrent with Socket:

conn = rtorrent({path:'/tmp/torrent.sock'});

SendCall

Makes a request. Return the response from rTorrent.

conn.SendCall(methodName, params, function(err, data) {
    // Do something...
});

Details

Get the list of torrents.

conn.Details(function(list) {
    console.log(list);
});

Example

rtorrent = require('node-rtorrent-scgi');
conn = rtorrent({host:'localhost', port:5000});
conn.Details(function(list) {
    console.log(list);
});

License

GNU Lesser General Public License v3

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

9 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

11 years ago

0.0.1

11 years ago