Changeset 19

Show
Ignore:
Timestamp:
07/14/07 09:07:46 (1 year ago)
Author:
xammy
Message:

Current releases, as well as default parameter change and null-connection examples.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/examples/SimpleApp.d

    r14 r19  
    3030int main(char[][] args) 
    3131{ 
    32     FastCGIConnection connection = new FastCGIConnection (); 
     32//    FastCGIConnection connection = new FastCGIConnection (); 
     33//    return FastCGIApplication.loop!(MyApp) (connection, true, 10); 
    3334 
    34     return FastCGIApplication.loop!(MyApp) (connection, true, 10); 
     35    return FastCGIApplication.loop!(MyApp) (null, true, 10); 
    3536} 
  • trunk/examples/SimpleLoop.d

    r10 r19  
    44int main (char[][] args) 
    55{ 
    6     FastCGIConnection connection = new FastCGIConnection (); 
    7     FastCGIRequest request = new FastCGIRequest(connection); 
     6//    FastCGIConnection connection = new FastCGIConnection (); 
     7//    FastCGIRequest request = new FastCGIRequest (connection); 
     8    FastCGIRequest request = new FastCGIRequest (); 
    89 
    910    while ( request.accept () ) 
  • trunk/examples/SimpleThread.d

    r10 r19  
    1313int main(char[][] args) 
    1414{ 
    15     FastCGIConnection connection = new FastCGIConnection (); 
     15//    FastCGIConnection connection = new FastCGIConnection (); 
     16//    return FastCGIThread.loop(connection, &myrun, true, 10); 
    1617 
    17     return FastCGIThread.loop(connection, &myrun, true, 10); 
     18    return FastCGIThread.loop(null, &myrun, true, 10); 
    1819} 
  • trunk/fcgi/Request.d

    r18 r19  
    4646    private char[][char[]] arguments_; 
    4747 
    48     public this (FastCGIConnection connection, bool withExceptions = false) 
     48    public this (FastCGIConnection connection = null, bool withExceptions = false) 
    4949    { 
    5050        // connection passed?