From 9f0a602ce3d2ffb4426fc6f0da0db257fbc90333 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sat, 9 May 2009 14:01:35 +0000 Subject: 2009-05-09 Tatsuhiro Tsujikawa Removed --enable-http-server and --http-server-listen-port options. Added --enable-xml-rpc and --xml-rpc-listen-port instead. The original feature for --enable-http-server that reports download progress in HTML was officially removed. Persist XML-RPC connection if client supports keep-alive. * src/DownloadEngineFactory.cc * src/HttpServerCommand.cc * src/HttpServerResponseCommand.cc * src/Makefile.am * src/Makefile.in * src/OptionHandlerFactory.cc * src/RequestGroupMan.cc * src/main.cc * src/option_processing.cc * src/prefs.cc * src/prefs.h * src/usage_text.h --- src/DownloadEngineFactory.cc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/DownloadEngineFactory.cc') diff --git a/src/DownloadEngineFactory.cc b/src/DownloadEngineFactory.cc index 4a97da44..e45a0414 100644 --- a/src/DownloadEngineFactory.cc +++ b/src/DownloadEngineFactory.cc @@ -63,7 +63,9 @@ #include "SelectEventPoll.h" #include "DlAbortEx.h" #include "FileAllocationEntry.h" -#include "HttpListenCommand.h" +#ifdef ENABLE_XML_RPC +# include "HttpListenCommand.h" +#endif // ENABLE_XML_RPC namespace aria2 { @@ -139,15 +141,17 @@ DownloadEngineFactory::newDownloadEngine(Option* op, stopSec)); } } - if(op->getAsBool(PREF_ENABLE_HTTP_SERVER)) { +#ifdef ENABLE_XML_RPC + if(op->getAsBool(PREF_ENABLE_XML_RPC)) { HttpListenCommand* httpListenCommand = new HttpListenCommand(e->newCUID(), e.get()); - if(httpListenCommand->bindPort(op->getAsInt(PREF_HTTP_SERVER_LISTEN_PORT))){ + if(httpListenCommand->bindPort(op->getAsInt(PREF_XML_RPC_LISTEN_PORT))){ e->addRoutineCommand(httpListenCommand); } else { delete httpListenCommand; } } +#endif // ENABLE_XML_RPC return e; } -- cgit