add a downloading queue in ftControl,max 2 files can be download at same time

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@933 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
ewensun 2009-01-19 15:02:59 +00:00
parent 812cdd6bd6
commit 0654836a3d
2 changed files with 47 additions and 10 deletions

View file

@ -62,6 +62,8 @@ const uint32_t CB_CODE_MEDIA = 0x0004;
const uint32_t FC_TRANSFER_COMPLETE = 0x0001;
const uint32_t MAX_NUMBER_OF_DOWNLOADING_FILE = 0x0002; //will be controller by user later
class ftFileControl
{
public:
@ -190,7 +192,8 @@ bool setPeerState(ftTransferModule *tm, std::string id,
std::map<std::string, ftFileControl> mCompleted;
std::map<std::string, ftFileControl> mDownloads;
std::map<std::string, ftFileControl> mDownloads; //include downloading and pending downloading
std::list<std::string> mDownloadingQueue; //only include downloading file hashs
//std::map<std::string, ftTransferModule *> mTransfers;
//std::map<std::string, ftFileCreator *> mFileCreators;