summaryrefslogtreecommitdiff
path: root/src/Context.cc
Commit message (Collapse)AuthorAgeFilesLines
* clang-formatTatsuhiro Tsujikawa2023-11-021-14/+14
|
* Enable IndentPPDirectivesTatsuhiro Tsujikawa2018-06-091-8/+8
|
* Add --peer-agent optionKurt Kartaltepe2017-07-111-0/+1
| | | | | Add --peer-agent for setting the version/user agent used in the extended handshake protocol for bittorrent.
* Fix log messageTatsuhiro Tsujikawa2016-09-051-1/+1
|
* Use default where possibleNils Maier2016-08-291-1/+1
|
* Log number of items loaded from input fileNils Maier2016-07-191-0/+4
|
* Disable AI_ADDRCONFIG if no IPv4/IPv6 address is configured for any interfaceTatsuhiro Tsujikawa2016-07-041-3/+7
|
* make clang-format using clang-format-3.6Tatsuhiro Tsujikawa2015-12-271-65/+70
|
* Add --socket-recv-buffer-size optionTatsuhiro Tsujikawa2015-11-281-0/+2
| | | | | | | | Set the maximum socket receive buffer in bytes. Specifing 0 will disable this option. This value will be set to socket file descriptor using SO_RCVBUF socket option with setsockopt() call. See GH-487 about the usecase of this option
* Disable --deferred-input when --save-session is used togetherTatsuhiro Tsujikawa2015-11-281-10/+9
| | | | | | | | | | | | With --deferred-input=true, aria2 only reads input file to fill active download slots, while keeping input file open. Meanwhile, --save-session saves all download info inside memory, but this does not take into account of unread item in input file. This will lead to lose input data in saved session file. Also current BufferedFile implementation used to read/write input/output file take a lock on Windows. This effectively prevents session serializer from writing session data to the same file which is still kept open because of --deferred-input. See GH-493
* multiple interface support for link aggregationSarim Khan2015-04-211-0/+5
| | | | fix: wrong variable
* Revise getRandom facilitiesNils Maier2015-01-201-1/+0
| | | | | | | | | | | | | | Use one of the following to provide random bytes: - Windows CryptGenRandom - Linux getrandom (syscall interface to urandom, without nasty corner cases such as file descriptor exhaustion or re-linked /dev/urandom) - std::device_random (C++ random device, which usually will be urandom) This also equalizes util::getRandom and SimpleRandomizer (the former will now use the latter) instead of having essentially two different PRNG interfaces with potentially different quality. Closes GH-320
* Fix another printf related warningNils Maier2014-12-291-2/+1
|
* Use std::make_shared and make_unique where possible, part 1Tatsuhiro Tsujikawa2014-09-131-6/+5
|
* Try to set sane limits for RLIMIT_NO_FILENils Maier2014-07-221-0/+38
| | | | | | | E.g. on OSX the default is 256, which isn't exactly compatible with torrent downloads. Closes GH-257
* Improve compiler/platform/libs information in logsNils Maier2014-06-101-1/+4
| | | | | | | | | | Add and use usedCompilerAndPlatform(). This adds compiler information to INFO logs and the --version output, and may be helpful when trying to diagnose/reproduce user-reported problems. Also make INFO logs include usedLibs() output. Closes #235
* Remove ENABLE_MESSAGE_DIGEST, since we got the internal md, alwaysNils Maier2014-04-171-3/+1
|
* Merge branch 'dscp-support' of https://github.com/iavael/aria2 into ↵Tatsuhiro Tsujikawa2014-02-041-0/+1
|\ | | | | | | | | | | | | | | | | iavael-dscp-support Conflicts: src/prefs.cc src/prefs.h src/usage_text.h
| * Refactored DSCP-related code a bitAlexander Amanuel2014-01-281-0/+1
| |
* | Add --enable-color option to enable/disable terminal color outputTatsuhiro Tsujikawa2014-01-301-0/+1
|/
* SimpleRandomizer: Use std::randomTatsuhiro Tsujikawa2013-09-281-1/+1
|
* Clean up if defined styleTatsuhiro Tsujikawa2013-09-171-2/+2
|
* Convert to autos and ranged loopsNils Maier2013-08-211-8/+7
|
* Use std::unique_ptr for Metalink objectsTatsuhiro Tsujikawa2013-07-121-6/+4
|
* Refactor MultiUrlRequestInfo ctorTatsuhiro Tsujikawa2013-07-061-30/+1
| | | | | | | StatCalc creation is moved to MultiUrlRequestInfo. The summary output is done only when PREF_QUIET is false and it is always to global::cout(), so remove summaryOut_ and just use global::cout() in that case. Also use std::unique_ptr for statCalc_ in DownloadEngine.
* Move RequestGroup vector from Context to RequestGroupManTatsuhiro Tsujikawa2013-06-231-1/+2
|
* Require -std=c++11 and use std::shared_ptr instead of SharedHandleTatsuhiro Tsujikawa2013-06-221-16/+15
|
* Add SessionConfig to store per Session configTatsuhiro Tsujikawa2013-05-041-15/+0
| | | | | | | sessionConfigSetKeepRunning() was removed and SessionConfig has keepRunning member instead. Signal handlers are now all prepared in MultiUrlRequestGroup object. Setting SessionConfig.useSignalHandler to false will avoid signal handler setup.
* Don't exit on error in option_processingTatsuhiro Tsujikawa2013-05-021-5/+13
| | | | | Still it exits when -v or -h is given. They are now guarded by standalone variable and only do so when it is true.
* Add initialization function and addUri API function for libaria2Tatsuhiro Tsujikawa2013-04-261-5/+8
|
* Move initialization code in aria2::main to struct ContextTatsuhiro Tsujikawa2013-04-251-0/+298