/* */ #include "Context.h" #include #include #ifdef HAVE_SYS_RESOURCE_H #include #endif // HAVE_SYS_RESOURCE_H #include #include #include #include "LogFactory.h" #include "Logger.h" #include "util.h" #include "FeatureConfig.h" #include "MultiUrlRequestInfo.h" #include "SimpleRandomizer.h" #include "File.h" #include "message.h" #include "prefs.h" #include "Option.h" #include "a2algo.h" #include "a2io.h" #include "a2time.h" #include "Platform.h" #include "FileEntry.h" #include "RequestGroup.h" #include "download_helper.h" #include "Exception.h" #include "ProtocolDetector.h" #include "RecoverableException.h" #include "SocketCore.h" #include "DownloadContext.h" #include "fmt.h" #include "console.h" #include "UriListParser.h" #include "message_digest_helper.h" #ifdef ENABLE_BITTORRENT #include "bittorrent_helper.h" #endif // ENABLE_BITTORRENT #ifdef ENABLE_METALINK #include "metalink_helper.h" #include "MetalinkEntry.h" #endif // ENABLE_METALINK extern char* optarg; extern int optind, opterr, optopt; namespace aria2 { #ifdef ENABLE_BITTORRENT namespace { void showTorrentFile(const std::string& uri) { auto op = std::make_shared