UTorrent.stopTorrent()

Stop downloading the torrent specified by the hash parameter.

Usage

Hover over inputs/exits for more info.

var UTorrent = require('machinepack-utorrent');


// Stop downloading the torrent specified by the hash parameter.

UTorrent.stopTorrent({

host: 'localhost',

port: 26085,

username: 'admin',

password: '12345',

hash: '',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function () {

 

},

});

Inputs

host required

'localhost'
port required

26085
username required

'admin'
password required

'12345'
hash required

''

Exits

error

An unexpected error occurred.

success

OK.