httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@apache.org
Subject cvs commit: httpd-2.0/modules/experimental mod_example.c
Date Fri, 07 Jun 2002 17:34:15 GMT
rbb         2002/06/07 10:34:15

  Modified:    modules/experimental mod_example.c
  Log:
  More docs for mod_example.c
  
  Revision  Changes    Path
  1.38      +18 -2     httpd-2.0/modules/experimental/mod_example.c
  
  Index: mod_example.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/experimental/mod_example.c,v
  retrieving revision 1.37
  retrieving revision 1.38
  diff -u -r1.37 -r1.38
  --- mod_example.c	28 Mar 2002 11:17:59 -0000	1.37
  +++ mod_example.c	7 Jun 2002 17:34:15 -0000	1.38
  @@ -1021,8 +1021,11 @@
   }
   
   /*
  - * This routine is called to perform any module-specific fixing of header
  - * fields, et cetera.  It is invoked just before any content-handler.
  + * This routine is called just after the server accepts the connection,
  + * but before it is handed off to a protocol module to be served.  The point
  + * of this hook is to allow modules an opportunity to modify the connection
  + * as soon as possible. The core server uses this phase to setup the
  + * connection record based on the type of connection that is being used.
    *
    * The return value is OK, DECLINED, or HTTP_mumble.  If we return OK, the
    * server will still call any remaining modules with an handler for this
  @@ -1040,6 +1043,19 @@
       trace_add(r->server, NULL, cfg, "x_post_config()");
   #endif
       return OK;
  +}
  +
  +/* This routine is used to actually process the connection that was received.
  + * Only protocol modules should implement this hook, as it gives them an
  + * opportunity to replace the standard HTTP processing with processing for
  + * some other protocol.  Both echo and POP3 modules are available as
  + * examples.
  + *
  + * The return VALUE is OK, DECLINED, or HTTP_mumble.  If we return OK, no 
  + * further modules are called for this phase.
  + */
  +static int x_process_connection(conn_rec *c)
  +{
   }
   
   /*
  
  
  

Mime
View raw message