summaryrefslogtreecommitdiff
path: root/src/DownloadEngineFactory.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2009-05-09 14:01:35 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2009-05-09 14:01:35 +0000
commit9f0a602ce3d2ffb4426fc6f0da0db257fbc90333 (patch)
tree415a4307fbb44d52cb9df7d85577241d22c60a40 /src/DownloadEngineFactory.cc
parent45249392fd29eca4e01e0bace271737589813ea8 (diff)
2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
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
Diffstat (limited to 'src/DownloadEngineFactory.cc')
-rw-r--r--src/DownloadEngineFactory.cc10
1 files changed, 7 insertions, 3 deletions
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;
}