Change the way to receive resulting gids in addUri, addMetalink

This commit is contained in:
Tatsuhiro Tsujikawa 2013-05-09 21:28:24 +09:00
parent e4996e563b
commit 8940d2aafd
4 changed files with 32 additions and 30 deletions

View file

@ -54,8 +54,7 @@ int main()
// Download files are stored in the current directory
aria2::KeyVals options = { std::make_pair("dir", ".") };
// Add URI
aria2::A2Gid gid;
aria2::addUri(session, gid, uris, options);
aria2::addUri(session, 0, uris, options);
auto start = std::chrono::steady_clock::now();
for(;;) {
int rv = aria2::run(session, aria2::RUN_ONCE);