/dports/www/aria2/aria2-1.36.0/src/ |
H A D | RequestGroup.cc | 250 downloadContext_->setChecksumVerified(true); in createCheckIntegrityEntry() 278 downloadContext_->resetDownloadStartTime(); in createInitialCommand() 335 downloadContext_.get(), option_.get()); in createInitialCommand() 558 if (downloadContext_->knowsTotalLength() && in initPieceStorage() 561 (downloadContext_->getTotalLength() > 0 in initPieceStorage() 665 if (!downloadContext_->knowsTotalLength()) { in downloadFinishedByFileLength() 863 downloadContext_->getNumPieces(), in createNextCommand() 887 assert(downloadContext_); in getFirstFilePath() 1037 downloadContext_->releaseRuntimeResource(); in releaseRuntimeResource() 1310 downloadContext_ = downloadContext; in setDownloadContext() [all …]
|
H A D | BtPieceMessage.cc | 75 downloadContext_(nullptr), in BtPieceMessage() 103 downloadContext_->updateDownload(blockLength_); in doReceivedAction() 108 static_cast<int64_t>(index_) * downloadContext_->getPieceLength() + in doReceivedAction() 210 static_cast<int64_t>(index_) * downloadContext_->getPieceLength() + in send() 226 std::move(buf), make_unique<PieceSendUpdate>(downloadContext_, peer, in pushPieceData() 229 downloadContext_->updateUploadSpeed(length); in pushPieceData() 248 downloadContext_->getPieceHash(piece->getIndex()); in checkPieceHash() 254 return piece->getDigestWithWrCache(downloadContext_->getPieceLength(), in checkPieceHash() 256 downloadContext_->getPieceHash(piece->getIndex()); in checkPieceHash() 327 downloadContext_ = downloadContext; in setDownloadContext()
|
H A D | DefaultBtMessageFactory.cc | 75 downloadContext_{nullptr}, 126 downloadContext_->getNumPieces())); in createBtMessage() 134 downloadContext_->getNumPieces())); in createBtMessage() 142 downloadContext_->getNumPieces(), in createBtMessage() 153 downloadContext_->getNumPieces(), in createBtMessage() 156 m->setDownloadContext(downloadContext_); in createBtMessage() 166 downloadContext_->getNumPieces(), in createBtMessage() 186 downloadContext_->getNumPieces())); in createBtMessage() 202 downloadContext_->getNumPieces(), in createBtMessage() 296 msg->setDownloadContext(downloadContext_); in createPieceMessage() [all …]
|
H A D | DefaultPieceStorage.cc | 81 : downloadContext_(downloadContext), in DefaultPieceStorage() 130 piece->setHashType(downloadContext_->getPieceHashType()); in checkOutPiece() 135 RequestGroup* group = downloadContext_->getOwnerRequestGroup(); in checkOutPiece() 475 downloadContext_->resetDownloadStopTime(); in completePiece() 486 if (downloadContext_->hasAttribute(CTX_ATTR_BT)) { in completePiece() 499 auto group = downloadContext_->getOwnerRequestGroup(); in completePiece() 597 downloadContext_->getFileEntries(); in setupFileFilter() 636 if (downloadContext_->getFileEntries().size() == 1) { in initStorage() 641 downloadContext_->getFileEntries().begin(), in initStorage() 642 downloadContext_->getFileEntries().end()); in initStorage() [all …]
|
H A D | DefaultBtMessageReceiver.cc | 58 downloadContext_{nullptr}, 85 if (memcmp(bittorrent::getInfoHash(downloadContext_), in receiveHandshake() 115 bittorrent::getInfoHash(downloadContext_), in sendHandshake() 140 downloadContext_ = downloadContext; in setDownloadContext()
|
H A D | UnknownLengthPieceStorage.cc | 52 : downloadContext_(downloadContext), in UnknownLengthPieceStorage() 64 directDiskAdaptor->setTotalLength(downloadContext_->getTotalLength()); in initStorage() 65 directDiskAdaptor->setFileEntries(downloadContext_->getFileEntries().begin(), in initStorage() 66 downloadContext_->getFileEntries().end()); in initStorage() 237 bitfield_ = make_unique<BitfieldMan>(downloadContext_->getPieceLength(), in createBitfield()
|
H A D | DefaultBtInteractive.cc | 91 downloadContext_(downloadContext), in DefaultBtInteractive() 117 bittorrent::getInfoHash(downloadContext_), in initiateHandshake() 205 auto attrs = bittorrent::getTorrentAttrs(downloadContext_); in addHandshakeExtendedMessageToQueue() 237 peer_->getIPAddress(), downloadContext_->getNumPieces(), in addAllowedFastMessageToQueue() 238 bittorrent::getInfoHash(downloadContext_), allowedFastSetSize_); in addAllowedFastMessageToQueue() 307 downloadContext_->getOwnerRequestGroup()->doesDownloadSpeedExceed()) { in receiveMessages() 437 if (metadataGetMode_ && downloadContext_->getTotalLength() > 0) { in cancelAllPiece() 538 pieceStorage_ = downloadContext_->getOwnerRequestGroup()->getPieceStorage(); in doInteractionProcessing() 540 downloadContext_->getTotalLength() > 0) { in doInteractionProcessing() 559 downloadContext_->getOwnerRequestGroup()->setForceHaltRequested( in doInteractionProcessing()
|
H A D | SegmentMan.cc | 70 : downloadContext_(downloadContext), in SegmentMan() 115 downloadContext_ = downloadContext; in setDownloadContext() 159 downloadContext_->getPieceLength(), piece); in checkoutSegment() 248 if (index > 0 && downloadContext_->getNumPieces() <= index) { in getSegmentWithIndex() 257 if (index > 0 && downloadContext_->getNumPieces() <= index) { in getCleanSegmentIfOwnerIsIdle() 460 size_t numPieces = downloadContext_->getNumPieces(); in countFreePieceFrom() 466 return downloadContext_->getNumPieces() - index; in countFreePieceFrom()
|
H A D | ShareRatioSeedCriteria.cc | 44 : ratio_(ratio), downloadContext_(downloadContext) in ShareRatioSeedCriteria() 60 downloadContext_->getNetStat().getSessionUploadLength(); in evaluate()
|
H A D | DefaultBtAnnounce.cc | 62 : downloadContext_{downloadContext}, in DefaultBtAnnounce() 157 NetStat& stat = downloadContext_->getNetStat(); in getAnnounceUrl() 174 util::percentEncode(bittorrent::getInfoHash(downloadContext_), in getAnnounceUrl() 216 NetStat& stat = downloadContext_->getNetStat(); in createUDPTrackerRequest() 223 req->infohash = bittorrent::getTorrentAttrs(downloadContext_)->infoHash; in createUDPTrackerRequest()
|
H A D | DefaultBtMessageDispatcher.cc | 66 downloadContext_{nullptr}, 94 downloadContext_->getOwnerRequestGroup()->doesUploadSpeedExceed()) { in sendMessagesInternal() 306 downloadContext_ = downloadContext; in setDownloadContext()
|
H A D | ShareRatioSeedCriteria.h | 51 std::shared_ptr<DownloadContext> downloadContext_; variable
|
H A D | DefaultBtMessageReceiver.h | 52 DownloadContext* downloadContext_; variable
|
H A D | BtPieceMessage.h | 52 DownloadContext* downloadContext_; variable
|
H A D | RequestGroup.h | 104 std::shared_ptr<DownloadContext> downloadContext_; variable 285 return downloadContext_; in getDownloadContext()
|
H A D | DefaultBtMessageDispatcher.h | 60 DownloadContext* downloadContext_; variable
|
H A D | DefaultBtAnnounce.h | 53 DownloadContext* downloadContext_;
|
H A D | SegmentMan.h | 78 std::shared_ptr<DownloadContext> downloadContext_;
|
H A D | DefaultBtMessageFactory.h | 60 DownloadContext* downloadContext_; variable
|
H A D | DefaultBtInteractive.h | 103 std::shared_ptr<DownloadContext> downloadContext_; variable
|
H A D | UnknownLengthPieceStorage.h | 51 std::shared_ptr<DownloadContext> downloadContext_;
|
H A D | DefaultPieceStorage.h | 75 std::shared_ptr<DownloadContext> downloadContext_;
|