diff options
author | goodale <goodale@1faa4e14-9dd3-4be0-9f0e-ffe519881164> | 2000-09-15 15:01:07 +0000 |
---|---|---|
committer | goodale <goodale@1faa4e14-9dd3-4be0-9f0e-ffe519881164> | 2000-09-15 15:01:07 +0000 |
commit | 67f0e3dd7d2ecc2fbdea27c5d60b226edf1ab8fc (patch) | |
tree | 8294997888267260854e197024b5109d1df78bb4 | |
parent | 0cb86c621f8141e54d25e2f5cea6d036b46dee6b (diff) |
Added new parameter 'provide_pages' to allow switching off the default
pages provided by the server.
Tom
git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@12 1faa4e14-9dd3-4be0-9f0e-ffe519881164
-rw-r--r-- | param.ccl | 5 | ||||
-rw-r--r-- | src/Startup.c | 6 |
2 files changed, 9 insertions, 2 deletions
@@ -26,4 +26,7 @@ INT timeout_useconds "Polling timeout micro-seconds" BOOLEAN standalone "Should the server poll continuously in startup" { } "no" -
\ No newline at end of file + +BOOLEAN provide_pages "Should the server provide any pages ?" +{ +} "yes" diff --git a/src/Startup.c b/src/Startup.c index 495de8b..0fbe6ff 100644 --- a/src/Startup.c +++ b/src/Startup.c @@ -40,7 +40,11 @@ int HTTP_Startup(void) { DECLARE_CCTK_PARAMETERS - HTTP_RegisterPages(); + /* Does the server provide any pages by default ? */ + if(provide_pages) + { + HTTP_RegisterPages(); + } HTTP_SetupServer(port, queue_length); |