costin      02/01/25 22:43:11

  Modified:    jk/native2/include jk_workerEnv.h
  Log:
  Added dispatch - process a single incoming message.
  
  ProcessCallbacks is all wrong - it doesn't work with non-stream channels like jni
  and it's to coarse. And it should be moved in channel - since each channel may
  have it's own method of handling requests ( thread-wise especially )
  
  Revision  Changes    Path
  1.9       +13 -1     jakarta-tomcat-connectors/jk/native2/include/jk_workerEnv.h
  
  Index: jk_workerEnv.h
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native2/include/jk_workerEnv.h,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- jk_workerEnv.h    12 Jan 2002 04:44:32 -0000      1.8
  +++ jk_workerEnv.h    26 Jan 2002 06:43:11 -0000      1.9
  @@ -58,7 +58,7 @@
   /***************************************************************************
    * Description: Workers controller header file                             *
    * Author:      Gal Shachor <[EMAIL PROTECTED]>                           * 
  - * Version:     $Revision: 1.8 $                                           *
  + * Version:     $Revision: 1.9 $                                           *
    ***************************************************************************/
   
   #ifndef JK_WORKERENV_H
  @@ -229,6 +229,18 @@
                                         const char *name, 
                                         struct jk_map *init_data);
   
  +    /** Call the handler associated with the message type.
  +     */
  +    int (*dispatch)(struct jk_env *env, struct jk_workerEnv *_this,
  +                    struct jk_endpoint *e, struct jk_ws_service *r );
  +
  +    /** Utility method for stream-based workers. It'll read
  +     *  messages, dispatch, send the response if any until
  +     *  done. This assumes one native server thread talking
  +     *  with a different client thread ( on the java side ).
  +     *  It does not work for jni or doors or other transports
  +     *  where a single thread is used for the whole processing.
  +     */
       int (*processCallbacks)(struct jk_env *env,
                               struct jk_workerEnv *_this,
                               struct jk_endpoint *e,
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to