Home
last modified time | relevance | path

Searched refs:downloadContext_ (Results 1 – 22 of 22) sorted by relevance

/dports/www/aria2/aria2-1.36.0/src/
H A DRequestGroup.cc250 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 DBtPieceMessage.cc75 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 DDefaultBtMessageFactory.cc75 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 DDefaultPieceStorage.cc81 : 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 DDefaultBtMessageReceiver.cc58 downloadContext_{nullptr},
85 if (memcmp(bittorrent::getInfoHash(downloadContext_), in receiveHandshake()
115 bittorrent::getInfoHash(downloadContext_), in sendHandshake()
140 downloadContext_ = downloadContext; in setDownloadContext()
H A DUnknownLengthPieceStorage.cc52 : 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 DDefaultBtInteractive.cc91 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 DSegmentMan.cc70 : 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 DShareRatioSeedCriteria.cc44 : ratio_(ratio), downloadContext_(downloadContext) in ShareRatioSeedCriteria()
60 downloadContext_->getNetStat().getSessionUploadLength(); in evaluate()
H A DDefaultBtAnnounce.cc62 : 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 DDefaultBtMessageDispatcher.cc66 downloadContext_{nullptr},
94 downloadContext_->getOwnerRequestGroup()->doesUploadSpeedExceed()) { in sendMessagesInternal()
306 downloadContext_ = downloadContext; in setDownloadContext()
H A DShareRatioSeedCriteria.h51 std::shared_ptr<DownloadContext> downloadContext_; variable
H A DDefaultBtMessageReceiver.h52 DownloadContext* downloadContext_; variable
H A DBtPieceMessage.h52 DownloadContext* downloadContext_; variable
H A DRequestGroup.h104 std::shared_ptr<DownloadContext> downloadContext_; variable
285 return downloadContext_; in getDownloadContext()
H A DDefaultBtMessageDispatcher.h60 DownloadContext* downloadContext_; variable
H A DDefaultBtAnnounce.h53 DownloadContext* downloadContext_;
H A DSegmentMan.h78 std::shared_ptr<DownloadContext> downloadContext_;
H A DDefaultBtMessageFactory.h60 DownloadContext* downloadContext_; variable
H A DDefaultBtInteractive.h103 std::shared_ptr<DownloadContext> downloadContext_; variable
H A DUnknownLengthPieceStorage.h51 std::shared_ptr<DownloadContext> downloadContext_;
H A DDefaultPieceStorage.h75 std::shared_ptr<DownloadContext> downloadContext_;