diff options
| author | randomdan <randomdan@localhost> | 2013-06-21 00:07:15 +0000 |
|---|---|---|
| committer | randomdan <randomdan@localhost> | 2013-06-21 00:07:15 +0000 |
| commit | 4d0e24e114e41db8899c8c8e0292a33a4a7a8490 (patch) | |
| tree | 00e18f91a05f2f4b8c62ebd7450d54f879742024 /project2/cgi/p2webFCgi.cpp | |
| parent | Move options into the global scope (diff) | |
| download | project2-4d0e24e114e41db8899c8c8e0292a33a4a7a8490.tar.bz2 project2-4d0e24e114e41db8899c8c8e0292a33a4a7a8490.tar.xz project2-4d0e24e114e41db8899c8c8e0292a33a4a7a8490.zip | |
Split the plugable stuff into its own files/classes
Diffstat (limited to 'project2/cgi/p2webFCgi.cpp')
| -rw-r--r-- | project2/cgi/p2webFCgi.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/project2/cgi/p2webFCgi.cpp b/project2/cgi/p2webFCgi.cpp index e0782e0..7eb631f 100644 --- a/project2/cgi/p2webFCgi.cpp +++ b/project2/cgi/p2webFCgi.cpp @@ -11,7 +11,7 @@ void p2webPeriodic() { time(&lastPeriodic); - LoaderBase::onAllComponents(boost::bind(&ComponentLoader::onPeriodic, _1)); + Plugable::onAllComponents(boost::bind(&ComponentLoader::onPeriodic, _1)); } static @@ -21,7 +21,7 @@ p2webGoingIdle(int) if (time(NULL) > lastPeriodic + periodicDelay) { p2webPeriodic(); } - LoaderBase::onAllComponents(boost::bind(&ComponentLoader::onIdle, _1)); + Plugable::onAllComponents(boost::bind(&ComponentLoader::onIdle, _1)); } int @@ -41,13 +41,13 @@ main(void) } alarm(60); CgiEnvironment env; - LoaderBase::onAllComponents(boost::bind(&ComponentLoader::onBegin, _1)); + Plugable::onAllComponents(boost::bind(&ComponentLoader::onBegin, _1)); while (FCGX_Accept_r(&request) == 0) { alarm(0); cgicc::FCgiIO IO(request); cgiServe(&IO, &env, IO, &IO); FCGX_Finish_r(&request); - LoaderBase::onAllComponents(boost::bind(&ComponentLoader::onIteration, _1)); + Plugable::onAllComponents(boost::bind(&ComponentLoader::onIteration, _1)); if (time(NULL) > lastPeriodic + periodicDelay) { p2webPeriodic(); } |
