Annotation of libwww/Library/src/HTXParse.html, revision 2.10

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

Webmaster