diff options
author | Patrick Murphy <patrick.muprphy@multitech.com> | 2020-04-13 13:38:27 -0500 |
---|---|---|
committer | Patrick Murphy <patrick.muprphy@multitech.com> | 2020-04-13 13:38:27 -0500 |
commit | 1722b6bb4faa14ac4ae1bb1326d389df0b7fa46e (patch) | |
tree | 3ea542989a8487c732dec00ed7b9131d0b1d7f1d | |
parent | f8ba84f1366cc4df61b8f16afd8ed872db8930cc (diff) | |
download | commissioning-1722b6bb4faa14ac4ae1bb1326d389df0b7fa46e.tar.gz commissioning-1722b6bb4faa14ac4ae1bb1326d389df0b7fa46e.tar.bz2 commissioning-1722b6bb4faa14ac4ae1bb1326d389df0b7fa46e.zip |
removed erroneous file
-rw-r--r-- | commissioning/fcgi_commission.cc | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/commissioning/fcgi_commission.cc b/commissioning/fcgi_commission.cc deleted file mode 100644 index 8d05e08..0000000 --- a/commissioning/fcgi_commission.cc +++ /dev/null @@ -1,55 +0,0 @@ - -/* -#include "fcgio.h" -#include <iostream> - -int main(void) { - // Backup the stdio streambufs - streambuf * cin_streambuf = cin.rdbuf(); - streambuf * cout_streambuf = cout.rdbuf(); - streambuf * cerr_streambuf = cerr.rdbuf(); - - FCGX_Request request; - - FCGX_Init(); - FCGX_InitRequest(&request, 0, 0); - - while (FCGX_Accept_r(&request) == 0) { - fcgi_streambuf cin_fcgi_streambuf(request.in); - fcgi_streambuf cout_fcgi_streambuf(request.out); - fcgi_streambuf cerr_fcgi_streambuf(request.err); - - cin.rdbuf(&cin_fcgi_streambuf); - cout.rdbuf(&cout_fcgi_streambuf); - cerr.rdbuf(&cerr_fcgi_streambuf); - - cout << "Content-type: text/html\r\n" - << "\r\n" - << "<html>\n" - << " <head>\n" - << " <title>Hello, World!</title>\n" - << " </head>\n" - << " <body>\n" - << " <h1>Hello, World!</h1>\n" - << " </body>\n" - << "</html>\n"; - - // Note: the fcgi_streambuf destructor will auto flush - } - - // restore stdio streambufs - cin.rdbuf(cin_streambuf); - cout.rdbuf(cout_streambuf); - cerr.rdbuf(cerr_streambuf); - - return 0; -} - -*/ - -#include <stdio.h> - -int main () { - printf("Hello, World!\n"); - return 0; -}
\ No newline at end of file |