summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Fix PREF_QUIET is set to A2_V_TRUE even if standalone is truelibaria2Tatsuhiro Tsujikawa2013-05-051-4/+6
|
* Add SessionConfig to store per Session configTatsuhiro Tsujikawa2013-05-046-56/+98
| | | | | | | 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.
* Fix event polling not working with no downloads but keepRunning_ is trueTatsuhiro Tsujikawa2013-05-025-1/+133
|
* Receive reference, not copyTatsuhiro Tsujikawa2013-05-021-1/+1
|
* Suppress console output for none-standalone modeTatsuhiro Tsujikawa2013-05-025-30/+38
|
* Suppress console log output for library use, enclose Platform in try-catchTatsuhiro Tsujikawa2013-05-021-1/+7
| | | | Still need to suppress global::cerr and global::cout
* Fix empty unknown option name in OptionParser::parseTatsuhiro Tsujikawa2013-05-021-2/+1
|
* Don't enter daemon mode if standalone is falseTatsuhiro Tsujikawa2013-05-021-1/+1
|
* Don't exit on error in option_processingTatsuhiro Tsujikawa2013-05-023-36/+52
| | | | | 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 addMetalink API functionTatsuhiro Tsujikawa2013-05-022-0/+51
|
* Add sessionConfigSetKeepRunning and shutdown API functionTatsuhiro Tsujikawa2013-05-014-7/+50
| | | | | | Setting sessionConfigSetKeepRunning to true makes aria2 core keep running even if there is no download to perform, just like --enable-rpc option.
* Update API docTatsuhiro Tsujikawa2013-05-011-12/+44
|
* Add removeDownload, pauseDownload and unpauseDownload API functionTatsuhiro Tsujikawa2013-05-014-26/+91
|
* Rename DOWNLOAD_STATUS as DownloadStatusTatsuhiro Tsujikawa2013-05-012-4/+4
|
* Add DownloadHandle::getFiles() API functionTatsuhiro Tsujikawa2013-05-012-0/+129
|
* Expose struct DownloadHandle interface to public API directlyTatsuhiro Tsujikawa2013-05-013-97/+16
|
* Rename gidToString as gidToHex, add hexToGid and isNullTatsuhiro Tsujikawa2013-04-302-2/+21
|
* Add accessors for DownloadHandleTatsuhiro Tsujikawa2013-04-303-0/+113
| | | | | | | Added downloadGetBitfield, downloadGetNumPieces, downloadGetConnections, downloadGetErrorCode, downloadGetFollowedBy, downloadGetBelongsTo and downloadGetDir functions.
* Move aria2api.{cc,h} to libaria2_la_SOURCESTatsuhiro Tsujikawa2013-04-301-2/+2
|
* Add gidToString and getActiveDownload API functionsTatsuhiro Tsujikawa2013-04-272-1/+24
|
* Call onEndOfRun() on oneshot == true as wellTatsuhiro Tsujikawa2013-04-271-3/+1
|
* Add getDownloadHandle APITatsuhiro Tsujikawa2013-04-274-0/+197
|
* Add initialization function and addUri API function for libaria2Tatsuhiro Tsujikawa2013-04-2615-54/+445
|
* Move initialization code in aria2::main to struct ContextTatsuhiro Tsujikawa2013-04-2510-327/+510
|
* Add preliminary libtool files for libaria2Tatsuhiro Tsujikawa2013-04-253-3/+51
|
* Fix cached data is not flushed when downloaded data is less than 16KiBTatsuhiro Tsujikawa2013-04-231-7/+7
|
* Use INFO level log when get_associate failed in PortEventPoll::poll()Tatsuhiro Tsujikawa2013-04-201-4/+4
|
* Don't wait for AAAA query response if A query response has been receivedTatsuhiro Tsujikawa2013-04-142-1/+14
| | | | | | | | If we got IPv4 lookup response, we don't wait for IPv6 lookup response. This is because DNS server may drop AAAA query and we have to wait for the long time before timeout. We don't do the inverse, because, based on todays deployment of DNS server, almost all of them can respond A query just fine.
* Fix compile error without SSL/TLS libTatsuhiro Tsujikawa2013-04-141-0/+6
|
* Check configured addresses again if previous check found none of themTatsuhiro Tsujikawa2013-04-131-0/+9
| | | | | | | | Currently, aria2 checks configured addresses at the startup. But there are chances that interfaces are not setup at that moment. For example, if aria2 is used as daemon, it may start before network interfaces up. To workaround this, we check addresses again if both addresses are not configured at the startup.
* Save options directly specified for download in --save-sessionTatsuhiro Tsujikawa2013-04-115-34/+89
| | | | | | | This change makes --save-session save only options specified for download, more specifically, options in command-line, -i file and via RPC. The other options from conf file and default values are not saved. This will drastically decrease the size of session file.
* Save URI returned only from FileEntry::getRemainingUris()Tatsuhiro Tsujikawa2013-04-111-5/+4
| | | | | | | | The currently used URIs are inserted back into remaining URI list in FileEntry::putBackRequest(), which overlaps to some of the URIs in spentUris_. If we save spent URIs, each time save is performed, the number of URIs are increased due to this overlap. This change fixes this bug.
* AppleMD: Add destructors to make compilers happyNils Maier2013-04-102-0/+2
|
* Print linked 3rd party libraries with version in `aria2c -v` outputTatsuhiro Tsujikawa2013-04-103-0/+87
|
* Format MessageDigest.ccTatsuhiro Tsujikawa2013-04-091-3/+3
|
* Fix broken MessageDigst::getSupportedHashTypeString()Tatsuhiro Tsujikawa2013-04-091-1/+6
|
* Update TLSSession::checkDirection() docTatsuhiro Tsujikawa2013-04-091-2/+2
| | | | | | | | Make it clear that TLS_WANT_READ must be returned if underlying SSL/TLS lib does not indicate I/O direction. This is because SocketCore sets wantRead_ = true when TLS_WANT_READ is returned and otherwise sets wantWrite_ = true. We only want to set wantWrite_ = true iff we have some pending data to send.
* Merge branch 'appletls-wantread' of https://github.com/nmaier/aria2 into ↵Tatsuhiro Tsujikawa2013-04-091-4/+9
|\ | | | | | | nmaier-appletls-cred-kc
| * AppleTLS: Fixup checkDirection() to return WANT_READ by defaultNils Maier2013-04-081-4/+9
| |
* | AppleTLS: Support credentials via KeyChain fingerprintsNils Maier2013-04-087-21/+291
|/
* Append comment to endifTatsuhiro Tsujikawa2013-04-061-5/+5
|
* Fix make distcheckTatsuhiro Tsujikawa2013-04-061-2/+3
|
* Make log level INFO in addTrustedCACertFile()Tatsuhiro Tsujikawa2013-04-062-2/+2
| | | | | With WARN level, they will be always printed on Mac OS and old GNUTLS build which does not have its API.
* AppleTLS: Block worst ciphers and log session informationNils Maier2013-04-051-6/+248
|
* AppleTLS: Implement AppleTLS and Apple Message DigestNils Maier2013-04-0520-279/+1096
|
* Use info level log for system trusted ca imports failureTatsuhiro Tsujikawa2013-04-052-4/+4
| | | | | | This is because on some platforms (gnutls on cygwin for example), library always fails for this function and getting ERROR every time aria2c invoked is too hard.
* Remove default value for deprecated --enable-async-dns6 to suppress warningTatsuhiro Tsujikawa2013-04-031-1/+1
|
* Abstract TLS session implementationTatsuhiro Tsujikawa2013-04-039-437/+944
| | | | | Now TLS session object is abstracted as TLSSession class. Currently, we have GNUTLS and OpenSSL implementations.
* Remove deprecated options: --enable-direct-io and --metalink-serversTatsuhiro Tsujikawa2013-04-023-34/+0
|
* Deprecate --enable-async-dns6Tatsuhiro Tsujikawa2013-04-021-5/+6
| | | | | | | | The IPv6 asynchronous name resolver is enabled if the host has at least one interface with IPv6 address configured (the loopback address will not be counted), which is roughly the same behaviour of the standard getaddrinfo(3). To disable IPv6 asynchronous name resolver, use --disable-ipv6.