diff --git a/ChangeLog b/ChangeLog index a206424d..229d84c6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-05-09 Tatsuhiro Tsujikawa + + Added infoHash, pieceLength, numPieces value for tellActiveStatus + command. + * src/XmlRpcMethodImpl.cc + 2009-05-09 Tatsuhiro Tsujikawa Now RequestGroup has its own copy of Option object. This will help diff --git a/src/XmlRpcMethodImpl.cc b/src/XmlRpcMethodImpl.cc index ebad520d..539da9af 100644 --- a/src/XmlRpcMethodImpl.cc +++ b/src/XmlRpcMethodImpl.cc @@ -196,6 +196,12 @@ BDE TellActiveStatusXmlRpcMethod::process SharedHandle btctx = dynamic_pointer_cast((*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 btreg = e->getBtRegistry(); BDE peers = BDE::list();