Annotation of libwww/Library/src/HTXParse.html, revision 2.11
2.1 frystyk 1: <HTML>
2: <HEAD>
2.10 frystyk 3: <TITLE>W3C Reference Library libwww CALLBACK STREAM</TITLE>
2.11 ! frystyk 4: <!-- Changed by: Henrik Frystyk Nielsen, 5-Apr-1996 -->
2.1 frystyk 5: </HEAD>
6: <BODY>
7:
2.9 frystyk 8: <H1>XParse: Module to get unparsed stream from libwww</H1>
2.1 frystyk 9:
10: <PRE>
11: /*
2.3 frystyk 12: ** (c) COPYRIGHT MIT 1995.
2.1 frystyk 13: ** Please first read the full copyright statement in the file COPYRIGH.
14: */
15: </PRE>
16:
17: This version of the stream object is a hook for clients that want an
2.9 frystyk 18: unparsed stream from libwww. The HTXParse_put_* and HTXParse_write
2.1 frystyk 19: routines copy the content of the incoming buffer into a buffer that is
20: realloced whenever necessary. This buffer is handed over to the client
2.9 frystyk 21: in HTXParse_free. See also <A HREF="HTFWrite.html">HTFWriter</A>
2.1 frystyk 22: for writing to C files.<P>
23:
24: <H3>Bugs:</H3>
25:
26: <UL>
27: <LI>strings written must be less than buffer size.
28: </UL>
29:
2.2 frystyk 30: This module is implemented by <A HREF="HTXParse.c">HTXParse.c</A>, and
2.8 frystyk 31: it is a part of the <A HREF="http://www.w3.org/pub/WWW/Library/"> W3C
32: Reference Library</A>.
2.1 frystyk 33:
34: <PRE>
2.9 frystyk 35: #ifndef HTXPARSE_H
36: #define HTXPARSE_H
2.1 frystyk 37:
38: #include "HTStream.h"
2.11 ! frystyk 39: #include "HTReader.h"
2.7 frystyk 40: #include "HTReq.h"
2.1 frystyk 41:
2.9 frystyk 42: typedef struct _HTXParseStruct HTXParseStruct;
2.5 frystyk 43:
2.9 frystyk 44: typedef void CallClient (HTXParseStruct * me);
2.5 frystyk 45:
2.9 frystyk 46: struct _HTXParseStruct {
2.5 frystyk 47: CallClient *call_client;
48: int used; /* how much of the buffer is being used*/
2.1 frystyk 49: BOOL finished; /* document loaded? */
50: int length; /* how long the buffer is */
2.5 frystyk 51: char * buffer; /* storage in until client takes over */
2.1 frystyk 52: char * content_type;
53: HTRequest * request; /* the request structure */
54: };
55:
2.9 frystyk 56: extern HTConverter HTXParse;
2.1 frystyk 57:
58: #endif
2.8 frystyk 59: </PRE>
60: End of declaration
61: </BODY>
2.1 frystyk 62: </HTML>
Webmaster