Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@apache.org Received: (qmail 21406 invoked from network); 7 Nov 2001 21:51:27 -0000 Received: from unknown (HELO osaka.betaversion.org) (192.18.49.133) by daedalus.apache.org with SMTP; 7 Nov 2001 21:51:27 -0000 Received: (qmail 10719 invoked from network); 7 Nov 2001 21:54:00 -0000 Received: from nagoya.betaversion.org (192.18.49.131) by osaka.betaversion.org with SMTP; 7 Nov 2001 21:54:00 -0000 Received: (qmail 16336 invoked by uid 97); 7 Nov 2001 21:51:16 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-dev@jakarta.apache.org Received: (qmail 16287 invoked by uid 97); 7 Nov 2001 21:51:15 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 16276 invoked by uid 97); 7 Nov 2001 21:51:15 -0000 Date: 7 Nov 2001 21:39:35 -0000 Message-ID: <20011107213935.48649.qmail@icarus.apache.org> From: costin@apache.org To: jakarta-tomcat-connectors-cvs@apache.org Subject: cvs commit: jakarta-tomcat-connectors/jk/native/common jk_channel.h X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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: For additional commands, e-mail: