News for hackers. Stuff that matters.
Re:Suppose I wanted to write a C++ based web application... by mdakin on Sunday October 05, 2008 @05:21PM (#324357)
I have done something like this. I interfaced with Apache however rather than also writing the web server by hand. I also leveraged libraries when I could.

You may want to investigate the following libraries:

fcgi++: Interface with the web server using fast cgi; keep the program resident in memory between requests.

botan: For generating cryptographic hashes.

cgicc: For handling input from the web browser.

xerces-c: For implementing a templating system and generating the output which gets sent to the web browser.

libpqxx: Interfacing with Postgres.

cppunit: Unit-testing critical or difficult-to-test bits.

It's not as hard as everyone likes to make it sound (assuming you are on the right side of the C++ learning curve). The real question is whether you want to spend your time writing a framework rather than actual applications.

There are no comments on this comment yet.