<HTML>
<HEAD>
<!-- Changed by: Henrik Frystyk Nielsen, 27-Jun-1996 -->
<TITLE>W3C Sample Code Library libwww Stream to Chunk Converter</TITLE>
</HEAD>
<BODY>
<H1>
Stream to Chunk Converter
</H1>
<PRE>
/*
** (c) COPYRIGHT MIT 1995.
** Please first read the full copyright statement in the file COPYRIGH.
*/
</PRE>
<P>
This stream converts a <A HREF="HTStream.html">Stream obejct</A> into a
<A HREF="HTChunk.html">Chunk object</A>. Chunks are dynamic streams so this
is in other words a conversion from a stream based model to a dynamic data
buffer model for handling a downloaded object. It is for the caller of this
stream to free the chunk.<P>
If max_size is 0 then we use a default size, if -1 then there is no limit.
<P>
This module is implemented by <A HREF="HTSChunk.c">HTSChunk.c</A>, and it
is a part of the <A HREF="http://www.w3.org/Library/"> W3C Sample Code
Library</A>.
<PRE>
#ifndef HTSCHUNK_H
#define HTSCHUNK_H
#include "HTChunk.h"
#include "HTStream.h"
#ifdef __cplusplus
extern "C" {
#endif
extern HTStream * HTStreamToChunk (HTRequest * request,
HTChunk ** chunk,
int max_size);
</PRE>
<P>
End of definition module
<PRE>
#ifdef __cplusplus
}
#endif
#endif /* HTSCHUNK_H */
</PRE>
<P>
<HR>
<ADDRESS>
@(#) $Id: HTSChunk.html,v 2.5 2005/11/11 14:03:16 vbancrof Exp $
</ADDRESS>
</BODY></HTML>
Webmaster