You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by co...@apache.org on 2002/01/26 07:22:41 UTC
cvs commit: jakarta-tomcat-connectors/jk/native2/include jk_msg.h
costin 02/01/25 22:22:41
Modified: jk/native2/include jk_msg.h
Log:
Removed the sent/receive methods. They were duplicated in channel, and made impossible
or difficult to do some optimizations. Jni channel ( or most message-based - doors,
fifo, etc ) do not need to read the header in a separate operation. Even for socket,
it may be better to read as much as available ( buffering ) - that could be
implemented in the apr channel.
Revision Changes Path
1.4 +11 -13 jakarta-tomcat-connectors/jk/native2/include/jk_msg.h
Index: jk_msg.h
===================================================================
RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native2/include/jk_msg.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- jk_msg.h 16 Dec 2001 23:17:23 -0000 1.3
+++ jk_msg.h 26 Jan 2002 06:22:41 -0000 1.4
@@ -106,7 +106,11 @@
/** Method id - to be sent in the packet
*/
int id;
-
+
+ /** Header length for this message
+ */
+ int headerLength;
+
/*
* Prepare the buffer for a new invocation
*/
@@ -117,6 +121,9 @@
*/
void (*end)(struct jk_env *env, struct jk_msg *_this);
+ int (*checkHeader)(struct jk_env *env, struct jk_msg *_this,
+ struct jk_endpoint *e);
+
/*
* Dump the buffer header
* @param err Message text
@@ -158,18 +165,9 @@
The buffer is internal to the message, you must save
or make sure the message lives long enough.
*/
- unsigned char *(*getBytes)(struct jk_env *env, struct jk_msg *_this, int *len);
-
-
- /*
- * Receive a message from endpoint
- */
- int (*receive)(struct jk_env *env, jk_msg_t *_this, struct jk_endpoint *ae );
-
- /*
- * Send a message to endpoint
- */
- int (*send)(struct jk_env *env, jk_msg_t *_this, struct jk_endpoint *ae );
+ unsigned char *(*getBytes)(struct jk_env *env,
+ struct jk_msg *_this,
+ int *len);
/**
* Special method. Will read data from the server and add them as
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>