I am looking at some sample code and cant work out what the following lines are doing:
fcgi_streambuf cin_fcgi_streambuf(request.in);
fcgi_streambuf cout_fcgi_streambuf(request.out);
fcgi_streambuf cerr_fcgi_streambuf(request.err);
I dont come from a c background so the syntax looks a bit odd - each line is calling a function in initialising a new object but i would expect at least an assignment in there. For example:
fcgi_streambuf = cin_fcgi_streambuf(request.in);
fcgi_streambuf = cout_fcgi_streambuf(request.out);
fcgi_streambuf = cerr_fcgi_streambuf(request.err);
The full example code can be found here: http://chriswu.me/blog/writing-hello-world-in-fcgi-with-c-plus-plus/