brian 96/12/11 16:28:03
Modified: src http_protocol.h http_protocol.c
Log:
Reviewed by: Randy Terbush, Rob Hartill, Brian Behlendorf
Submitted by: Doug MacEachern
Added rwrite() function for mod_perl, among others.
Revision Changes Path
1.15 +1 -0 apache/src/http_protocol.h
Index: http_protocol.h
===================================================================
RCS file: /export/home/cvs/apache/src/http_protocol.h,v
retrieving revision 1.14
retrieving revision 1.15
diff -C3 -r1.14 -r1.15
*** http_protocol.h 1996/12/01 20:28:32 1.14
--- http_protocol.h 1996/12/12 00:27:58 1.15
***************
*** 112,117 ****
--- 112,118 ----
int rputc (int c, request_rec *r);
int rputs(const char *str, request_rec *r);
+ int rwrite(const void *buf, int nbyte, request_rec *r);
int rvputs(request_rec *r, ...);
int rprintf(request_rec *r,const char *fmt,...);
1.82 +9 -0 apache/src/http_protocol.c
Index: http_protocol.c
===================================================================
RCS file: /export/home/cvs/apache/src/http_protocol.c,v
retrieving revision 1.81
retrieving revision 1.82
diff -C3 -r1.81 -r1.82
*** http_protocol.c 1996/12/06 17:12:13 1.81
--- http_protocol.c 1996/12/12 00:27:59 1.82
***************
*** 1379,1384 ****
--- 1379,1393 ----
return bputs(str, r->connection->client);
}
+ int rwrite(const void *buf, int nbyte, request_rec *r)
+ {
+ int n;
+ if (r->connection->aborted) return EOF;
+ n=bwrite(r->connection->client, buf, nbyte);
+ SET_BYTES_SENT(r);
+ return n;
+ }
+
int rprintf(request_rec *r,const char *fmt,...)
{
va_list vlist;