summaryrefslogtreecommitdiff
path: root/project2/cgi/p2webFCgi.cpp
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2013-07-10 23:00:44 +0000
committerrandomdan <randomdan@localhost>2013-07-10 23:00:44 +0000
commit58ae20d75b8b900319074c5a52a2790c9082f5b2 (patch)
tree9ca30f9886554dbf9d71b5f75a933570618cb54b /project2/cgi/p2webFCgi.cpp
parentTidy up around hostname platform lookups (diff)
downloadproject2-58ae20d75b8b900319074c5a52a2790c9082f5b2.tar.bz2
project2-58ae20d75b8b900319074c5a52a2790c9082f5b2.tar.xz
project2-58ae20d75b8b900319074c5a52a2790c9082f5b2.zip
Central various bits of the CGI start up process
Move the command line arguments option source into a new cli library Extend testCgi with newly available features
Diffstat (limited to 'project2/cgi/p2webFCgi.cpp')
-rw-r--r--project2/cgi/p2webFCgi.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/project2/cgi/p2webFCgi.cpp b/project2/cgi/p2webFCgi.cpp
index 4bc9b2d..0551bf0 100644
--- a/project2/cgi/p2webFCgi.cpp
+++ b/project2/cgi/p2webFCgi.cpp
@@ -1,6 +1,5 @@
#include "FCgiIO.h"
#include "cgiAppEngine.h"
-#include "optionsSource.h"
#include <boost/bind.hpp>
time_t lastPeriodic = 0;
@@ -45,10 +44,7 @@ main(void)
while (FCGX_Accept_r(&request) == 0) {
alarm(0);
cgicc::FCgiIO IO(request);
- CgiRequestContext crc(&IO, IO);
- OptionsSource::loadSources(boost::bind(&CgiApplicationEngine::derivedPlatform, &crc));
- Plugable::onAllComponents(boost::bind(&ComponentLoader::onBefore, _1));
- app.process(IO, &crc);
+ app.process(IO, &IO, IO);
FCGX_Finish_r(&request);
Plugable::onAllComponents(boost::bind(&ComponentLoader::onIteration, _1));
if (time(NULL) > lastPeriodic + periodicDelay) {