Tatsuhiro Tsujikawa
a73ef15904
2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use operator T* of array_ptr.
* src/OptionParser.cc
2009-02-12 13:12:54 +00:00
Tatsuhiro Tsujikawa
2e9edd316a
2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use localhost instead of 127.0.0.1
* test/FtpConnectionTest.cc
* test/MSEHandshakeTest.cc
2009-02-12 13:11:51 +00:00
Tatsuhiro Tsujikawa
1c46a26ae6
2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added operator T*
* src/array_fun.h
* test/array_funTest.cc
2009-02-12 13:10:38 +00:00
Tatsuhiro Tsujikawa
5547b3a5ed
2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use dynamically allocated char array to detect memory access
violation.
* src/DHTRoutingTableDeserializer.cc
2009-02-11 16:33:45 +00:00
Tatsuhiro Tsujikawa
509c13c173
2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
defined.
* src/PeerMessageUtil.cc
2009-02-11 16:15:30 +00:00
Tatsuhiro Tsujikawa
44e574e2fe
2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
* configure.ac
2009-02-11 16:14:22 +00:00
Tatsuhiro Tsujikawa
c0f13f9e69
2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added a check to see struct sockaddr_in has sin_len member.
* configure.ac
2009-02-11 16:12:07 +00:00
Tatsuhiro Tsujikawa
8f596468eb
2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed buffer overrun.
* src/DHTRoutingTableDeserializer.cc
2009-02-11 16:09:20 +00:00
Tatsuhiro Tsujikawa
c7cf936956
2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added LL for long long int constant.
* test/FtpConnectionTest.cc
2009-02-11 16:08:14 +00:00
Tatsuhiro Tsujikawa
1982ebaf1f
2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Casted to unsigned int to suppress compiler warning on netbsd.
* src/BtRuntime.h
2009-02-11 16:07:00 +00:00
Tatsuhiro Tsujikawa
43796accda
2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Assign the value of tv.tv_sec to time_t timesec instead of
giving tv.tv_sec to localtime_r directly because tv.tv_sec may
not be of type time_t.
* src/SimpleLogger.cc
2009-02-11 16:05:33 +00:00
Tatsuhiro Tsujikawa
0a5f6751d1
2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added test for FtpConnection::receiveSizeResponse().
* test/FtpConnectionTest.cc
2009-02-11 10:41:56 +00:00
Tatsuhiro Tsujikawa
cf20e207d4
2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fix epoll error on the old kernel 2.6.8 or ealier.
* src/EpollEventPoll.cc
2009-02-11 10:34:43 +00:00
Tatsuhiro Tsujikawa
56366759fc
2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use Util::parseLLInt instead of sscanf for portability. The
conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
* src/FtpConnection.cc
2009-02-11 10:32:10 +00:00
Tatsuhiro Tsujikawa
0fc900c0ac
2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that adding 0 length filter to BitfieldMan filters
1 block. It should not filter anything.
* src/BitfieldMan.cc
* src/ConsoleStatCalc.cc
* test/BitfieldManTest.cc
2009-02-11 07:54:03 +00:00
Tatsuhiro Tsujikawa
a8376a5c4b
2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that the boolean options that don't take arguments
don't work.
* src/OptionHandlerImpl.h
2009-02-11 07:46:15 +00:00
Tatsuhiro Tsujikawa
a2c3c54386
s/MultiDiskWriter/MultiDiskAdaptor/ in the previous log message.
2009-02-11 07:43:10 +00:00
Tatsuhiro Tsujikawa
b5af788a00
2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed broken selected file BitTorrent download.
* src/MultiDiskWriter.cc
* test/MultiDiskWriterTest.cc
* test/MultiFileAllocationIteratorTest.cc
2009-02-11 07:41:15 +00:00
Tatsuhiro Tsujikawa
4570a4242e
2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed #define guard for EpollEventPoll
* src/EpollEventPoll.h
2009-02-10 17:00:43 +00:00
Tatsuhiro Tsujikawa
d63308afc5
2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Wait 2 seconds. 1 second is sometimes not enough.
* test/TimeSeedCriteriaTest.cc
2009-02-10 14:53:32 +00:00
Tatsuhiro Tsujikawa
900d102bbf
2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use localhost instead of 127.0.0.1.
* test/DHTConnectionImplTest.cc
2009-02-10 14:52:20 +00:00
Tatsuhiro Tsujikawa
fb8848d415
2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Suppressed compiler warning.
* src/AdaptiveURISelector.cc
* src/DefaultPieceStorage.cc
2009-02-10 14:50:54 +00:00
Tatsuhiro Tsujikawa
145799abc5
2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Defined virtual destructor.
* src/MetalinkParserState.h
2009-02-10 14:49:35 +00:00
Tatsuhiro Tsujikawa
15b2d2f53b
2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Give NULL for second argument of getaddrinfo instead of "0".
* src/NameResolver.cc
2009-02-10 14:48:36 +00:00
Tatsuhiro Tsujikawa
fe267b43d5
2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
included strptime doesn't parse data for this format.
* src/FtpConnection.cc
* test/FtpConnectionTest.cc
2009-02-10 14:47:07 +00:00
Tatsuhiro Tsujikawa
a57e0b1273
2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed tests giving -1 for unsigned argument.
* test/SingleFileDownloadContextTest.cc
2009-02-10 14:45:21 +00:00
Tatsuhiro Tsujikawa
52b17520de
2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Don't use sha256 in tests because it might not be supported by
the SSL library.
* test/MetalinkProcessorTest.cc
2009-02-10 14:44:33 +00:00
Tatsuhiro Tsujikawa
ab06444ba7
2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed tests giving -1 for unsigned argument.
* test/AlphaNumberDecoratorTest
* test/BitfieldManTest.cc
* test/DefaultBtContextTest.cc
2009-02-10 14:42:49 +00:00
Tatsuhiro Tsujikawa
01b3968f92
2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed compile error without libcares when epoll is available.
* src/EpollEventPoll.cc
2009-02-10 14:26:11 +00:00
Tatsuhiro Tsujikawa
abae62908f
2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Included fstream instead of iostream.
* test/SignatureTest.cc
2009-02-09 12:45:07 +00:00
Tatsuhiro Tsujikawa
28d9af6d04
2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed #include <algorithm>
* test/RequestGroupTest.cc
2009-02-08 14:21:20 +00:00
Tatsuhiro Tsujikawa
9bb57720cf
2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
using RequestGroup::extractURIResult().
* src/AdaptiveURISelector.cc
* src/RequestGroup.cc
* src/RequestGroup.h
* test/RequestGroupTest.cc
2009-02-08 14:17:55 +00:00
Tatsuhiro Tsujikawa
b8d177dd5d
2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added tests for array_ptr.
* test/array_funTest.cc
2009-02-08 11:27:22 +00:00
Tatsuhiro Tsujikawa
9a7eee5cfa
2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Don't send ip parameter to a tracker if ip parameter is empty
string.
* src/DefaultBtAnnounce.cc
2009-02-07 15:02:32 +00:00
Tatsuhiro Tsujikawa
064754396e
2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Adjusted line feed.
* src/version_usage.cc
2009-02-07 14:24:56 +00:00
Tatsuhiro Tsujikawa
9dd04b7aaa
2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Print tags, possible values when OptionHandlerException is
caught.
* src/option_processing.cc
2009-02-07 14:24:11 +00:00
Tatsuhiro Tsujikawa
d71f434f61
2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Changed the message for FatalException.
* src/OptionParser.cc
2009-02-07 14:22:17 +00:00
Tatsuhiro Tsujikawa
366e5f40d5
2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Documented --bt-external-ip option in man page. Updated man
pages for --proxy-method option.
* doc/aria2c.1.txt
2009-02-07 14:01:38 +00:00
Tatsuhiro Tsujikawa
0fcdb7eee3
2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use GET method for FTP via HTTP proxy.
* src/FtpInitiateConnectionCommand.cc
2009-02-07 13:52:41 +00:00
Tatsuhiro Tsujikawa
997a0c29d1
2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Changed the default value of --proxy-method option from 'tunnel'
to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
option.
* src/AbstractCommand.cc
* src/AbstractCommand.h
* src/FtpInitiateConnectionCommand.cc
* src/HttpDownloadCommand.cc
* src/HttpInitiateConnectionCommand.cc
* src/HttpInitiateConnectionCommand.h
* src/OptionHandlerFactory.cc
2009-02-07 13:46:08 +00:00
Tatsuhiro Tsujikawa
1b854afe44
2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Initialized _logger
* src/SelectEventPoll.cc
2009-02-07 13:38:13 +00:00
Tatsuhiro Tsujikawa
0185a9d5a5
2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Defined a copy constructor for the same type.
* src/SharedHandle.h
2009-02-07 11:02:21 +00:00
Tatsuhiro Tsujikawa
2881dbe025
2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added OptionParser::parseArg() which internally uses getopt_long
to parse command-line options. All command-line options are now
configured by OptionHandler. No manual editing of struct option*
is required any more.
* src/NameMatchOptionHandler.h
* src/OptionHandler.h
* src/OptionHandlerFactory.cc
* src/OptionHandlerImpl.h
* src/OptionParser.cc
* src/OptionParser.h
* src/array_fun.h
* src/main.cc
* src/option_processing.cc
* test/OptionHandlerTest.cc
* test/OptionParserTest.cc
2009-02-07 11:00:34 +00:00
Tatsuhiro Tsujikawa
bbb3589293
2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed configure error with --disable-epoll
* configure.ac
2009-02-06 16:51:00 +00:00
Tatsuhiro Tsujikawa
5f0f8e68b2
2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed compile error when HAVE_EPOLL is not defined.
Fixed linker error on bigendian systems.
* src/SocketCore.cc
* src/SocketCore.h
* test/DefaultBtProgressInfoFileTest.cc
2009-02-06 16:49:24 +00:00
Tatsuhiro Tsujikawa
0640ea6254
2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added --bt-external-ip option. You can specify the external IP
address to report to a BitTorrent tracker. Although this
function is named 'external', it can accept any kind of IP
addresses.
* src/DefaultBtAnnounce.cc
* src/OptionHandlerFactory.cc
* src/option_processing.cc
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
* test/DefaultBtAnnounceTest.cc
2009-02-04 14:11:30 +00:00
Tatsuhiro Tsujikawa
23a6eff88e
2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Extracted the algorithm to find the longest incremental sequence
as max_sequence template.
* src/LongestSequencePieceSelector.cc
* src/a2algo.h
* test/Makefile.am
* test/a2algoTest.cc
2009-02-03 14:46:33 +00:00
Tatsuhiro Tsujikawa
c41fec3a22
2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
* src/usage_text.h
2009-02-02 15:25:45 +00:00
Tatsuhiro Tsujikawa
d4704a9d47
2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Updated doc for --uri-selector, --http-server-listen-port and
--enable-http-server option. Documented --event-poll option.
* doc/aria2c.1.txt
2009-02-02 14:30:29 +00:00
Tatsuhiro Tsujikawa
746c00d400
2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Updated doc for --enable-http-server.
* src/usage_text.h
2009-02-02 14:20:41 +00:00