File:  [Public] / libwww / Library / src / HTXParse.html
Revision 2.9: download - view: text, annotated - select for diffs
Thu Dec 7 00:07:36 1995 UTC (28 years, 5 months ago) by frystyk
Branches: MAIN
CVS tags: v4/0D, v4/0C, v4/0B, autoconf, HEAD
next version

<HTML>
<HEAD>
<TITLE>ExtParse: Module to get unparsed stream from libwww</TITLE>
<!-- Changed by: , 30-Nov-1994 -->
<!-- Changed by: Henrik Frystyk Nielsen, 19-Nov-1995 -->
<!-- Changed by: Hakon Lie,  5-Dec-1995 -->
</HEAD>
<BODY>

<H1>XParse: Module to get unparsed stream from libwww</H1>

<PRE>
/*
**	(c) COPYRIGHT MIT 1995.
**	Please first read the full copyright statement in the file COPYRIGH.
*/
</PRE>

This version of the stream object is a hook for clients that want an
unparsed stream from libwww. The HTXParse_put_* and HTXParse_write
routines copy the content of the incoming buffer into a buffer that is
realloced whenever necessary. This buffer is handed over to the client
in HTXParse_free. See also <A HREF="HTFWrite.html">HTFWriter</A>
for writing to C files.<P>

<H3>Bugs:</H3>

<UL>
<LI>strings written must be less than buffer size.
</UL>

This module is implemented by <A HREF="HTXParse.c">HTXParse.c</A>, and
it is a part of the <A HREF="http://www.w3.org/pub/WWW/Library/"> W3C
Reference Library</A>.

<PRE>
#ifndef HTXPARSE_H
#define HTXPARSE_H

#include "HTStream.h"
#include "HTReq.h"

typedef struct _HTXParseStruct HTXParseStruct;

typedef void CallClient (HTXParseStruct * me);

struct _HTXParseStruct {
	CallClient	*call_client;
	int             used;         /* how much of the buffer is being used*/
	BOOL            finished;     /* document loaded? */
        int             length;       /* how long the buffer is */
	char *          buffer;       /* storage in until client takes over */
	char *          content_type;
	HTRequest *	request;      /* the request structure */
};

extern HTConverter HTXParse;

#endif
</PRE>
End of declaration
</BODY>
</HTML>

Webmaster