~ubuntu-branches/ubuntu/quantal/aria2/quantal

« back to all changes in this revision

Viewing changes to doc/xmlrpc/aria2rpc

  • Committer: Package Import Robot
  • Author(s): Kartik Mistry
  • Date: 2011-11-08 20:25:08 UTC
  • mfrom: (2.5.7 sid)
  • Revision ID: package-import@ubuntu.com-20111108202508-scfph8rj6tz0cckk
Tags: 1.13.0-1
* New upstream version:
  + Depends on libgcrypt11 (>= 1.5.0-3) (Closes: #642989)

Show diffs side-by-side

added added

removed removed

Lines of Context:
215
215
  opt.on("--metalink-base-uri URI"){|val| options["metalink-base-uri"]=val}
216
216
  opt.on("--pause [BOOL]",["true","false"]){|val| options["pause"]=val||"true"}
217
217
  opt.on("--stream-piece-selector SELECTOR"){|val| options["stream-piece-selector"]=val}
 
218
  opt.on("--hash-check-only [BOOL]",["true","false"]){|val|
 
219
    options["hash-check-only"]=val||"true"
 
220
  }
 
221
  opt.on("--checksum TYPE_DIGEST"){|val| options["checksum"]=val}
 
222
  opt.on("--piece-length LENGTH"){|val| options["piece-length"]=val}
218
223
 
219
224
  opt.on("--max-overall-download-limit LIMIT"){|val| options["max-overall-download-limit"]=val}
220
225
  opt.on("--max-overall-upload-limit LIMIT"){|val| options["max-overall-upload-limit"]=val}
232
237
       #{program_name} addTorrent /path/to/torrent_file URI... [options]
233
238
       #{program_name} addMetalink /path/to/metalink_file [options]
234
239
       #{program_name} remove GID [options]
 
240
       #{program_name} forceRemove GID [options]
235
241
       #{program_name} pause GID [options]
236
242
       #{program_name} pauseAll [options]
237
243
       #{program_name} forcePause GID [options]
248
254
       #{program_name} getFiles   GID [options]
249
255
       #{program_name} getUris    GID [options]
250
256
       #{program_name} getPeers   GID [options]
 
257
       #{program_name} getServers GID [options]
251
258
       #{program_name} purgeDownloadResult [options]
252
259
       #{program_name} removeDownloadResult GID [options]
253
260
       #{program_name} changeOption GID [options]
333
340
  result=client.call("aria2."+command)
334
341
elsif command == "remove" then
335
342
  result=client.call("aria2."+command, resources[0])
 
343
elsif command == "forceRemove" then
 
344
  result=client.call("aria2."+command, resources[0])
336
345
elsif command == "changePosition" then
337
346
  result=client.call("aria2."+command, resources[0], resources[1].to_i(),
338
347
                     resources[2])
342
351
  result=client.call("aria2."+command, resources[0])
343
352
elsif command == "getPeers" then
344
353
  result=client.call("aria2."+command, resources[0])
 
354
elsif command == "getServers" then
 
355
  result=client.call("aria2."+command, resources[0])
345
356
elsif command == "purgeDownloadResult" then
346
357
  result=client.call("aria2."+command)
347
358
elsif command == "removeDownloadResult" then