tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cos...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/jk/native/common jk_channel.h
Date Wed, 07 Nov 2001 21:39:35 GMT
costin      01/11/07 13:39:35

  Modified:    jk/native/common jk_channel.h
  Log:
  Few small improvements in the channel interface.
  
  Revision  Changes    Path
  1.3       +16 -10    jakarta-tomcat-connectors/jk/native/common/jk_channel.h
  
  Index: jk_channel.h
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native/common/jk_channel.h,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- jk_channel.h	2001/11/06 00:15:54	1.2
  +++ jk_channel.h	2001/11/07 21:39:35	1.3
  @@ -66,7 +66,11 @@
   #include "jk_global.h"
   #include "jk_logger.h"
   #include "jk_pool.h"
  +#include "jk_msg_buff.h"
   
  +struct jk_channel;
  +typedef struct jk_channel jk_channel_t;
  +
   /**
    * Abstraction (interface) for sending/receiving blocks of data ( packets ).
    * This will be used to replace the current TCP/socket code and allow other
  @@ -91,8 +95,6 @@
    * @author Costin Manolache
    */
   struct jk_channel {
  -  void *private;
  -
     /** Pool for the channel 
      */
     jk_pool_t *pool;
  @@ -100,10 +102,16 @@
   
     char *name;
   
  +  /** Prepare the channel, check the properties. This 
  +   * will resolve the host and do all the validations.
  +   * ( needed to remove the dependencies on sockets in ajp)
  +   */
  +  int (JK_METHOD *init)(jk_channel_t *_this );
  +  
     /** Open the communication channel
      */
     int (JK_METHOD *open)(jk_channel_t *_this );
  -
  +  
     /** Close the communication channel
      */
     int (JK_METHOD *close)(jk_channel_t *_this );
  @@ -111,14 +119,12 @@
     /** Send a packet
      */
     int (JK_METHOD *send)(jk_channel_t *_this,
  -			const unsigned char *b,
  -			int len);
  +			jk_msg_buf_t *b );
   
     /** Receive a packet
      */
     int (JK_METHOD *recv)(jk_channel_t *_this,
  -			const unsigned char *b,
  -			int len);
  +			jk_msg_buf_t *b );
   
     /** Set a channel property. Properties are used to configure the 
      * communication channel ( example: port, host, file, shmem_name, etc).
  @@ -130,10 +136,10 @@
      */
     int (JK_METHOD *getProperty)(jk_channel_t *_this, 
   			       char *name, char **value);
  -
  -}
   
  -typedef struct jk_channel jk_channel_t;
  +  void *_privatePtr;
  +  int _privateInt;
  +};
   
   #ifdef __cplusplus
   }
  
  
  

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message