<HTML>
<HEAD>
<!-- Changed by: Henrik Frystyk Nielsen, 7-Jun-1996 -->
<NEXTID N="z18">
<TITLE>W3C Reference Library ANSI Read and Write Streams</TITLE>
</HEAD>
<BODY>
<H1>
ANSI Read and Write Streams
</H1>
<PRE>
/*
** (c) COPYRIGHT MIT 1995.
** Please first read the full copyright statement in the file COPYRIGH.
*/
</PRE>
<P>
The ANSI Reader Stream and the ANSI Writer Stream are
<A HREF="HTIOStream.html">output streams</A> which knows how to read
and write to an ANSI C type FILE descriptor. Both streams are part of the
<A HREF="WWWTrans.html">Transport interface </A>and may be registered as
part of a <A HREF="HTTrans.html">Transport Object</A>. In the
<A HREF="WWWInit.html">default initialization interface</A>, you can find the
<CODE>HTTransportInit()</CODE> function which sets up the streams for handling
local file access on some platforms.
<P>
This module is implemented by <A HREF="HTANSI.c">HTANSI.c</A>, and it is
a part of the <A HREF="http://www.w3.org/pub/WWW/Library/">W3C Reference
Library</A>.
<PRE>
#ifndef HTANSI_H
#define HTANSI_H
#include <A HREF="HTIOStream.html">"HTIOStream.h"</A>
</PRE>
<H2>
Input Buffering
</H2>
<P>
In order to optimize reading a channel, we bind a buffer to each channel
object. The size of this buffer is a compromise between speed and memory.
<PRE>
#define FILE_BUFFER_SIZE 8192
</PRE>
<H2>
Read Stream
</H2>
<PRE>
extern HTInput_new HTANSIReader_new;
</PRE>
<H2>
Write Stream
</H2>
<PRE>
extern HTOutput_new HTANSIWriter_new;
</PRE>
<PRE>
#endif
</PRE>
<P>
End of declaration module
</BODY></HTML>
Webmaster