|Name||Modified||Size||Downloads / Week||Status|
|Totals: 6 Items||2.3 kB||1|
|CPPSP 0.3 (release candidate)||2013-10-06||1|
|CPPSP 0.2 (testing)||2013-09-02||16|
|CPPSP 0.1 (stable)||2013-09-02||1|
|CPPSP 0.x-git (development)||2013-08-14||1|
CPPSP (C++ Server Pages) is a web application framework similar to ASP and ASP .Net. It features a template parser that parses, compiles, and loads CPPSP pages automatically at runtime. CPPSP pages have a very similar syntax to ASP and ASP .NET, where all code is considered HTML by default, and server-side active code can be embedded using "<% ... %>".
To compile cppsp, just type: make all -j3
To run cppsp with example scripts, type: ./run_example
It will listen on port 16969, and serve files from ./www/
To load modules, specify "-m" on the command line (module path is relative to web root): ./run_example -m /dir_list.cppsm
To run cppsp with socketd, type: ./run_socketd_example
Then visit http://localhost:16969/ (not 127.0.0.1!) (see socketd_exampleconf)
To install cppsp, just copy the cppsp_standalone file to anywhere you like. You can then simply write a few init scripts if you want it to automatically start on boot.
Note: If you plan to benchmark the connections/s performance of cppsp (with keep-alive disabled), make sure you download and compile the Hoard memory allocator:
Then, LD_PRELOAD it before running cppsp. There is a possible bug in glibc where if large chunks of memory are malloc()'d and free()'d, glibc repeatedly calls mprotect(), which is very expensive.