2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

Added infoHash, pieceLength, numPieces value for tellActiveStatus
	command.
	* src/XmlRpcMethodImpl.cc
pull/1/head
Tatsuhiro Tsujikawa 2009-05-08 16:49:20 +00:00
parent 4cb5468662
commit 606c11810b
2 changed files with 12 additions and 0 deletions

View File

@ -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

View File

@ -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();