aria2/m4
Tatsuhiro Tsujikawa f2d4faad08 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
To add asynchronous DNS support(libares):

	* src/AbstractCommand.h
	(setNameResolverCheck): New function.
	(disableNameResolverCheck): New function
	(resolveHostname): New function.
	* src/AbstractCommand.cc
	(setNameResolverCheck): New function.
	(disableNameResolverCheck): New function
	(resolveHostname): New function.
	* src/FtpInitiateConnectionCommand.h
	(nameResolver): New function.
	* src/FtpInitiateConnectionCommand.cc
	(Util.h): Included.
	(FtpInitiateConnectionCommand): Call disableReadCheckSocket,
	disableWriteCheckSocket.
	(~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
	(executeInternal): Added async DNS support.
	* src/HttpInitiateConnectionCommand.h
	(nameResolver): New function.
	* src/HttpInitiateConnectionCommand.cc
	(DlRetryEx.h): Included.
	(HttpInitiateConnectionCommand): Call disableReadCheckSocket,
	disableWriteCheckSocket.
	(~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
	(executeInternal): Added async DNS support.
	* src/NameResolver.h: New class. Note: #include <ares.h> is 
surrounded
	by extern "C" declaration.
	* src/NameResolver.cc: New class.
	* src/Util.h:
	(isNumberAndDotsNotation): New function
	* src/Util.cc
	(isNumberAndDotsNotation): New function.
	* src/DownloadEngine.h
	(NameResolver.h): Included.
	(NameResolverEntry): New class.
	(NameResolverEntries): New type definition.
	(addNameResolverCheck): New function.
	(deleteNameResolverCheck): New function.
	* src/DownloadEngine.cc
	(run): Initialize cp with 0.
	(SetDescriptor::operator()): Added for NameResolverEntry.
	(AccumulateActiveUuid::operator()): Added for NameResolverEntry.
	(waitData): Check nameResolver entries.
	(updateFdSet): Update fds in nameResolver entries.
	(addNameResolverCheck): New function.
	(deleteNameResolverCheck): new function.
	
	* src/PeerInteractionCommand.cc
	(executeInternal): Fixed wrong socket handling.

	* src/main.cc
	(main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT 
option to 0.

	* src/Util.cc
	(fileChecksum): Removed the call to ctx.digestReset().
2006-08-11 12:29:55 +00:00
..
ChangeLog * DownloadEngine.{h, cc}: 2006-03-02 10:43:00 +00:00
Makefile.am * DownloadEngine.{h, cc}: 2006-03-02 10:43:00 +00:00
Makefile.in 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-08-11 12:29:55 +00:00
codeset.m4 * DownloadEngine.{h, cc}: 2006-03-02 10:43:00 +00:00
gettext.m4 * DownloadEngine.{h, cc}: 2006-03-02 10:43:00 +00:00
glibc21.m4 * DownloadEngine.{h, cc}: 2006-03-02 10:43:00 +00:00
iconv.m4 * DownloadEngine.{h, cc}: 2006-03-02 10:43:00 +00:00
intdiv0.m4 * DownloadEngine.{h, cc}: 2006-03-02 10:43:00 +00:00
inttypes-pri.m4 * DownloadEngine.{h, cc}: 2006-03-02 10:43:00 +00:00
inttypes.m4 * DownloadEngine.{h, cc}: 2006-03-02 10:43:00 +00:00
inttypes_h.m4 * DownloadEngine.{h, cc}: 2006-03-02 10:43:00 +00:00
isc-posix.m4 * DownloadEngine.{h, cc}: 2006-03-02 10:43:00 +00:00
lcmessage.m4 * DownloadEngine.{h, cc}: 2006-03-02 10:43:00 +00:00
lib-ld.m4 * DownloadEngine.{h, cc}: 2006-03-02 10:43:00 +00:00
lib-link.m4 * DownloadEngine.{h, cc}: 2006-03-02 10:43:00 +00:00
lib-prefix.m4 * DownloadEngine.{h, cc}: 2006-03-02 10:43:00 +00:00
libares.m4 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-08-11 12:29:55 +00:00
nls.m4 * DownloadEngine.{h, cc}: 2006-03-02 10:43:00 +00:00
openssl.m4 2006-04-20 16:52:31 +00:00
po.m4 * DownloadEngine.{h, cc}: 2006-03-02 10:43:00 +00:00
progtest.m4 * DownloadEngine.{h, cc}: 2006-03-02 10:43:00 +00:00
stdint_h.m4 * DownloadEngine.{h, cc}: 2006-03-02 10:43:00 +00:00
uintmax_t.m4 * DownloadEngine.{h, cc}: 2006-03-02 10:43:00 +00:00
ulonglong.m4 * DownloadEngine.{h, cc}: 2006-03-02 10:43:00 +00:00