root/trunk/SimpleThread.d

Revision 24, 438 bytes (checked in by xammy, 5 years ago)

Moved examles from trunk/examples to trunk/

Line 
1 import  fcgi.Thread;
2 import  fcgi.Connection;
3 import  fcgi.Request;
4
5 int myrun(FastCGIRequest request)
6 {
7     request.stdout.write("Content-type: text/html\r\n\r\n");
8     request.stdout.write("Hello world!\n");
9
10     return 0;
11 }
12
13 int main(char[][] args)
14 {
15 //    FastCGIConnection connection = new FastCGIConnection ();
16 //    return FastCGIThread.loop(connection, &myrun, true, 10);
17
18     return FastCGIThread.loop(null, &myrun, true, 10);
19 }
Note: See TracBrowser for help on using the browser.