Commit Graph

3344 Commits (ad596fa03f470471459f2a098bf6fe7b3b723997)

Author SHA1 Message Date
Tatsuhiro Tsujikawa bc9fb7cb65 Fixed bug in util::parseULLIntNoThrow() 2011-12-02 00:44:33 +09:00
Tatsuhiro Tsujikawa dd8824ab11 Don't compare c-strng using CPPUNIT_ASSERT_EQUAL 2011-12-02 00:30:11 +09:00
Tatsuhiro Tsujikawa 11c5a13534 Return true if bits == 0 in util::inSameCidrBlock() 2011-12-02 00:27:14 +09:00
Tatsuhiro Tsujikawa e787b30dde Documented --stop-with-process option in man page. 2011-12-01 23:38:57 +09:00
Tatsuhiro Tsujikawa 031f1199d7 Added const to Option::getTable() 2011-12-01 23:36:17 +09:00
Tatsuhiro Tsujikawa f9dd59eebd Added missing XmlParser::parseMemory() in ExpatXmlParser.cc 2011-12-01 23:34:14 +09:00
Tatsuhiro Tsujikawa 82e5318e35 Fixed compile error with mingw 2011-12-01 23:21:56 +09:00
Tatsuhiro Tsujikawa b89bc8a6cb Added --stop-with-process=PID option.
This feature stops application when process PID is not running.  This
is useful if aria2 process is forked from a parent process. The parent
process can fork aria2 with its own pid and when parent process exits
for some reason, aria2 can detect it and shutdown itself.

The code which detects whether or not given process PID is running is
contributed by Emmanuel Engelhart.
2011-12-01 23:21:44 +09:00
Tatsuhiro Tsujikawa ce3b3fc88e Merge branch 'master' of github.com:tatsuhiro-t/aria2 2011-11-30 22:01:07 +09:00
Tatsuhiro Tsujikawa 27dda3c65c Support IPv6 address for FTP via HTTP tunneling.
We use control connection address as data connection address, so we
don't need to store both address and port. We just store port in
PASV/EPSV response and use SocketCore::getPeerInfo() to get peer's
address when needed.
2011-11-14 23:19:37 +09:00
Tatsuhiro Tsujikawa c8f51378d7 Merge pull request #2 from tcz/master
Adding Fedora required packages
2011-11-14 04:19:20 -08:00
Zoltan Toth-Czifra c9b9f379a8 Adding Fedora required packages 2011-11-13 17:31:07 +01:00
Tatsuhiro Tsujikawa 97a9242cbe Proxy URI is now constructed in getProxyUri().
The previous implementation constructs proxy URI in OptionHandler but
it cannot handle with the situation when user, password and proxy URI
is given various order.  Now we just set rules: username set in
--*-proxy-user overrides username in --*-proxy option, no matter in
any order username, password and proxy URI are parsed. Likewise,
password set in --*--proxy-passwd overrides password in --*-proxy
option.
2011-11-13 23:06:24 +09:00
Tatsuhiro Tsujikawa c42dd7e755 Changed format of ETA.
Now no leading 0 is used. If hour part and/or min part is non-zero,
and sec part is 0, sec part is omitted, like this "1h3m".
2011-11-13 20:59:15 +09:00
Tatsuhiro Tsujikawa 1687741303 Use fmt instead of util::itos 2011-11-13 20:55:06 +09:00
Tatsuhiro Tsujikawa 9e5124eb11 Include trailing "/" in UriStruct::dir.
The duplicate "/"s in dir are not removed now.
2011-11-12 22:36:05 +09:00
Tatsuhiro Tsujikawa c0dda6a0f7 Changed createSockPoolKey so that we can support IPv6 numeric address safely. 2011-11-12 21:31:14 +09:00
Tatsuhiro Tsujikawa db5cc4db27 Don't append character to std::string. 2011-11-12 21:27:24 +09:00
Tatsuhiro Tsujikawa 5347efb967 Use fmt instead of using snprintf directly 2011-11-12 19:33:38 +09:00
Tatsuhiro Tsujikawa 0da2468d6b Removed strappend 2011-11-12 19:24:38 +09:00
Tatsuhiro Tsujikawa 2e5d9b056f Removed strconcat 2011-11-12 18:17:34 +09:00
Tatsuhiro Tsujikawa c4e66390ac Code cleanup 2011-11-12 17:13:43 +09:00
Tatsuhiro Tsujikawa f1f1b991f1 Removed SocketBuffer::pushStrSwap. 2011-11-12 01:19:01 +09:00
Tatsuhiro Tsujikawa f0f1cfab5c Use util::strifind instead of std::toLower and std::string::find. 2011-11-12 01:13:55 +09:00
Tatsuhiro Tsujikawa 2f4393d17c Rewritten parse*Int 2011-11-12 01:06:52 +09:00
Tatsuhiro Tsujikawa 226480ad60 Made const char[] static 2011-11-11 23:00:41 +09:00
Tatsuhiro Tsujikawa d17ea2837b HttpHeader::fill() now stores header name in lowercase.
Find methods in HttpHeader won't lowercase argument, so use lowercase
letters to get HTTP header field.
2011-11-11 22:50:18 +09:00
Tatsuhiro Tsujikawa 35a3f41346 Made Pref::k_, OptionHandler::getName() and getDescription() const char*. 2011-11-11 01:59:23 +09:00
Tatsuhiro Tsujikawa 787bfd75da Use XmlParser for XML-RPC. 2011-11-11 00:37:32 +09:00
Tatsuhiro Tsujikawa 3b4a368554 Rewritten Expat Metalink XML parser. 2011-11-10 23:28:12 +09:00
Tatsuhiro Tsujikawa 440f29aca3 Rewritten Metalink XML parser.
Now we don't strip white spaces while parsing Metalink V3 document.
Expat implementation does not included in this change.
2011-11-10 22:38:01 +09:00
Tatsuhiro Tsujikawa f114a6fba4 Now xml attribute and characters in RPC request is not stripped at all.
Changed XmlRpcRequestParserState so that name is now const char*.
2011-11-09 00:21:02 +09:00
Tatsuhiro Tsujikawa bdaa87c73b Avoid temporary string 2011-11-08 23:53:12 +09:00
Tatsuhiro Tsujikawa 7f8724c501 Removed temporary string 2011-11-08 23:45:40 +09:00
Tatsuhiro Tsujikawa 6ed36b73c1 Code cleanup 2011-11-08 23:27:23 +09:00
Tatsuhiro Tsujikawa aa6f9c2057 Removed unused code 2011-11-08 23:13:47 +09:00
Tatsuhiro Tsujikawa 2ca98cc428 Use std::search instead of creating temporary std::string. 2011-11-08 00:59:49 +09:00
Tatsuhiro Tsujikawa 72a1847ba8 Rewritten *ARC4Encryptor. Removed *ARC4Context.
Now *ARC4Encryptor supports in-place encryption.
2011-11-08 00:50:07 +09:00
Tatsuhiro Tsujikawa f6f053cae1 Fixed out of array bound 2011-11-08 00:15:37 +09:00
Tatsuhiro Tsujikawa 02b3873e6d Removed ARC4Decryptor because ARC4Encryptor can decrypt the message. 2011-11-07 22:24:47 +09:00
Tatsuhiro Tsujikawa 30fdb08f40 Rewritten parametered URI handling routine. 2011-11-06 16:37:02 +09:00
Tatsuhiro Tsujikawa d45d854926 Rewritten base64::decode and base64::encode 2011-11-05 23:30:46 +09:00
Tatsuhiro Tsujikawa 17a1b51a76 mv Base64.{cc,h} base64.{cc,h} 2011-11-05 21:13:49 +09:00
Tatsuhiro Tsujikawa 0c162dfbfb Made util::fromHex and base32::decode function template 2011-11-05 18:05:23 +09:00
Tatsuhiro Tsujikawa 6ea1b68db1 Added SocketBuffer::pushStrSwap 2011-11-05 17:28:48 +09:00
Tatsuhiro Tsujikawa 4dad3ded15 Use SocketBuffer::pushBytes instead of pushStr in MSEHandshake. 2011-11-05 17:03:38 +09:00
Tatsuhiro Tsujikawa 5e2a8b2d4c Fixed bug that some information such as port number is lost if
redirect URI contains only path component.
2011-11-05 13:16:45 +09:00
Tatsuhiro Tsujikawa 0b515d7204 Use uri::UriStruct in Request.h 2011-11-05 13:00:40 +09:00
Tatsuhiro Tsujikawa 7d68c40a77 Made decoderawstring return pair of iterators, not string. 2011-11-05 12:15:34 +09:00
Tatsuhiro Tsujikawa d1d4903665 Rewritten bencode2::decode functions 2011-11-05 12:01:57 +09:00