summaryrefslogtreecommitdiff
path: root/src/OptionHandlerFactory.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/OptionHandlerFactory.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/OptionHandlerFactory.cc')
-rw-r--r--src/OptionHandlerFactory.cc28
1 files changed, 16 insertions, 12 deletions
diff --git a/src/OptionHandlerFactory.cc b/src/OptionHandlerFactory.cc
index b4a92f97..91cd928e 100644
--- a/src/OptionHandlerFactory.cc
+++ b/src/OptionHandlerFactory.cc
@@ -168,15 +168,17 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers()
handlers.push_back(op);
}
#endif // ENABLE_DIRECT_IO
+#ifdef ENABLE_XML_RPC
{
SharedHandle<OptionHandler> op(new BooleanOptionHandler
- (PREF_ENABLE_HTTP_SERVER,
- TEXT_ENABLE_HTTP_SERVER,
+ (PREF_ENABLE_XML_RPC,
+ TEXT_ENABLE_XML_RPC,
V_FALSE,
OptionHandler::OPT_ARG));
- op->addTag(TAG_EXPERIMENTAL);
+ op->addTag(TAG_ADVANCED);
handlers.push_back(op);
}
+#endif // ENABLE_XML_RPC
{
std::string params[] = {
#ifdef HAVE_EPOLL
@@ -221,15 +223,6 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers()
handlers.push_back(op);
}
{
- SharedHandle<OptionHandler> op(new NumberOptionHandler
- (PREF_HTTP_SERVER_LISTEN_PORT,
- TEXT_HTTP_SERVER_LISTEN_PORT,
- "6800",
- 1024, UINT16_MAX));
- op->addTag(TAG_EXPERIMENTAL);
- handlers.push_back(op);
- }
- {
SharedHandle<OptionHandler> op(new DefaultOptionHandler
(PREF_INPUT_FILE,
TEXT_INPUT_FILE,
@@ -361,6 +354,17 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers()
op->addTag(TAG_ADVANCED);
handlers.push_back(op);
}
+#ifdef ENABLE_XML_RPC
+ {
+ SharedHandle<OptionHandler> op(new NumberOptionHandler
+ (PREF_XML_RPC_LISTEN_PORT,
+ TEXT_XML_RPC_LISTEN_PORT,
+ "6800",
+ 1024, UINT16_MAX));
+ op->addTag(TAG_ADVANCED);
+ handlers.push_back(op);
+ }
+#endif // ENABLE_XML_RPC
// HTTP/FTP options
{
SharedHandle<OptionHandler> op(new NumberOptionHandler