2006-02-17 13:35:04 +00:00
|
|
|
bin_PROGRAMS = aria2c
|
|
|
|
aria2c_SOURCES = main.cc
|
2006-07-19 17:07:45 +00:00
|
|
|
SRCS = Socket.h\
|
2006-02-17 14:47:45 +00:00
|
|
|
SocketCore.cc SocketCore.h\
|
2006-07-19 17:07:45 +00:00
|
|
|
Command.cc Command.h\
|
2006-02-17 13:35:04 +00:00
|
|
|
AbstractCommand.cc AbstractCommand.h\
|
|
|
|
InitiateConnectionCommandFactory.cc InitiateConnectionCommandFactory.h\
|
|
|
|
DownloadCommand.cc DownloadCommand.h\
|
|
|
|
HttpInitiateConnectionCommand.cc HttpInitiateConnectionCommand.h\
|
|
|
|
HttpRequestCommand.cc HttpRequestCommand.h\
|
|
|
|
HttpResponseCommand.cc HttpResponseCommand.h\
|
|
|
|
HttpProxyRequestCommand.cc HttpProxyRequestCommand.h\
|
|
|
|
HttpProxyResponseCommand.cc HttpProxyResponseCommand.h\
|
|
|
|
HttpDownloadCommand.cc HttpDownloadCommand.h\
|
2006-02-21 12:27:17 +00:00
|
|
|
HttpHeader.cc HttpHeader.h\
|
2006-02-17 13:35:04 +00:00
|
|
|
HttpConnection.cc HttpConnection.h\
|
2006-02-21 12:27:17 +00:00
|
|
|
FtpConnection.cc FtpConnection.h\
|
|
|
|
FtpInitiateConnectionCommand.cc FtpInitiateConnectionCommand.h\
|
|
|
|
FtpNegotiationCommand.cc FtpNegotiationCommand.h\
|
|
|
|
FtpDownloadCommand.cc FtpDownloadCommand.h\
|
|
|
|
FtpTunnelRequestCommand.cc FtpTunnelRequestCommand.h\
|
|
|
|
FtpTunnelResponseCommand.cc FtpTunnelResponseCommand.h\
|
2006-02-17 13:35:04 +00:00
|
|
|
SleepCommand.cc SleepCommand.h\
|
|
|
|
DownloadEngine.cc DownloadEngine.h\
|
2006-03-02 02:54:49 +00:00
|
|
|
ConsoleDownloadEngine.cc ConsoleDownloadEngine.h\
|
2006-09-19 14:52:59 +00:00
|
|
|
Segment.cc Segment.h\
|
2006-02-17 13:35:04 +00:00
|
|
|
SegmentMan.cc SegmentMan.h\
|
|
|
|
Util.cc Util.h\
|
|
|
|
Request.cc Request.h\
|
|
|
|
common.h\
|
|
|
|
message.h\
|
|
|
|
Exception.h\
|
|
|
|
DlAbortEx.h\
|
|
|
|
DlRetryEx.h\
|
|
|
|
Logger.h\
|
|
|
|
SimpleLogger.cc SimpleLogger.h\
|
|
|
|
TransferEncoding.h\
|
|
|
|
ChunkedEncoding.cc ChunkedEncoding.h\
|
|
|
|
DiskWriter.h\
|
|
|
|
DefaultDiskWriter.cc DefaultDiskWriter.h\
|
2006-03-21 14:12:51 +00:00
|
|
|
PreAllocationDiskWriter.cc PreAllocationDiskWriter.h\
|
2006-02-17 13:35:04 +00:00
|
|
|
AbstractDiskWriter.cc AbstractDiskWriter.h\
|
|
|
|
File.cc File.h\
|
|
|
|
Option.cc Option.h\
|
|
|
|
Base64.cc Base64.h\
|
2006-03-21 14:12:51 +00:00
|
|
|
CookieBox.cc CookieBox.h\
|
2006-07-04 10:57:56 +00:00
|
|
|
messageDigest.h\
|
|
|
|
LogFactory.cc LogFactory.h\
|
|
|
|
NullLogger.h\
|
2006-08-07 16:28:41 +00:00
|
|
|
TimeA2.cc TimeA2.h\
|
2006-07-30 12:58:27 +00:00
|
|
|
SharedHandle.h\
|
2006-08-07 16:05:00 +00:00
|
|
|
FeatureConfig.cc FeatureConfig.h\
|
|
|
|
DownloadEngineFactory.cc DownloadEngineFactory.h\
|
|
|
|
RequestInfo.h\
|
2006-09-19 14:52:59 +00:00
|
|
|
UrlRequestInfo.cc UrlRequestInfo.h\
|
|
|
|
SpeedCalc.cc SpeedCalc.h\
|
2006-09-23 12:27:16 +00:00
|
|
|
PeerStat.h\
|
|
|
|
BitfieldMan.cc BitfieldMan.h
|
2006-07-04 10:57:56 +00:00
|
|
|
|
2006-08-21 13:18:51 +00:00
|
|
|
if ENABLE_ASYNC_DNS
|
2006-08-11 12:29:55 +00:00
|
|
|
SRCS += NameResolver.cc NameResolver.h
|
2006-08-21 13:18:51 +00:00
|
|
|
endif # ENABLE_ASYNC_DNS
|
2006-08-11 12:29:55 +00:00
|
|
|
|
2006-07-04 10:57:56 +00:00
|
|
|
if ENABLE_BITTORRENT
|
|
|
|
SRCS += MetaEntry.h\
|
2006-03-21 14:12:51 +00:00
|
|
|
Data.cc Data.h\
|
|
|
|
Dictionary.cc Dictionary.h\
|
|
|
|
List.cc List.h\
|
|
|
|
MetaFileUtil.cc MetaFileUtil.h\
|
|
|
|
MetaEntryVisitor.h\
|
|
|
|
ShaVisitor.cc ShaVisitor.h\
|
|
|
|
TorrentMan.cc TorrentMan.h\
|
|
|
|
PeerConnection.cc PeerConnection.h\
|
|
|
|
PeerMessageUtil.cc PeerMessageUtil.h\
|
|
|
|
PeerAbstractCommand.cc PeerAbstractCommand.h\
|
|
|
|
PeerInitiateConnectionCommand.cc PeerInitiateConnectionCommand.h\
|
|
|
|
PeerInteractionCommand.cc PeerInteractionCommand.h\
|
|
|
|
Peer.cc Peer.h\
|
|
|
|
TorrentDownloadEngine.cc TorrentDownloadEngine.h\
|
|
|
|
TorrentConsoleDownloadEngine.cc TorrentConsoleDownloadEngine.h\
|
|
|
|
PeerListenCommand.cc PeerListenCommand.h\
|
|
|
|
PeerMessage.cc PeerMessage.h\
|
2006-05-09 15:54:14 +00:00
|
|
|
HandshakeMessage.cc HandshakeMessage.h\
|
2006-03-21 14:12:51 +00:00
|
|
|
Piece.cc Piece.h\
|
|
|
|
RequestSlot.cc RequestSlot.h\
|
|
|
|
TorrentAutoSaveCommand.cc TorrentAutoSaveCommand.h\
|
2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
* configure.in: Added gnutls support. Added several CPP macros.
* m4/openssl.m4: Added.
* src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
readData(), peekData(). Added gnutls support.
* src/HttpDownloadCommand.cc: Removed SleepCommand.h
* src/TrackerWatcherCommand.{h,cc}: Added. This command creates
TrackerInitCommand periodicaly(TorrentMan::minInterval).
* src/TorrentMan.cc: Remove downloadedSize == 0 check from
save().
Instead, added a check for whether setup method has executed
successfully.
* src/TorrentMan.h: Added member vaiable setupComplete. Updated
DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to
300.
* src/Makefile.am: Updated.
* src/messageDigest.h: Added. This is a macro calculating SHA1
digest
using whether OpenSSL or gcrypt, depending on the result of
configure
script.
* src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by
using
messageDigest.h.
* src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
* src/PeerListenCommand.cc: Added log about port binded
successfully.
Fixed memory leak.
* src/main.cc: Added gnutls support. Replaced LIB_SSL with
ENABLE_BITTORRENT where they are not related to OpenSSL but
BitTorrent.
Removed instantiation of TrackerInitCommand. Instead,
TrackerWatcherCommand is instantiated and pushed to the command
queue.
* src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL
with
ENABLE_SSL.
* src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
* src/RequestSlotMan.cc:
(deleteCompletedRequestSlot)
If a piece is already acquired by another command, delete the
request
slots for the piece.
* src/TrackerUpdateCommand.cc:
(execute)
Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to
warn.
Added a check whether peer list is null.
Fixed the bug that causes sending completed event to the tracker
several times.
* src/TrackerInitCommand.cc:
(execute)
Fixed the bug that causes sending completed event to the tracker
several times.
* src/AbstractDiskWriter.{h,cc}: Removed direct dependency on
OpenSSL
by using messageDigest.h.
2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
* PeerConnection.cc: Replaced log message "keep-alive" with
"keep alive".
* PeerInteractionCommand.{h,cc}: Close connection if peer is
choking
localhost long time.
* TorrentMan.cc: When adding new peer with duplicate = true, if
the
number of peer list is equal to or grater than MAX_PEER_LIST,
delete
at most 100 failure entry from the list. If with duplicate =
false,
MAX_PEER_LIST is not checked.
* PeerListenCommand.cc: Fixed the argument order of log message.
2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
* Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
Added warn().
* SimpleLogger.h: Moved enum LEVEL to Logger.h.
Implemented warn().
Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated
code.
2006-03-27 14:47:26 +00:00
|
|
|
Directory.cc Directory.h\
|
|
|
|
TrackerWatcherCommand.cc TrackerWatcherCommand.h\
|
2006-05-10 13:10:51 +00:00
|
|
|
PeerInteraction.cc PeerInteraction.h\
|
2006-04-16 14:38:19 +00:00
|
|
|
MultiDiskWriter.cc MultiDiskWriter.h\
|
|
|
|
DiskAdaptor.cc DiskAdaptor.h\
|
|
|
|
CopyDiskAdaptor.cc CopyDiskAdaptor.h\
|
|
|
|
DirectDiskAdaptor.cc DirectDiskAdaptor.h\
|
|
|
|
MultiDiskAdaptor.cc MultiDiskAdaptor.h\
|
2006-04-17 16:17:20 +00:00
|
|
|
FileEntry.h\
|
2006-04-19 17:23:58 +00:00
|
|
|
TrackerUpdateCommand.cc TrackerUpdateCommand.h\
|
2006-04-28 15:55:11 +00:00
|
|
|
ByteArrayDiskWriter.cc ByteArrayDiskWriter.h\
|
2006-05-09 15:54:14 +00:00
|
|
|
PeerChokeCommand.cc PeerChokeCommand.h\
|
|
|
|
ChokeMessage.cc ChokeMessage.h\
|
|
|
|
UnchokeMessage.cc UnchokeMessage.h\
|
|
|
|
InterestedMessage.cc InterestedMessage.h\
|
|
|
|
NotInterestedMessage.cc NotInterestedMessage.h\
|
|
|
|
HaveMessage.cc HaveMessage.h\
|
|
|
|
BitfieldMessage.cc BitfieldMessage.h\
|
|
|
|
RequestMessage.cc RequestMessage.h\
|
|
|
|
PieceMessage.cc PieceMessage.h\
|
|
|
|
CancelMessage.cc CancelMessage.h\
|
|
|
|
KeepAliveMessage.cc KeepAliveMessage.h\
|
2006-05-18 17:08:29 +00:00
|
|
|
PortMessage.cc PortMessage.h\
|
|
|
|
HaveAllMessage.cc HaveAllMessage.h\
|
|
|
|
HaveNoneMessage.cc HaveNoneMessage.h\
|
|
|
|
RejectMessage.cc RejectMessage.h\
|
|
|
|
AllowedFastMessage.cc AllowedFastMessage.h\
|
|
|
|
SuggestPieceMessage.cc SuggestPieceMessage.h\
|
2006-07-19 17:07:45 +00:00
|
|
|
SimplePeerMessage.cc SimplePeerMessage.h\
|
2006-07-30 12:58:27 +00:00
|
|
|
PeerMessageFactory.cc PeerMessageFactory.h\
|
2006-08-07 16:05:00 +00:00
|
|
|
HaveEraseCommand.cc HaveEraseCommand.h\
|
2006-08-27 12:49:17 +00:00
|
|
|
TorrentRequestInfo.cc TorrentRequestInfo.h\
|
|
|
|
SeedCriteria.h\
|
|
|
|
TimeSeedCriteria.h\
|
|
|
|
ShareRatioSeedCriteria.h\
|
|
|
|
UnionSeedCriteria.h\
|
|
|
|
SeedCheckCommand.cc SeedCheckCommand.h
|
2006-07-04 10:57:56 +00:00
|
|
|
endif # ENABLE_BITTORRENT
|
|
|
|
|
|
|
|
if ENABLE_METALINK
|
|
|
|
SRCS += Metalinker.cc Metalinker.h\
|
2006-07-03 14:19:23 +00:00
|
|
|
MetalinkEntry.cc MetalinkEntry.h\
|
|
|
|
MetalinkResource.cc MetalinkResource.h\
|
|
|
|
MetalinkProcessor.h\
|
2006-08-07 16:05:00 +00:00
|
|
|
Xml2MetalinkProcessor.cc Xml2MetalinkProcessor.h\
|
|
|
|
MetalinkRequestInfo.cc MetalinkRequestInfo.h
|
2006-07-04 10:57:56 +00:00
|
|
|
endif # ENABLE_METALINK
|
|
|
|
|
2006-02-17 13:35:04 +00:00
|
|
|
noinst_LIBRARIES = libaria2c.a
|
|
|
|
libaria2c_a_SOURCES = $(SRCS)
|
2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
* configure.in: Added gnutls support. Added several CPP macros.
* m4/openssl.m4: Added.
* src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
readData(), peekData(). Added gnutls support.
* src/HttpDownloadCommand.cc: Removed SleepCommand.h
* src/TrackerWatcherCommand.{h,cc}: Added. This command creates
TrackerInitCommand periodicaly(TorrentMan::minInterval).
* src/TorrentMan.cc: Remove downloadedSize == 0 check from
save().
Instead, added a check for whether setup method has executed
successfully.
* src/TorrentMan.h: Added member vaiable setupComplete. Updated
DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to
300.
* src/Makefile.am: Updated.
* src/messageDigest.h: Added. This is a macro calculating SHA1
digest
using whether OpenSSL or gcrypt, depending on the result of
configure
script.
* src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by
using
messageDigest.h.
* src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
* src/PeerListenCommand.cc: Added log about port binded
successfully.
Fixed memory leak.
* src/main.cc: Added gnutls support. Replaced LIB_SSL with
ENABLE_BITTORRENT where they are not related to OpenSSL but
BitTorrent.
Removed instantiation of TrackerInitCommand. Instead,
TrackerWatcherCommand is instantiated and pushed to the command
queue.
* src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL
with
ENABLE_SSL.
* src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
* src/RequestSlotMan.cc:
(deleteCompletedRequestSlot)
If a piece is already acquired by another command, delete the
request
slots for the piece.
* src/TrackerUpdateCommand.cc:
(execute)
Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to
warn.
Added a check whether peer list is null.
Fixed the bug that causes sending completed event to the tracker
several times.
* src/TrackerInitCommand.cc:
(execute)
Fixed the bug that causes sending completed event to the tracker
several times.
* src/AbstractDiskWriter.{h,cc}: Removed direct dependency on
OpenSSL
by using messageDigest.h.
2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
* PeerConnection.cc: Replaced log message "keep-alive" with
"keep alive".
* PeerInteractionCommand.{h,cc}: Close connection if peer is
choking
localhost long time.
* TorrentMan.cc: When adding new peer with duplicate = true, if
the
number of peer list is equal to or grater than MAX_PEER_LIST,
delete
at most 100 failure entry from the list. If with duplicate =
false,
MAX_PEER_LIST is not checked.
* PeerListenCommand.cc: Fixed the argument order of log message.
2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
* Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
Added warn().
* SimpleLogger.h: Moved enum LEVEL to Logger.h.
Implemented warn().
Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated
code.
2006-03-27 14:47:26 +00:00
|
|
|
aria2c_LDADD = libaria2c.a @LIBINTL@ @ALLOCA@ @LIBGNUTLS_LIBS@\
|
2006-08-21 14:26:15 +00:00
|
|
|
@LIBGCRYPT_LIBS@ @OPENSSL_LIBS@ @XML_LIBS@ @LIBARES_LIBS@\
|
|
|
|
@LIBCARES_LIBS@
|
2006-08-07 16:05:00 +00:00
|
|
|
#aria2c_LDFLAGS = -pg
|
2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
* configure.in: Added gnutls support. Added several CPP macros.
* m4/openssl.m4: Added.
* src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
readData(), peekData(). Added gnutls support.
* src/HttpDownloadCommand.cc: Removed SleepCommand.h
* src/TrackerWatcherCommand.{h,cc}: Added. This command creates
TrackerInitCommand periodicaly(TorrentMan::minInterval).
* src/TorrentMan.cc: Remove downloadedSize == 0 check from
save().
Instead, added a check for whether setup method has executed
successfully.
* src/TorrentMan.h: Added member vaiable setupComplete. Updated
DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to
300.
* src/Makefile.am: Updated.
* src/messageDigest.h: Added. This is a macro calculating SHA1
digest
using whether OpenSSL or gcrypt, depending on the result of
configure
script.
* src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by
using
messageDigest.h.
* src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
* src/PeerListenCommand.cc: Added log about port binded
successfully.
Fixed memory leak.
* src/main.cc: Added gnutls support. Replaced LIB_SSL with
ENABLE_BITTORRENT where they are not related to OpenSSL but
BitTorrent.
Removed instantiation of TrackerInitCommand. Instead,
TrackerWatcherCommand is instantiated and pushed to the command
queue.
* src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL
with
ENABLE_SSL.
* src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
* src/RequestSlotMan.cc:
(deleteCompletedRequestSlot)
If a piece is already acquired by another command, delete the
request
slots for the piece.
* src/TrackerUpdateCommand.cc:
(execute)
Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to
warn.
Added a check whether peer list is null.
Fixed the bug that causes sending completed event to the tracker
several times.
* src/TrackerInitCommand.cc:
(execute)
Fixed the bug that causes sending completed event to the tracker
several times.
* src/AbstractDiskWriter.{h,cc}: Removed direct dependency on
OpenSSL
by using messageDigest.h.
2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
* PeerConnection.cc: Replaced log message "keep-alive" with
"keep alive".
* PeerInteractionCommand.{h,cc}: Close connection if peer is
choking
localhost long time.
* TorrentMan.cc: When adding new peer with duplicate = true, if
the
number of peer list is equal to or grater than MAX_PEER_LIST,
delete
at most 100 failure entry from the list. If with duplicate =
false,
MAX_PEER_LIST is not checked.
* PeerListenCommand.cc: Fixed the argument order of log message.
2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
* Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
Added warn().
* SimpleLogger.h: Moved enum LEVEL to Logger.h.
Implemented warn().
Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated
code.
2006-03-27 14:47:26 +00:00
|
|
|
AM_CPPFLAGS = -Wall\
|
|
|
|
-I../lib -I../intl -I$(top_srcdir)/intl\
|
2006-07-03 14:19:23 +00:00
|
|
|
@LIBGNUTLS_CFLAGS@ @LIBGCRYPT_CFLAGS@ @OPENSSL_CFLAGS@ @XML_CPPFLAGS@\
|
2006-08-21 14:29:14 +00:00
|
|
|
@LIBARES_CPPFLAGS@ @LIBCARES_CPPFLAGS@\
|
2006-08-11 12:29:55 +00:00
|
|
|
-D_FILE_OFFSET_BITS=64 -DLOCALEDIR=\"$(localedir)\" @DEFS@ # -pg
|