CFCGI is a fastcgi server which writed by c++, it is used to write web page with c++. For example: ``` // declare handler void hello_handler(FcgiContext& ctx); // MUST implement the `Init` function. void Init() { // Use `Get` to register the http get methods handler, the first parameter is the uri path, and the second param is the handler. Get("/hello.so", hello_handler); } void hello_handler(FcgiContext& ctx) { // ctx.Out is a refence of ctx.Response.Out, it's a stringstream object, used to write reponse to the web server. ctx.Out << "hello, world" << endl; } ```

This is a companion discussion topic for the original entry at https://copr.fedorainfracloud.org/coprs/junwei/cfcgi/