Example #1
0
int main()
{
    try {
        Fastcgipp::Manager<MainRequest> fcgi;
        fcgi.handler();
    } catch(std::exception& e) {
        error_log(e.what());
    }
}
// The main function is easy to set up
int main()
{
    try {
        Fastcgipp::Manager<LeaveAMessageForm> fcgi;
        fcgi.handler();
    } catch(std::exception & e) {
        error_log(e.what());
    }//try-catch

    return 0;
}
Example #3
0
int main()
{
    try
    {
        Fastcgipp::Manager<HelloWorld> fcgi;
        fcgi.handler();
    }
    catch(std::exception& e)
    {
        error_log(e.what());
    }
}
Example #4
0
// The main function is easy to set up
int main()
{
	try
	{
		// First we make a Fastcgipp::Manager object, with our request handling class
		// as a template parameter.
		Fastcgipp::Manager<Upload> fcgi;
		// Now just call the object handler function. It will sleep quietly when there
		// are no requests and efficiently manage them when there are many.
		fcgi.handler();
	}
	catch(std::exception& e)
	{
		error_log(e.what());
	}
}