node package manager

node-rtorrent-scgi

A rtorrent Client with scgi

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