LibHTTP: Open Source HTTP Library in C
It's tempting to consider using an http server in your program. But also consider wrapping your c/c++ programs in fastcgi loop and have nginx run behind it.<p>It removes a lot of complexity from your code.