mirror of https://github.com/aria2/aria2
2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Added infoHash, pieceLength, numPieces value for tellActiveStatus command. * src/XmlRpcMethodImpl.ccpull/1/head
parent
4cb5468662
commit
606c11810b
|
@ -1,3 +1,9 @@
|
|||
2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Added infoHash, pieceLength, numPieces value for tellActiveStatus
|
||||
command.
|
||||
* src/XmlRpcMethodImpl.cc
|
||||
|
||||
2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Now RequestGroup has its own copy of Option object. This will help
|
||||
|
|
|
@ -196,6 +196,12 @@ BDE TellActiveStatusXmlRpcMethod::process
|
|||
SharedHandle<BtContext> btctx =
|
||||
dynamic_pointer_cast<BtContext>((*i)->getDownloadContext());
|
||||
if(!btctx.isNull()) {
|
||||
entryDict["infoHash"] = BDE(btctx->getInfoHashAsString());
|
||||
entryDict["pieceLength"] =
|
||||
BDE(Util::uitos((*i)->getDownloadContext()->getPieceLength()));
|
||||
entryDict["numPieces"] =
|
||||
BDE(Util::uitos((*i)->getDownloadContext()->getNumPieces()));
|
||||
|
||||
SharedHandle<BtRegistry> btreg = e->getBtRegistry();
|
||||
|
||||
BDE peers = BDE::list();
|
||||
|
|
Loading…
Reference in New Issue